/* =====================================================
   KURDISH LANGUAGE COURSE — PREMIUM REGISTRATION DESIGN
   ===================================================== */

:root {
  --navy-deep: #0a1730;
  --navy: #10284d;
  --navy-mid: #173962;
  --navy-light: #24507f;
  --gold: #c6a15b;
  --gold-bright: #e3c483;
  --gold-dark: #9c7a34;
  --bg: #f7f5f0;
  --card: #ffffff;
  --border: rgba(16, 40, 77, 0.10);
  --border-strong: rgba(16, 40, 77, 0.22);
  --text: #17233c;
  --text-muted: #5c6579;
  --error: #b3423a;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow-soft: 0 2px 10px rgba(16, 30, 60, 0.05), 0 10px 30px rgba(16, 30, 60, 0.06);
  --shadow-lift: 0 12px 34px rgba(16, 30, 60, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

/* Guarantees the native "hidden" attribute always wins over any class
   that sets "display" (e.g. display:flex on the success/closed panels). */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
}

html.intro-lock,
html.intro-lock body {
  overflow: hidden;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Noto Naskh Arabic', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ku {
  font-family: 'Noto Naskh Arabic', 'Inter', serif;
  display: block;
  unicode-bidi: isolate;
  line-height: 1.9;
}

.en {
  display: block;
}

img, svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(198, 161, 91, 0.35);
}

/* ===================== LAYOUT ===================== */
.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 max(24px, env(safe-area-inset-right) + 12px) 70px max(24px, env(safe-area-inset-left) + 12px);
  flex: 1;
}

/* ===================== SCROLL REVEAL ===================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== SCROLL PROGRESS BAR ===================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright), var(--gold));
  z-index: 999;
  box-shadow: 0 0 10px rgba(198, 161, 91, 0.65);
  transition: width 0.12s linear;
}

/* =====================================================
   WELCOME INTRO ANIMATION
   ===================================================== */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(198, 161, 91, 0.10), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(198, 161, 91, 0.07), transparent 60%),
    linear-gradient(160deg, var(--navy-deep), var(--navy) 55%, var(--navy-deep));
  animation: introFadeOut 0.7s var(--ease) both;
  animation-delay: 3.3s;
}

.intro-overlay[hidden] {
  display: none !important;
}

@keyframes introFadeOut {
  0% { opacity: 1; visibility: visible; }
  99% { opacity: 0; visibility: visible; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

.intro-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  background: radial-gradient(circle, rgba(227, 196, 131, 0.28), rgba(227, 196, 131, 0) 70%);
  animation: introGlowDrift 9s ease-in-out infinite;
  pointer-events: none;
}

.intro-glow-1 {
  width: 460px;
  height: 460px;
  top: -12%;
  left: -8%;
}

.intro-glow-2 {
  width: 380px;
  height: 380px;
  bottom: -14%;
  right: -6%;
  animation-delay: -4.5s;
  animation-duration: 11s;
}

@keyframes introGlowDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4%, 3%) scale(1.12); }
}

.intro-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  width: 90%;
  text-align: center;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.intro-flag-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(227, 196, 131, 0.55);
  box-shadow: 0 0 0 6px rgba(227, 196, 131, 0.08), 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: scale(0.7);
  animation: introRise 0.8s var(--ease) both;
  animation-delay: 0.15s;
}

.intro-flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intro-welcome {
  margin: 0 0 18px;
  opacity: 0;
  animation: introRise 0.8s var(--ease) both;
  animation-delay: 0.4s;
}

.intro-welcome .en {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  color: var(--gold-bright);
  text-transform: uppercase;
}

.intro-welcome .ku {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 6px;
}

.intro-title {
  margin: 0 0 16px;
  opacity: 0;
  animation: introRise 0.8s var(--ease) both;
  animation-delay: 0.65s;
}

.intro-title .en {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4.4vw, 2.3rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.intro-title .ku {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  color: var(--gold-bright);
  margin-top: 8px;
}

.intro-meta {
  margin: 0 0 22px;
  opacity: 0;
  animation: introRise 0.8s var(--ease) both;
  animation-delay: 0.9s;
}

.intro-meta .en,
.intro-meta .ku {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.03em;
}

.intro-meta .ku {
  margin-top: 4px;
}

.intro-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 22px;
  width: 100%;
  max-width: 220px;
  opacity: 0;
  animation: introRise 0.8s var(--ease) both;
  animation-delay: 1.05s;
}

