
/* ============================================
   MAIN
   ============================================ */
main {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4xl);
    align-self: stretch;
    padding-top: var(--spacing-5xl);
    padding-bottom: var(--spacing-10xl);
}

h1, h2, h5, p {
    margin: 0;
}

/* ============================================
   REUSABLE BUTTON HOVER EFFECT
   ============================================ */
.button-hover-green {
    transition: all 0.2s ease;
}

.button-hover-green:hover:not(:disabled) {
    background-color: var(--colors-brand-green-600) !important;
    text-decoration: none;
    color: var(--colors-base-white) !important;
}

/* ============================================
   APP CONTENT CONTAINER
   ============================================ */
.section-app-content {
    background-color: #fff;
}

.app-content {
    display: flex;
    max-width: var(--container-max-width-desktop);
    width: 100%;
    margin: 0 auto;
    padding: 1em var(--container-padding-desktop);
    flex-direction: column;
    justify-content: center;
}

.app-content.quote-results {
    max-width: 1600px;
}


/* ============================================
   ENROL HEADER
   ============================================ */
.enroll-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1 0 0;
    align-self: stretch;
    max-width: var(--container-max-width-desktop);
    width: 100%;
    margin: 0 auto;
    padding: 0;
    gap: var(--spacing-4xl);
}
.enroll-header-section-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: var(--spacing-xl);
}
.enroll-header-section-text h3 {
    color: var(--colors-brand-green-600);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-text-2xl);
    font-style: normal;
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-text-2xl);
}
.enroll-header-section-text h1 {
    color: var(--colors-brand-green-800);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-text-5xl);
    font-style: normal;
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-text-5xl);
    letter-spacing: var(--letter-spacing-tight);
}
.enroll-header-section-actions {
    max-width: 320px;
}
.form-submit-button {
    display: flex;
    min-width: var(--width-xxs);
    padding: var(--spacing-xl, 16px) 22px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--colors-border-border-disabled-subtle);
    background: var(--colors-background-bg-disabled);
    box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
    width: 100%;
}
.form-submit-button-active {
    background: var(--colors-brand-green-500);
    color: #FFF;
}
#desktop-btn {
    display: flex;
}
#mobile-btn {
    display: none;
}


/* ============================================
   ENROL TYPE
   ============================================ */
.enroll-types {
    display: flex;
    align-items: center;
    gap: var(--spacing-4xl);
    align-self: stretch;
    max-width: var(--container-max-width-desktop);
    width: 100%;
    margin: 0 auto;
    padding: 0;
}
.enroll-type {
    display: flex;
    height: 254px;
    min-width: 280px;
    max-width: 100%;
    padding: var(--spacing-3xl);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-3xl);
    flex: 1 0 0;
    border-radius: 32px;
    border: 1px solid var(--colors-gray-light-mode-200);
    background: #FFF;
    cursor: pointer;
    transition: box-shadow 0.15s ease;
}
.enroll-type:hover {
    box-shadow: 0 0 0 3px var(--colors-brand-green-50);
    border-color: var(--colors-gray-light-mode-200);
}
.enroll-type:hover .fa {
    outline: 2px solid var(--colors-brand-green-50);
    outline-offset: -1px;
    border-radius: 50%;
}
.enroll-type-active {
    background: var(--colors-brand-green-50);
    box-shadow: 0 0 0 3px var(--colors-brand-green-400);
}
.enroll-type.enroll-type-active span.fa.fa-check-circle {
    color: var(--colors-brand-green-600);
}
.enroll-type.enroll-type-active img.icon {
    background: var(--colors-brand-green-600);
}
.enroll-type.enroll-type-active:hover {
    background: var(--colors-brand-green-50);
    box-shadow: 0 0 0 3px var(--colors-brand-green-400);
    cursor: default;
}
.enroll-type img.icon {
    display: flex;
    width: 48px;
    height: 48px;
    padding: 12px;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-full);
    border: 3px solid var(--colors-brand-green-300);
    background: var(--colors-brand-green-400);
}
.enroll-type-top-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
}
.enroll-type-top-section span.fa.fa-circle-o {
    color: var(--colors-brand-green-50);
}
.enroll-type .custom-radio {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.custom-radio .enroll-type-top-section {
    order: 1;
}

.custom-radio .custom-radio-text {
    order: 2;
}
.enroll-type .custom-radio-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    flex-grow: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-overflow: ellipsis;
}
.enroll-type .custom-radio h5 {
    color: var(--colors-gray-light-mode-500);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-text-3xl);
    font-style: normal;
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-text-3xl);
}
.enroll-type .custom-radio p {
    color: var(--colors-text-text-tertiary-600);
    font-family: var(--font-family-primary);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}


