/* LIS Redesign – school application pages (templates/apply-nbo.php). Shared form look: mu-plugins/lgs-apply/apply-form.css;
   here: the page around it and the LIS fonts / colours (Montserrat + Poppins, blue #1768B2, red #EC2227). */

/* Header */
.lrd-apply .lrd-apply__lead { max-width: 560px; margin: 14px 0 0; color: var(--lrd-text); font-size: 16px; line-height: 1.6; }
.lrd-apply .lrd-apply__steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: ap; }
.lrd-apply .lrd-apply__steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 1px solid var(--lrd-line); border-radius: 999px; background: #fff; color: var(--lrd-ink); font: 600 13px/1.2 var(--lrd-body); counter-increment: ap; }
.lrd-apply .lrd-apply__steps li::before { display: inline-grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--lrd-blue); color: #fff; font-size: 12px; font-weight: 700; content: counter(ap); }
.lrd-apply .lrd-apply__jump { margin: 0; }
/* Classes open: one quiet row, thin dividers */
/* Cambridge stages: five columns, a thin line between them */
.lrd-apply .lrd-apply__facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 760px; margin: 28px 0 0 !important; padding: 16px 0 !important; border-top: 1px solid var(--lrd-line); border-bottom: 1px solid var(--lrd-line); }
.lrd-apply .lrd-apply__facts > div { min-width: 0; padding: 2px 16px; border-left: 1px solid var(--lrd-line); }
.lrd-apply .lrd-apply__facts > div:first-child { padding-left: 0; border-left: 0; }
.lrd-apply .lrd-apply__facts dt { margin: 0 0 5px; color: var(--lrd-muted); font: 600 11px/1.3 var(--lrd-body); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.lrd-apply .lrd-apply__facts dd { margin: 0; color: var(--lrd-ink); font: 700 15.5px/1.3 var(--lrd-head); white-space: nowrap; }
.lrd-apply .lrd-apply__facts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 640px; }
.lrd-apply .lrd-apply__facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 520px; }
.lrd-apply .lrd-apply__facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 360px; }
@media (max-width: 1180px) and (min-width: 641px) {
    .lrd-apply .lrd-apply__facts--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
    .lrd-apply .lrd-apply__facts--5 > div:nth-child(4) { padding-left: 0; border-left: 0; }
}
.lrd-apply .lrd-apply__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 26px; }
.lrd-apply .lrd-apply__req { color: var(--lrd-blue) !important; font: 600 14.5px/1.2 var(--lrd-body); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.lrd-apply .lrd-apply__req:hover { color: var(--lrd-ink) !important; }
.lrd-apply .lrd-apply__note { margin: 16px 0 0 !important; color: var(--lrd-muted); font-size: 13px; line-height: 1.6; }
.lrd-apply .lrd-apply__note a { color: var(--lrd-muted) !important; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
    .lrd-apply .lrd-apply__facts { grid-template-columns: 1fr; gap: 10px; padding: 14px 0 !important; }
    .lrd-apply .lrd-apply__facts > div { display: flex; align-items: baseline; justify-content: space-between; min-width: 0; padding: 0; border-left: 0; }
    .lrd-apply .lrd-apply__facts dd { font-size: 15px; }
    .lrd-apply .lrd-apply__cta { flex-direction: column; align-items: stretch; text-align: center; }
}

/* Classes open */
.lrd-apply__open { padding: 34px 0; border-bottom: 1px solid var(--lrd-line); background: var(--lrd-sky); }
.lrd-apply__open-in { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; align-items: center; gap: 20px 40px; }
.lrd-apply .lrd-apply__open h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px !important; color: var(--lrd-ink); font: 700 20px/1.25 var(--lrd-head); }
.lrd-apply__open h2 .lrd-ico { width: 22px; height: 22px; color: var(--lrd-blue); }
.lrd-apply__open p { margin: 0; color: var(--lrd-text); font-size: 14px; line-height: 1.6; }
.lrd-apply__open p a { color: var(--lrd-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lrd-apply__levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.lrd-apply__levels li { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border: 1px solid rgba(23, 104, 178, .18); border-left: 4px solid var(--lrd-blue); border-radius: 12px; background: #fff; }
.lrd-apply__levels span { color: var(--lrd-muted); font: 600 12px/1.2 var(--lrd-body); letter-spacing: .06em; text-transform: uppercase; }
.lrd-apply__levels b { color: var(--lrd-ink); font: 700 17px/1.25 var(--lrd-head); }
@media (max-width: 640px) { .lrd-apply__levels { grid-template-columns: 1fr; gap: 8px; } .lrd-apply__levels li { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 11px 14px; } .lrd-apply__levels b { font-size: 15px; } }

/* Form + sidebar */
.lrd-apply__body { padding: 56px 0 72px; background: linear-gradient(180deg, var(--lrd-tint), #fff 60%); }
.lrd-apply__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 28px; }
.lrd-apply__card { padding: 36px; border: 1px solid var(--lrd-line); border-radius: 22px; background: #fff; box-shadow: 0 24px 50px -24px rgba(11, 30, 54, .25); scroll-margin-top: 120px; }
.lrd-apply__soon { margin: 0; color: var(--lrd-text); }
.lrd-apply__soon a { color: var(--lrd-blue); font-weight: 600; }
.lrd-apply__side { position: sticky; top: 110px; display: grid; gap: 18px; }
.lrd-apply__box { padding: 24px; border: 1px solid var(--lrd-line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px -18px rgba(11, 30, 54, .2); }
.lrd-apply .lrd-apply__box h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px !important; color: var(--lrd-ink); font: 700 17px/1.3 var(--lrd-head); }
.lrd-apply__box h3 .lrd-ico { width: 20px; height: 20px; color: var(--lrd-blue); }
.lrd-apply__docs, .lrd-apply__next { margin: 0; padding: 0; list-style: none; }
.lrd-apply__docs li { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; color: var(--lrd-ink); font-size: 14px; line-height: 1.45; }
.lrd-apply__docs .lrd-ico { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--lrd-sky); color: var(--lrd-blue); }
.lrd-apply__next li { position: relative; padding: 0 0 16px 26px; }
.lrd-apply__next li::before { position: absolute; top: 4px; left: 0; width: 12px; height: 12px; border: 3px solid var(--lrd-blue); border-radius: 50%; background: #fff; content: ''; }
.lrd-apply__next li:not(:last-child)::after { position: absolute; top: 18px; bottom: 2px; left: 5px; width: 2px; background: var(--lrd-line); content: ''; }
.lrd-apply__next li:last-child { padding-bottom: 0; }
.lrd-apply__next li:last-child::before { border-color: var(--lrd-red); }
.lrd-apply__next b { display: block; color: var(--lrd-ink); font: 700 14.5px/1.35 var(--lrd-head); }
.lrd-apply__next span { display: block; margin-top: 3px; color: var(--lrd-muted); font-size: 13px; line-height: 1.55; }
.lrd-apply__help { border: 0; background: linear-gradient(160deg, #0f4f8f, var(--lrd-blue)); color: #dbe8f6; }
.lrd-apply .lrd-apply__help h3, .lrd-apply .lrd-apply__help h3 .lrd-ico { color: #fff !important; }
.lrd-apply .lrd-apply__help p { margin: 0 0 12px !important; font-size: 14px; line-height: 1.6; }
.lrd-apply__help a { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none; }
.lrd-apply__help a .lrd-ico { width: 18px; height: 18px; flex: none; color: #ffd166; }
.lrd-apply__help a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lrd-apply__help .lrd-apply__fees { margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .2); color: #ffd166 !important; }

/* Other schools */
.lrd-apply__others { padding: 44px 0 64px; }
.lrd-apply__others-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.lrd-apply__others h2 { margin: 0; color: var(--lrd-ink); font: 700 22px/1.25 var(--lrd-head); }
.lrd-apply__others ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lrd-apply__others a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--lrd-line); border-radius: 999px; background: #fff; color: var(--lrd-ink) !important; font: 600 14px/1.2 var(--lrd-body); text-decoration: none; transition: border-color .2s, color .2s, transform .2s; }
.lrd-apply__others a .lrd-ico { width: 15px; height: 15px; }
.lrd-apply__others a:hover { border-color: var(--lrd-blue); color: var(--lrd-blue) !important; transform: translateY(-2px); }

/* The form in the LIS fonts and colours (shared styles: lgs-apply/apply-form.css) */
.lrd-apply .lgs-ap { font-family: var(--lrd-body); }
.lrd-apply .lgs-ap .fluentform .ff-el-section-title { color: var(--lrd-blue); font-family: var(--lrd-head) !important; }
.lrd-apply .lgs-ap .fluentform .ff-el-form-control { font-family: var(--lrd-body) !important; font-size: 14.5px !important; }
.lrd-apply .lgs-ap .fluentform .ff-el-input--label label { font-family: var(--lrd-body); }
.lrd-apply .lgs-ap .fluentform .ff-el-form-control:focus { border-color: var(--lrd-blue) !important; box-shadow: 0 0 0 4px rgba(23, 104, 178, .15) !important; }
.lrd-apply .lgs-ap .fluentform .ff-btn-submit { background: linear-gradient(135deg, #f04a4e, var(--lrd-red) 45%, #c4161b) !important; font-family: var(--lrd-head) !important; box-shadow: 0 14px 28px -12px rgba(236, 34, 39, .7), inset 0 1px 0 rgba(255, 255, 255, .25) !important; }
.lrd-apply .lgs-ap .fluentform .ff-btn-submit::before { background: linear-gradient(135deg, #2b82cf, var(--lrd-blue) 45%, #0f4f8f); }
.lrd-apply .lgs-ap .fluentform .ff-btn-submit:hover, .lrd-apply .lgs-ap .fluentform .ff-btn-submit:focus-visible { box-shadow: 0 20px 34px -14px rgba(23, 104, 178, .8), inset 0 1px 0 rgba(255, 255, 255, .25) !important; }
.lrd-apply .lgs-ap .ff-message-success h3 { font-family: var(--lrd-head); }
.lrd-apply .lgs-ap .ff-message-success a { color: #14532d; font-weight: 600; }

/* Tablet */
@media (max-width: 1024px) {
    .lrd-apply__grid { grid-template-columns: 1fr; }
    .lrd-apply__side { position: static; grid-template-columns: repeat(2, 1fr); }
    .lrd-apply__help { grid-column: 1 / -1; }
    .lrd-apply__open-in { grid-template-columns: 1fr; }
}
/* Phone */
@media (max-width: 640px) {
    .lrd-apply__open { padding: 26px 0; }
    .lrd-apply__body { padding: 32px 0 48px; }
    .lrd-apply__card { padding: 22px 18px; border-radius: 18px; }
    .lrd-apply__side { grid-template-columns: 1fr; }
    .lrd-apply .lrd-apply__jump { width: 100%; justify-content: center; }
    .lrd-apply__others h2 { font-size: 19px; }
}

/* Open Day page (templates/open-day.php) */
.lrd-openday .lrd-openday__eyebrow { display: inline-flex; margin: 0 0 12px !important; padding: 6px 12px; border-radius: 999px; background: rgba(236, 34, 39, .1); color: var(--lrd-red); font: 700 12px/1.2 var(--lrd-body); letter-spacing: .08em; text-transform: uppercase; }
.lrd-openday .lrd-openday__poster { align-self: center; justify-self: end; width: 100%; max-width: 440px; }
.lrd-openday .lrd-openday__poster img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 30px 60px -28px rgba(11, 30, 54, .45); }
.lrd-openday__g10 { padding: 26px 0; background: linear-gradient(120deg, #0f4f8f, var(--lrd-blue)); color: #dbe8f6; }
.lrd-openday__g10-in { display: flex; align-items: center; gap: 18px; }
.lrd-openday__g10-ico { display: grid; flex: none; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #ffd166; }
.lrd-openday__g10-ico .lrd-ico { width: 26px; height: 26px; }
.lrd-openday .lrd-openday__g10 h2 { margin: 0 0 4px !important; color: #fff !important; font: 700 19px/1.3 var(--lrd-head); }
.lrd-openday .lrd-openday__g10 p { margin: 0 !important; color: #dbe8f6; font-size: 14.5px; line-height: 1.6; }
.lrd-openday .lrd-openday__formh { margin: 0 0 4px !important; color: var(--lrd-ink); font: 700 22px/1.25 var(--lrd-head); }
.lrd-openday .lrd-openday__formp { margin: 0 0 22px !important; color: var(--lrd-muted); font-size: 14px; }
.lrd-openday .lrd-openday__small { margin: 0 0 14px !important; color: var(--lrd-muted); font-size: 13.5px; line-height: 1.6; }
.lrd-openday .lrd-openday__apply { width: 100%; justify-content: center; }
@media (max-width: 1024px) { .lrd-openday .lrd-openday__poster { justify-self: start; max-width: 420px; margin-top: 8px; } }
@media (max-width: 640px) {
    .lrd-openday__g10-in { align-items: flex-start; }
    .lrd-openday__g10-ico { width: 42px; height: 42px; }
    .lrd-openday .lrd-openday__g10 h2 { font-size: 17px; }
    .lrd-openday .lrd-openday__poster { max-width: none; }
}
.lrd-openday .lrd-apply__facts { max-width: 600px; grid-template-columns: 1.15fr 1.1fr 1fr; }
.lrd-openday .lrd-apply__facts dd { white-space: normal; font-size: 15px; }
@media (max-width: 640px) { .lrd-openday .lrd-apply__facts { grid-template-columns: 1fr; } .lrd-openday .lrd-apply__facts dd { text-align: right; } }

/* Open Day on phones: no poster – straight to the details and the booking form */
@media (max-width: 760px) { .lrd-openday .lrd-openday__poster { display: none !important; } }

/* Open Day: after the booking is sent */
.lrd-openday .lrd-openday__after { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #bbf7d0; }
.lrd-openday .lrd-openday__after .lrd-btn { color: #fff !important; text-decoration: none !important; }
.lrd-openday .lrd-openday__after-link { color: #14532d !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lrd-openday .lrd-apply__facts { margin-bottom: 0 !important; }
@media (max-width: 640px) { .lrd-openday .lrd-openday__after { flex-direction: column; align-items: stretch; text-align: center; } .lrd-openday .lrd-openday__after .lrd-btn { justify-content: center; } }

/* Open Day: compact header so the booking form is visible straight away (2026-11-04) */
.lrd-openday .lrd-openday__head .lrd-phead__in { min-height: 0 !important; }
.lrd-openday .lrd-openday__head .lrd-phead__text { padding-top: 26px !important; padding-bottom: 26px !important; }
.lrd-openday .lrd-openday__head .lrd-crumbs { margin-bottom: 10px !important; }
.lrd-openday .lrd-openday__head .lrd-openday__eyebrow { margin-bottom: 10px !important; }
.lrd-openday .lrd-openday__head h1 { margin: 0 !important; font-size: clamp(28px, 3.4vw, 42px) !important; line-height: 1.12 !important; }
.lrd-openday .lrd-openday__facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0 !important; padding: 0 !important; }
.lrd-openday .lrd-openday__facts > div { display: flex; align-items: baseline; gap: 8px; padding: 9px 14px; border: 1px solid var(--lrd-line); border-radius: 999px; background: #fff; }
.lrd-openday .lrd-openday__facts dt { margin: 0; color: var(--lrd-muted); font: 600 11px/1.2 var(--lrd-body); letter-spacing: .08em; text-transform: uppercase; }
.lrd-openday .lrd-openday__facts dd { margin: 0; color: var(--lrd-ink); font: 700 14.5px/1.3 var(--lrd-head); }
.lrd-openday .lrd-openday__body { padding-top: 24px !important; }
.lrd-openday .lrd-openday__g10note { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 22px !important; padding: 12px 14px; border-radius: 12px; background: var(--lrd-sky); color: var(--lrd-ink); font-size: 14px; line-height: 1.5; }
.lrd-openday .lrd-openday__g10note .lrd-ico { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--lrd-blue); }
.lrd-openday .lrd-openday__g10note b { color: var(--lrd-blue); }
@media (max-width: 640px) {
    .lrd-openday .lrd-openday__head .lrd-phead__text { padding-top: 18px !important; padding-bottom: 18px !important; }
    .lrd-openday .lrd-openday__head h1 { font-size: 27px !important; }
    .lrd-openday .lrd-openday__facts { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 14px !important; }
    .lrd-openday .lrd-openday__facts > div { justify-content: space-between; padding: 8px 12px; border-radius: 10px; }
    .lrd-openday .lrd-openday__body { padding-top: 16px !important; }
    .lrd-openday .lrd-openday__formh { font-size: 20px !important; }
}
.lrd-openday .lrd-openday__head .lrd-openday__eyebrow { display: block; padding: 0; border-radius: 0; background: none; line-height: 1.4; }

.lrd-openday .lrd-openday__head .lrd-phead__text { max-width: none !important; width: 100%; }

.lrd-openday .lrd-openday__head .lrd-phead__in { grid-template-columns: minmax(0, 1fr) !important; }

/* Open Day on phones (2026-11-05): a short header so the form is reached at once */
@media (max-width: 640px) {
    .lrd-openday .lrd-openday__head .lrd-crumbs, .lrd-openday .lrd-openday__head .lrd-openday__eyebrow { display: none !important; }
    .lrd-openday .lrd-openday__head .lrd-phead__text { padding-top: 14px !important; padding-bottom: 14px !important; }
    .lrd-openday .lrd-openday__head h1 { font-size: 23px !important; line-height: 1.2 !important; }
    .lrd-openday .lrd-openday__facts { display: flex !important; flex-wrap: wrap; gap: 2px 0 !important; margin-top: 8px !important; }
    .lrd-openday .lrd-openday__facts > div { display: inline; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; }
    .lrd-openday .lrd-openday__facts dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .lrd-openday .lrd-openday__facts dd { display: inline; text-align: left !important; color: var(--lrd-ink); font: 600 14px/1.45 var(--lrd-body) !important; }
    .lrd-openday .lrd-openday__facts > div + div dd::before { content: "·"; margin: 0 7px; color: var(--lrd-red); font-weight: 800; }
    .lrd-openday .lrd-openday__body { padding-top: 12px !important; }
    .lrd-openday .lrd-apply__card { display: flex; flex-direction: column; padding: 18px 16px !important; border-radius: 14px !important; box-shadow: 0 10px 26px -18px rgba(11, 30, 54, .3) !important; }
    .lrd-openday .lrd-openday__formh { font-size: 19px !important; }
    .lrd-openday .lrd-openday__formp { display: none !important; }
    .lrd-openday .lrd-openday__formh { margin-bottom: 14px !important; }
    .lrd-openday .lrd-openday__g10note { order: 5; margin: 18px 0 0 !important; padding: 10px 12px; font-size: 13px; }
}
@media (max-width: 640px) {
    .lrd-openday .lrd-openday__facts > div:last-child:not(:first-child) { flex-basis: 100%; }
    .lrd-openday .lrd-openday__facts > div:last-child:not(:first-child) dd::before { content: none; }
    .lrd-openday .lrd-openday__facts > div:last-child dd { font-weight: 500 !important; color: var(--lrd-muted); }
}

/* School application pages (apply-school.php, 2026-11-06): compact header like Open Day – the form comes first */
.lrd-apply--compact .lrd-apply__lead, .lrd-apply--compact .lrd-apply__cta { display: none; }
.lrd-apply--compact .lrd-openday__formp a { font-weight: 600; }
.lrd-apply--compact .lrd-apply__help .lrd-apply__fees + .lrd-apply__fees { margin-top: 0; border-top: 0; padding-top: 4px; }
@media (max-width: 640px) {
    .lrd-apply--compact .lrd-openday__facts > div:last-child:not(:first-child) { flex-basis: auto; }
    .lrd-apply--compact .lrd-openday__facts > div:last-child:not(:first-child) dd::before { content: "·"; }
    .lrd-apply--compact .lrd-openday__facts > div:last-child dd { font-weight: 600 !important; color: var(--lrd-ink); }
    .lrd-apply--compact .lrd-openday__facts dd { font-size: 13.5px !important; }
}

/* "What happens next" timeline – fix 6 Nov 2026: circles were 18px (content-box) and cut on one side, and the line sat off-centre with gaps */
.lis-rd .lrd-apply__next li { padding: 0 0 18px 30px; margin: 0; }
.lis-rd .lrd-apply__next li::before { box-sizing: border-box; display: block; top: 3px; left: 0; width: 15px; height: 15px; margin: 0; border: 3px solid var(--lrd-blue); border-radius: 50%; background: #fff; transform: none; z-index: 1; }
.lis-rd .lrd-apply__next li:last-child { padding-bottom: 0; }
.lis-rd .lrd-apply__next li:last-child::before { border-color: var(--lrd-red); }
.lis-rd .lrd-apply__next li:not(:last-child)::after { box-sizing: border-box; top: 18px; bottom: -3px; left: 6.5px; width: 2px; margin: 0; background: var(--lrd-line); z-index: 0; }

/* Mombasa Admission Interviews (phone): the long list of dates gets its own line, so the next fact doesn't start with "·" (6 Nov 2026) */
@media (max-width: 640px) {
    .lrd-openday--dates .lrd-openday__facts { display: none !important; } /* user 6 Nov: hide dates/classes/venue on phone – the dates are in the form */
}
