/* ==========================================================
   Athena Coaching Centre — Enquiry Form
   Palette from the logo: deep indigo, royal blue, cyan ring, ACC green.
   Type: Sora (headings) + Manrope (body)
   Layout: locked to 100vh — every size scales with screen height.
   ========================================================== */

:root {
  --navy-950: #060b26;
  --navy-900: #0a1240;
  --navy-800: #121e66;
  --blue-600: #1d5bd4;
  --blue-500: #2b7cf0;
  --cyan-400: #22c4f2;
  --green-500: #3fae49;

  --ink: #0d1431;
  --ink-soft: #5b6482;
  --ink-mute: #98a0ba;
  --line: #e3e7f1;
  --surface: #ffffff;
  --surface-alt: #f4f6fb;
  --danger: #e0475b;

  --radius-xl: 32px;
  --radius-md: 14px;

  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Sora", "Manrope", system-ui, sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);

  /* viewport-height driven sizing */
  --vh: 100vh;
  --pad: clamp(12px, 3vh, 36px);           /* space around the card */
  --fh: clamp(44px, 6.2vh, 56px);           /* field height */
  --gap: clamp(7px, 1.3vh, 12px);           /* gap between fields */
}

@supports (height: 100dvh) {
  :root { --vh: 100dvh; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body {
  height: var(--vh);
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--navy-950);
  display: grid;
  place-items: center;
  padding: var(--pad) 24px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

img { display: block; max-width: 100%; }

/* ---------- Ambient background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 50% -10%, #101b5c 0%, transparent 60%),
    var(--navy-950);
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb--1 { width: 520px; height: 520px; left: -140px; top: -120px; background: #1d5bd4; }
.orb--2 { width: 460px; height: 460px; right: -120px; bottom: -140px; background: #12a6d6; animation-delay: -6s; }
.orb--3 { width: 300px; height: 300px; right: 18%; top: -80px; background: #2f8f3a; opacity: .28; animation-delay: -12s; }

@keyframes drift {
  to { transform: translate(40px, 30px) scale(1.08); }
}

/* ---------- Shell (fills the viewport) ---------- */
.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  height: calc(var(--vh) - var(--pad) * 2);
  max-height: 900px;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 50px 100px -30px rgba(0, 0, 0, .7),
    0 0 0 1px rgba(255, 255, 255, .08);
  animation: rise .8s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Brand panel ---------- */
.brand {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: clamp(24px, 4.4vh, 44px) 48px 0;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(560px 560px at 80% 85%, rgba(34, 196, 242, .28), transparent 65%),
    radial-gradient(400px 300px at 0% 100%, rgba(63, 174, 73, .14), transparent 70%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 50%, var(--navy-950) 100%);
}

.brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

.brand::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(34, 196, 242, .5), transparent);
}

.brand__logo {
  width: clamp(140px, 21vh, 196px);
  height: auto;
  animation: fadeUp .7s .15s var(--ease) both;
}

.brand__copy {
  position: relative;
  z-index: 2;
  margin-top: clamp(18px, 4.6vh, 48px);
  max-width: 340px;
  animation: fadeUp .7s .25s var(--ease) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
}

.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4fd25b;
  box-shadow: 0 0 0 4px rgba(79, 210, 91, .22);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 8px rgba(79, 210, 91, 0); }
}

.brand h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, min(3vw, 4.4vh), 38px);
  line-height: 1.18;
  letter-spacing: -.025em;
  margin: clamp(12px, 2.2vh, 22px) 0 clamp(8px, 1.6vh, 16px);
}

.grad {
  background: linear-gradient(90deg, #4fd0ff 0%, #22c4f2 40%, #7ee27f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand p {
  margin: 0;
  max-width: 300px;
  font-size: clamp(13.5px, 1.75vh, 15px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .7);
}

.brand__tags {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.8vh, 16px);
  padding: 0;
  margin: clamp(16px, 2.6vh, 26px) 0 0;
  max-width: 320px;
}