/* ============================================
   SPOUSE DOB FIELD
   ============================================ */
.spouse-dob-field {
    display: none;
}
.divHousehold .form-group{
    margin-bottom: 0;
}
.divHousehold .form-group label {
    font-size: var(--font-size-text-sm);
    font-family: var(--font-family-primary);
    margin-bottom: 0;
}
.divHousehold .form-group input {
    border-radius: var(--radius-md);
    margin-bottom: 4px;
}
.divHousehold .form-group input::placeholder {
    font-size: var(--font-size-text-sm);
}
.divHousehold .form-group input:focus {
    outline: none;
    border: none;
}
.error-message {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    padding: var(--spacing-xl);
    border: 1px solid var(--colors-error-400);
    border-radius: var(--radius-md);
    background: var(--colors-gray-light-mode-25);
    color: var(--colors-error-600);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-text-lg);
    line-height: var(--line-height-text-lg);
}
.error-message-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--colors-error-600);
    border-radius: 50%;
    color: var(--colors-base-white);
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
}
.error-message-text {
    flex: 1;
}




/* ============================================
   RESPONSIVE STYLES
   ============================================ */
/* Common styles for max-width: 645px and max-width: 769px */
@media (max-width: 999px) {
    .section-company-info {
        display: none;
    }

    .app-content {
        align-items: center;
    }

    .app-content form {
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    main {
        width: 100%;
    }

    .enroll-type .custom-radio {
        width: 100%;
        justify-content: space-between;
    }

    .custom-radio .enroll-type-top-section {
        order: 2;
    }

    .custom-radio .custom-radio-text {
        order: 1;
    }
    #desktop-btn {
        display: none;
    }
    #mobile-btn {
        display: flex;
    }
}

/* For width 645px and below */
@media (max-width: 645px) {
    .enroll-header-section {
        flex-direction: column;
    }

    .enroll-header-section-text {
        flex: 0.7;
    }

    .enroll-header-section-actions {
        flex: 0.3;
    }
}

/* For width 999px and below */
@media (max-width: 999px) {
    .app-content {
        align-items: center;
    }
    main {
        display: flex;
        padding: var(--spacing-4xl, 32px) var(--spacing-2xl, 20px) var(--spacing-6xl, 48px) var(--spacing-2xl, 20px);
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-4xl, 32px);
        margin: 0;
    }
    .enroll-header-section {
        padding: 0;
    }
    .enroll-header-section-text {
        gap: 4px;
    }
    .enroll-header-section-text h3 {
        color: var(--colors-brand-green-600);
        font-family: var(--font-family-primary);
        font-size: var(--font-size-text-2xl);
        font-style: normal;
        font-weight: var(--font-weight-semibold);
        line-height: var(--line-height-text-2xl);
    }
    .enroll-header-section-text h1 {
        color: var(--colors-brand-green-8009);
        font-family: var(--font-family-primary);
        font-size: var(--font-size-text-4xl);
        font-style: normal;
        font-weight: var(--font-weight-semibold);
        line-height: normal;
        letter-spacing: var(--letter-spacing-tight);
    }
    .enroll-header-section-actions button {
        display: flex;
        min-width: var(--width-xxs);
        padding: var(--spacing-xl) 22px;
        justify-content: center;
        align-items: center;
        gap: 10px;
        align-self: stretch;
        border-radius: var(--radius-full);
        border: 1px solid var(--colors-border-border-disabled-subtle);
        background: var(--colors-background-bg-disabled);
        box-shadow: var(--shadow-sm);
    }
    .enroll-types {
        flex-direction: column;
        padding: 0;
    }
    .enroll-type {
        min-width: 280px;
        padding: var(--spacing-xl);
        gap: var(--spacing-xl);
        align-self: stretch;
        border-radius: var(--radius-xl);
        border: 1px solid var(--colors-gray-light-mode-200);
        background: var(--colors-gray-light-mode-25);
    }
    .enroll-type .custom-radio {
        flex-direction: row;
    }
    .enroll-type-top-section {
        align-items: center;
        justify-content: center;
    }
    .enroll-type .custom-radio h5 {
        color: var(--colors-brand-green-700);
        font-family: var(--font-family-primary);
        font-size: var(--font-size-text-xl);
        font-style: normal;
        font-weight: var(--font-weight-semibold);
        line-height: var(--line-height-text-xl);
    }
    .custom-radio .custom-radio-text p, .enroll-type img.icon {
        display: none;
    }
}

/* ============================================
   MOBILE STYLES (767px and below)
   ============================================ */