.intro-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 196, 131, 0.5));
}

.intro-divider span:last-child {
  background: linear-gradient(90deg, rgba(227, 196, 131, 0.5), transparent);
}

.intro-divider i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  flex: none;
  box-shadow: 0 0 8px rgba(227, 196, 131, 0.7);
}

.intro-quote {
  margin: 0;
  padding: 0;
  opacity: 0;
  animation: introRise 0.8s var(--ease) both;
  animation-delay: 1.25s;
}

.intro-quote p {
  margin: 0 0 8px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

.intro-quote .en {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.85rem, 2.1vw, 0.98rem);
}

.intro-quote .ku {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: clamp(0.95rem, 2.3vw, 1.05rem);
  font-style: normal;
}

@keyframes introRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .intro-flag-wrap { width: 54px; height: 54px; margin-bottom: 18px; }
  .intro-welcome .en { letter-spacing: 0.28em; font-size: 0.8rem; }
  .intro-content { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-overlay,
  .intro-glow,
  .intro-flag-wrap,
  .intro-welcome,
  .intro-title,
  .intro-meta,
  .intro-divider,
  .intro-quote {
    animation: none !important;
  }
  .intro-flag-wrap,
  .intro-welcome,
  .intro-title,
  .intro-meta,
  .intro-divider,
  .intro-quote {
    opacity: 1;
    transform: none;
  }
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  isolation: isolate;
  padding: max(76px, env(safe-area-inset-top) + 28px) max(20px, env(safe-area-inset-right) + 12px) 90px max(20px, env(safe-area-inset-left) + 12px);
  text-align: center;
  color: #fff;
  background: #0a1730 url('assets/hero-education.jpg') center 30% / cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(198, 161, 91, 0.16), transparent 60%),
    linear-gradient(155deg, rgba(6, 14, 32, 0.94) 0%, rgba(11, 27, 56, 0.90) 40%, rgba(8, 19, 41, 0.95) 100%);
}

.hero-overlay::before,
.hero-overlay::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  pointer-events: none;
}

.hero-overlay::before {
  background: radial-gradient(circle, rgba(227, 196, 131, 0.6), transparent 70%);
  top: -140px;
  left: -100px;
  animation: auroraFloat1 15s ease-in-out infinite;
}

.hero-overlay::after {
  background: radial-gradient(circle, rgba(36, 80, 127, 0.65), transparent 70%);
  bottom: -180px;
  right: -110px;
  animation: auroraFloat2 17s ease-in-out infinite;
}

@keyframes auroraFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 35px) scale(1.18); }
}

@keyframes auroraFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-35px, -30px) scale(1.12); }
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  animation: heroFadeIn 1s var(--ease) both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-emblem-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 24px;
}

.hero-emblem {
  width: 56px;
  height: 56px;
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(227, 196, 131, 0.45);
  border-radius: 50%;
  background: rgba(227, 196, 131, 0.08);
  flex-shrink: 0;
}

.hero-emblem svg {
  width: 26px;
  height: 26px;
}

.hero-flag {
  width: 62px;
  height: 41px;
  object-fit: cover;
  border-radius: 6px;
  border: 1.5px solid rgba(227, 196, 131, 0.55);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

.hero-flag:hover {
  transform: translateY(-2px) scale(1.03);
}

@media (max-width: 420px) {
  .hero-emblem-row {
    gap: 12px;
  }

  .hero-flag {
    width: 50px;
    height: 33px;
  }

  .hero-emblem {
    width: 48px;
    height: 48px;
  }

  .hero-emblem svg {
    width: 22px;
    height: 22px;
  }
}

.hero-title {
  margin: 0;
  font-family: 'Playfair Display', 'Noto Naskh Arabic', serif;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-title .en {
  margin-bottom: 8px;
  background: linear-gradient(100deg, #fff 25%, var(--gold-bright) 50%, #fff 75%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleShimmer 6s linear infinite;
}

@keyframes titleShimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.hero-title .ku {
  font-size: 0.88em;
  font-weight: 700;
  color: #f1e6cc;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 26px auto;
  max-width: 260px;
}

.hero-divider span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(227, 196, 131, 0.7));
}

.hero-divider span:last-child {
  background: linear-gradient(90deg, rgba(227, 196, 131, 0.7), transparent);
}

.hero-divider i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.hero-subtitle {
  margin: 0 0 18px;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 600;
  color: #eef2f7;
  letter-spacing: 0.03em;
}

.hero-subtitle .ku {
  font-size: 0.92em;
  margin-top: 4px;
  color: #dbe4ee;
}

.hero-meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gold-bright);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-meta .ku {
  margin-top: 4px;
  color: #d8c493;
  font-weight: 500;
}

