@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --color-black: #0d0d0d;
  --color-dark-card: #141414;
  --color-sand: #d4b886;
  --color-sand-hover: #c2a368;
  --color-sand-light: rgba(212, 184, 134, 0.12);
  --color-silver: #a3a3a3;
  --color-silver-light: #e5e5e5;
  --color-white: #ffffff;
  --color-error: #e4aaaa;
  --border-glass: rgba(255, 255, 255, 0.12);
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 10px 30px -10px rgba(212, 184, 134, 0.25);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  color: var(--color-silver-light);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button { border: 0; }

button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-sand);
  outline-offset: 2px;
}

.form-shell {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.form-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: rgba(20, 20, 20, 0.94);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), var(--shadow-glow);
}

.form-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.form-eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--color-sand);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-header h2 {
  color: var(--color-white);
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.2;
  margin-bottom: 0.55rem;
}

.form-header p {
  max-width: 400px;
  margin: 0 auto;
  color: var(--color-silver);
  font-size: 0.9rem;
}

.progress {
  display: flex;
  gap: 5px;
  margin-bottom: 2rem;
}

.progress-bar {
  height: 3px;
  flex: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.progress-bar.active { background: var(--color-sand); }

.step { display: none; }
.step.active {
  display: block;
  animation: stepIn 0.28s ease-out;
}

.question-number {
  margin-bottom: 0.45rem;
  color: var(--color-sand);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question {
  margin-bottom: 1.25rem;
  color: var(--color-white);
  font-family: 'Cinzel', serif;
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  line-height: 1.3;
}

.options {
  display: grid;
  gap: 0.7rem;
}

.option {
  width: 100%;
  padding: 1rem 1.1rem;
  color: var(--color-silver-light);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.option:hover {
  color: var(--color-white);
  background: var(--color-sand-light);
  border-color: rgba(212, 184, 134, 0.5);
  transform: translateY(-1px);
}

.option.selected {
  color: var(--color-white);
  background: var(--color-sand-light);
  border-color: var(--color-sand);
}

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--color-silver);
  font-size: 0.8rem;
}

.field input, .field textarea {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  outline: none;
  transition: var(--transition);
}

.field input:focus, .field textarea:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-sand);
  box-shadow: 0 0 0 3px rgba(212, 184, 134, 0.08);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input::placeholder, .field textarea::placeholder { color: #666; }
.field-help {
  margin-top: 0.4rem;
  color: #666;
  font-size: 0.7rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 0.25rem;
}

.checkbox-row input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 0.25rem;
  accent-color: var(--color-sand);
}

.checkbox-row label {
  color: var(--color-silver);
  font-size: 0.78rem;
  line-height: 1.5;
  cursor: pointer;
}

.actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  flex: 1;
  background: var(--color-sand);
  color: var(--color-black);
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-sand-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  color: var(--color-silver);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none !important;
  box-shadow: none !important;
}

.error {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  color: var(--color-error);
  background: rgba(160, 60, 60, 0.12);
  border: 1px solid rgba(200, 100, 100, 0.25);
  border-radius: 10px;
  font-size: 0.8rem;
}

.error.show { display: block; }

.success {
  display: none;
  min-height: 300px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 0.5rem;
}

.success.show {
  display: flex;
  animation: successIn 0.4s ease-out;
}

.success-inner {
  max-width: 380px;
  margin: 0 auto;
}

.success-mark {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border: 1px solid var(--color-sand);
  border-radius: 50%;
  color: var(--color-sand);
  font-size: 1.35rem;
}

.success h2 {
  margin-bottom: 0.6rem;
  color: var(--color-white);
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
}

.success p {
  color: var(--color-silver);
  font-size: 0.9rem;
  line-height: 1.7;
}

.privacy-note {
  margin-top: 1.25rem;
  color: #666;
  font-size: 0.7rem;
  text-align: center;
}

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

.loading-dot {
  display: inline-block;
  width: 0.9em;
  overflow: hidden;
  vertical-align: bottom;
  animation: dots 1.2s steps(4, end) infinite;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes successIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes dots {
  0% { width: 0; }
  25% { width: 0.3em; }
  50% { width: 0.6em; }
  75%, 100% { width: 0.9em; }
}

@media (max-width: 600px) {
  .form-card {
    padding: 1.5rem 1.25rem;
    border-radius: 18px;
  }
  .actions { gap: 0.6rem; }
  .btn { padding-left: 1rem; padding-right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}