@media (max-width: 767px) {
    .app-content {
        padding: 1em var(--spacing-2xl);
    }
    
    main {
        padding: var(--spacing-4xl) 0 var(--spacing-9xl) 0;
    }
    
    .enroll-header-section {
        padding: 0;
        align-items: flex-start;
        gap: 0;
    }
    
    .enroll-header-section-text {
        align-items: flex-start;
        text-align: left;
    }
    
    .enroll-header-section-text h3 {
        text-align: left;
    }
    
    .enroll-header-section-text h1 {
        text-align: left;
    }
}

/* ============================================
   HELP MODAL STYLES
   ============================================ */

#helpModal {
    padding-right: 0;
}

/* Modal Container */
#helpModal .modal-dialog {
    max-width: 736px;
    margin: auto;
}

#helpModal .help-modal-content {
    border-radius: var(--radius-4xl);
    border: none;
    overflow: hidden;
    box-shadow: 0px 8px 8px -4px rgba(16, 24, 40, 0.03), 0px 20px 24px -4px rgba(16, 24, 40, 0.08);
}

/* Modal Header */
.help-modal-header {
    display: flex;
    flex-direction: column;
    background: var(--colors-brand-blue-500);
    padding: var(--spacing-lg) var(--spacing-4xl) var(--spacing-md) var(--spacing-3xl);
    border-radius: 16px 16px 0 0;
}

.help-modal-drag-handle {
    display: none;
}

.help-modal-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height:40px;
}

.help-modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
}

.help-modal-hand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transform: rotate(150deg) scaleY(-1);
}

.help-modal-title {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-text-2xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-text-2xl);
    color: var(--colors-base-white);
    padding-top: var(--spacing-xxs);
}

.help-modal-close {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.help-modal-close:hover {
    opacity: 0.8;
}

/* Modal Body */
.help-modal-body {
    background: var(--colors-base-white);
    padding: var(--spacing-6xl);
    padding-bottom: var(--spacing-7xl);
    border-radius: 0 0 var(--radius-4xl) var(--radius-4xl);
}

/* Desktop Layout */
.help-modal-desktop {
    display: flex;
    gap: var(--spacing-7xl);
    align-items: center;
    justify-content: center;
}

.help-modal-left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    align-items: flex-start;
}

.help-modal-questions-section {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.help-modal-question-title {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-text-5xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-text-5xl);
    letter-spacing: -0.96px;
    color: var(--colors-brand-blue-700);
    margin: 0;
}

.help-modal-subtitle {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-text-xl);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-text-xl);
    color: var(--colors-gray-light-mode-700);
    margin: 0;
}

.help-modal-hours {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.help-modal-hours-time {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-text-lg);
    font-weight: var(--font-weight-regular);
    line-height: 28px;
    color: var(--colors-gray-light-mode-600);
}

.help-modal-hours-days {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-text-lg);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-text-lg);
    color: var(--colors-gray-light-mode-700);
    padding-right: var(--spacing-lg);
    border-right: 1px solid var(--colors-gray-light-mode-300);
}

.help-modal-availability {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--colors-gray-light-mode-100);
    border-radius: var(--radius-full);
    width: 100%;
}

.help-modal-availability-dot {
    width: 16px;
    height: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-modal-availability-dot::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #079455;
    border-radius: 50%;
    position: absolute;
}

.help-modal-availability-dot::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 3px solid #47CD89;
    border-radius: 50%;
    position: absolute;
}

/* Available state for availability dot */
.help-modal-availability-dot.available::before {
    background: #079455;
}

.help-modal-availability-dot.available::after {
    border-color: #47CD89;
}

/* Unavailable state for availability dot */
.help-modal-availability-dot.unavailable::before {
    background: var(--colors-error-600);
}

.help-modal-availability-dot.unavailable::after {
    border-color: var(--colors-error-400);
}

.help-modal-availability-text {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-text-base);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-text-base);
    color: var(--colors-gray-light-mode-600);
}

/* Right Column - Buttons */
.help-modal-right {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    align-items: center;
}

.help-modal-btn-secondary {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-xl) 22px;
    width: 100%;
    border-radius: var(--radius-full);
    border: 1px solid #4F779C;
    background: var(--colors-base-white);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-text-lg);
    font-weight: var(--font-weight-semibold);
    line-height: 28px;
    color: #002F5A;
    text-decoration: none;
    transition: all 0.2s ease;
}

.help-modal-btn-secondary:hover {
    background: var(--colors-brand-blue-50);
    text-decoration: none;
    color: #002F5A;
}

