:root {
  --bg: #f6f0e7;
  --bg-strong: #eadbc2;
  --surface: rgba(255, 252, 247, 0.9);
  --surface-strong: #fffaf4;
  --text: #191611;
  --muted: #65584d;
  --line: rgba(67, 50, 28, 0.16);
  --primary: #143b5f;
  --primary-strong: #0c2740;
  --accent: #d13c30;
  --accent-soft: rgba(209, 60, 48, 0.1);
  --secondary: #bb8b2c;
  --success: #166c46;
  --danger: #b1362f;
  --shadow: 0 24px 70px rgba(43, 31, 14, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(187, 139, 44, 0.2), transparent 28%),
    radial-gradient(circle at top right, rgba(20, 59, 95, 0.12), transparent 24%),
    linear-gradient(135deg, #fff9f1 0%, var(--bg) 52%, #efe3d1 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
p,
span,
small,
strong,
em,
li,
a,
h1,
h2,
h3,
h4,
h5,
h6,
label {
  -webkit-user-select: text;
  user-select: text;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 59, 95, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 59, 95, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 92%);
}

.enroll-site-nav,
.enroll-site-footer {
  width: min(1200px, calc(100% - 32px));
  margin: 18px auto 0;
  position: relative;
  z-index: 2;
}

.enroll-site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(120deg, #102b54, #0a1d3d);
  box-shadow: var(--shadow);
}

.enroll-site-nav a,
.enroll-site-footer a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.enroll-site-links a {
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.enroll-site-links a:hover,
.enroll-site-links a:focus-visible {
  color: #ffe08d;
  border-bottom-color: rgba(255, 224, 141, 0.7);
}

.enroll-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
}

.enroll-site-brand img {
  width: 70px;
  height: auto;
  filter: none;
}

.enroll-site-brand span {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.enroll-site-links,
.enroll-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.enroll-site-footer {
  margin-bottom: 28px;
  padding: 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(120deg, #102b54, #0a1d3d);
  border-radius: 18px;
  color: #ffffff;
}

.enroll-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}

.enroll-footer-brand img {
  width: 62px;
  height: auto;
  display: block;
}

.enroll-footer-brand span {
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
}

.enroll-site-footer p {
  margin: 0 0 12px;
  color: #ffffff;
}

.enroll-footer-signoff {
  margin-top: 18px;
  margin-bottom: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.enroll-footer-signoff a {
  color: #ffffff;
}

.enroll-footer-signoff a:hover,
.enroll-footer-signoff a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.hero,
.content-grid {
  display: grid;
  gap: 24px;
}

.hero {
  grid-template-columns: 1.45fr 0.85fr;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-copy,
.hero-panel,
.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-copy,
.hero-panel,
.card {
  padding: 30px;
}

.hero-copy::after,
.hero-panel::after,
.card::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187, 139, 44, 0.16), transparent 70%);
}

.brand-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.crest {
  width: 110px;
  min-width: 110px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(20, 59, 95, 0.14), rgba(209, 60, 48, 0.08));
  box-shadow: inset 0 0 0 1px rgba(20, 59, 95, 0.1);
}

.crest svg {
  width: 100%;
  height: 100%;
}

.eyebrow,
.section-tag,
.panel-label,
.section-kicker {
  margin: 0 0 12px;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  font-size: 0.82rem;
}

