/* LuckyDrive brand: green #006633, gold #d4af37, orange CTA #f34213,
   dark #363636, gray #829399, font Rubik (same as luckydrive.bg) */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #006633;
  --green-dark: #0c5229;
  --gold: #d4af37;
  --orange: #f34213;
  --orange-dark: #d9370b;
  --ink: #363636;
  --muted: #829399;
  --bg: #f7f7f7;
  --line: #e3e3e3;
  --error: #e40000;
}

html { -webkit-text-size-adjust: 100%; }

body {
  min-width: 320px;
  background: var(--bg);
  font-family: 'Rubik', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

.site-header {
  background: var(--green);
  padding: 18px 20px;
  display: flex;
  justify-content: center;
}

.site-logo { height: 44px; }

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.form-title {
  font-size: 26px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 8px;
}

.form-intro {
  color: var(--muted);
  margin-bottom: 24px;
}

.section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}

.section-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.question { margin-bottom: 18px; }
.question:last-child { margin-bottom: 0; }

.q-label {
  display: block;
  font-weight: 400;
  margin-bottom: 8px;
}

.q-required { color: var(--orange); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-weight: 300;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 16px; /* prevents iOS zoom */
}

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

input:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(0, 102, 51, 0.15);
}

.choices { display: flex; flex-direction: column; gap: 8px; }

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.choice:hover { border-color: var(--gold); }

.choice input { margin-top: 3px; accent-color: var(--green); flex-shrink: 0; }

.choice input:checked + span { font-weight: 400; }

.choice:has(input:checked) {
  border-color: var(--green);
  background: rgba(0, 102, 51, 0.05);
}

.follow-up, .other-input { margin-top: 10px; }

.follow-up .q-label, .other-input .q-label {
  font-size: 14px;
  color: var(--muted);
}

.question.invalid input[type="text"],
.question.invalid input[type="email"],
.question.invalid input[type="tel"],
.question.invalid input[type="date"],
.question.invalid textarea { border-color: var(--error); }

.q-error {
  display: none;
  color: var(--error);
  font-size: 13px;
  margin-top: 6px;
}

.question.invalid .q-error { display: block; }

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.turnstile-container { margin-bottom: 16px; }
.turnstile-container:empty { display: none; }

.submit-btn {
  display: block;
  width: 100%;
  background: var(--orange);
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  border: none;
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  transition: background .15s;
}

.submit-btn:hover { background: var(--orange-dark); }
.submit-btn:disabled { background: var(--muted); cursor: not-allowed; }

.privacy-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
}

.state-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  margin-bottom: 20px;
}

.state-box.error {
  border-color: var(--error);
  color: var(--error);
  background: #fff5f5;
}

.state-box.success {
  border-color: var(--green);
  color: var(--ink);
  padding: 40px 24px;
}

.success-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 30px;
  line-height: 56px;
}

.state-box.success h2 {
  color: var(--green);
  font-weight: 500;
  margin-bottom: 8px;
}

.site-footer {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 13px;
}

.hidden { display: none !important; }

@media (min-width: 600px) {
  .page { padding-top: 36px; }
  .section { padding: 26px; }
  .submit-btn { max-width: 360px; margin: 0 auto; }
}
