/* GSOM application forms – shared styles (Eduna look: violet, yellow, cream, pill buttons).
   Used by /apply/ and /master-class/. The previous design is kept in _legacy/forms_before_eduna/. */
:root { --navy: #543ee8; --navy-dark: #4330c9; --gold: #ffcd20; --ink: #011c1a; --text: #3a4543; --muted: #5f5d5d; --line: #e9e6df; --bg: #faf9f6; --card: #f5f5f5; --red: #d73b3e; --green: #2f9e6b; --mint: #62c594; --display: "Albert Sans", Poppins, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-family: Poppins, "Segoe UI", system-ui, sans-serif; font-size: 15.5px; line-height: 1.6; color: var(--text); -webkit-font-smoothing: antialiased;
  background: radial-gradient(46% 620px at 100% 0, #dcf1e0 0%, rgba(220,241,224,0) 62%) no-repeat, radial-gradient(40% 560px at 0 140px, #f6f0d6 0%, rgba(246,240,214,0) 70%) no-repeat, var(--bg); }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -.02em; }

/* Top bar */
.form-top { max-width: 1320px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-top .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font: 700 14px/1.2 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.form-top .brand img { height: 52px; width: auto; display: block; }
.form-top nav { display: flex; gap: 10px; }
.pill-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 52px; font-weight: 500; font-size: 14.5px; line-height: 1.3; text-decoration: none; white-space: nowrap; background: #fff; color: var(--ink); box-shadow: 0 6px 24px -12px rgba(1,28,26,.3); transition: background-color .25s, color .25s, transform .2s; }
.pill-link:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.pill-link.yellow { background: var(--gold); } .pill-link.yellow:hover { background: var(--ink); color: #fff; }

/* Page layout: introduction on the left, form card on the right */
.form-page { max-width: 1320px; margin: 0 auto; padding: 26px 24px 40px; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 56px; align-items: start; }
.form-hero { position: sticky; top: 24px; padding-top: 16px; }
.form-hero .kicker { display: inline-block; text-transform: uppercase; letter-spacing: .03em; font-size: 14.5px; color: var(--muted); }
.form-hero h1 { margin: 12px 0 16px; font-size: clamp(30px, 3.5vw, 46px); line-height: 1.15; font-weight: 700; }
.hl { position: relative; z-index: 0; white-space: nowrap; }
.hl::before { content: ""; position: absolute; left: -4px; right: -4px; bottom: .1em; height: .4em; background: var(--gold); border-radius: 4px; z-index: -1; transform-origin: left; animation: mark .9s .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes mark { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.form-hero p { margin: 0; max-width: 540px; color: var(--muted); font-size: 16.5px; line-height: 1.75; }
.points { list-style: none; padding: 0; margin: 24px 0 0; max-width: 540px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; font-weight: 500; font-size: 15px; color: var(--ink); }
.points li { display: flex; gap: 10px; align-items: center; }
.points i { width: 28px; height: 28px; border-radius: 50%; background: #efecff; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.form-art { position: relative; margin-top: 36px; max-width: 500px; padding: 0 20px 18px 0; }
.form-art::before { content: ""; position: absolute; left: -28px; top: 34%; width: 92px; height: 74px; background-image: radial-gradient(#62c594 2.2px, transparent 2.6px); background-size: 18px 18px; animation: drift 6s ease-in-out infinite; }
.form-art::after { content: ""; position: absolute; right: -4px; bottom: -6px; width: 88px; height: 88px; border: 13px solid var(--gold); border-radius: 50%; }
.form-art img { position: relative; z-index: 1; display: block; width: 100%; height: auto; border-radius: 14px 14px 120px 14px; box-shadow: 0 30px 60px -32px rgba(1,28,26,.4); }
@keyframes drift { 50% { transform: translateY(-10px); } }

/* Form card */
.form-wrap { min-width: 0; }
.form-card { background: #fff; border: 1px solid #f0eee8; border-radius: 22px; box-shadow: 0 30px 70px -38px rgba(1,28,26,.4); padding: 34px 38px 30px; }
.steps { display: flex; gap: 6px; margin: 0 0 28px; padding: 0; list-style: none; counter-reset: s; }
.steps li { flex: 1; text-align: center; font-size: 12.5px; line-height: 1.3; color: var(--muted); position: relative; padding-top: 42px; font-weight: 500; }
.steps li::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--card); color: var(--muted); display: flex; align-items: center; justify-content: center; font: 700 14px/1 var(--display); position: absolute; top: 0; left: 50%; transform: translateX(-50%); transition: background-color .25s, color .25s, box-shadow .25s; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 16px; left: calc(50% + 21px); right: calc(-50% + 21px); height: 2px; border-radius: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.active { color: var(--navy); font-weight: 600; }
.steps li.active::before { background: var(--navy); color: #fff; box-shadow: 0 0 0 6px rgba(84,62,232,.16); }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--mint); color: #fff; content: "✓"; }
.steps li.done::after { background: var(--mint); }
.step { display: none; animation: fade .35s cubic-bezier(.2,.8,.2,1); }
.step.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.step h2 { font-size: 24px; line-height: 1.25; margin: 0 0 6px; }
.step .lead { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; font-size: 14px; color: var(--ink); margin-bottom: 7px; }
.field label small { font-weight: 400; color: var(--muted); }
.req { color: var(--red); }
.input { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 18px; font: inherit; color: var(--ink); background: #fff; transition: border-color .25s, box-shadow .25s, background-color .25s; }
.input::placeholder { color: #a3a09a; }
.input:hover { border-color: #d5d1c8; }
.input:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(84,62,232,.14); }
.input.invalid { border-color: var(--red); background: #fef6f5; }
select.input { cursor: pointer; }
textarea.input { resize: vertical; min-height: 104px; }
.err { color: var(--red); font-size: 12.5px; margin-top: 6px; display: none; }
.field.has-error .err { display: block; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.choices { display: grid; gap: 10px; }
.choices.cols-2 { grid-template-columns: 1fr 1fr; }
.field label.choice, .choice { display: flex; align-items: flex-start; gap: 10px; margin: 0; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 16px; cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; font-size: 14.5px; font-weight: 400; line-height: 1.45; color: var(--text); }
.choice:hover { border-color: #b9aff5; }
.choice input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--navy); flex: none; }
.choice.selected { border-color: var(--navy); background: #f4f2ff; color: var(--ink); box-shadow: 0 8px 20px -14px rgba(84,62,232,.8); }
.notice { background: #fff8dc; border: 1px solid #ffe58a; color: #5f4b00; border-radius: 14px; padding: 14px 18px; font-size: 14px; margin-bottom: 20px; line-height: 1.6; }
.notice.info { background: #f4f2ff; border-color: #dcd6fb; color: #3526b0; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }

/* Pill buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--navy); color: #fff; border: 0; border-radius: 52px; padding: 13px 26px; font: 500 15px/1.25 Poppins, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .3s, color .3s, transform .2s, box-shadow .3s; box-shadow: 0 12px 26px -14px rgba(84,62,232,.9); }
.btn:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn > i.bi-arrow-right { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; margin: -7px -17px -7px 2px; transition: transform .3s, color .3s; }
.btn:hover > i.bi-arrow-right { color: var(--ink); transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 12px 26px -14px rgba(255,205,32,1); } .btn-gold:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); } .btn-light:hover { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Review */
.review dl { display: grid; grid-template-columns: 220px 1fr; gap: 8px 16px; font-size: 14.5px; margin: 0 0 18px; background: var(--card); border-radius: 14px; padding: 16px 20px; }
.review dt { color: var(--muted); } .review dd { margin: 0; white-space: pre-wrap; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.review h3 { font-size: 16px; color: var(--ink); margin: 20px 0 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.review h3 a { font: 500 13px/1.3 Poppins, sans-serif; letter-spacing: 0; text-decoration: none; } .review h3 a:hover { text-decoration: underline; }
.decl { background: var(--card); border-left: 4px solid var(--navy); border-radius: 14px; padding: 16px 20px; font-size: 14.5px; line-height: 1.65; margin-bottom: 16px; }

/* Success */
.success { text-align: center; padding: 18px 0 8px; }
.success .tick { width: 84px; height: 84px; border-radius: 50%; background: #e3f4e6; color: var(--green); font-size: 40px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; box-shadow: 0 0 0 10px rgba(98,197,148,.14); animation: pop .5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.success h2 { font-size: 28px; margin: 0 0 8px; }
.success p { color: var(--muted); max-width: 540px; margin: 0 auto 10px; line-height: 1.7; }
.next-steps { text-align: left; background: var(--card); border-radius: 14px; padding: 18px 22px; margin: 20px auto 22px; max-width: 580px; }
.next-steps strong { font-family: var(--display); font-size: 16px; color: var(--ink); }
.next-steps ol { margin: 8px 0 0; padding-left: 20px; } .next-steps li { margin-bottom: 6px; }
.success .btn { margin: 4px 3px; }
.alert-top { display: none; background: #fdedeb; border: 1px solid #f6c9c5; color: #9f2326; border-radius: 14px; padding: 13px 18px; margin-bottom: 20px; }
.alert-top.show { display: block; }
.save-note { font-size: 12.5px; color: var(--muted); text-align: center; margin: 22px 0 0; } .save-note i { color: var(--green); }
.foot { text-align: center; color: var(--muted); font-size: 13.5px; margin: 22px 0 0; }
.form-foot { text-align: center; color: var(--muted); font-size: 13.5px; padding: 22px 24px 34px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

@media (max-width: 1040px) {
  .form-page { grid-template-columns: 1fr; gap: 30px; padding-top: 10px; }
  .form-hero { position: static; padding-top: 6px; }
  .form-hero p, .points { max-width: 720px; }
  .form-art { display: none; }
  .form-wrap { max-width: 820px; width: 100%; margin: 0 auto; }
  .form-hero { max-width: 820px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
  .form-top { padding: 14px 16px; } .form-top .brand span { display: none; } .form-top .brand img { height: 44px; } .pill-link { padding: 9px 15px; font-size: 13.5px; } .pill-link.back span { display: none; }
  .form-page { padding: 6px 16px 30px; }
  .form-hero p { font-size: 15.5px; } .points { grid-template-columns: 1fr; gap: 10px; }
  .form-card { padding: 24px 18px 22px; border-radius: 18px; }
  .row, .row-3, .choices.cols-2 { grid-template-columns: 1fr; }
  .steps li { font-size: 0; padding-top: 38px; } .steps li.active { font-size: 11.5px; }
  .step h2 { font-size: 21px; }
  .nav .btn { padding: 12px 20px; font-size: 14.5px; }
  .review dl { grid-template-columns: 1fr; gap: 2px 0; } .review dt { margin-top: 8px; } .review dt:first-child { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
