
:root {
    --msc-color-active: #006AC3;   /* Blue */
    --msc-color-complete: #097B24; /* Green */
    --msc-color-pending: #FFFFFF;  /* White */
    --msc-color-line: #d1d5db;     /* Grey Line */

    --msc-marker-size: 32px;
    --msc-gap: 8px;
    --msc-sep-len: 16px;

    --font-family-headline-2xs: Roboto;
    --font-family-roboto: Roboto;
}

/* ==========================================================================
    CORE FUNCTIONAL STYLES (Logic)
   ========================================================================== */
.step {
    display: none;
}

.step.active {
    display: block;
}

/* ==========================================================================
   MAIN LAYOUT CONTAINERS
   ========================================================================== */
.step-counter-and-form {
    display: flex;
    gap: 45px;
}

@media screen and (max-width: 639px) {
    .step-counter-and-form {
        flex-direction: column;
        gap: 25px;
    }
}

/* ==========================================================================
    FORM ELEMENTS & INPUTS
   ========================================================================== */
#intake-form {
    display: flex;
    flex-direction: column;
    gap: 33px;
}


.add-account-btn, .btn-remove {
    display: inline-block;
    text-decoration: none;
    position: relative;
    padding-left: 22px;

    color: #006AC3;

    /* Component-Specific/Deprecated/Web-Android (Deprecated)/button */
    font-family: var(--font-family-link, Roboto);
    font-size: var(--Type-Link-font-size-default, 16px);
    font-style: normal;
    font-weight: var(--Components-Button-Type-font-weight-default, 500);
    line-height: var(--Components-Button-Type-line-height-default, 24px); /* 150% */
    letter-spacing: var(--Components-Button-Type-letter-spacing-lg, 0);

    &::before {
        content: url(/caribbean/forms/eb-enrolment/_assets-custom/images/plus-icon.svg);
        position: absolute;
        left: 0;
        top: .25em;
        display: inline-block;
        width: 16px;
        height: 16px;
        line-height: 0;
    }
}

.btn-remove {
    &::before {
        content: url(/caribbean/forms/eb-enrolment/_assets-custom/images/minus-icon.svg) !important;
    }
}

.input-wpr.required label::before, .select-wpr.required label::before, .radio-wpr.required legend::before, .checkbox-wpr.required legend::before {
    display: none !important;
}

.input-wpr.required label::after, .select-wpr.required label::after, .radio-wpr.required legend::after, .checkbox-wpr.required legend::after {
    content: " (Required)";
    color: var(--text-foregrounds-text-default, text-default);
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: var(--font-family-text, Roboto);
    font-size: var(--Type-UI-Text-default-font-size, 16px);
    font-style: normal;
    font-weight: var(--Type-Text-font-weight-low-emphasis, 300);
    line-height: var(--Type-UI-Text-default-line-height, 24px);
    letter-spacing: var(--Type-UI-Text-default-letter-spacing, 0);
}

.input-box {
    display: flex;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    align-self: stretch;
    border: 1px solid #B3B3B3;
    background: #FFFFFF;
}

.input-box-heading {
    color: var(--text-foregrounds-text-default, #000);
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: var(--font-family-headline-2xs, Roboto);
    font-size: var(--Type-Heading-2xs-font-size, 18px);
    font-style: normal;
    font-weight: var(--Type-Heading-2xs-font-weight, 400);
    line-height: var(--Type-Heading-2xs-line-height, 28px);
    letter-spacing: var(--Type-Heading-2xs-letter-spacing, 0);
    margin-bottom: 0;
}

.input-row.account-controls {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.input-row {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start; /* Keep rows top-aligned for error messages */

    .input-wpr, .date-row, .select-wpr {
        max-width: 293px;
        margin-bottom: 0;
        width: 100%;
        position: relative;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    input, select {
        width: 100%;
    }

    @media screen and (max-width: 639px) {
        flex-direction: column;
    }
}

.account-1-container, .account-2-container, .account-3-container {
    .input-row {
        margin-top: 20px;
    }
    .input-row:not(:last-child) {
        margin-bottom: 20px;
    }
}

#pid3-row {
    flex-wrap: wrap;
    p {
        flex: 0 0 100%;
        margin-bottom: 0;
    }
}
/* Ensure the ID inputs stay side-by-side even after wrapping */
#pid3-row .select-wpr,
#pid3-row .input-wpr {
    flex: 1; /* Allows them to grow and share the second row */
    max-width: 293px;
}

.btn-remove {
    color: #006AC3;

    /* Component-Specific/Deprecated/Web-Android (Deprecated)/button */
    font-family: var(--font-family-link, Roboto);
    font-size: var(--Type-Link-font-size-default, 16px);
    font-style: normal;
    font-weight: var(--Components-Button-Type-font-weight-default, 500);
    line-height: var(--Components-Button-Type-line-height-default, 24px); /* 150% */
    letter-spacing: var(--Components-Button-Type-letter-spacing-lg, 0);
}

.error-msg {
    display: block;
    margin-top: 10px;
    color: #c8102e;
}

.form-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

/* ==========================================================================
    STEP COUNTER COMPONENT (Sidebar/Header)
   ========================================================================== */
#page-title {
    color: #000;
    font-family: Roboto;
    font-size: 22px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    letter-spacing: 0.4px;
    display: flex;
    gap: 12px;
    align-items: center;

    &:before {
        content: '';
        width: 2px;
        height: 29px;
        display: inline-block;
        background: #FFC72C;
    }
}

