:root {
    --primary: #0f766e;
    --primary-dark: #115e59;
    --bg: #f4fbfa;
    --text: #172026;
    --muted: #667085;
    --border: #d7e5e2;
    --white: #ffffff;
    --danger: #b42318;
    --shadow: 0 24px 70px rgba(15, 118, 110, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top left, #dff7f3 0, var(--bg) 34%, #ffffff 100%);
}

.enrolment-page {
    min-height: 100vh;
    padding: 48px 18px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.form-shell {
    width: min(980px, 100%);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 34px;
    box-shadow: var(--shadow);
}

.form-hero {
    text-align: center;
    margin-bottom: 26px;
}

.eyebrow {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #e6fffb;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 12px;
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
}

.form-hero p,
.section-note,
.consent-box p,
.thank-you-card p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.progress-wrap {
    margin: 24px 0 34px;
}

.progress-line {
    height: 8px;
    background: #e6f2f0;
    border-radius: 99px;
    overflow: hidden;
}

.progress-line span {
    display: block;
    width: 33.33%;
    height: 100%;
    background: var(--primary);
    border-radius: inherit;
    transition: width 0.3s ease;
}

.steps-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
}

.steps-labels span.active {
    color: var(--primary-dark);
}

.form-step {
    display: none;
    border: 0;
    margin: 0;
    padding: 0;
}

.form-step.active {
    display: block;
}

legend {
    width: 100%;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 22px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

label,
.field-group {
    display: block;
    margin-bottom: 18px;
    font-weight: 700;
}

label span,
.field-group p span {
    color: var(--danger);
}

input,
select {
    width: 100%;
    margin-top: 8px;
    padding: 14px 15px;
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 15px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-weight: 500;
}

.choice-row,
.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-row label,
.choice-grid label,
.checkbox-line {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    margin: 0;
    cursor: pointer;
    background: #fbfffe;
}

.choice-row input,
.choice-grid input,
.checkbox-line input {
    width: auto;
    margin: 0 8px 0 0;
    transform: translateY(1px);
}

.consent-box {
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    background: #fbfffe;
    margin: 20px 0;
}

.consent-box h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.55;
    margin-top: 12px;
}

.checkbox-line span {
    color: var(--text);
    font-weight: 600;
}

a {
    color: var(--primary-dark);
    font-weight: 800;
}

.form-actions {
    margin-top: 28px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.form-actions.split {
    justify-content: space-between;
}

.btn {
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn.primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.24);
}

.btn.secondary {
    background: #eef6f5;
    color: var(--primary-dark);
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-weight: 700;
}

.alert-error {
    background: #fff2f0;
    color: var(--danger);
    border: 1px solid #ffccc7;
}

.thank-you-page {
    align-items: center;
}

.thank-you-card {
    max-width: 720px;
    text-align: center;
}

.success-icon {
    display: inline-flex;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    background: #dcfaf3;
    color: var(--primary-dark);
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 18px;
}

.thank-you-btn {
    margin-top: 20px;
}

@media (max-width: 760px) {
    .enrolment-page {
        padding: 22px 12px;
    }

    .form-shell {
        padding: 22px;
        border-radius: 20px;
    }

    .grid-2,
    .choice-row,
    .choice-grid {
        grid-template-columns: 1fr;
    }

    .form-actions,
    .form-actions.split {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
    }
}