.help-modal-divider {
    display: flex;
    align-items: center;
    gap: var(--spacing-3xl);
    width: 100%;
}

.help-modal-divider-line {
    flex: 1;
    height: 1px;
    background: var(--colors-gray-light-mode-300);
}

.help-modal-divider-text {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-text-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-text-base);
    color: var(--colors-gray-light-mode-500);
}

.help-modal-btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: var(--spacing-xl) 22px;
    width: 100%;
    border-radius: var(--radius-full);
    border: 1px solid var(--colors-brand-green-400);
    background: #448282;
    box-shadow: var(--shadow-sm);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-text-lg);
    font-weight: var(--font-weight-semibold);
    line-height: 28px;
    color: var(--colors-base-white);
    text-decoration: none;
    transition: all 0.2s ease;
}

.help-modal-btn-primary:hover {
    background: var(--colors-brand-green-600);
    text-decoration: none;
    color: var(--colors-base-white);
}

.help-modal-btn-primary svg {
    flex-shrink: 0;
}

/* Mobile Layout */
.help-modal-mobile {
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 500px;
}

.help-modal-mobile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-6xl);
    text-align: center;
}

.help-modal-mobile-header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    align-items: center;
}

.help-modal-mobile-title {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-text-5xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-text-5xl);
    letter-spacing: -0.96px;
    color: var(--colors-brand-green-700);
    margin: 0;
}

.help-modal-mobile-subtitle {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-text-xl);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-text-xl);
    color: var(--colors-gray-light-mode-600);
    margin: 0;
}

.help-modal-mobile-availability {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--colors-gray-light-mode-100);
    border-radius: var(--radius-full);
    width: 100%;
}

.help-modal-mobile-availability-text {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-text-xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-text-xl);
    color: var(--colors-gray-light-mode-600);
}

.help-modal-mobile-hours {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}

.help-modal-mobile-hours-time {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-text-2xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-text-2xl);
    color: var(--colors-gray-light-mode-600);
}

.help-modal-mobile-hours-days {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-text-2xl);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-text-2xl);
    color: var(--colors-gray-light-mode-700);
}

.help-modal-mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    width: 100%;
}

.help-modal-mobile-btn-secondary {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 18px 12px;
    width: 100%;
    border-radius: var(--radius-full);
    border: 1px solid var(--colors-gray-light-mode-300);
    background: var(--colors-base-white);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-text-lg);
    font-weight: var(--font-weight-semibold);
    line-height: 28px;
    color: #002F5A;
    text-decoration: none;
    transition: all 0.2s ease;
}

.help-modal-mobile-btn-secondary:hover {
    background: var(--colors-gray-light-mode-100);
    text-decoration: none;
    color: #002F5A;
}

.help-modal-mobile-btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 14px 18px 12px;
    width: 100%;
    border-radius: var(--radius-full);
    border: 1px solid #5EA4A5;
    background: #378E8E;
    box-shadow: var(--shadow-sm);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-text-lg);
    font-weight: var(--font-weight-semibold);
    line-height: 28px;
    color: var(--colors-base-white);
    text-decoration: none;
    transition: all 0.2s ease;
}

.help-modal-mobile-btn-primary:hover {
    background: var(--colors-brand-green-600);
    text-decoration: none;
    color: var(--colors-base-white);
}

.help-modal-mobile-btn-primary svg {
    flex-shrink: 0;
}

/* Help Modal Mobile Responsive Styles */
@media (max-width: 767px) {
    #helpModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
        display: flex;
        align-items: flex-end;
        padding-right: 10px;
        padding-left: 10px;
    }

    #helpModal .help-modal-content {
        border-radius: 40px 40px 0 0;
        width: 100%;
        max-height: 90vh;
    }

    .help-modal-header {
        padding: var(--spacing-lg) var(--spacing-2xl);
    }

    .help-modal-drag-handle {
        display: flex;
        justify-content: center;
        margin-bottom: var(--spacing-lg);
    }

    .help-modal-drag-line {
        width: 64px;
        height: 3px;
        background: var(--colors-brand-blue-50);
        border-radius: 2px;
    }

    .help-modal-title-wrapper {
        gap: var(--spacing-xs);
    }

    .help-modal-title {
        font-size: var(--font-size-text-xl);
        line-height: var(--line-height-text-xl);
    }

    .help-modal-close {
        position: absolute;
        right: 20px;
        top: var(--spacing-3xl);
    }

    .help-modal-body {
        padding: var(--spacing-7xl) var(--spacing-2xl) var(--spacing-3xl);
        background: var(--colors-gray-light-mode-25);
        border-radius: 0;
    }
}