.brand__tags li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.brand__tag-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__tag-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.brand__tag-desc {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, .65);
}

.tick {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center / 13px no-repeat,
    linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  box-shadow: 0 4px 12px -2px rgba(34, 196, 242, .6);
}

/* Tutor — sized by panel height so she always fits */
.brand__tutor {
  position: absolute;
  right: -20px;
  bottom: 0;
  height: 68%;
  max-width: 58%;
  aspect-ratio: 900 / 1431;
  z-index: 1;
  animation: tutorIn 1s .3s var(--ease) both;
}

@keyframes tutorIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

.brand__tutor img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .4));
  mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
}

.halo {
  position: absolute;
  left: 50%;
  top: 8%;
  width: 105%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 196, 242, .35) 0%, rgba(43, 124, 240, .15) 40%, transparent 68%);
}

.ring {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  aspect-ratio: 1;
  transform: translateX(-50%);
}

.ring--1 {
  top: 7%;
  width: 100%;
  border: 1.5px solid rgba(34, 196, 242, .45);
}

.ring--2 {
  top: 1%;
  width: 118%;
  border: 1px dashed rgba(255, 255, 255, .16);
  animation: spin 60s linear infinite;
}

@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }

.tutor-card {
  position: absolute;
  z-index: 2;
  left: -78px;
  bottom: 7%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px 12px 12px;
  border-radius: 20px;
  white-space: nowrap;
  /* dark glass fill + gradient hairline border */
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, rgba(10, 18, 64, .78), rgba(10, 18, 64, .55)) padding-box,
    linear-gradient(135deg, rgba(34, 196, 242, .85), rgba(255, 255, 255, .15) 45%, rgba(63, 174, 73, .8)) border-box;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    0 18px 40px -8px rgba(0, 0, 0, .5),
    0 0 30px -10px rgba(34, 196, 242, .5);
  animation: float 5s ease-in-out infinite;
}

@keyframes float { 50% { transform: translateY(-6px); } }

.tutor-card__badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400) 55%, var(--green-500));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 18px -6px rgba(34, 196, 242, .7);
}

.tutor-card__badge svg { width: 24px; height: 24px; fill: #fff; }

.tutor-card__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.tutor-card__name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: #fff;
}

.tutor-card__verified {
  width: 16px; height: 16px;
  fill: var(--cyan-400);
  flex: none;
}

.tutor-card__cred {
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .06em;
  background: linear-gradient(90deg, #4fd0ff, #7ee27f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tutor-card__role {
  margin-top: 4px;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, .68);
}

/* ---------- Form panel ---------- */
.panel {
  display: flex;
  min-height: 0;
  padding: clamp(18px, 4.4vh, 48px) 58px;
  overflow-y: auto;               /* safety net on very short screens */
  scrollbar-width: thin;
  background:
    radial-gradient(400px 260px at 100% 0%, rgba(43, 124, 240, .06), transparent 70%),
    var(--surface);
}

.form,
.success { margin: auto 0; }     /* vertically centred, but scroll-safe */

.form {
  width: 100%;
  animation: fadeUp .7s .35s var(--ease) both;
}

.form.shake { animation: shake .4s ease; }

@keyframes shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.form__head { margin-bottom: clamp(12px, 2.6vh, 26px); }

.form__kicker {
  display: inline-block;
  margin-bottom: clamp(4px, .9vh, 8px);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.form__head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3.4vh, 30px);
  line-height: 1.15;
  letter-spacing: -.03em;
  margin: 0 0 clamp(4px, 1vh, 10px);
  color: var(--navy-900);
}

.form__head p {
  margin: 0;
  max-width: 380px;
  color: var(--ink-soft);
  font-size: clamp(13.5px, 1.75vh, 15px);
  line-height: 1.55;
}

/* ---------- Floating-label fields ---------- */
.field {
  position: relative;
  margin-bottom: var(--gap);
}