/* ===================== HIGHLIGHT CARDS ===================== */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -56px;
  margin-bottom: 26px;
  position: relative;
  z-index: 3;
}

.highlight-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 24px 20px;
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), box-shadow 0.3s var(--ease);
}

.highlights.is-visible .highlight-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.highlights.is-visible .highlight-card:nth-child(1) { transition-delay: 0.05s; }
.highlights.is-visible .highlight-card:nth-child(2) { transition-delay: 0.18s; }
.highlights.is-visible .highlight-card:nth-child(3) { transition-delay: 0.31s; }

.highlight-card:hover,
.highlights.is-visible .highlight-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 40px rgba(16, 30, 60, 0.18);
}

.highlight-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(16, 40, 77, 0.07);
  color: var(--navy);
  margin-bottom: 14px;
}

.highlight-icon svg {
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 1;
}

.highlight-card--gold .highlight-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 15px;
  border: 2px solid rgba(198, 161, 91, 0.55);
  animation: deadlinePulse 2.4s ease-out infinite;
}

@keyframes deadlinePulse {
  0% { transform: scale(0.88); opacity: 0.9; }
  70% { transform: scale(1.3); opacity: 0; }
  100% { opacity: 0; }
}

.highlight-card--gold {
  background: linear-gradient(165deg, #fdf8ee, #faf0d9);
  border: 1px solid rgba(198, 161, 91, 0.4);
}

.highlight-card--gold .highlight-icon {
  background: rgba(198, 161, 91, 0.18);
  color: var(--gold-dark);
}

.highlight-card--navy {
  background: linear-gradient(165deg, var(--navy), var(--navy-deep));
  border: 1px solid rgba(198, 161, 91, 0.3);
  color: #fff;
}

.highlight-card--navy .highlight-icon {
  background: rgba(227, 196, 131, 0.16);
  color: var(--gold-bright);
}

.highlight-card--navy .info-label {
  color: #fff;
}

.highlight-card--navy .info-label .ku {
  color: #c8d3e2;
}

.highlight-card--navy .info-value .ku {
  color: #c8d3e2;
}

.info-label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 2px;
  margin: 0 0 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--navy);
  text-transform: uppercase;
}

.info-label .en {
  display: inline;
}

.info-label .ku {
  display: inline-flex;
  align-items: baseline;
  text-transform: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1.05em;
  margin: 0;
  letter-spacing: 0;
}

.info-label .ku::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.85em;
  margin-inline-end: 10px;
  background: var(--border-strong);
  flex: none;
}

.info-value {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.info-value .ku {
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 0.92em;
}

.info-value--small {
  font-weight: 500;
  font-size: 0.88rem;
  line-height: 1.55;
}

.info-value--small .en {
  color: #eef2f7;
}

/* ===================== NOTICE / ALERT ===================== */
.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: linear-gradient(165deg, #fdf8ee, #fbf1dc);
  border: 1px solid rgba(198, 161, 91, 0.4);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 26px;
}

.notice-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(198, 161, 91, 0.22);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.notice-icon svg {
  width: 18px;
  height: 18px;
}

.notice p {
  margin: 0 0 6px;
  font-size: 0.92rem;
}

.notice p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
}

.notice .info-label {
  margin-bottom: 8px;
}

.notice--note {
  background: linear-gradient(165deg, #f2f6fb, #e9eff8);
  border-color: rgba(16, 40, 77, 0.18);
}

.notice--note .notice-icon {
  background: rgba(16, 40, 77, 0.1);
  color: var(--navy);
}

/* ===================== COURSE TEACHERS ===================== */
.teachers-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-soft);
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.teacher-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, #ffffff, #fbfaf6);
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.teachers-section.is-visible .teacher-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.teachers-section.is-visible .teacher-card:nth-child(1) { transition-delay: 0.05s; }
.teachers-section.is-visible .teacher-card:nth-child(2) { transition-delay: 0.18s; }
.teachers-section.is-visible .teacher-card:nth-child(3) { transition-delay: 0.31s; }

