:root {
  --navy: #142744;
  --navy-soft: #294b68;
  --gold: #b99a4e;
  --gold-dark: #a88842;
  --gold-light: #d4bf7e;
  --paper: rgba(255, 255, 255, 0.95);
  --ink: #101b29;
  --muted: #53606c;
  --line: rgba(20, 39, 68, 0.34);
  --display: "Arial Narrow", "Aptos Narrow", Arial, sans-serif;
  --body: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background: #cfdae4;
  color: var(--ink);
  font-family: var(--body);
}
a { color: inherit; text-decoration: none; }
.skip-link {
  position: fixed;
  z-index: 5;
  top: -60px;
  left: 18px;
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  transition: top 180ms ease;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 3px 18px rgba(26, 48, 73, 0.18);
  padding: 8px max(5vw, calc((100vw - 1180px) / 2));
}
.brand,
.document-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-logo { display: block; width: 154px; height: 50px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 28px; }
nav a {
  color: #151515;
  font-size: 12px;
  transition: color 180ms ease;
}
nav a:hover,
nav a:focus-visible { color: var(--gold); }
.contact-link {
  border-radius: 4px;
  background: linear-gradient(100deg, #a88842, #c8ad66);
  color: #fff;
  padding: 12px 17px;
}
nav .contact-link:hover { color: #fff; filter: brightness(1.08); }

.page-shell {
  min-height: calc(100dvh - 66px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(185, 203, 218, 0.58), rgba(239, 230, 219, 0.36)),
    url("assets/muay-thai-pavilion-v3.png") center / cover no-repeat;
  padding: 30px 4vw 42px;
}
.form-card {
  width: min(100%, 1040px);
  margin: 0 auto;
  border-radius: 7px;
  background: var(--paper);
  box-shadow: 0 17px 48px rgba(18, 37, 61, 0.3);
  padding: 30px 30px 25px;
}
.form-header {
  display: grid;
  grid-template-columns: 285px 1fr;
  align-items: center;
  gap: 23px;
  border-bottom: 1px solid var(--gold);
  padding: 0 0 19px;
}
.document-brand { border-right: 1px solid var(--gold); padding-right: 22px; }
.document-brand img { width: 250px; height: 88px; object-fit: contain; }
.form-title p,
.form-title h1,
.form-title span {
  display: block;
  margin: 0;
  font-family: var(--display);
  text-transform: uppercase;
}
.form-title p { color: var(--gold-dark); font-size: 13px; font-weight: 800; letter-spacing: 0.05em; }
.form-title h1 { max-width: 660px; font-size: clamp(24px, 2.65vw, 34px); line-height: 0.98; }
.form-title span { margin-top: 5px; font-size: 12px; line-height: 1.1; }

.form-section { padding-top: 19px; }
.form-section h2 {
  margin: 0 0 11px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}
.form-section h2 span {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.form-section h2 small { font-size: 14px; }
.association-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 26px;
}
.stack { display: grid; gap: 10px; }
.form-grid { display: grid; gap: 10px 18px; }
.coordinator-grid { grid-template-columns: repeat(6, 1fr); }
.coordinator-grid label:nth-child(1) { grid-column: span 1; }
.coordinator-grid label:nth-child(2) { grid-column: span 2; }
.coordinator-grid label:nth-child(3) { grid-column: span 3; }
.coordinator-grid label:nth-child(n + 4) { grid-column: span 3; }
.collaboration-grid { grid-template-columns: 1fr 1fr; }
label span {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}
label b { color: #af2930; }
input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid #7890a3;
  border-radius: 4px;
  outline: none;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font: 500 13px/1.35 var(--body);
  padding: 8px 10px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
textarea { min-height: 62px; resize: vertical; }
input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(185, 154, 78, 0.18);
}
::placeholder { color: #8a969e; }
.map-panel {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  padding: 5px 0 0;
}
.map-panel img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: contain;
}
.map-legend {
  position: absolute;
  bottom: 2px;
  left: 14px;
  display: grid;
  gap: 5px;
}
.map-legend i {
  display: block;
  width: 38px;
  height: 8px;
  background: linear-gradient(90deg, var(--gold), rgba(185, 154, 78, 0.15));
}
.map-legend i:last-child { background: linear-gradient(90deg, var(--navy-soft), rgba(41, 75, 104, 0.15)); }
.consent {
  display: grid;
  grid-template-columns: 17px 1fr;
  gap: 8px;
  margin-top: 18px;
}
.consent input { width: 16px; height: 16px; min-height: 0; accent-color: var(--gold); }
.consent span { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.45; }
.form-error { margin: 10px 0 0; color: #af2930; font-size: 12px; }
.form-actions { display: flex; justify-content: center; gap: 10px; margin-top: 15px; }
button {
  min-height: 40px;
  border: 1px solid var(--navy);
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0 19px;
  text-transform: uppercase;
  transition: background 180ms ease, transform 180ms ease, filter 180ms ease;
}
button:active { transform: translateY(1px); }
.secondary-button { background: #fff; color: var(--navy); }
.secondary-button:hover { background: #eef2f4; }
.submit-button { border-color: var(--gold); background: linear-gradient(100deg, #a88842, #c8ad66); color: #fff; }
.submit-button:hover { filter: brightness(1.08); }
.submit-button:disabled { cursor: wait; opacity: 0.7; }
.success-message { min-height: 510px; padding: 135px 10%; text-align: center; }
.success-message p { margin: 0; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.success-message h2 { margin: 12px 0; color: var(--navy); font-family: var(--display); font-size: 42px; text-transform: uppercase; }
.success-message span { color: var(--muted); font-size: 14px; line-height: 1.6; }

@media (max-width: 820px) {
  nav a:not(.contact-link) { display: none; }
  .page-shell { padding: 18px 3vw 28px; }
  .form-card { padding: 22px 20px; }
  .form-header { grid-template-columns: 1fr; gap: 12px; }
  .document-brand { width: fit-content; border-right: 0; }
  .association-grid { grid-template-columns: 1fr; }
  .map-panel { display: none; }
}
@media (max-width: 600px) {
  .site-header { min-height: 59px; padding-right: 4vw; padding-left: 4vw; }
  .brand-logo { width: 132px; height: 43px; }
  .contact-link { padding: 10px 13px; }
  .form-card { padding: 18px 15px; }
  .document-brand img { width: 235px; height: 78px; }
  .form-title h1 { font-size: 27px; }
  .form-title span { font-size: 10px; }
  .coordinator-grid { grid-template-columns: 1fr; }
  .coordinator-grid label:nth-child(n) { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
