:root {
  --slate-950: #0f172a;
  --navy-900: #0b1c3a;
  --gold-500: #d4af37;
  --rose-600: #e11d48;
  --blue-500: #3b82f6;
  --white: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.2);
  --shadow: 0 30px 80px rgba(8, 15, 35, 0.6);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.08), transparent 40%),
    radial-gradient(circle at 70% 20%, rgba(59, 130, 246, 0.08), transparent 45%),
    linear-gradient(135deg, #0f172a 0%, #0b1c3a 55%, #0f172a 100%);
  color: var(--white);
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.progress-track {
  position: sticky;
  top: 0;
  height: 2px;
  background: rgba(148, 163, 184, 0.15);
  z-index: 10;
}

.progress-bar {
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), #f5d78f);
  box-shadow: 0 0 0 transparent;
  transition: box-shadow 0.3s ease;
}

.progress-bar.moving {
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

.container {
  width: min(720px, 92vw);
  margin: 0 auto;
  padding: 48px 0 120px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.header small {
  color: var(--gold-500);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.card {
  background: rgba(11, 28, 58, 0.9);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card.vip {
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 45px rgba(212, 175, 55, 0.15), var(--shadow);
}

.card.emergency {
  border-color: rgba(225, 29, 72, 0.7);
  box-shadow: 0 0 45px rgba(225, 29, 72, 0.2), var(--shadow);
}

.step-title {
  font-size: 26px;
}

.step-subtitle {
  font-size: 15px;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.option-button {
  border: 1px solid var(--border);
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.6);
  color: var(--white);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  min-height: 52px;
  transition: border 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.option-button.selected {
  border-color: var(--gold-500);
  background: rgba(212, 175, 55, 0.12);
}

.option-button:hover {
  transform: translateY(-1px);
}

.input-field {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
  padding: 14px 16px;
  color: var(--white);
  font-size: 15px;
  outline: none;
}

.input-field::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.phone-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
}

.phone-field:focus-within {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25);
}

.phone-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex: 0 0 auto;
}

.phone-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.phone-code {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.phone-input {
  border: none;
  background: transparent;
  padding: 10px 0;
  flex: 1;
}

.phone-input:focus {
  outline: none;
}

.search-select {
  position: relative;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(11, 28, 58, 0.98);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 5;
}

.search-item {
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: rgba(212, 175, 55, 0.1);
}

.sticky-nav {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.9) 35%, rgba(15, 23, 42, 0.98) 100%);
  padding: 16px 0 28px;
  z-index: 5;
}

.nav-inner {
  width: min(720px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(120deg, var(--gold-500), #f5d78f);
  color: #1c1b12;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.25);
}

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

.back-link {
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-500);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.badge.emergency {
  background: rgba(225, 29, 72, 0.18);
  color: var(--rose-600);
  border-color: rgba(225, 29, 72, 0.5);
}

.pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.35);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(225, 29, 72, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
  }
}

.gauge {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0;
}

.gauge svg {
  width: 220px;
  height: 220px;
}

.gauge text {
  fill: var(--white);
  font-size: 28px;
  font-weight: 600;
}

.report-grid {
  display: grid;
  gap: 18px;
}

.report-block {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  padding: 18px;
}

.report-block h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.results-cta {
  margin-top: 12px;
}

.results-cta .btn {
  background: linear-gradient(120deg, var(--gold-500), #ffd166);
}

.time-icons {
  display: inline-flex;
  gap: 8px;
  margin-left: 8px;
}

.time-icons span {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(225, 29, 72, 0.5);
  color: var(--rose-600);
  font-size: 12px;
}

@media (min-width: 768px) {
  .container {
    padding: 64px 0 140px;
  }

  .card {
    padding: 36px;
  }

  .option-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