.teacher-card:hover,
.teachers-section.is-visible .teacher-card:hover {
  border-color: rgba(198, 161, 91, 0.5);
  box-shadow: var(--shadow-lift);
  transform: translateY(-6px);
}

.teacher-photo-wrap {
  position: relative;
  margin-bottom: 20px;
}

.teacher-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 12%;
  border: 3px solid var(--gold);
  box-shadow: 0 10px 26px rgba(16, 30, 60, 0.18), 0 0 0 6px rgba(198, 161, 91, 0.12);
  display: block;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.teacher-card:hover .teacher-photo {
  transform: scale(1.05) rotate(-1deg);
  box-shadow: 0 14px 32px rgba(16, 30, 60, 0.24), 0 0 0 8px rgba(198, 161, 91, 0.18);
}

.teacher-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, var(--navy), var(--navy-deep));
  color: rgba(227, 196, 131, 0.55);
  border-style: dashed;
  border-width: 2px;
  border-color: rgba(198, 161, 91, 0.5);
}

.teacher-photo--placeholder svg {
  width: 52px;
  height: 52px;
}

.teacher-photo-wrap::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px dashed rgba(198, 161, 91, 0.4);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.teacher-card--pending .teacher-photo-wrap::after {
  opacity: 1;
  animation: pendingSpin 18s linear infinite;
}

@keyframes pendingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.teacher-badge {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dark));
  color: var(--navy-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 10px rgba(156, 122, 52, 0.35);
  white-space: nowrap;
}

.teacher-badge .ku {
  display: inline;
  font-weight: 700;
  font-size: 1em;
}

.teacher-card--pending .teacher-badge {
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  color: var(--gold-bright);
}

.teacher-name {
  margin: 8px 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
}

.teacher-name .en {
  display: block;
}

.teacher-name .ku {
  display: block;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--gold-dark);
  margin-top: 4px;
}

.teacher-name--pending {
  color: var(--text-muted);
}

.teacher-name--pending .ku {
  color: var(--text-muted);
}

.teacher-bio {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.teacher-bio .en {
  margin-bottom: 6px;
}

.teacher-card--pending .teacher-bio {
  font-style: italic;
}

/* ===================== FORM SECTIONS ===================== */
.form-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
}

