/* Marcellus = main heading (same as the home page headings) */
@import url("https://fonts.googleapis.com/css2?family=Marcellus&display=swap");

/* =========================================================================
   Admissions > Application Form
   Orange + navy + gold, same structure as the other redesigned pages.
   Scoped under .apply-page.

   Typography matches the home page (colours unchanged):
     main heading  = Marcellus, capitals, weight 400, underline
     section names / labels / card names = Cormorant Garamond (var(--font-head)), bold
     paragraphs & inputs = var(--font-body), weight 400
   ========================================================================= */

.apply-page {
  --ap-navy: #0B2F5B;
  --ap-orange: #E8790E;
  --ap-gold: #FFC400;
  --ap-blue: #1667B0;
  --ap-red: #D32F2F;
  --ap-soft: var(--ink-soft, #555);
  --ap-line: #DDE4EE;
  background: #fff;
}

/* Safety: if an old template still has the banner block, keep it hidden */
.apply-page .ap-hero,
.apply-page .ap-hero-ph,
.apply-page .ap-hero-img { display: none !important; }

/* ---------- Intro: breadcrumb on its own line, title below ---------- */
.apply-page .ap-intro { padding: 36px 0 48px; text-align: center; }
.ap-crumbs {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px;
  font-family: var(--font-body);
  font-size: 1.1rem; font-weight: 400;
  -webkit-text-stroke: 0.15px currentColor;
  color: var(--ap-soft);
  margin-bottom: 20px;
}
.ap-crumbs a:hover { color: var(--ap-orange); }
.ap-crumbs i { font-size: 0.65rem; }
.ap-crumbs span { color: var(--ap-red); }

/* Title: same font / size / weight as the home-page headings, with underline */
.ap-title {
  display: inline-block;
  font-family: "Marcellus", var(--font-head);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ap-navy);
  padding-bottom: 4px;
  border-bottom: 3px solid var(--ap-navy);   /* underline = text width */
}
.ap-tagline {
  margin: 26px auto 0; max-width: 780px;
  font-family: var(--font-body);
  font-size: 1.22rem; font-weight: 400; line-height: 1.9;
  -webkit-text-stroke: 0.15px currentColor;
  color: var(--ap-orange);
}

/* ---------- Form + aside layout ---------- */
.apply-page .ap-main { padding: 64px 0 100px; background: #FFF3E3; }
.application-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }

/* ---------- Form card ---------- */
.apply-page .ap-form {
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: 22px;
  padding: 40px 38px 42px;
  box-shadow: 0 30px 60px -34px rgba(11, 47, 91, 0.55);
}
.apply-page .ap-form fieldset { border: 0; margin: 0 0 34px; padding: 0; min-width: 0; }
.apply-page .ap-form legend {
  display: inline-block;
  padding: 0 0 4px; margin-bottom: 26px;
  font-family: "Marcellus", var(--font-head);
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  font-weight: 400; line-height: 1.2; letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ap-navy);
  border-bottom: 3px solid var(--ap-navy);   /* underline = text width */
}
.apply-page .ap-form legend i { display: none; }   /* icons removed */
.apply-page .ap-form .form-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 22px;
}
.apply-page .ap-field { margin-bottom: 22px; }

/* Field labels: Cormorant Garamond bold (same family as the home card names) */
.apply-page .ap-form label {
  display: block; margin-bottom: 8px;
  font-family: var(--font-head);
  font-size: 1.3rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.01em;
  color: var(--ap-navy);
}
.apply-page .ap-form input,
.apply-page .ap-form select,
.apply-page .ap-form textarea {
  width: 100%; box-sizing: border-box;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1.08rem; font-weight: 400; color: var(--ink, #1a1a1a);
  background: #FAFBFD;
  border: 2px solid var(--ap-line);
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.apply-page .ap-form textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.apply-page .ap-form input:focus,
.apply-page .ap-form select:focus,
.apply-page .ap-form textarea:focus {
  outline: none; background: #fff;
  border-color: var(--ap-orange);
  box-shadow: 0 0 0 4px rgba(232, 121, 14, 0.18);
}
.apply-page .ap-form .btn { font-size: 1.08rem; margin-top: 4px; }

/* ---------- Documents aside (same card style as the form) ---------- */
.apply-page .docs-aside {
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: 22px;
  padding: 34px 30px 32px;
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: calc(var(--header-h, 90px) + 20px);
  box-shadow: 0 30px 60px -34px rgba(11, 47, 91, 0.45);
}
.apply-page .docs-aside h3 {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-head);
  font-size: 1.6rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.01em;
  -webkit-text-stroke: 0.3px currentColor;
  color: var(--ap-navy); margin: 0;
}
.ap-aside-ico {
  flex: 0 0 auto;
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ap-orange); color: #fff; font-size: 1.15rem;
  box-shadow: 0 12px 22px -12px rgba(18, 18, 18, 0.55);
}
.apply-page .docs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.apply-page .docs-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 12px; background: #FFF3E3;
  font-family: var(--font-body);
  font-size: 1.08rem; font-weight: 400; line-height: 1.5;
  -webkit-text-stroke: 0.15px currentColor;
  color: var(--ink, #1a1a1a);
}
.apply-page .docs-list i {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ap-orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; flex-shrink: 0;
}
.apply-page .docs-note {
  font-family: var(--font-body);
  font-size: 1.08rem; font-weight: 400; line-height: 1.8;
  -webkit-text-stroke: 0.15px currentColor;
  color: var(--ap-soft); margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .application-layout { grid-template-columns: 1fr; }
  .apply-page .docs-aside { position: static; }
}
@media (max-width: 700px) {
  .apply-page .ap-intro { padding: 32px 0 36px; }
  .apply-page .ap-main { padding: 44px 0 70px; }
  .apply-page .ap-form { padding: 28px 20px 30px; }
  .ap-tagline { font-size: 1.05rem; }
  .apply-page .ap-form legend { font-size: 1.3rem; }
}
@media (max-width: 600px) {
  .apply-page .ap-form .form-row { grid-template-columns: 1fr; gap: 0; }
  .apply-page .ap-form .form-row > div { margin-bottom: 22px; }
}