:root {
  color-scheme: light;
  --ink: #444444;
  --muted: #626262;
  --line: #d8d8d8;
  --soft: #f7f7f7;
  --cyan: #20b8e5;
  --green: #7ee52b;
  --focus: #007d9f;
  --danger: #b42318;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fcfcfc;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: min(960px, calc(100% - 48px));
  margin: 40px auto 64px;
}

.hero {
  padding: 28px 36px 36px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 6px solid var(--cyan);
  border-radius: 20px;
}

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

.brand-divider {
  height: 2px;
  margin: 20px 0 26px;
  background: var(--green);
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 32px;
  align-items: end;
}

.hero-intro { min-width: 0; }
.hero p { margin: 0; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #525c61;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .15em;
}

.hero-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--green);
}

h1 {
  margin: 15px 0 22px;
  color: #24292d;
  font-size: clamp(40px, 6.4vw, 58px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.055em;
}

h1 span { display: block; }
.hero-title-accent { color: #007896; }

.hero .hero-lead {
  margin-bottom: 10px;
  color: #30373b;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.02em;
}

.hero-description {
  max-width: 49ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.hero-note {
  padding: 20px;
  border: 1px solid #d4ddd0;
  border-top: 3px solid var(--green);
  border-radius: 12px;
  background: #f0f5ed;
}

.hero-note-icon { display: block; margin-bottom: 16px; color: var(--focus); }

.hero-note-title {
  display: block;
  color: #303b2b;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -.015em;
}

.hero .hero-note-detail { margin-top: 8px; color: #53604c; font-size: 13px; line-height: 1.65; }
.hero-note-detail span { display: block; }

form {
  margin-top: 24px;
  padding: 0 40px 32px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type { border-bottom: 0; }

.section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-bottom: 22px;
}

.section-title h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.015em;
}

.section-title span { color: var(--muted); font-size: 13px; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field { min-width: 0; margin: 0 0 20px; }
.grid-2 .field { margin-bottom: 0; }
fieldset.field { padding: 0; border: 0; }

.main {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.req { color: var(--danger); }

input, select, textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #889095;
  border-radius: 8px;
  padding: 12px 13px;
  background: #ffffff;
  color: #333333;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color .15s, box-shadow .15s;
}

input:not([type="checkbox"]), select { min-height: 48px; }
input::placeholder, textarea::placeholder { color: #6b6b6b; opacity: 1; }

input:focus, select:focus, textarea:focus {
  border-color: var(--focus);
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

textarea { min-height: 120px; resize: vertical; }

.help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #b9bfc3;
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.choice:hover { background: var(--soft); }
.choice:has(input:checked) { border-color: var(--focus); background: #effafd; }

.choice:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.choice input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--focus);
}

.choice input:focus { outline: none; }

.upload {
  padding: 22px;
  border: 1px dashed #929a9f;
  border-radius: 10px;
  background: var(--soft);
}

.upload input {
  display: block;
  min-height: 44px;
  border: 0;
  padding: 4px 0;
  background: transparent;
  font-size: 14px;
}

.upload input::file-selector-button {
  min-height: 40px;
  margin-right: 12px;
  padding: 8px 12px;
  border: 1px solid #b9bfc3;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.upload input::file-selector-button:hover { background: #eeeeee; }

.submit-area { padding-top: 24px; border-top: 1px solid var(--line); }

button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid #333333;
  border-radius: 8px;
  background: #333333;
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

button:hover:not(:disabled) { background: #161616; }
button:active:not(:disabled) { transform: translateY(1px); }
button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

button:disabled {
  border-color: #d2d2d2;
  background: #e7e7e7;
  color: #535353;
  cursor: not-allowed;
}

input:disabled, select:disabled, textarea:disabled {
  opacity: 1;
  background: #f3f3f3;
  color: #626262;
  cursor: wait;
}

form:has(input:disabled) #submitBtn::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid #b0b0b0;
  border-top-color: #535353;
  border-radius: 50%;
  animation: submitting .8s linear infinite;
}

@keyframes submitting { to { transform: rotate(360deg); } }

.status {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.status.ok, .status.err { margin-top: 16px; padding: 14px 16px; border: 1px solid; }
.status.ok { border-color: #add98f; background: #eff9e9; color: #21400d; }
.status.err { border-color: #edb0aa; background: #fff0ee; color: #7a271a; }

.privacy {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.space-top { margin-top: 20px; }
#securityCheck { margin-bottom: 16px; }

noscript {
  display: block;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #edb0aa;
  border-radius: 8px;
  background: #fff0ee;
  color: #7a271a;
}

@media (max-width: 860px) {
  .hero-copy { grid-template-columns: 1fr; gap: 24px; }
  .hero-note { display: flex; align-items: center; gap: 16px; padding: 16px 18px; }
  .hero-note-icon { flex: 0 0 32px; width: 32px; height: 32px; margin-bottom: 0; }
  .hero .hero-note-detail { margin-top: 3px; }
  .hero-note-detail span { display: inline; }
  .hero-note-detail span + span::before { content: " · "; }
}

@media (max-width: 680px) {
  .page { width: calc(100% - 24px); margin: 16px auto 32px; }
  .hero { padding: 22px 20px 24px; border-left-width: 5px; border-radius: 16px; }
  .brand-logo { width: 198px; }
  .brand-divider { margin: 18px 0 22px; }
  h1 { margin: 13px 0 20px; font-size: clamp(32px, 8.2vw, 44px); }
  .hero .hero-lead { font-size: 18px; }
  .hero-description { font-size: 15px; }
  .hero-eyebrow { font-size: 10px; letter-spacing: .13em; }
  .hero-note { padding: 14px; gap: 12px; }
  .hero-note-title { font-size: 14px; }
  .hero .hero-note-detail { font-size: 12px; }
  form { margin-top: 16px; padding: 0 24px 24px; border-radius: 16px; }
  .section { padding: 26px 0; }
  .section-title { display: block; margin-bottom: 20px; }
  .section-title span { display: block; margin-top: 6px; }
  .grid-2 { grid-template-columns: 1fr; gap: 18px; }
  .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice { padding: 10px; font-size: 13px; }
  .upload { padding: 16px; }
}

/* Keep Turnstile's 300px challenge inside the card on narrow phones. */
@media (max-width: 400px) {
  #securityCheck { display: flex; justify-content: center; margin-inline: -24px; }
}

@media (max-width: 360px) {
  .page { width: calc(100% - 16px); }
  form { padding-right: 18px; padding-left: 18px; }
  .hero { padding-right: 18px; padding-left: 18px; }
  #vehicleExperience { grid-template-columns: 1fr; }
  #securityCheck { margin-inline: -18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