.section-title {
  margin: 0 0 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.section-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(165deg, var(--navy), var(--navy-mid));
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.section-icon svg {
  width: 21px;
  height: 21px;
}

.section-title:hover .section-icon {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 6px 16px rgba(198, 161, 91, 0.35);
}

.section-title-text {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.section-title-text .en {
  text-transform: uppercase;
  font-size: 0.95em;
  text-align: left;
}

.section-title-text .ku {
  font-weight: 600;
  font-size: 0.92em;
  color: var(--text-muted);
  margin-top: 0;
  margin-left: auto;
  text-align: right;
}

.field {
  margin-bottom: 22px;
}

.field:last-child {
  margin-bottom: 0;
}

/* Staggered entrance for fields inside each section */
.form-section > div:not(.collapsible) {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.form-section.is-visible > div:not(.collapsible) {
  opacity: 1;
  transform: translateY(0);
}

.form-section.is-visible > div:not(.collapsible):nth-of-type(1) { transition-delay: 0.06s; }
.form-section.is-visible > div:not(.collapsible):nth-of-type(2) { transition-delay: 0.13s; }
.form-section.is-visible > div:not(.collapsible):nth-of-type(3) { transition-delay: 0.2s; }
.form-section.is-visible > div:not(.collapsible):nth-of-type(4) { transition-delay: 0.27s; }
.form-section.is-visible > div:not(.collapsible):nth-of-type(5) { transition-delay: 0.34s; }
.form-section.is-visible > div:not(.collapsible):nth-of-type(n+6) { transition-delay: 0.4s; }

.field-grid.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}

.field-grid.two-col .field {
  margin-bottom: 0;
}

.field > label,
.field-grid .field > label {
  display: block;
  margin-bottom: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.field > label .en {
  display: inline;
}

.field > label .q-num {
  color: var(--gold-dark);
  margin-right: 4px;
  font-weight: 800;
}

.field > label .ku {
  display: block;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 3px;
  font-size: 0.92em;
}

.required {
  color: var(--error);
  margin-left: 4px;
}

/* ===================== INPUTS ===================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

input::placeholder {
  color: #a4acbb;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 4px rgba(198, 161, 91, 0.18);
}

input[readonly] {
  background: #f2f1eb;
  color: var(--text-muted);
  cursor: not-allowed;
  border-color: var(--border);
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%235c6579' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}

.input-icon-wrap input,
.input-icon-wrap select {
  padding-left: 44px;
}

.input-icon-wrap select {
  padding-left: 44px;
}

.phone-input {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.phone-code {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #f2f1eb;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}

.phone-input input {
  flex: 1;
  min-width: 0;
}

/* ===================== RADIO / CHECKBOX OPTIONS ===================== */
.options-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.options-group--stack {
  grid-template-columns: 1fr;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
  background: #fff;
}

.option:hover {
  border-color: var(--gold);
  background: #fdfbf5;
  transform: translateY(-1px);
}

.option:has(input:checked) {
  border-color: var(--navy);
  background: linear-gradient(165deg, #f2f6fb, #eaf0f8);
  box-shadow: 0 4px 14px rgba(16, 40, 77, 0.1);
}

.option span {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.96rem;
  font-weight: 500;
}

.option span .ku {
  display: inline;
  color: var(--text-muted);
}

/* Custom radio */
.option input[type="radio"],
.option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-strong);
  background: #fff;
  display: grid;
  place-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.option input[type="radio"] {
  border-radius: 50%;
}

.option input[type="checkbox"] {
  border-radius: 6px;
}

.option input[type="radio"]::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dark));
  transform: scale(0);
  transition: transform 0.18s var(--ease);
}

.option input[type="radio"]:checked {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 4px rgba(198, 161, 91, 0.16);
}

.option input[type="radio"]:checked::before {
  transform: scale(1);
}

.option input[type="checkbox"]::before {
  content: "";
  width: 6px;
  height: 11px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg) scale(0);
  transition: transform 0.18s var(--ease);
  margin-top: -2px;
}

.option input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-deep));
  border-color: var(--navy);
}

.option input[type="checkbox"]:checked::before {
  transform: rotate(45deg) scale(1);
}

.checkbox-field {
  margin-top: 6px;
}

.checkbox-option {
  align-items: flex-start;
  background: linear-gradient(165deg, #fdfbf5, #f9f4e6);
  border-color: rgba(198, 161, 91, 0.5);
}

.checkbox-option input[type="checkbox"] {
  margin-top: 2px;
}

.checkbox-option span {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}

/* ===================== COLLAPSIBLE (conditional fields) ===================== */
.field.collapsible {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-bottom: 0;
  transition: grid-template-rows 0.42s var(--ease), opacity 0.35s var(--ease), margin-bottom 0.42s var(--ease);
}

.field.collapsible.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-bottom: 22px;
}

.field.collapsible > .collapsible-inner {
  overflow: hidden;
  min-height: 0;
}

/* ===================== AGREEMENT ===================== */
.form-section--agreement {
  background: linear-gradient(165deg, #ffffff, #f7f9fc);
}

.agreement-text {
  background: linear-gradient(165deg, var(--navy), var(--navy-deep));
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.agreement-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-dark));
}

.agreement-text p {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #eef2f7;
  padding-left: 6px;
}

.agreement-text p.ku {
  color: #c8d3e2;
  margin-bottom: 0;
}

/* ===================== ERROR STATES ===================== */
.error-msg {
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--error);
  font-size: 0.83rem;
  margin-top: 7px;
  font-weight: 500;
}

.field.invalid .error-msg {
  display: flex;
}

.field.invalid input:not([readonly]),
.field.invalid select {
  border-color: var(--error);
}

.field.invalid .options-group .option {
  border-color: var(--error);
}

/* ===================== SUBMIT BUTTON ===================== */
.submit-btn {
  position: relative;
  width: 100%;
  padding: 19px 24px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep) 65%, #060f22);
  color: #fff;
  border: 1.5px solid var(--gold);
  border-radius: 16px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(10, 23, 48, 0.32);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
  isolation: isolate;
}

