:root {
  --navy: #081229;
  --gold: #D4AF55;
  --white: #FFFFFF;
  --gray: #F5F6F8;
  --green: #15803D;
  --footer: #D6DCE7;
  --line: #D5DBE6;
}

* { box-sizing: border-box; }

html { background: var(--white); }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.45;
}

img { max-width: 100%; height: auto; border: 0; }

.logo-bar {
  background: var(--navy);
  padding: 0;
}

.brand-logo {
  display: block;
  width: 128px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

main {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 18px 16px 8px;
}

h1, h2, p { overflow-wrap: break-word; }

h1 {
  max-width: 720px;
  margin: 0 auto 9px;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.subhead {
  max-width: 720px;
  margin: 0 auto 15px;
  text-align: center;
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
}

.banner {
  box-sizing: border-box;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.45;
}

.banner-audience {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 18px;
  padding: 7px 14px;
  background: var(--gold);
  color: var(--navy);
}

.banner-step {
  width: 100%;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  padding: 11px 14px;
}

.banner-navy {
  background: var(--navy);
  color: var(--white);
  margin-bottom: 9px;
}

.banner-gold {
  background: var(--gold);
  color: var(--navy);
  margin-bottom: 16px;
}

.video-wrap {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 0 auto 8px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fallback {
  max-width: 880px;
  margin: 0 auto 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.video-fallback a {
  color: var(--navy);
}

.qualification {
  max-width: 720px;
  margin: 0 auto 22px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.apply-card {
  max-width: 880px;
  margin: 0 auto 22px;
  padding: 12px 8px 10px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.apply-row {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.card-logo-frame {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  aspect-ratio: 688 / 592;
  overflow: hidden;
}

.card-logo-frame .card-logo {
  position: absolute;
  width: 148.837%;
  max-width: none;
  height: auto;
  margin: 0;
  left: -24.419%;
  top: -32.77%;
}

.apply-divider {
  flex: 0 0 2px;
  width: 2px;
  align-self: stretch;
  background: var(--gold);
}

.apply-copy {
  min-width: 0;
  flex: 1;
}

.apply-card h2 {
  margin: 0 0 2px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.apply-instruction {
  margin: 0;
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
}

@media (min-width: 390px) and (max-width: 767px) {
  .card-logo-frame { width: 56px; }
  .apply-card h2 { font-size: 16px; }
  .apply-instruction { font-size: 14px; }
}

.apply-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px auto 0;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.apply-clock {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.start-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: 54px;
  margin: 14px 0 0;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font: 700 18px/1.45 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.noscript { margin: 12px 0 0; font-size: 14px; }

footer {
  background: var(--navy);
  color: var(--footer);
  padding: 24px 16px 28px;
  font-size: 12px;
  line-height: 1.6;
}

.footer-inner { max-width: 720px; margin: 0 auto; }

footer p { margin: 0 auto 12px; }

.trademark { margin-bottom: 16px; }

.copyright, .legal-labels {
  color: var(--white);
  font-weight: 700;
  text-align: center;
}

.legal-labels { margin-bottom: 0; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(8, 18, 41, 0.72);
}

.modal-backdrop[hidden] { display: none; }

.modal {
  position: relative;
  width: min(100%, 560px);
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: 14px 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
}

.modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.progress {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

#close-application {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: 700 15px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.question, .contact-title, #dialog-title {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--gray);
  font-weight: 700;
  cursor: pointer;
}

.option:has(input:checked) {
  border-color: var(--navy);
  background: var(--white);
}

.option input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--green);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.btn-primary, .btn-secondary {
  flex: 1 1 120px;
  min-height: 48px;
  border-radius: 8px;
  font: 700 16px/1.2 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.btn-primary {
  border: 0;
  background: var(--green);
  color: var(--white);
}

.btn-secondary {
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
}

.field {
  display: block;
  margin: 0 0 12px;
  font-weight: 700;
}

.field input {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font: 16px/1.4 Inter, system-ui, sans-serif;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--green);
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.form-error, .field-error {
  margin: 8px 0 0;
  color: #9F1239;
  font-size: 14px;
  font-weight: 700;
}

.booking-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

button:focus-visible, a:focus-visible, input:focus-visible, .option:focus-within {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.start-button:focus-visible, .booking-link:focus-visible, .btn-primary:focus-visible {
  outline-color: var(--white);
}

@media (min-width: 768px) {
  main { padding-inline: 28px; }
  h1 { font-size: 36px; }
  .subhead { font-size: 24px; }
  .logo-bar { padding: 8px 16px 4px; }
  .brand-logo { width: 240px; }
  .apply-card { padding: 20px 22px 16px; }
  .apply-row { gap: 12px; }
  .card-logo-frame { width: 168px; }
  .apply-card h2 { font-size: 28px; line-height: 1.25; }
  .apply-instruction { font-size: 22px; line-height: 1.3; }
  .modal-backdrop { padding: 24px; }
}