.msc-container {
    display: flex;
    font-family: system-ui, -apple-system, sans-serif;
    min-width: 160px;
    flex-shrink: 0;
}

.msc-step {
    display: flex;
    position: relative;
    flex-shrink: 0;
}

.msc-marker {
    width: var(--msc-marker-size);
    height: var(--msc-marker-size);
    min-width: var(--msc-marker-size);
    min-height: var(--msc-marker-size);
    border-radius: 50%;
    background-color: var(--msc-color-pending);
    border: 2px solid var(--msc-color-line);
    color: var(--msc-color-line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    z-index: 2;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.msc-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.msc-separator {
    background-color: var(--msc-color-line);
    flex: none;
}

/* State Logic */
.msc-step.msc-status-active .msc-marker {
    background-color: var(--msc-color-active);
    border-color: var(--msc-color-active);
    color: #ffffff;
}

.msc-step.msc-status-completed .msc-marker {
    background-color: var(--msc-color-complete);
    border-color: var(--msc-color-complete);
    color: #ffffff;
}

/* Desktop View (Vertical) */
@media (min-width: 640px) {
    .msc-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .msc-step {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    .msc-separator {
        width: 2px;
        height: var(--msc-sep-len);
        margin: var(--msc-gap) 0 var(--msc-gap) 15px;
    }
}

/* Mobile View (Horizontal) */
@media (max-width: 639px) {
    .msc-container {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        margin-bottom: 0px;
        width: 100%;
    }
    .msc-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: auto;
        max-width: min(200px, 20vw);
    }
    .msc-label {
        margin-top: 8px;
        line-height: 1.2;
    }
    .msc-separator {
        height: 2px;
        width: min(40px, 20vw);
        margin: 15px var(--msc-gap) 0 var(--msc-gap);
    }
}

/* ==========================================================================
   REVIEW CONTAINER STYLING
   ========================================================================== */
.review-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

#review-container {
    .input-box {
        margin-bottom: 33px;
    }
}

.review-item {
    flex: 0 0 calc(33.33% - 14px);
    display: flex;
    flex-direction: column;
}

.review-sub-heading,
.review-divider {
    flex: 0 0 100%;
}

.review-sub-heading {
    color: var(--text-foregrounds-text-default, text-default);
    font-feature-settings: 'liga' off, 'clig' off;

    /* Text: Heading (Future)/heading-2xs */
    font-family: var(--font-family-headline-2xs, Roboto);
    font-size: var(--Type-Heading-2xs-font-size, 18px);
    font-style: normal;
    font-weight: var(--Type-Heading-2xs-font-weight, 400);
    line-height: var(--Type-Heading-2xs-line-height, 28px); /* 155.556% */
    letter-spacing: var(--Type-Heading-2xs-letter-spacing, 0);
    border-bottom: 1px solid #B3B3B3;
    padding-bottom: 10px;
}

.review-divider {
    height: 1px;
    background-color: #d1d5db;
    margin: 10px 0;
}

.review-label {
    color: var(--text-foregrounds-text-default, text-default);
    font-feature-settings: 'liga' off, 'clig' off;

    /* Text: UI/ui */
    font-family: var(--font-family-text, Roboto);
    font-size: var(--Type-UI-Text-default-font-size, 16px);
    font-style: normal;
    font-weight: var(--Type-Text-font-weight-default, 400);
    line-height: var(--Type-UI-Text-default-line-height, 24px); /* 150% */
    letter-spacing: var(--Type-UI-Text-default-letter-spacing, 0);
}

.review-value {
    font-size: 16px;
}

@media screen and (max-width: 768px) {
    .review-item {
        flex: 0 0 100%;
    }
}

/* ==========================================================================
   THANK YOU / SUCCESS STATE
   ========================================================================== */
.thank-you {
    text-align: center;
    margin-top: 50px;
}

.thanks-heading {
    color: #006AC3;
    text-align: center;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: var(--font-family-roboto, Roboto);
    font-size: var(--Type-Heading-2xl-font-size, 40px);
    font-style: normal;
    font-weight: var(--font-weight-light, 300);
    line-height: var(--Type-Heading-2xl-line-height, 48px);
    letter-spacing: var(--Type-Heading-2xl-letter-spacing, -0.65px);
    margin-bottom: 38px;
}

.thanks-subheading {
    color: var(--text-foregrounds-text-1, #444);
    text-align: center;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: Roboto;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 90px;
}

.thanks-img {
    max-width: 509px;
    width: 100%;
    padding: 0 20px;
    margin-left: auto;
    margin-right: auto;
}

main {
    padding-top: 25px;
    @media screen and (max-width: 639px) {
        padding-top: 15px;
    }
}