/* Admission Procedure page: the site's own navy, royal blue, orange and light blue. */

.adm { background: var(--white); }
.adm--tint { background: var(--cream); }

.adm__head { max-width: 48rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

.adm__split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.adm__split--form { align-items: start; }

.adm__text > * + * { margin-top: 1.125rem; }
.adm__text .section-heading { margin-bottom: 0.5rem; }
.adm__text p { font-size: 1.0625rem; line-height: 1.75; color: #44516b; }
.adm__text .adm__lead { font-size: 1.1875rem; color: var(--navy-900); }

.adm-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--indigo-100);
    color: var(--indigo-700);
}

.adm-invite,
.adm-panel {
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-top: 4px solid var(--orange-500);
    border-radius: 1rem;
    background: var(--cream);
}

.adm--tint .adm-panel { background: var(--white); }

.adm-invite p,
.adm-panel p { line-height: 1.7; color: #44516b; }

.adm-invite__contacts {
    display: grid;
    gap: 0.375rem;
    margin-top: 1rem;
    padding: 0;
}

.adm-invite__contacts a {
    font-weight: 700;
    color: var(--indigo-700);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.adm-invite__contacts a:hover { text-decoration: underline; }

/* Steps */
.adm-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
    padding: 0;
    counter-reset: none;
}

.adm-step {
    position: relative;
    padding: 1.5rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--white);
}

.adm-step + .adm-step::before {
    content: "";
    position: absolute;
    top: 2.5rem;
    left: -1.25rem;
    width: 1.25rem;
    height: 2px;
    background: var(--indigo-100);
}

.adm-step__no {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--indigo-700);
    font-weight: 700;
    color: var(--white);
}

.adm-step p { font-size: 0.9688rem; line-height: 1.6; color: #2c3a57; }

.adm-note {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-top: 1.75rem;
    padding: 0.875rem 1.125rem;
    border-left: 4px solid var(--orange-500);
    border-radius: 0 0.5rem 0.5rem 0;
    background: #fff4e8;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #7c2d12;
}

.adm-note .icon { flex: none; margin-top: 0.15rem; color: var(--orange-600); }

/* Panels */
.adm-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

/* Document cards */
.adm-docs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.adm-doc {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    overflow: hidden;
    padding: 2.5rem 1.5rem 2rem;
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: var(--white);
    text-align: center;
    box-shadow: 0 14px 30px -24px rgba(7, 20, 47, 0.4);
}

.adm-doc::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 38%;
    height: 3.25rem;
    border-bottom-right-radius: 100%;
    background: var(--navy-900);
}

.adm-doc:nth-child(2)::before { background: var(--orange-600); }

.adm-doc__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    background: var(--indigo-100);
    color: var(--indigo-700);
}

.adm-doc:nth-child(2) .adm-doc__icon { background: #ffe9d6; color: var(--orange-600); }

.adm-doc h3 { margin: 0; font-size: 1.25rem; line-height: 1.4; color: var(--navy-900); }

.adm-doc h3::after {
    content: "";
    display: block;
    width: 4rem;
    height: 3px;
    margin: 0.875rem auto 0;
    border-radius: 2px;
    background: var(--indigo-700);
}

.adm-doc:nth-child(2) h3::after { background: var(--orange-600); }

.adm-panel h3 { margin-bottom: 0.5rem; font-size: 1.25rem; color: var(--navy-900); }

.adm-panel--notice .btn { margin-top: 0.5rem; }

/* Ask list */
.adm__ask {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    padding: 0;
}

.adm__ask li {
    padding: 0.4rem 1rem;
    border: 1px solid var(--indigo-600);
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--indigo-700);
}

/* Form */
.adm-form {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--white);
    box-shadow: 0 14px 30px -24px rgba(11, 31, 77, 0.35);
}

.adm-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
}

.adm-field { display: grid; gap: 0.25rem; align-content: start; }
.adm-field--wide { grid-column: 1 / -1; }
.adm-field > span { font-size: 0.8125rem; color: #526079; }

.adm-field input,
.adm-field select,
.adm-field textarea {
    width: 100%;
    padding: 0.5rem 0;
    border: 0;
    border-bottom: 1.5px solid var(--line);
    border-radius: 0;
    background: transparent;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--ink);
}

.adm-field textarea { resize: vertical; min-height: 5rem; }

.adm-field input:focus,
.adm-field select:focus,
.adm-field textarea:focus {
    border-bottom-color: var(--indigo-700);
    outline: none;
    box-shadow: 0 2px 0 0 var(--indigo-700);
}

