
/* =========================
   WORKSPACE
========================= */

.workspace {
    background: #FFFFFF;
    border: 1px solid #E8EAED;
    border-radius: 17px;
    padding: 17px 24px 22px;
    margin: 0 16px;
    box-shadow: var(--shadow-card);
}


/* =========================
   STEP PROGRESS
========================= */

.step-progress {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 720px;
    margin: 0 auto 25px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 65px;
    color: #475569;
    font-size: 13px;
    white-space: nowrap;
}

.step-number {
    width: 37px;
    height: 37px;
    border: 1px solid #D7DCE2;
    background: #F8FAFC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.step.active {
    color: #08795B;
    font-weight: 700;
}

.step.active .step-number {
    background: #07815F;
    border-color: #07815F;
    color: white;
    box-shadow: 0 3px 8px rgba(8, 121, 91, 0.18);
}

.step-line {
    height: 2px;
    flex: 1;
    margin: 17px 7px 0;
    background: #D8DDE3;
}


/* =========================
   FORM HEADING
========================= */

.form-heading {
    margin-bottom: 17px;
}

.form-heading h2 {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin-bottom: 3px;
}

.form-heading p {
    font-size: 14px;
}


/* =========================
   INFORMATION CARDS
========================= */

.info-card {
    border: 1px solid #E8E5ED;
    border-radius: 17px;
    padding: 16px;
}

.info-card.lavender {
    background: linear-gradient(145deg, #FCFAFF, #F8F3FC);
    border-color: #EAE1F2;
}

.info-card.green-card {
    background: linear-gradient(145deg, #F6FCF7, #EBF7EF);
    border-color: #DCEDE0;
}

.info-card.disclaimer {
    background: linear-gradient(145deg, #FBF8FF, #F2ECFC);
    border-color: #E5DCF2;
}

.info-card-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 16px;
}

.info-card-heading > svg {
    width: 33px;
    height: 33px;
    padding: 6px;
    border-radius: 50%;
    background: #DDF3E4;
    color: #08795B;
    flex-shrink: 0;
}

.info-card-heading h3 {
    font-size: 17px;
    font-weight: 800;
}

.info-card > p {
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
}

.info-card > a {
    display: inline-block;
    color: #08795B;
    font-weight: 700;
    text-decoration: underline;
    margin-top: 8px;
    font-size: 13px;
}


/* =========================
   HOW IT WORKS
========================= */

.how-step {
    display: flex;
    gap: 13px;
    margin-bottom: 14px;
}

.how-step:last-child {
    margin-bottom: 0;
}

.how-step > span {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #D6F0DC;
    color: #065F46;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    font-weight: 800;
}

.how-step > div {
    flex: 1;
}

.how-step strong {
    display: block;
    color: #111827;
    font-size: 13px;
    line-height: 1.4;
}

.how-step p {
    font-size: 12px;
    line-height: 1.4;
    margin-top: 2px;
}


/* =========================
   BUTTONS
========================= */

.primary-button {
    min-height: 43px;
    padding: 11px 25px;
    background: linear-gradient(110deg, #07815F, #066B50);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.primary-button:hover {
    background: #055B45;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(5, 110, 80, 0.17);
}

.primary-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.primary-button svg {
    width: 17px;
    height: 17px;
}


/* =========================
   FOOTER ACTIONS
========================= */

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 16px;
}

.selection-count {
    font-size: 12px;
    color: #64748B;
}


/* =========================
   SMALL INFORMATION
========================= */

.ai-privacy-note {
    font-size: 11px;
    color: #64748B;
    margin-top: 9px;
    line-height: 1.5;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 650px) {
    .workspace {
        margin: 0 10px;
        padding: 17px 13px;
    }

    .step-progress {
        margin-bottom: 23px;
    }

    .step {
        font-size: 10px;
        min-width: 45px;
    }

    .step-number {
        width: 32px;
        height: 32px;
    }

    .step-line {
        margin-top: 15px;
        margin-left: 2px;
        margin-right: 2px;
    }

    .form-heading h2 {
        font-size: 20px;
    }

    .form-heading p {
        font-size: 13px;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-button {
        width: 100%;
    }
}

/* =========================
   STEP 3: INFORMATION REVIEW
========================= */

.review-section {
    background: #FFFFFF;
    border: 1px solid #E8EAED;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 15px;
}

.review-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.review-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #172033;
    margin-bottom: 12px;
}

.review-section-heading h3 {
    margin-bottom: 0;
}

.review-edit-button {
    border: 1px solid #B8DCCB;
    background: #F0F8F3;
    color: #08795B;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.review-edit-button:hover {
    background: #E2F2E9;
}

.review-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.5fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #EEF0F2;
    font-size: 13px;
}

.review-row:last-child {
    border-bottom: none;
}

.review-row strong {
    color: #475569;
    font-weight: 600;
}

.review-row span {
    color: #172033;
    line-height: 1.6;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

#review-feedback {
    margin-top: 12px;
}

@media (max-width: 650px) {
    .review-section {
        padding: 15px;
    }

    .review-section-heading {
        align-items: flex-start;
    }

    .review-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .review-edit-button {
        padding: 7px 9px;
    }
}

/* Ensure CTA links inside information cards retain readable text */
.info-card > a.primary-button,
.info-card > a.primary-button:hover,
.info-card > a.primary-button:focus,
.info-card > a.primary-button:visited {
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    margin-top: 0;
    font-size: 14px;
}

/* Centre CTA text and icon on mobile standalone pages */
@media (max-width: 650px) {
    .info-card > a.primary-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }
}

/* END STEP 3 REVIEW STYLES */