.submit-btn-wrap {
  position: relative;
  border-radius: 16px;
}

.submit-btn-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  box-shadow: 0 0 0 0 rgba(198, 161, 91, 0.5);
  animation: btnGlowPulse 2.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btnGlowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(198, 161, 91, 0.5); }
  50% { box-shadow: 0 0 0 13px rgba(198, 161, 91, 0); }
}

.submit-btn-wrap:hover::after {
  animation-play-state: paused;
}

.submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(227, 196, 131, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.submit-btn:hover::before {
  transform: translateX(120%);
}

.submit-btn-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.submit-btn .ku {
  font-size: 0.86em;
  font-weight: 700;
  color: var(--gold-bright);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(10, 23, 48, 0.4);
}

.submit-btn:active {
  transform: translateY(0) scale(0.98);
}

.submit-btn.is-loading {
  cursor: wait;
  opacity: 0.85;
}

.submit-btn.is-loading .submit-btn-text {
  opacity: 0.55;
}

.submit-error {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(199, 62, 58, 0.08);
  border: 1px solid rgba(199, 62, 58, 0.35);
  color: #9c2f2c;
  font-size: 0.92rem;
  text-align: center;
}

/* ===================== REGISTRATION CLOSED ===================== */
.closed-box {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(198, 161, 91, 0.35);
  border-radius: var(--radius-lg);
  padding: 60px 30px 54px;
  text-align: center;
  box-shadow: var(--shadow-lift);
}

.closed-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--gold-bright);
  box-shadow: 0 12px 28px rgba(10, 23, 48, 0.3);
}

.closed-icon svg {
  width: 34px;
  height: 34px;
}

.closed-box h2 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
  font-family: 'Playfair Display', 'Noto Naskh Arabic', serif;
}

.closed-box h2 .en {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy-deep);
  letter-spacing: 0.03em;
}

.closed-box h2 .ku {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.closed-box p {
  max-width: 560px;
  margin: 4px auto 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.closed-box p.ku {
  font-size: 1.08rem;
}

/* ===================== SUCCESS MESSAGE ===================== */
.success-box {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(198, 161, 91, 0.35);
  border-radius: var(--radius-lg);
  padding: 60px 30px 54px;
  text-align: center;
  box-shadow: var(--shadow-lift);
  margin-bottom: 30px;
  animation: successPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.success-box::before {
  content: "";
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(198, 161, 91, 0.2), transparent 70%);
  pointer-events: none;
}

@keyframes successPop {
  from { opacity: 0; transform: translateY(24px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.confetti-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 0;
  animation: confettiBurst 1.3s ease-out forwards;
}

@keyframes confettiBurst {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(0.6); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--rot)) scale(1); opacity: 0; }
}

.success-icon {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: linear-gradient(165deg, var(--navy), var(--navy-deep));
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(16, 40, 77, 0.28), 0 0 0 8px rgba(198, 161, 91, 0.12);
}

.success-icon::before,
.success-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(198, 161, 91, 0.55);
  animation: sonarPing 1.8s ease-out 2;
  opacity: 0;
}

.success-icon::after {
  animation-delay: 0.35s;
}

@keyframes sonarPing {
  0% { transform: scale(1); opacity: 0.65; }
  100% { transform: scale(1.9); opacity: 0; }
}

.success-icon svg {
  width: 40px;
  height: 40px;
  animation: checkDraw 0.5s 0.2s var(--ease) both;
}

@keyframes checkDraw {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

.success-divider {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 22px;
  max-width: 220px;
}

.success-divider span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.success-divider span:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.success-divider i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-dark);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.success-box h2 {
  position: relative;
  z-index: 2;
  margin: 0 0 20px;
  font-family: 'Playfair Display', serif;
}

.success-box h2 .en {
  font-size: 1.55rem;
  background: linear-gradient(100deg, var(--navy) 20%, var(--gold-dark) 42%, var(--gold-bright) 50%, var(--gold-dark) 58%, var(--navy) 80%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerOnce 2s ease-out 0.4s both;
  display: inline-block;
}

.success-box h2 .ku {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 12px;
  color: var(--gold-dark);
  font-family: 'Noto Naskh Arabic', serif;
}

@keyframes shimmerOnce {
  0% { background-position: 200% center; }
  100% { background-position: 0% center; }
}

.success-box p {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto 12px;
  font-size: 0.97rem;
}

.success-box p.ku {
  color: var(--text-muted);
  font-size: 1.02em;
}

/* ===================== CONTACT ===================== */
.contact-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.4s var(--ease), box-shadow 0.2s var(--ease), opacity 0.5s var(--ease);
}