.hero-region,
.admission-stamp {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.hero-region {
  color: var(--primary-strong);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 700;
}

.admission-stamp {
  margin-top: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  max-width: 9ch;
}

h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.3rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

h4 {
  font-size: 1.1rem;
}

.hero-text,
.panel-note,
.support-note,
.form-intro,
.form-note,
.attestation-copy,
.hero-meta,
.steps,
.checklist {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 60ch;
  margin: 18px 0 20px;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.download-card-minimal {
  justify-content: center;
  padding-top: 22px;
  padding-bottom: 22px;
}

.download-card-minimal .download-actions {
  justify-content: center;
  width: 100%;
}

.download-card .card-head {
  margin-bottom: 0;
  max-width: 62ch;
}

.download-card .card-head p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.download-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 15px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(20, 59, 95, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.download-button:hover,
.download-button:focus-visible {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(20, 59, 95, 0.24);
}

.hero-meta p {
  margin: 0;
}

.hero-meta p + p {
  margin-top: 4px;
}

.hero-meta a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, rgba(20, 59, 95, 0.98), rgba(12, 39, 64, 0.98));
  color: #f5efe5;
}

.hero-panel .panel-label,
.hero-panel .panel-note {
  color: #dfe9f4;
}

.amount {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.content-grid {
  grid-template-columns: 1.1fr 0.9fr;
  margin-bottom: 24px;
}

.card-head {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}

.steps,
.checklist {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-left: 20px;
}

.steps li + li,
.checklist li + li {
  margin-top: 8px;
}

.support-note {
  position: relative;
  z-index: 1;
  margin-top: 18px;
}

.form-card,
.preview-card,
.setup-card,
.admitted-card {
  margin-bottom: 24px;
}

.form-section {
  position: relative;
  z-index: 1;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.form-section + .form-section {
  margin-top: 18px;
}

.section-headline {
  margin-bottom: 18px;
}

.subsection-card {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(67, 50, 28, 0.1);
}

.subsection-card + .subsection-card {
  margin-top: 18px;
}

.subsection-card h4 {
  margin-bottom: 16px;
  color: var(--primary-strong);
}

.admission-form {
  display: block;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field,
.checkbox-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-full {
  margin-top: 18px;
}

.field span {
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(20, 59, 95, 0.7) 50%),
    linear-gradient(135deg, rgba(20, 59, 95, 0.7) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.field select:required:invalid {
  color: #8c8174;
  font-weight: 500;
}

.field select.has-value,
.field select:required:valid {
  color: var(--text) !important;
  font-weight: 700 !important;
}

.field select option {
  color: var(--text);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(20, 59, 95, 0.52);
  box-shadow: 0 0 0 4px rgba(20, 59, 95, 0.12);
  background: #fffdfa;
}

.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: rgba(177, 54, 47, 0.55);
  box-shadow: 0 0 0 4px rgba(177, 54, 47, 0.1);
}

.file-help {
  color: var(--muted);
}

.file-input-frame {
  position: relative;
  min-height: 102px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.file-input-frame:hover {
  border-color: rgba(20, 59, 95, 0.28);
}

.file-input-frame:focus-within {
  border-color: rgba(20, 59, 95, 0.4);
  box-shadow: 0 0 0 4px rgba(20, 59, 95, 0.08);
}

.file-input-frame.has-file {
  background: rgba(255, 255, 255, 0.98);
}

.file-input-frame.is-processing {
  border-color: rgba(187, 139, 44, 0.34);
  background: rgba(255, 248, 236, 0.94);
}

.file-input-frame input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}

.file-preview-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 14px;
  align-items: center;
  min-height: 102px;
  margin-top: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: inherit;
  background: transparent;
}

.file-preview-shell.is-processing {
  background: transparent;
}

.file-preview-box {
  position: relative;
  width: 92px;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(20, 59, 95, 0.08), rgba(20, 59, 95, 0.14));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(20, 59, 95, 0.08);
}

.file-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.file-preview-placeholder {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--primary-strong);
  padding: 12px;
}

.file-preview-placeholder i {
  font-size: 1.6rem;
}

.file-preview-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.file-preview-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-bottom: 6px;
}

.file-preview-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(20, 59, 95, 0.08);
  color: var(--primary-strong);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.file-preview-copy strong,
.file-preview-copy span {
  display: block;
}

.file-preview-copy strong {
  color: var(--primary-strong);
  font-size: 0.96rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  min-width: 0;
}

.file-preview-copy span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.file-preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(20, 59, 95, 0.08);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.error-text {
  min-height: 18px;
  color: var(--danger);
  font-size: 0.86rem;
}

.checkbox-field {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.checkbox-field input {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
}

.form-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(20, 59, 95, 0.06), rgba(209, 60, 48, 0.07));
}

.form-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.form-status {
  margin: 0 0 6px;
  color: var(--success);
  font-weight: 700;
  user-select: text;
  -webkit-user-select: text;
}

.form-note {
  margin: 0;
  max-width: 58ch;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  min-width: 280px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #a62f26);
  color: #fff8f2;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(166, 47, 38, 0.24);
}

.submit-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.email-preview {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 24px;
  border-radius: 22px;
  background: #151515;
  color: #eff6ff;
  overflow-x: auto;
  white-space: pre-wrap;
  line-height: 1.6;
  font-family: "Consolas", "Courier New", monospace;
}

.batch-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.upload-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
}

.upload-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.upload-panel .form-status {
  grid-column: 1 / -1;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff8f2;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(20, 59, 95, 0.2);
}

.ghost-button {
  background: rgba(20, 59, 95, 0.12);
  color: var(--primary-strong);
}

.ghost-button:hover,
.ghost-button:focus-visible {
  background: rgba(20, 59, 95, 0.2);
}

.batch-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.batch-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admission-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.applicant-note {
  display: inline-flex;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero,
  .content-grid,
  .batch-grid,
  .upload-panel,
  .three-up,
  .two-up {
    grid-template-columns: 1fr;
  }

  .upload-actions {
    justify-content: stretch;
  }

  .secondary-button {
    flex: 1 1 220px;
  }

  h1 {
    max-width: none;
  }

  .download-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-action-buttons {
    justify-content: stretch;
  }

  .submit-button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .enroll-site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .enroll-site-links,
  .enroll-footer-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .enroll-site-brand img {
    width: 60px;
  }

  .page-shell {
    width: min(100% - 20px, 1200px);
    padding: 20px 0 48px;
  }

  .hero-copy,
  .hero-panel,
  .card,
  .form-section,
  .form-actions {
    padding: 20px;
    border-radius: 24px;
  }

  .brand-lockup {
    align-items: flex-start;
    flex-direction: column;
  }

  .crest {
    width: 92px;
    min-width: 92px;
  }

  .subsection-card {
    padding: 16px;
  }

  .file-preview-shell {
    grid-template-columns: 1fr;
    justify-items: start;
    min-height: auto;
  }

  .file-preview-box {
    width: min(100%, 132px);
  }

  .file-preview-head {
    flex-wrap: wrap;
  }

  .download-button {
    width: 100%;
    min-width: 0;
  }
}
