@media (max-width: 768px) {
  .section-two {
    padding: 32px 0 18px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
  .page-shell {
    padding: 18px 24px 14px;
  }
  .cta-btn {
    width: 100%;
    padding: 18px 34px;
    font-size: 1.08rem;
    border-radius: 4px;
  }

  .hero-presented {
    font-size: 0.56rem;
  }

  .hero-hook {
    font-size: 0.78rem;
  }
  .hero {
    padding: 26px 16px 34px;
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
  }

  .hero-hud {
    top: calc(22px + env(safe-area-inset-top));
    left: 18px;
    right: 18px;
  }

  .hero-hud-card {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
  }
  .hero-hud-line2 {
    margin-top: 4px;
    letter-spacing: 0.22em;
  }

  .hero-content {
    padding-top: 56px;
  }

  .hero-kicker {
    letter-spacing: 0.14em;
    font-size: 0.76rem;
  }
  .hero-top {
    /* Slightly stronger glass for readability without blocking the photo */
    padding: calc(12px + 1.5rem) 14px 12px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
      0 18px 60px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

  .hero-panel {
    /* Increase gap by +0.5rem on mobile as well */
    margin-top: calc(1rem + 0.5rem);
    /* Keep the gold box as the high-contrast anchor */
    background: rgba(0, 0, 0, 0.68);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .hero-title {
    font-size: clamp(2.05rem, 8.2vw, 3.05rem);
    line-height: 1.14;
    text-shadow:
      0 2px 0 rgba(0, 0, 0, 0.8),
      0 10px 26px rgba(0, 0, 0, 0.72);
  }

  .hero-subtitle {
    font-style: italic;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.75);
  }

  /*.hero::before {
        transform: scale(1);
        background-position: 40% center;
      }*/

  /* Mobile-specific top-heavy gradient: fades out by ~40% height */
  .hero::after {
    /* overlay handled in ::before now */
  }

  .hero-meta {
    margin-top: 2rem;
    text-align: center;
    font-weight: 600;
    color: rgba(245, 245, 245, 0.8);
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.75);
  }

  .hero-meta-line {
    display: block; /* stack logistics vertically */
    padding: 4px 0; /* equal spacing between lines */
  }

  .hero-meta-line2::before {
    content: ''; /* no bullet when stacked */
  }

  /* Mobile: show the 50/50 hook in the gold box, hide unused subline */
  .hero-offer-sub {
    display: none;
  }

  .hero-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* equal vertical spacing between lines */
  }

  .hero-offer-title {
    display: block;
    font-size: 1.06rem; /* more prominent on mobile too */
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-align: center;
    color: var(--color-accent);
    text-shadow:
      0 5px 16px rgba(0, 0, 0, 0.55),
      0 0 18px rgba(255, 204, 0, 0.24);
    margin: 0; /* spacing handled by gap */
  }

  .hero-actions {
    margin-top: 0;
  } /* spacing handled by gap */

  .hero-fineprint {
    margin-top: 0; /* spacing handled by gap */
    font-size: 0.8rem; /* very small */
    color: rgba(245, 245, 245, 0.8); /* subtle */
    text-align: center;
  }

  .hero-meta {
    font-size: 0.9rem; /* slightly tighter on small screens */
    white-space: normal; /* allow wrap if needed to avoid clipping */
    overflow: visible;
    text-overflow: clip;
  }

  .hero-actions {
    margin-top: 12px;
  }

  .hero-panel {
    padding: 18px 16px 18px; /* extra gap above 50/50 and below View Programme */
  }

  .schedule-list {
    gap: 1.5rem;
  }
  .schedule-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .schedule-time {
    font-size: 0.88rem;
  }
}

/* Ultra-narrow mobile trims (reduce visual noise) */
@media (max-width: 420px) {
  /* Keep both HUD items but condense to a single line each; show Age instead of Dress Code */
  .hero-hud-card {
    width: auto;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    opacity: 0.95;
  }
  /* Default: hide second lines */
  .hero-hud-line2 {
    display: none;
  }

  /* Keep presenter credit but deemphasize */
  .hero-presented {
    display: block;
    font-size: 0.58rem;
    opacity: 0.75;
    margin-top: 6px;
  }

  .hero-title {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
    line-height: 1.1;
  }
  .hero-hook {
    font-size: 0.82rem;
  }
  .hero-price {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: none;
  }
  .hero-actions {
    gap: 8px;
  }
  .hero-link {
    font-size: 0.86rem;
    letter-spacing: 0.08em;
  }
  .hero-content {
    gap: 14px;
  }
}

/* Keep CTA visible without covering content on very small screens */
@supports (position: sticky) {
  @media (max-width: 420px) {
    .hero .cta-btn {
      position: sticky;
      bottom: 12px;
      z-index: 3;
    }
  }
}

/* Show 'Three‑course' on wide screens and '3‑course' on narrow screens */
.price-courses-wide {
  display: inline;
}
.price-courses-narrow {
  display: none;
}
@media (max-width: 420px) {
  .price-courses-wide {
    display: none;
  }
  .price-courses-narrow {
    display: inline;
  }
}
/* Extend mobile behavior for devices with wider CSS viewports (e.g., Firefox mobile) */
@media (max-width: 600px) {
  .price-courses-wide {
    display: none;
  }
  .price-courses-narrow {
    display: inline;
  }
  .hero-price {
    text-transform: none;
    letter-spacing: 0.04em;
  }
}
/* Application form */
.apply-form {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.apply-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.apply-form label {
  display: block;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin: 10px 0 6px;
  color: rgba(255, 255, 255, 0.86);
}
.apply-form input,
.apply-form select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 1rem;
}
/* Safari/iOS: remove native styling on selects and add custom arrow */
.apply-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23e8e8e8' d='M1.41.59 6 5.17 10.59.59 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  padding-right: 40px; /* space for arrow */
  line-height: 1.2;
}
/* Dark dropdown menu and options */
.apply-form select option {
  background: #0b0b0d;
  color: #fff;
}
.apply-form input::placeholder {
  color: rgba(232, 232, 232, 0.55);
}
.apply-form input:focus,
.apply-form select:focus {
  outline: 2px solid rgba(212, 175, 55, 0.55);
  outline-offset: 2px;
}
.apply-form .form-actions {
  margin-top: 16px;
  text-align: center;
}
.apply-form .status {
  margin-top: 10px;
  text-align: center;
  font-size: 0.95rem;
}
.apply-form .status.error {
  color: #ffb3b3;
}
.apply-form .full {
  grid-column: 1 / -1;
}
.apply-form.fade-out {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 280ms ease,
    transform 280ms ease;
  pointer-events: none;
}
.apply-success {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: rgba(232, 232, 232, 0.92);
}
.form-note {
  margin-top: 10px;
  font-size: 0.88rem;
  color: rgba(232, 232, 232, 0.78);
  text-align: center;
  font-style: italic;
}
.apply-success h3 {
  margin: 0 0 10px;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 850;
  font-size: 1.02rem;
}
.apply-success p {
  margin: 8px 0;
  line-height: 1.6;
  color: rgba(232, 232, 232, 0.88);
}
.process-summary {
  max-width: 600px;
  margin: 10px auto 2rem;
  padding: 0;
  background: transparent;
  border: none;
  border-left: none;
  border-radius: 0;
  text-align: center;
  font-style: italic;
  color: rgba(232, 232, 232, 0.8);
  font-size: 0.95rem;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .apply-form .form-row {
    grid-template-columns: 1fr;
  }
}
