/* ==========================================================================
   B2B Enrollment Widget Styles
   Aligned with the new AMCN site design system (Gotham/Work Sans, navy/blue)
   ========================================================================== */

.b2b-enrollment-widget {
    font-family: 'Montserrat', Arial, sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    color: #06304a;
}

/* Step indicator bar */
.b2b-step-indicators {
    display: none;
}

/* Google Places Autocomplete dropdown (appended to <body> by the Maps SDK) —
   keep it above the widget's own content and any Bootstrap modals. */
.pac-container {
    z-index: 2000;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* ==========================================================================
   Step 0: Coupon Verification
   ========================================================================== */
.b2b-coupon-section {
    max-width: 512px;
    margin: 2rem auto;
    text-align: center;
}

.b2b-coupon-header {
    background-color: #06304a;
    color: #fff;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: 0.75rem 0.75rem 0 0;
    font-family: 'Montserrat', Arial, sans-serif;
}

.b2b-coupon-body {
    border: 1px solid #cdd8e1;
    border-top: none;
    padding: 1.5rem;
    border-radius: 0 0 0.75rem 0.75rem;
    background-color: #fff;
}

.b2b-coupon-input-group {
    display: flex;
    gap: 0;
}

.b2b-coupon-input-group input {
    flex: 1;
    border: 1px solid #6a6f75;
    border-right: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: 'Work Sans', sans-serif;
    border-radius: 0.75rem 0 0 0.75rem;
    outline: none;
    color: #06304a;
}

.b2b-coupon-input-group input::placeholder {
    color: #6a6f75;
}

.b2b-coupon-input-group input:focus {
    border-color: #1079b9;
    box-shadow: 0 0 0 2px #eff6ff;
}

.b2b-coupon-input-group .b2b-btn-submit {
    background-color: #1079b9;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    font-family: 'Montserrat', Arial, sans-serif;
    border-radius: 0 0.75rem 0.75rem 0;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.b2b-coupon-input-group .b2b-btn-submit:hover {
    background-color: #0c5988;
    transform: scale(1.02);
}

.b2b-coupon-error {
    color: #be112c;
    font-size: 0.875rem;
    font-family: 'Work Sans', sans-serif;
    margin-top: 0.75rem;
}

/* ==========================================================================
   Step 1: Employee Info
   ========================================================================== */
.b2b-section-title {
    color: #06304a;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Montserrat', Arial, sans-serif;
    margin-bottom: 1rem;
    border: none;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.b2b-already-member {
    float: right;
    font-size: 0.875rem;
    font-family: 'Work Sans', sans-serif;
    color: #6a6f75;
}

.b2b-already-member input {
    margin-right: 0.25rem;
}

.b2b-form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.b2b-form-row .b2b-field {
    flex: 1;
}

.b2b-field input,
.b2b-field select {
    width: 100%;
    border: 1px solid #6a6f75;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: 'Work Sans', sans-serif;
    border-radius: 0.75rem;
    color: #06304a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.b2b-field input:focus,
.b2b-field select:focus {
    border-color: #1079b9;
    outline: none;
    box-shadow: 0 0 0 2px #eff6ff;
}

.b2b-field input::placeholder {
    color: #6a6f75;
}

.b2b-field .b2b-field-hint {
    font-size: 0.8rem;
    font-family: 'Work Sans', sans-serif;
    color: #6a6f75;
    margin-top: 0.25rem;
}

.b2b-field.is-invalid input,
.b2b-field.is-invalid select {
    border-color: #be112c;
    background-color: #fbc0c0;
}

.b2b-field-error {
    display: block;
    font-size: 0.78rem;
    color: #be112c;
    font-family: 'Work Sans', sans-serif;
    margin-top: 0.25rem;
}

/* Same as physical address radio */
.b2b-same-address {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-family: 'Work Sans', sans-serif;
    color: #06304a;
}

.b2b-same-address label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

/* Additional Members section */
.b2b-additional-members-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.b2b-btn-add-member {
    background-color: #06304a;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Montserrat', Arial, sans-serif;
    border-radius: 50rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.b2b-btn-add-member:hover {
    background-color: #0c5988;
    transform: scale(1.05);
}

.b2b-family-member-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.b2b-family-member-row .b2b-field {
    flex: 1;
}

.b2b-btn-remove-member {
    background-color: #06304a;
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.b2b-btn-remove-member:hover {
    background-color: #be112c;
}

/* Primary action button */
.b2b-btn-primary {
    background-color: #1079b9;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Montserrat', Arial, sans-serif;
    text-transform: uppercase;
    border-radius: 50rem;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.b2b-btn-primary:hover {
    background-color: #0c5988;
    transform: scale(1.05);
}

.b2b-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   Step 2: Select Plan (with sidebar)
   ========================================================================== */
.b2b-plan-layout {
    display: flex;
    gap: 2rem;
}

.b2b-plan-main {
    flex: 1;
}

.b2b-plan-sidebar {
    width: 300px;
    min-width: 280px;
}

@media (max-width: 768px) {
    .b2b-plan-layout {
        flex-direction: column;
    }
    .b2b-plan-sidebar {
        width: 100%;
    }
}

/* Plan cards */
.b2b-plan-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #6a6f75;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
}

.b2b-plan-card:hover {
    border-color: #1079b9;
    background-color: #f9fcff;
}

.b2b-plan-card.selected {
    background-color: #06304a;
    color: #fff;
    border-color: #06304a;
}

.b2b-plan-card input[type="radio"] {
    display: none;
}

.b2b-plan-term {
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Montserrat', Arial, sans-serif;
}

.b2b-plan-price {
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* Info Sidebar */
.b2b-info-sidebar {
    background-color: #eff6ff;
    border: 1px solid #cdd8e1;
    border-radius: 0.75rem;
    overflow: hidden;
}

.b2b-info-sidebar-header {
    background-color: #06304a;
    color: #fff;
    padding: 0.875rem 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Montserrat', Arial, sans-serif;
}

.b2b-info-sidebar-body {
    padding: 1.25rem;
}

.b2b-info-sidebar-body .b2b-info-item {
    margin-bottom: 0.75rem;
}

.b2b-info-sidebar-body .b2b-info-label {
    font-weight: 700;
    color: #06304a;
    font-size: 0.85rem;
    font-family: 'Montserrat', Arial, sans-serif;
    margin-bottom: 0.15rem;
}

.b2b-info-sidebar-body .b2b-info-value {
    font-size: 0.9rem;
    font-family: 'Work Sans', sans-serif;
    color: #06304a;
    line-height: 1.6;
}

.b2b-info-sidebar-body .b2b-info-edit {
    float: right;
    cursor: pointer;
    color: #1079b9;
    font-size: 0.85rem;
}

/* FUH section */
.b2b-fuh-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #cdd8e1;
}

.b2b-fuh-section h3 {
    color: #06304a;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Montserrat', Arial, sans-serif;
}

.b2b-fuh-info {
    color: #06304a;
    font-size: 0.9rem;
    font-family: 'Work Sans', sans-serif;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.b2b-fuh-info a {
    color: #1079b9;
    text-decoration: underline;
}

.b2b-fuh-info a:hover {
    color: #0c5988;
}

/* Company info section on plan page */
.b2b-company-info-section {
    margin-top: 1.5rem;
}

.b2b-company-info-section h4 {
    color: #06304a;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Montserrat', Arial, sans-serif;
    margin-bottom: 0.75rem;
}

/* Payroll deduction disclaimer */
.b2b-payroll-disclaimer {
    font-size: 0.85rem;
    font-family: 'Work Sans', sans-serif;
    color: #6a6f75;
    margin-top: 1.5rem;
    line-height: 1.6;
}

.b2b-payroll-disclaimer label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.b2b-payroll-disclaimer input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #1079b9;
}

/* T&C section */
.b2b-terms-section {
    margin-top: 1rem;
    font-size: 0.85rem;
    font-family: 'Work Sans', sans-serif;
    color: #6a6f75;
}

.b2b-terms-section a {
    color: #1079b9;
    font-weight: 500;
    text-decoration: underline;
}

.b2b-terms-section a:hover {
    color: #0c5988;
}

/* Error states */
.b2b-error-msg {
    color: #be112c;
    font-size: 0.875rem;
    font-family: 'Work Sans', sans-serif;
    margin-top: 0.5rem;
}

.b2b-error-msg.d-none {
    display: none;
}

/* Info icon (red circle i) */
.b2b-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #be112c;
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.25rem;
    cursor: help;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 576px) {
    .b2b-form-row {
        flex-direction: column;
        gap: 0;
    }

    .b2b-family-member-row {
        flex-wrap: wrap;
    }

    .b2b-coupon-section {
        margin: 1rem;
    }
}
