/* How to Enrol page (Our Families).
 *
 * Scoped under `.enrol-page`. The hero matches the contact page's blue band;
 * the rest shares the ink and rule colours used by the room pages.
 */

.enrol-page {
    --enrol-blue: #6486A1;
    --enrol-rule: #E7E0D2;
    --enrol-ink: #33404D;
    --enrol-body: #6B6459;
}

/* The hero breaks out of the layout's container to run edge to edge. */
.enrol-bleed {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
}

.enrol-inner {
    max-width: 112rem;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---- Hero ----
 * Matches the contact page hero: solid blue band, centred white type, with
 * the centre's details underneath.
 */

.enrol-hero {
    padding: 5rem 0;
    background-color: var(--enrol-blue);
    text-align: center;
}

.enrol-hero-title {
    margin: 0 0 1.8rem;
    font-family: inherit;
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1.3;
    color: #FFFFFF;
}

.enrol-hero-copy {
    max-width: 62rem;
    margin: 0 auto 2rem;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #FFFFFF;
}

/* ---- Three steps ---- */

.enrol-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
    padding: 5.6rem 0 4rem;
}

.enrol-step {
    padding: 2.8rem;
    border: 1px solid var(--enrol-rule);
    border-radius: 12px;
    background-color: #FFFFFF;
}

.enrol-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 2.4rem;
    border-radius: 50%;
    background-color: var(--enrol-blue);
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: #FFFFFF;
}

.enrol-step-title {
    margin: 0 0 0.4rem;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--enrol-ink);
}

.enrol-step-tagline {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--enrol-blue);
}

.enrol-step p {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--enrol-body);
}

/* ---- Cost card ---- */

.enrol-cost {
    margin: 0 0 6.4rem;
    padding: 3.2rem 3.6rem;
    border: 1px solid var(--enrol-rule);
    border-radius: 12px;
    background-color: #FFFFFF;
}

.enrol-cost-title {
    margin: 0 0 1rem;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--enrol-ink);
}

.enrol-cost-copy {
    margin: 0 0 1.4rem;
    font-size: 1.5rem;
    line-height: 1.65;
    color: var(--enrol-body);
}

.enrol-cost-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--button-color, #5B7C99);
    text-decoration: none;
}

.enrol-cost-link:hover,
.enrol-cost-link:focus {
    color: var(--button-color-hover, #4A6880);
    text-decoration: underline;
}

@media screen and (max-width: 900px) {
    .enrol-hero {
        padding: 3.5rem 0;
    }

    .enrol-hero-title {
        font-size: 2.2rem;
    }

    .enrol-hero-copy {
        font-size: 1.3rem;
    }

    .enrol-steps {
        grid-template-columns: minmax(0, 1fr);
        padding: 4rem 0 3.2rem;
    }

    .enrol-cost {
        padding: 2.4rem;
    }
}
