/* ===========================
   HYBRID THEME (DAY + NIGHT)
   =========================== */

/* Root variables for DAY MODE */
:root {
  --bg: #f8f5e9;
  --text: #1f2937;
  --muted: rgba(31, 41, 55, 0.75);
  --card: #ffffff;
  --border: #d8cfc0;
  --accent: #1a73e8;
  --btn-text: #ffffff;
  --shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  --radius: 12px;

  /* extras */
  --input-bg: rgba(255, 255, 255, 0.92);
  --chip-bg: rgba(0, 0, 0, 0.02);
}

/* NIGHT MODE variables (applied by JS via .dark-mode on body) */
.dark-mode {
  --bg: #0d1b2a;
  --text: #e9eef5;
  --muted: rgba(233, 238, 245, 0.78);
  --card: #16222f;
  --border: #2e4153;
  --accent: #ffcc66;
  --btn-text: #0b1220;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.35);

  /* extras */
  --input-bg: rgba(255, 255, 255, 0.06);
  --chip-bg: rgba(255, 255, 255, 0.04);
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  transition: background 0.35s ease, color 0.35s ease;
  line-height: 1.45;
}

a { color: inherit; }

/* Container */
.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

/* Top Bar */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.dark-mode .top-bar {
  background: rgba(22, 34, 47, 0.78);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.event-logo {
  height: 50px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: 13px;
  opacity: 0.92;
  color: var(--muted);
}

.tagline {
  font-size: 13px;
  opacity: 0.92;
  color: var(--muted);
}

/* Hero Section */
.hero {
  padding: 48px 0 28px;
}

.hero-inner {
  display: flex;
  align-items: center;
}

.hero-text .eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-size: 36px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 16px;
  margin-top: 12px;
  color: var(--muted);
  max-width: 760px;
}

/* Buttons */
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--btn-text);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 900;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
  min-height: 46px;
}

.primary-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.primary-btn:active { transform: translateY(0px); }

/* Secondary button (used in thankyou + step back) */
.btn,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  min-height: 46px;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  transition: transform 0.15s ease, opacity 0.2s ease;
}

/* Survey Section */
.survey {
  margin-top: 16px;
  padding-bottom: 44px;
}

.survey h2 {
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.survey-form {
  margin-top: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: background 0.35s ease, border-color 0.35s ease;
}

/* Grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field.full-width {
  grid-column: span 2;
}

/* Labels */
label, legend {
  margin-bottom: 8px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.01em;
}

/* Inputs */
input, select, textarea {
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, background 0.2s ease;
}

input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; }

input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.18);
  border-color: rgba(26, 115, 232, 0.55);
}

.dark-mode input:focus,
.dark-mode select:focus,
.dark-mode textarea:focus {
  box-shadow: 0 0 0 4px rgba(255, 204, 102, 0.18);
  border-color: rgba(255, 204, 102, 0.55);
}

/* Fieldsets clean */
fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

/* Existing checkbox row */
.checkbox-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
}

/* Pill-style options (existing) */
.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--chip-bg);
  transition: transform 0.15s ease, opacity 0.2s ease, background 0.3s ease;
  user-select: none;
}

.checkbox-row label:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.checkbox-row input[type="checkbox"],
.checkbox-row input[type="radio"] {
  width: 16px;
  height: 16px;
}

/* NEW: option chips used by the redesigned index.html */
.option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--chip-bg);
  font-weight: 900;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, opacity 0.2s ease, background 0.3s ease;
}

.chip:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.chip input[type="checkbox"],
.chip input[type="radio"] {
  width: 16px;
  height: 16px;
}

/* Helpers */
.helper, small {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.4;
  font-size: 13px;
}

/* NEW: step indicator (2-step form) */
.stepbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 14px;
}

.stepdot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
}

.dark-mode .stepdot {
  background: rgba(255,255,255,0.25);
}

.stepdot.active {
  background: rgba(0,0,0,0.75);
}

.dark-mode .stepdot.active {
  background: rgba(255,255,255,0.8);
}

.steplabel {
  font-size: 13px;
  color: var(--muted);
}

/* NEW: Optional section styling (details/summary) */
details.optional {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(255,255,255,0.55);
}

.dark-mode details.optional {
  background: rgba(255,255,255,0.04);
}

details.optional > summary {
  font-weight: 900;
  cursor: pointer;
  list-style: none;
  outline: none;
}

details.optional > summary::-webkit-details-marker { display: none; }

/* NEW: consent row */
.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.55);
}

.dark-mode .consent-row {
  background: rgba(255,255,255,0.04);
}

/* Mobile Responsive */
@media (max-width: 700px) {
  .hero { padding: 36px 0 18px; }

  .hero h1 { font-size: 28px; }

  .container { padding: 16px; }

  .form-grid { grid-template-columns: 1fr; }

  .form-field.full-width { grid-column: span 1; }

  .top-bar-inner { align-items: flex-start; }

  .survey-form { padding: 18px; }

  .checkbox-row label,
  .chip {
    padding: 10px 10px;
  }

  .event-logo { height: 44px; }
}