.field__inner { position: relative; }

.field input,
.field select {
  width: 100%;
  height: var(--fh);
  padding: calc(var(--fh) * .36) 18px 4px 50px;
  font: 600 15px var(--font-body);
  color: var(--ink);
  background: var(--surface-alt);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.field input:hover,
.field select:hover { border-color: var(--line); }

.field input:focus,
.field select:focus {
  background: #fff;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(43, 124, 240, .12);
}

.field label {
  position: absolute;
  left: 50px;
  top: calc(var(--fh) / 2);
  transform: translateY(-50%);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-mute);
  pointer-events: none;
  transition: all .2s var(--ease);
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: calc(var(--fh) * .29);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.field__icon {
  position: absolute;
  left: 18px;
  top: calc(var(--fh) / 2);
  transform: translateY(-50%);
  width: 19px; height: 19px;
  fill: var(--ink-mute);
  pointer-events: none;
  z-index: 1;
  transition: fill .2s;
}

.field:focus-within .field__icon { fill: var(--blue-500); }

.field.is-valid input:not(:focus) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233fae49' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.5 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
}

/* Phone field */
.field--phone {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 10px;
}

.select-wrap { position: relative; }

.select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: calc(var(--fh) / 2);
  width: 16px; height: 16px;
  transform: translateY(-50%);
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%235b6482' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.field--phone select {
  padding: 0 30px 0 14px;
  font-weight: 700;
  font-size: 14.5px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.field--phone .field__error { grid-column: 1 / -1; }

/* Errors */
.field__error {
  display: none;
  margin-top: 5px;
  padding-left: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--danger);
}

.is-invalid .field__error {
  display: block;
  animation: fadeUp .25s ease both;
}

.is-invalid input:not([type="radio"]) {
  border-color: var(--danger);
  background: #fff;
}

.is-invalid .field__icon { fill: var(--danger); }

.is-invalid input:not([type="radio"]):focus {
  box-shadow: 0 0 0 4px rgba(224, 71, 91, .12);
}

/* ---------- Course selector ---------- */
.courses {
  border: 0;
  padding: 0;
  margin: clamp(4px, 1vh, 8px) 0 clamp(14px, 2.4vh, 22px);
}

.courses legend {
  padding: 0;
  margin-bottom: clamp(8px, 1.3vh, 12px);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy-900);
}

.courses__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.course { cursor: pointer; }

.course input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.course__box {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(11px, 1.8vh, 16px) 16px clamp(12px, 2vh, 18px);
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: #fff;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease), background .25s;
}

.course:hover .course__box {
  border-color: #c3cce2;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -14px rgba(13, 20, 49, .35);
}

.course__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: clamp(8px, 1.4vh, 14px);
}

.course__icon {
  display: grid;
  place-items: center;
  width: clamp(32px, 4.6vh, 42px);
  height: clamp(32px, 4.6vh, 42px);
  border-radius: 12px;
  transition: transform .3s var(--ease);
}

