/* ==========================================================================
   Anan Early Years – Admissions
   Builds on style.css (enquiry form, fields, chips) + inner.css
   ========================================================================== */

/* ---------- Process: winding journey ---------- */
.journey {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
}

.journey-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 6px;
    margin-left: -3px;
    border-radius: 6px;
    background: var(--line);
    overflow: hidden;
}

.journey-line span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--purple), var(--pink), var(--orange), var(--teal));
    transform-origin: top;
    transform: scaleY(0);
}

.j-step {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    align-items: center;
    margin-bottom: 40px;
}

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

.j-dot {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    position: relative;
    z-index: 1;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 28px;
    color: var(--c);
    background: #fff;
    border: 6px solid color-mix(in srgb, var(--c) 25%, #fff);
    box-shadow: var(--shadow-sm);
    transition: background .5s, color .5s, scale .5s var(--ease);
}

.j-step.active .j-dot {
    background: var(--c);
    color: #fff;
    scale: 1.08;
}

.j-card {
    grid-row: 1;
    padding: 30px 32px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: border-color .5s, box-shadow .5s;
}

.j-step:nth-child(even) .j-card {
    grid-column: 1;
}

.j-step:nth-child(odd) .j-card {
    grid-column: 3;
}

.j-step.active .j-card {
    border-color: color-mix(in srgb, var(--c) 45%, transparent);
    box-shadow: var(--shadow);
}

.j-num {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--c);
}

.j-card h3 {
    margin: 4px 0 8px;
    font-size: 1.5rem;
}

.j-card p {
    margin: 0 0 14px;
}

.j-link,
.j-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--c);
}

.j-link i {
    transition: transform .3s var(--ease);
}

.j-link:hover {
    color: var(--c);
}

.j-link:hover i {
    transform: translateX(5px);
}

@media (max-width: 767px) {
    .journey-line {
        left: 42px;
    }

    .j-step {
        grid-template-columns: 84px 1fr;
        column-gap: 18px;
        align-items: start;
    }

    .j-dot {
        grid-column: 1;
    }

    .j-step:nth-child(even) .j-card,
    .j-step:nth-child(odd) .j-card {
        grid-column: 2;
    }

    .j-card {
        padding: 22px;
    }
}

/* ---------- Classes ---------- */
.adm-classes {
    background: #fff;
    border-radius: 60px 60px 0 0;
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.class-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    border: 2px solid transparent;
    border-radius: 26px;
    background: var(--cream);
    text-align: left;
    color: var(--muted);
    overflow: hidden;
    isolation: isolate;
    transition: border-color .4s, translate .5s var(--ease), box-shadow .4s;
}

.class-card::before {
    content: "";
    position: absolute;
    right: -50px;
    top: -50px;
    z-index: -1;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--c);
    opacity: .12;
    transition: transform .7s var(--ease);
}

.class-card:hover {
    border-color: var(--c);
    translate: 0 -6px;
    box-shadow: var(--shadow);
}

.class-card:hover::before {
    transform: scale(1.6);
}

.cc-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 22px;
    color: #fff;
    background: var(--c);
}

.cc-age {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c);
}

.class-card strong {
    margin: 2px 0 6px;
    font-size: 1.4rem;
    color: var(--ink);
}

.cc-text {
    font-size: 15px;
    line-height: 1.55;
}

.cc-go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--c);
}

.cc-go i {
    transition: transform .3s var(--ease);
}

.class-card:hover .cc-go i {
    transform: translateX(5px);
}

