:root {
  --navy: #071b35;
  --blue: #0f4c81;
  --cyan: #00a8b5;
  --green: #21b573;
  --ink: #17212b;
  --muted: #5f6f7f;
  --line: #d9e2ec;
  --surface: #ffffff;
  --soft: #f3f7fb;
  --shadow: 0 18px 45px rgba(7, 27, 53, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.6;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: #fff;
  color: var(--navy);
  transform: translateY(-110%);
}

.skip-link:focus { transform: translateY(0); }

.hero {
  min-height: 720px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(2, 13, 29, .92) 0%, rgba(7, 27, 53, .78) 48%, rgba(7, 27, 53, .18) 100%),
    url('hisense-bg.jpg') center / cover no-repeat;
}

.hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.hero-nav a { text-decoration: none; }
.hero-nav > a:last-child { font-weight: 700; }

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.hero-content {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(6rem, 11vw, 10rem) 0 6rem;
}

.hero-content > * { max-width: 760px; }

.eyebrow {
  margin: 0 0 .85rem;
  color: #7ae3e8;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.eyebrow.dark { color: var(--cyan); }

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  line-height: 1.03;
  letter-spacing: -.055em;
}

.lead {
  margin-bottom: 1.75rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #e6eef7;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2rem;
}

.hero-facts span {
  padding: .45rem .75rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(7, 27, 53, .42);
  font-size: .9rem;
}

.primary-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .85rem 1.4rem;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #2bd27f, #16a766);
  color: #042719;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(22, 167, 102, .25);
  cursor: pointer;
}

.primary-button:hover,
.submit-button:hover { filter: brightness(.96); }

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 6rem 0;
}

.section-heading { max-width: 760px; }

.section-heading h2,
.registration-copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.section-heading > p:last-child,
.registration-copy > p { color: var(--muted); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.feature-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 25px rgba(7, 27, 53, .06);
}

.feature-card h3 { margin-bottom: .65rem; color: var(--blue); }
.feature-card p { margin-bottom: 0; color: var(--muted); }
.feature-number { display: block; margin-bottom: 1rem; color: var(--cyan); font-size: 2rem; font-weight: 800; }
.accent-card { border-top: 4px solid var(--green); }

.registration-section {
  padding: 6rem max(1rem, calc((100% - 1180px) / 2));
  color: #fff;
  background:
    linear-gradient(rgba(2, 13, 29, .82), rgba(2, 13, 29, .88)),
    url('hisense-bg.jpg') center / cover fixed no-repeat;
}

.registration-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(520px, 1.2fr);
  align-items: start;
  gap: 4rem;
}

.registration-copy { position: sticky; top: 2rem; }
.registration-copy > p { color: #d9e6f2; }
.registration-copy ul { padding-left: 1.2rem; }
.registration-copy li { margin-bottom: .65rem; }

.registration-form {
  padding: clamp(1.35rem, 4vw, 2.5rem);
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  color: var(--ink);
  box-shadow: var(--shadow);
}

fieldset {
  min-width: 0;
  margin: 0 0 2rem;
  padding: 0;
  border: 0;
}

legend {
  width: 100%;
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 800;
}

label {
  display: grid;
  gap: .4rem;
  margin-bottom: 1rem;
  font-size: .93rem;
  font-weight: 700;
}

.optional { color: var(--muted); font-weight: 500; }

input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: .72rem .8rem;
  border: 1px solid #bdc9d6;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

select[multiple] { min-height: 140px; }
textarea { resize: vertical; }

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(0, 168, 181, .35);
  outline-offset: 2px;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.date-grid { display: grid; gap: 1rem; }

.date-pair-group {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}

.date-pair-group h3 {
  margin: 0 0 .75rem;
  color: var(--blue);
  font-size: 1rem;
}

.training-day-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}

.training-day-option {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  min-height: 76px;
  margin: 0;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.training-day-option > span {
  flex: 1;
  min-width: 0;
}

.training-day-option:has(input:checked) {
  border-color: var(--cyan);
  background: #eefcfd;
  box-shadow: 0 0 0 2px rgba(0, 168, 181, .12);
}

.training-day-option.is-full {
  opacity: .52;
  cursor: not-allowed;
}

.training-day-option input,
.consent input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--blue);
}

.training-day-option strong { display: block; font-size: .95rem; }
.training-day-option small { display: block; margin-top: .15rem; color: var(--muted); font-weight: 500; }

.availability-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  margin-top: .6rem;
  padding: .38rem .55rem;
  border: 1px solid #b9e7e9;
  border-radius: 6px;
  background: #eafafa;
  color: #08727a;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
}

.availability-status b {
  color: var(--blue);
  font-size: .9rem;
  white-space: nowrap;
}

.availability-status.is-full {
  border-color: #e7c5c5;
  background: #fff1f1;
  color: #9f2525;
}

.availability-status.is-full b { color: #9f2525; }
.field-help { margin: -.35rem 0 1rem; color: var(--muted); font-size: .86rem; }
.selection-help { margin: .8rem 0 0; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin: 0 0 1.25rem;
  color: #465564;
  font-size: .84rem;
  font-weight: 500;
}

.submit-button { width: 100%; font-size: 1.05rem; }
.privacy-note { margin: .85rem 0 0; color: var(--muted); font-size: .78rem; text-align: center; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem max(1rem, calc((100% - 1180px) / 2));
  background: #020d1d;
  color: #cbd7e4;
  font-size: .85rem;
}

footer p { margin: 0; }
footer a { color: #7ae3e8; }

.response-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(2, 13, 29, .78), rgba(2, 13, 29, .88)),
    url('hisense-bg.jpg') center / cover no-repeat;
}

.response-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.25rem;
}

.response-card {
  width: min(650px, 100%);
  padding: clamp(2rem, 6vw, 4rem);
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  text-align: center;
  box-shadow: var(--shadow);
}

.response-card h1 { margin-bottom: 1rem; color: var(--navy); font-size: clamp(2rem, 6vw, 3.2rem); }
.response-card > p:not(.eyebrow) { color: var(--muted); }
.response-icon { width: 64px; height: 64px; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--green); }
.response-icon::after { content: "✓"; color: #fff; font-size: 2.3rem; font-weight: 800; line-height: 64px; }
.response-card.warning .response-icon { background: #f59e0b; }
.response-card.warning .response-icon::after { content: "!"; }
.response-card.error .response-icon { background: #dc2626; }
.response-card.error .response-icon::after { content: "×"; }
.response-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }
.text-link { color: var(--blue); font-weight: 700; }

@media (max-width: 900px) {
  .hero { min-height: 620px; background-position: 64% center; }
  .feature-grid { grid-template-columns: 1fr; }
  .registration-section { background-attachment: scroll; }
  .registration-layout { grid-template-columns: 1fr; gap: 2rem; }
  .registration-copy { position: static; }
}

@media (max-width: 620px) {
  .hero { background-position: 58% center; }
  .hero-content { padding-top: 5rem; }
  .section, .registration-section { padding-top: 4rem; padding-bottom: 4rem; }
  .two-columns, .training-day-grid { grid-template-columns: 1fr; }
  .registration-form { border-radius: 12px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