.contact-section.is-visible .contact-card {
  opacity: 1;
  transform: translateY(0);
}

.contact-section.is-visible .contact-card:nth-child(1) { transition-delay: 0.05s; }
.contact-section.is-visible .contact-card:nth-child(2) { transition-delay: 0.13s; }
.contact-section.is-visible .contact-card:nth-child(3) { transition-delay: 0.21s; }
.contact-section.is-visible .contact-card:nth-child(4) { transition-delay: 0.29s; }

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(198, 161, 91, 0.16) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.65s var(--ease);
  pointer-events: none;
}

.contact-card:hover::before {
  transform: translateX(130%);
}

.contact-card:hover,
.contact-section.is-visible .contact-card:hover {
  border-color: var(--gold);
  background: linear-gradient(165deg, #fdfbf5, #fff);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.contact-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(165deg, var(--navy), var(--navy-mid));
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease);
}

.contact-card:hover .contact-icon {
  transform: scale(1.08);
}

.contact-icon svg {
  width: 21px;
  height: 21px;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  font-size: 0.9rem;
  flex: 1;
}

.contact-text strong {
  font-size: 0.85rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.contact-text span {
  color: var(--text-muted);
  word-break: break-word;
}

.contact-arrow {
  color: var(--gold-dark);
  font-size: 1.1rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  flex-shrink: 0;
}

.contact-card:hover .contact-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===================== FOOTER ===================== */
.site-footer {
  text-align: center;
  padding: 26px 20px max(34px, env(safe-area-inset-bottom) + 18px);
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* ===================== RESPONSIVE ===================== */

/* ---- Tablet range (iPad / Android tablets, ~601-900px): use 2 columns
        intelligently instead of collapsing all the way to 1 column. ---- */
@media (min-width: 601px) and (max-width: 900px) {
  .highlights {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -46px;
  }

  .highlights .highlight-card:last-child {
    grid-column: 1 / -1;
  }

  .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .teachers-grid .teacher-card:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 10px);
    margin: 0 auto;
  }
}

@media (min-width: 781px) and (max-width: 980px) {
  .container {
    max-width: 720px;
  }
}

/* ---- Shared tablet + phone adjustments (<=900px) ---- */
@media (max-width: 900px) {
  .form-section,
  .contact-section,
  .teachers-section {
    padding: 26px 22px;
  }

  .hero {
    padding: max(60px, env(safe-area-inset-top) + 20px) max(18px, env(safe-area-inset-right) + 10px) 78px max(18px, env(safe-area-inset-left) + 10px);
  }

  .container {
    padding: 0 max(18px, env(safe-area-inset-right) + 10px) 60px max(18px, env(safe-area-inset-left) + 10px);
  }

  .section-title {
    gap: 12px;
  }

  .section-icon {
    width: 38px;
    height: 38px;
  }
}

/* ---- Phones (<=600px): clean single-column, mobile-first layout ---- */
@media (max-width: 600px) {
  .highlights {
    grid-template-columns: 1fr;
    margin-top: -40px;
    gap: 14px;
  }

  .field-grid.two-col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .field-grid.two-col .field {
    margin-bottom: 22px;
  }

  .field-grid.two-col .field:last-child {
    margin-bottom: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .teachers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-section,
  .contact-section,
  .teachers-section {
    padding: 22px 16px;
    border-radius: var(--radius-md);
  }

  .options-group {
    grid-template-columns: 1fr;
  }

  .phone-input {
    gap: 6px;
  }

  .phone-code {
    padding: 0 12px;
    font-size: 0.92rem;
  }
}

@media (max-width: 430px) {
  .hero-title {
    font-size: 1.4rem;
    letter-spacing: 0.01em;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .option {
    padding: 13px 14px;
  }

  .submit-btn {
    padding: 18px 18px;
    font-size: 1.02rem;
  }
}

@media (max-width: 340px) {
  .hero-title {
    font-size: 1.22rem;
  }
}
