@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500&family=Archivo+Black&display=swap');

:root {
  --navy: #001123;
  --navy-card: #112342;
  --navy-deep: #00091a;
  --cream: #fffaf3;
  --cream-70: rgba(255, 250, 243, 0.7);
  --cream-45: rgba(255, 250, 243, 0.45);
  --cream-22: rgba(255, 250, 243, 0.22);
  --cream-12: rgba(255, 250, 243, 0.12);
  --cream-10: rgba(255, 250, 243, 0.1);
  --gold: #eac778;
  --gold-45: rgba(234, 199, 120, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #031022 url('assets/background.jpg') center center / cover no-repeat fixed;
  color: var(--cream);
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  display: flex;
  flex-direction: column;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.accent { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-family: 'Archivo', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 26px;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.05s ease;
}
.btn:active { transform: translateY(1px); }
.btn:hover { opacity: 0.88; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid var(--cream-22); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.enter-hint { font-size: 12px; color: rgba(0,17,35,0.6); font-weight: 500; }
@media (max-width: 600px) { .enter-hint { display: none; } }

/* Header */
.d-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  flex-shrink: 0;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { height: 32px; width: auto; object-fit: contain; }
.d-header-note { font-size: 13px; letter-spacing: 2.4px; color: var(--cream-45); text-transform: uppercase; }

/* Progress */
.progress { height: 4px; width: 100%; background: var(--cream-12); flex-shrink: 0; }
.progress-bar { height: 100%; width: 0; background: var(--gold); transition: width 0.35s ease; }

/* Main */
.d-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.step {
  width: 100%;
  max-width: 720px;
  display: none;
  flex-direction: column;
  gap: 22px;
}
.step.active { display: flex; animation: stepIn 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.q-index { font-size: 14px; letter-spacing: 2.5px; color: var(--gold); font-weight: 500; }
.q-title {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: -0.5px;
  color: var(--cream);
}
.q-help { font-size: 16px; color: var(--cream-70); line-height: 1.5; margin-top: -8px; }

/* Inputs */
.q-input, .q-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--cream-22);
  color: var(--cream);
  font-family: 'Archivo', sans-serif;
  font-size: 24px;
  font-weight: 500;
  padding: 10px 2px;
  outline: none;
  transition: border-color 0.15s ease;
}
.q-input::placeholder, .q-textarea::placeholder { color: var(--cream-45); }
.q-input:focus, .q-textarea:focus { border-color: var(--gold); }
.q-textarea { resize: vertical; min-height: 90px; border: 2px solid var(--cream-22); border-radius: 14px; padding: 16px; font-size: 19px; }
.q-textarea:focus { border-color: var(--gold); }

input[type="date"].q-input { color-scheme: dark; max-width: 320px; }

/* Choice options */
.options { display: flex; flex-direction: column; gap: 12px; }
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--navy-card);
  border: 1px solid var(--cream-12);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option:hover { border-color: var(--cream-22); }
.option.selected { border-color: var(--gold); background: rgba(234,199,120,0.08); }
.option-key {
  width: 26px; height: 26px;
  flex-shrink: 0;
  border: 1px solid var(--cream-22);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--cream-70);
}
.option.selected .option-key { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.option-label { font-size: 17px; color: var(--cream); }

/* Scale 1-10 */
.scale { display: flex; flex-wrap: wrap; gap: 10px; }
.scale-btn {
  width: 52px; height: 52px;
  border: 1px solid var(--cream-22);
  background: var(--navy-card);
  border-radius: 12px;
  color: var(--cream);
  font-family: 'Archivo', sans-serif;
  font-size: 18px; font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.scale-btn:hover { border-color: var(--cream-22); background: var(--navy-deep); }
.scale-btn.selected { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.scale-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--cream-45); max-width: 660px; }

.field-error { font-size: 14px; color: #e89090; min-height: 18px; }

/* Intro & thank-you */
.intro .q-title, .thanks .q-title { font-size: 44px; }
.intro-sub { font-size: 19px; color: var(--cream-70); line-height: 1.55; max-width: 560px; }
.intro-mark, .thanks-mark { width: 60px; height: 60px; object-fit: cover; margin-bottom: 4px; }
.quick-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  background: transparent;
  color: var(--cream);
  padding: 0;
  border-radius: 0;
  font-size: 12pt;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.2px;
}
.quick-badge-icon,
.ClockSVG-sc-__sc-1j3qdaw-0.bLHlrl {
  width: 12pt;
  height: 12pt;
  flex: 0 0 auto;
  color: currentColor;
  fill: currentColor;
  stroke: currentColor;
}

/* Footer */
.d-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-top: 1px solid var(--cream-12);
  flex-shrink: 0;
}
.step-counter { font-size: 13px; color: var(--cream-45); }
.nav-controls { display: flex; gap: 12px; align-items: center; }

@media (max-width: 600px) {
  .d-header, .d-main, .d-footer { padding-left: 22px; padding-right: 22px; }
  .q-title { font-size: 26px; }
  .intro .q-title, .thanks .q-title { font-size: 32px; }
  .q-input, .q-textarea { font-size: 20px; }
  .quick-badge { font-size: 12pt; }
}
