:root {
  --navy: #0b1f3a;
  --navy-light: #16305a;
  --white: #ffffff;
  --off-white: #f7f7f5;
  --gold: #b8924a;
  --gold-light: #d9bd85;
  --text: #14213b;
  --text-muted: #5b6472;
  --border: #e2e4e9;
  --danger: #b3261e;
  --danger-bg: #fbeceb;
  --success: #1e7a4c;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(11, 31, 58, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--off-white);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.page {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--off-white);
}

.page-header {
  background: var(--navy);
  padding: 28px 20px 22px;
  text-align: center;
}

.brand-name {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--white);
  letter-spacing: 0.02em;
}

.brand-sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.progress-nav {
  position: relative;
  padding: 18px 16px 6px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.back-btn {
  position: absolute;
  top: 16px;
  left: 12px;
  background: none;
  border: none;
  color: var(--navy-light);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
}

.back-btn:hover {
  background: var(--off-white);
}

.progress {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 380px;
  margin: 0 auto;
  padding-top: 2px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
  color: var(--text-muted);
}

.progress-step:not(:first-child)::before {
  content: '';
  position: absolute;
  top: 12px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.progress-step.done:not(:first-child)::before,
.progress-step.active:not(:first-child)::before {
  background: var(--gold-light);
}

.progress-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
}

.progress-step.active .progress-num {
  border-color: var(--gold);
  color: var(--gold);
}

.progress-step.done .progress-num {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.progress-label {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

.progress-step.active .progress-label {
  color: var(--navy);
}

.step-content {
  flex: 1;
  padding: 28px 20px 40px;
}

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

.step-subtitle {
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: 14.5px;
}

/* Option cards (service / meeting type) */
.option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.option-card:hover {
  border-color: var(--gold-light);
  box-shadow: var(--shadow);
}

.option-card.selected {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.option-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.option-duration {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12.5px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.option-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* Date chips */
.date-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 18px;
  -webkit-overflow-scrolling: touch;
}

.date-chip {
  flex: 0 0 auto;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}

.date-chip.selected {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.slot-area {
  min-height: 60px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

@media (min-width: 420px) {
  .slot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.slot-btn {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.slot-btn:hover {
  border-color: var(--gold-light);
}

.slot-btn.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.loading, .empty-text, .error-text {
  font-size: 14px;
  color: var(--text-muted);
  padding: 14px 0;
}

.error-text {
  color: var(--danger);
  background: var(--danger-bg);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* Forms */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}

.field input,
.field textarea {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  width: 100%;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.field textarea {
  resize: vertical;
  min-height: 90px;
  font-family: inherit;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  width: 100%;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover:not(:disabled) {
  background: var(--navy-light);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Summary card */
.summary-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.summary-row:last-of-type {
  border-bottom: none;
}

.summary-row span {
  color: var(--text-muted);
  flex-shrink: 0;
}

.summary-row strong {
  text-align: right;
  font-weight: 600;
  color: var(--navy);
}

.summary-row-block {
  flex-direction: column;
  gap: 4px;
}

.summary-row-block strong,
.summary-row-block p {
  text-align: left;
}

.summary-row-block p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  white-space: pre-wrap;
}

.tz-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.turnstile-container {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

/* Success */
.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--success);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 18px;
}

.page-footer {
  text-align: center;
  padding: 18px 20px 30px;
  color: var(--text-muted);
  font-size: 12px;
}

.page-footer p {
  margin: 0;
}