.adm-field small,
.adm-check__error { font-size: 0.8125rem; color: var(--red-500, #e5283d); }

.adm-check {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-top: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #2c3a57;
}

.adm-check input { flex: none; width: 1.125rem; height: 1.125rem; margin-top: 0.2rem; accent-color: var(--indigo-700); }

.adm-form .btn { margin-top: 1.5rem; }

.adm-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.adm-form__ok,
.adm-form__bad {
    margin-bottom: 1.25rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
}

.adm-form__ok { background: #dcf3ec; color: #0b5d47; }
.adm-form__bad { background: #fde6e8; color: #9f1239; }

@media (max-width: 1100px) {
    .adm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .adm-step::before { display: none; }
}

@media (max-width: 900px) {
    .adm__split,
    .adm-panels { grid-template-columns: minmax(0, 1fr); }
    .adm-docs { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
    .adm-steps { grid-template-columns: minmax(0, 1fr); }
    .adm-form__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Admission overview: large heading and a "Get in touch" card over a faint view of the school. */
.adm-ov {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3.5rem, 8vw, 6rem);
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

.adm-ov::before {
    content: "";
    position: absolute;
    top: -7rem;
    right: 12%;
    width: 20rem;
    height: 14rem;
    border-radius: 0 0 3rem 3rem;
    background: var(--indigo-100);
    transform: rotate(-8deg);
    opacity: 0.8;
}

.adm-ov__bg {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(46%, 38rem);
    height: 100%;
    opacity: 0.12;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 60%);
    mask-image: linear-gradient(to right, transparent 0%, #000 60%);
}

.adm-ov__bg img { display: block; width: 100%; height: 100%; object-fit: cover; }

.adm-ov__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.5rem clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.adm-ov__text .section-heading__title { font-size: clamp(2.25rem, 1.6rem + 3vw, 4rem); line-height: 1.05; }
.adm-ov__rule { display: block; width: 3rem; height: 3px; margin-block: 1.5rem; border-radius: 2px; background: var(--orange-500); }
.adm-ov__lead { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.7; color: var(--navy-900); }
.adm-ov__text > p:not([class]) { margin-top: 1rem; font-size: 1.0625rem; line-height: 1.75; color: #44516b; }

.adm-ov__card {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(7, 20, 47, 0.08);
}

.adm-ov__card-head { display: flex; align-items: flex-start; gap: 1.25rem; }

.adm-ov__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--indigo-100);
    color: var(--indigo-700);
}

.adm-ov__icon--sm { width: 2.75rem; height: 2.75rem; }

.adm-ov__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--indigo-700);
}

.adm-ov__eyebrow::after { content: ""; width: 2.5rem; height: 2px; background: var(--orange-500); }
.adm-ov__card-head p:not([class]) { line-height: 1.7; color: #44516b; }

.adm-ov__contacts {
    display: grid;
    gap: 0.875rem;
    margin-top: 1.5rem;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--line);
}

.adm-ov__contacts li { display: flex; align-items: center; gap: 1rem; }
.adm-ov__contacts li:nth-child(even) .adm-ov__icon { background: #ffe9d6; color: var(--orange-600); }
.adm-ov__contacts a { font-size: 1.125rem; font-weight: 700; color: var(--navy-900); text-decoration: none; overflow-wrap: anywhere; }
.adm-ov__contacts a:hover { color: var(--indigo-700); }

@media (max-width: 960px) {
    .adm-ov__grid { grid-template-columns: minmax(0, 1fr); }
    .adm-ov__bg { width: 100%; opacity: 0.08; -webkit-mask-image: none; mask-image: none; }
}

@media (max-width: 520px) {
    .adm-ov__card-head { flex-direction: column; }
}

/* Admission overview: plain white background. */
.adm-ov { background: var(--white); }

/* Admission enquiry: soft blue section with a faded view of the school; the form is a card with a navy header. */
.adm-enq {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(115deg, #f4f8ff 0%, #e6efff 55%, #d9e7ff 100%);
}

.adm-enq__bg {
    position: absolute;
    z-index: -2;
    left: -4%;
    bottom: 0;
    width: min(52%, 40rem);
    opacity: 0.16;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
    pointer-events: none;
}

.adm-enq__bg img { display: block; width: 100%; height: auto; }

/* Gold and navy swoosh in the bottom-left corner. */
.adm-enq__swoosh {
    position: absolute;
    z-index: -1;
    left: -6rem;
    bottom: -5rem;
    width: 17rem;
    height: 11rem;
    border-radius: 0 100% 0 0;
    background: var(--navy-900);
    border-top: 0.6rem solid var(--saffron-400, #f5b50a);
    transform: rotate(-12deg);
    pointer-events: none;
}

.adm-enq .adm__text .section-heading__title { font-size: clamp(2.5rem, 1.8rem + 3.2vw, 4.25rem); line-height: 1.05; }
.adm-enq .adm__text .section-heading__title em { font-style: italic; color: var(--indigo-600); }
.adm-enq .adm__split--form { align-items: center; }

.adm-form {
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 1.75rem;
    box-shadow: 0 30px 60px -30px rgba(11, 31, 77, 0.55);
}

.adm-form__head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.4rem clamp(1.25rem, 3vw, 2rem) 1.9rem;
    background: var(--navy-900);
    color: var(--white);
    border-radius: 0 0 55% 0 / 0 0 40% 0;
}

/* Gold curve in the top-right corner of the header. */
.adm-form__head::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 28%;
    height: 100%;
    border-top-right-radius: 1.75rem;
    border-top: 0.45rem solid var(--saffron-400, #f5b50a);
    border-right: 0.45rem solid var(--saffron-400, #f5b50a);
    pointer-events: none;
}

.adm-form__badge {
    flex: none;
    display: grid;
    place-items: center;
    width: 3.75rem;
    height: 3.75rem;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
}

.adm-form__head div { padding-left: 1.1rem; border-left: 1px solid rgba(255, 255, 255, 0.4); }
.adm-form__head h3 { margin: 0; font-size: 1.5rem; color: var(--white); }
.adm-form__head p { margin: 0.15rem 0 0; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.85); }

.adm-form__body { padding: clamp(1.25rem, 3vw, 2rem); }

.adm-form__grid { gap: 1rem; }

.adm-field__box {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0 1rem;
    border: 1.5px solid #d6e3f7;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.85);
    color: var(--navy-900);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.adm-field__box:focus-within {
    border-color: var(--indigo-600);
    box-shadow: 0 0 0 3px rgba(58, 109, 240, 0.18);
}

.adm-field__box > .icon { flex: none; }

.adm-field__box input,
.adm-field__box select,
.adm-field__box textarea {
    flex: 1;
    min-width: 0;
    padding: 0.95rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font: inherit;
    font-size: 0.975rem;
    color: var(--navy-900);
}

.adm-field__box input:focus,
.adm-field__box select:focus,
.adm-field__box textarea:focus { outline: none; box-shadow: none; }

.adm-field__box input::placeholder,
.adm-field__box textarea::placeholder { color: var(--navy-900); opacity: 0.85; }

.adm-field__box--area { align-items: flex-start; padding-top: 0.95rem; }
.adm-field__box--area textarea { padding: 0; min-height: 4.25rem; resize: vertical; }

.adm-form .adm-check { margin-top: 1.1rem; font-size: 0.9rem; color: var(--navy-900); }
.adm-form .adm-check input { width: 1.4rem; height: 1.4rem; margin-top: 0; border-radius: 0.4rem; }

.adm-form__send {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1.4rem;
    padding: 1rem 1.5rem;
    border: 0;
    border-radius: 999px;
    background: var(--navy-900);
    color: var(--white);
    font: inherit;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.adm-form__send:hover,
.adm-form__send:focus-visible { background: var(--navy-800); }

.adm-form__go {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--white);
    color: var(--navy-900);
}

@media (max-width: 900px) {
    .adm-enq__bg { width: 90%; }
    .adm-enq__swoosh { display: none; }
}

@media (max-width: 640px) {
    .adm-form__head h3 { font-size: 1.25rem; }
    .adm-form__badge { width: 3.1rem; height: 3.1rem; }
}

.adm-enq .adm__split--form { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
.adm-enq .adm-field__box { padding: 0 0.85rem; }
.adm-enq .adm-field__box input,
.adm-enq .adm-field__box select { text-overflow: ellipsis; }

@media (max-width: 900px) {
    .adm-enq .adm__split--form { grid-template-columns: minmax(0, 1fr); }
}

/* Even field sizes: every box is the same height, with matching side padding. */
.adm-enq .adm-form__grid { gap: 0.9rem 1rem; }
.adm-enq .adm-field { gap: 0.35rem; }
.adm-enq .adm-field__box { min-height: 3.5rem; padding: 0 1rem; gap: 0.8rem; }
.adm-enq .adm-field__box input,
.adm-enq .adm-field__box select,
.adm-enq .adm-field__box textarea { padding: 0; line-height: 1.4; }
.adm-enq .adm-field__box--area { padding: 1rem; }
.adm-enq .adm-field__box--area > .icon { margin-top: 0.1rem; }
.adm-enq .adm-field__box--area textarea { min-height: 4.5rem; }
.adm-enq .adm-form__body { padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem); }

/* File field: the browser's button, styled like the site's buttons. */
.adm-enq .adm-field__box--file { padding: 0.5rem 1rem; }
.adm-enq .adm-field__box--file input { padding: 0; font-size: 0.9rem; cursor: pointer; }
.adm-enq .adm-field__box--file input::file-selector-button {
    margin-right: 0.8rem;
    padding: 0.5rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--navy-900);
    color: var(--white);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}
.adm-enq .adm-field__box--file input::file-selector-button:hover { background: var(--navy-800); }
.adm-field small.adm-field__help { font-size: 0.8125rem; line-height: 1.4; color: #526079; }

/* The school email address in the "Get in touch" list stays on one line on phones. */
.adm-ov a[href^="mailto:"] {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .adm-ov a[href^="mailto:"] { font-size: clamp(0.75rem, 3.8vw, 1.125rem); }
}