@media (max-width: 991px) {
    .class-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .class-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* ---------- Age check ---------- */
.age-check {
    background: #fff;
    padding-top: 0;
}

.age-card {
    position: relative;
    overflow: hidden;
    padding: 56px;
    border-radius: 36px;
    color: rgba(255, 255, 255, .85);
    background:
        radial-gradient(50% 70% at 100% 0%, rgba(240, 138, 176, .35), transparent 70%),
        radial-gradient(50% 70% at 0% 100%, rgba(123, 184, 174, .3), transparent 70%),
        linear-gradient(135deg, #34175a, #57288a);
}

.age-card h2 {
    margin: 4px 0 12px;
    color: #fff;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.age-card strong {
    color: var(--yellow);
}

.age-small {
    font-size: 14px;
    opacity: .8;
}

.age-small i {
    margin-right: 6px;
    color: var(--yellow);
}

.age-tool {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
}

.age-tool .field input {
    background: #fff;
}

.age-result {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 18px 0 22px;
    padding: 18px 20px;
    border-radius: 20px;
    background: #fff;
    color: var(--muted);
}

.ar-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 22px;
    color: #fff;
    background: var(--rc, var(--purple));
    transition: background .4s;
}

.age-result strong {
    display: block;
    font-size: 1.15rem;
    color: var(--ink);
}

.age-result small {
    display: block;
    font-size: 14px;
    line-height: 1.45;
}

.age-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.age-track li {
    padding: 12px 6px;
    border-radius: 16px;
    text-align: center;
    background: rgba(255, 255, 255, .08);
    border: 2px solid transparent;
    transition: background .4s, border-color .4s, scale .4s var(--ease);
}

.age-track b {
    display: block;
    font-size: 14px;
    color: #fff;
}

.age-track small {
    font-size: 12px;
    opacity: .7;
}

.age-track li.match {
    background: var(--c);
    border-color: #fff;
    scale: 1.06;
}

.age-track li.match b,
.age-track li.match small {
    color: #2b1745;
    opacity: 1;
}

.age-cta {
    margin-top: 22px;
}

@media (max-width: 991px) {
    .age-card {
        padding: 40px 24px;
    }
}

@media (max-width: 575px) {
    .age-tool {
        padding: 18px;
    }

    .age-track {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- Documents checklist ---------- */
.docs-progress {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    font-weight: 600;
    color: var(--ink);
}

.dp-bar {
    flex: 1;
    max-width: 240px;
    height: 8px;
    border-radius: 8px;
    background: var(--line);
    overflow: hidden;
}

.dp-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 8px;
    background: var(--rainbow);
    transition: width .5s var(--ease);
}

.doc-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.doc-list label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    height: 100%;
    padding: 18px;
    border-radius: 20px;
    background: #fff;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: border-color .3s, background .3s;
}

.doc-list input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dl-box {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    border: 2px solid var(--line);
    color: transparent;
    font-size: 13px;
    transition: background .3s, border-color .3s, color .3s, scale .3s var(--ease);
}

.dl-text {
    font-size: 14px;
    line-height: 1.45;
}

.dl-text strong {
    display: block;
    font-size: 15px;
    color: var(--ink);
}

.doc-list input:checked + .dl-box {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
    scale: 1.1;
}

.doc-list input:checked ~ .dl-text strong {
    text-decoration: line-through;
    text-decoration-color: var(--teal);
}

.doc-list label:has(input:checked) {
    border-color: var(--teal);
    background: var(--teal-soft);
}

.doc-list input:focus-visible + .dl-box {
    outline: 3px solid var(--pink);
    outline-offset: 2px;
}

@media (max-width: 575px) {
    .doc-list {
        grid-template-columns: 1fr;
    }
}

/* ---------- After you join ---------- */
.after-join {
    background: #fff;
}

.join-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.join-card {
    padding: 26px 20px;
    border-radius: 24px;
    text-align: center;
    background: color-mix(in srgb, var(--c) 10%, #fff);
    transition: translate .5s var(--ease), box-shadow .4s;
}

.join-card:hover {
    translate: 0 -6px;
    box-shadow: var(--shadow);
}

.join-card i {
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-size: 22px;
    color: #fff;
    background: var(--c);
}

.join-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.join-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .join-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- FAQ ---------- */
.faq-head {
    position: sticky;
    top: 120px;
}

.faq-item {
    margin-bottom: 14px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--line);
    transition: border-color .3s, box-shadow .3s;
}

.faq-item[open] {
    border-color: color-mix(in srgb, var(--purple) 40%, transparent);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary i {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    color: var(--purple-deep);
    background: var(--purple-soft);
    transition: transform .4s var(--ease), background .3s, color .3s;
}

.faq-item[open] summary i {
    transform: rotate(45deg);
    color: #fff;
    background: var(--purple-deep);
}

.faq-a {
    padding: 0 24px 20px;
}

.faq-a p {
    margin: 0;
}

.faq-a a {
    color: var(--purple-deep);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 991px) {
    .faq-head {
        position: static;
    }
}

/* Form section sits on white like the rest of the lower page */
.page-admission .contact {
    background: #fff;
}

.page-admission .site-footer,
.page-careers .site-footer {
    margin-top: 0;
}