.course__icon svg { width: 55%; height: 55%; fill: #fff; }

.course__icon--blue  { background: linear-gradient(135deg, var(--blue-600), var(--cyan-400)); }
.course__icon--green { background: linear-gradient(135deg, #2f8f3a, #5cc96a); }

.course__name {
  font-family: var(--font-display);
  font-size: clamp(15px, 2vh, 17px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--navy-900);
}

.course__desc {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.course__check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid #c3cce2;
  transition: all .25s var(--ease);
}

.course input:checked + .course__box {
  border-color: var(--blue-500);
  background: linear-gradient(165deg, #eef5ff 0%, #fff 75%);
  box-shadow: 0 14px 28px -14px rgba(43, 124, 240, .55);
}

.course input:checked + .course__box .course__icon { transform: scale(1.06) rotate(-4deg); }

.course input:checked + .course__box .course__check {
  border-color: transparent;
  transform: scale(1.08);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center / 14px no-repeat,
    linear-gradient(135deg, var(--blue-500), var(--cyan-400));
}

.course input:focus-visible + .course__box {
  box-shadow: 0 0 0 4px rgba(43, 124, 240, .22);
}

.courses.is-invalid .course__box { border-color: rgba(224, 71, 91, .55); }

/* ---------- Button ---------- */
.btn {
  position: relative;
  width: 100%;
  height: clamp(46px, 6.4vh, 58px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius-md);
  font: 700 16px var(--font-display);
  letter-spacing: -.005em;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(100deg, var(--navy-800) 0%, var(--blue-600) 55%, var(--cyan-400) 100%);
  background-size: 200% 100%;
  background-position: 0% 0;
  box-shadow: 0 16px 32px -14px rgba(29, 91, 212, .8);
  transition: background-position .6s ease, transform .2s, box-shadow .2s;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-20deg);
  transition: left .7s ease;
}

.btn:hover::before { left: 130%; }

.btn svg {
  width: 20px; height: 20px;
  fill: currentColor;
  transition: transform .25s;
}

.btn:hover {
  background-position: 100% 0;
  transform: translateY(-1px);
  box-shadow: 0 20px 38px -14px rgba(29, 91, 212, .9);
}

.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

.btn:focus-visible {
  outline: 3px solid rgba(34, 196, 242, .55);
  outline-offset: 3px;
}

.btn__spinner {
  display: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: spinSimple .7s linear infinite;
}

@keyframes spinSimple { to { transform: rotate(360deg); } }

.btn.is-loading { cursor: progress; }
.btn.is-loading .btn__arrow { display: none; }
.btn.is-loading .btn__spinner { display: block; }

.btn--ghost {
  width: auto;
  height: 50px;
  margin-top: 28px;
  padding: 0 24px;
  font-size: 14.5px;
  color: var(--blue-600);
  background: var(--surface-alt);
  box-shadow: none;
}

.btn--ghost:hover {
  background: #e8eefb;
  box-shadow: none;
}

.form__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: clamp(10px, 1.8vh, 18px) 0 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

.form__note svg {
  width: 16px; height: 16px;
  flex: none;
  fill: var(--green-500);
}

/* ---------- Success state ---------- */
.success {
  width: 100%;
  text-align: center;
  animation: fadeUp .5s var(--ease) both;
}

.success[hidden] { display: none; }

.success__icon {
  width: 96px; height: 96px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(63, 174, 73, .14), rgba(34, 196, 242, .14));
  box-shadow: 0 0 0 10px rgba(63, 174, 73, .05);
}

.success__icon svg {
  width: 58px; height: 58px;
  fill: none;
  stroke: var(--green-500);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success__icon circle {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: draw .6s ease forwards;
}

.success__icon path {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: draw .4s .5s ease forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

.success h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin: 0 0 12px;
  color: var(--navy-900);
}

.success p {
  margin: 0 auto;
  max-width: 340px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.success strong { color: var(--navy-900); }

/* ---------- Short desktop screens ---------- */
@media (min-width: 961px) and (max-height: 760px) {
  .brand p { display: none; }
  .brand__tag-desc,
  .brand__tags small { display: none; }
  .form__head p { display: none; }
}

/* ---------- Tablet / mobile: stacked, still 100vh ---------- */
@media (max-width: 1040px) {
  .panel { padding-left: 40px; padding-right: 40px; }
  .brand { padding-left: 36px; padding-right: 36px; }
}

@media (max-width: 960px) {
  :root {
    --pad: clamp(10px, 2vh, 24px);
    --fh: clamp(42px, 5.8vh, 54px);
    --gap: clamp(6px, 1.1vh, 11px);
  }

  body { padding-left: 16px; padding-right: 16px; }

  .shell {
    max-width: 580px;
    max-height: none;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    border-radius: 26px;
  }

  .brand {
    padding: clamp(14px, 2.4vh, 26px) 22px 0;
    min-height: clamp(140px, 21vh, 210px);
  }

  .brand::after { display: none; }

  .brand__logo { width: clamp(110px, 16vh, 150px); }

  .brand__copy {
    margin-top: clamp(8px, 1.8vh, 20px);
    max-width: 58%;
    padding-bottom: clamp(14px, 2.6vh, 28px);
  }

  .eyebrow { font-size: 10px; padding: 5px 10px 5px 8px; }
  .brand h1 { font-size: clamp(18px, 2.6vh, 24px); margin: clamp(8px, 1.4vh, 14px) 0 0; }
  .brand p,
  .brand__tags { display: none; }

  .brand__tutor {
    height: 96%;
    max-width: 46%;
    right: -6px;
  }

  .halo, .ring--1 { top: 4%; }

  .tutor-card {
    left: auto;
    right: 10px;
    bottom: 10px;
    padding: 6px 12px 6px 6px;
    gap: 8px;
    border-radius: 13px;
  }

  .tutor-card__badge { width: 28px; height: 28px; border-radius: 9px; }
  .tutor-card__badge svg { width: 16px; height: 16px; }
  .tutor-card__name { font-size: 12.5px; gap: 4px; }
  .tutor-card__verified { width: 12px; height: 12px; }
  .tutor-card__cred { margin-top: 1px; font-size: 10px; letter-spacing: .04em; }
  .tutor-card__role { display: none; }

  .panel { padding: clamp(14px, 2.8vh, 32px) 22px; }
  .form__kicker { display: none; }
  .form__head p { font-size: 13px; }
}

@media (max-width: 960px) and (max-height: 920px) {
  .form__head p { display: none; }
  .course__top { margin-bottom: 6px; }
}

@media (max-width: 480px) {
  .eyebrow { display: none; }
  .brand__copy { max-width: 60%; }
  .field--phone { grid-template-columns: 102px 1fr; gap: 8px; }
  .courses__grid { gap: 10px; }
  .course__box { padding-left: 13px; padding-right: 13px; }
  .course__desc { font-size: 11.5px; }
  .course__check { width: 20px; height: 20px; }
  .form__note { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* very short phones (e.g. iPhone SE): drop the privacy note to keep the button in view */
@media (max-width: 960px) and (max-height: 700px) {
  .form__note { display: none; }
}


/* phones: drop the course icons so the cards stay compact and the button stays in view */
@media (max-width: 960px) and (max-height: 920px) {
  .course__icon { display: none; }
  .course__top {
    position: absolute;
    top: 12px;
    right: 12px;
    margin: 0;
  }
  .course__name { padding-right: 26px; }
}

/* ---------- Mentor card centred on the tutor photo ---------- */
.tutor-card {
  left: 50%;
  right: auto;
  animation-name: floatCenter;
}

@keyframes floatCenter {
  0%, 100% { transform: translateX(-50%); }
  50%      { transform: translateX(-50%) translateY(-6px); }
}

@media (max-width: 960px) {
  .tutor-card { left: 50%; right: auto; bottom: 10px; }
}

/* ---------- WhatsApp button (success screen) ---------- */
.btn--wa {
  width: auto;
  margin-top: 26px;
  padding: 0 26px;
  text-decoration: none;
  background: linear-gradient(135deg, #1faa53, #25d366);
  box-shadow: 0 16px 32px -14px rgba(37, 211, 102, .8);
}

.btn--wa:hover {
  background: linear-gradient(135deg, #1a9a4b, #22c55e);
  box-shadow: 0 20px 38px -14px rgba(37, 211, 102, .9);
}

.btn--wa svg { width: 22px; height: 22px; }

.success .btn--ghost { display: flex; margin: 12px auto 0; }

/* keep the centred mentor card fully inside the panel */
.brand__tutor { right: 0; }

@media (max-width: 960px) {
  .brand__tutor { right: 6px; }
  .tutor-card { padding: 6px 10px; }
  .tutor-card__badge { display: none; }
}
