/* ── B2B Inquiry Form – Frontend Styles ── */

.b2b-inquiry-wrapper {
    max-width: 720px;
    margin: 2rem auto;
    padding: 2rem 1.8rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}

.b2b-inquiry-wrapper * {
    box-sizing: border-box;
}

.b2b-inquiry-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 1.6rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #edf2f7;
}

/* ── Field rows ── */
.b2b-field-row {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 0;
}

.b2b-field {
    margin-bottom: 1.2rem;
}

.b2b-field-full {
    width: 100%;
}

.b2b-field-half {
    flex: 1;
    min-width: 180px;
}

/* ── Labels ── */
.b2b-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
}

.b2b-required {
    color: #e53e3e;
    margin-left: 2px;
}

/* ── Inputs / Select / Textarea ── */
.b2b-field input[type="text"],
.b2b-field input[type="email"],
.b2b-field input[type="tel"],
.b2b-field select,
.b2b-field textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1a202c;
    background: #f7fafc;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.b2b-field input:focus,
.b2b-field select:focus,
.b2b-field textarea:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
    background: #fff;
}

.b2b-field input.b2b-error,
.b2b-field select.b2b-error,
.b2b-field textarea.b2b-error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

.b2b-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5568' fill='none' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.2rem;
}

.b2b-field textarea {
    resize: vertical;
    min-height: 100px;
}

.b2b-field-error {
    display: block;
    font-size: 0.78rem;
    color: #e53e3e;
    margin-top: 0.25rem;
    min-height: 0;
}

/* ── Captcha ── */
.b2b-captcha-row input {
    max-width: 180px;
}

.b2b-captcha-q {
    display: inline-block;
    font-weight: 700;
    color: #2b6cb0;
    background: #ebf8ff;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    min-width: 60px;
    text-align: center;
}

/* ── Submit button ── */
.b2b-submit-btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #4299e1, #3182ce);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s, opacity 0.25s;
    font-family: inherit;
}

.b2b-submit-btn:hover {
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    transform: translateY(-1px);
}

.b2b-submit-btn:active {
    transform: translateY(0);
}

.b2b-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ── Feedback ── */
.b2b-form-feedback {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 500;
    text-align: center;
}

.b2b-feedback-success {
    color: #276749;
    background: #f0fff4;
    border: 1px solid #c6f6d5;
}

.b2b-feedback-error {
    color: #9b2c2c;
    background: #fff5f5;
    border: 1px solid #fed7d7;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .b2b-inquiry-wrapper {
        padding: 1.5rem 1rem;
        margin: 1rem 0.5rem;
    }

    .b2b-field-row {
        flex-direction: column;
        gap: 0;
    }

    .b2b-inquiry-title {
        font-size: 1.3rem;
    }

    .b2b-captcha-row input {
        max-width: 100%;
    }
}
