/* Design tokens mirror webpage-service/public/styles.css so the booking
   page reads as part of the main site (light-only, same palette). */
:root {
  --navy: #0f2b5b;
  --navy-soft: #1a3d73;
  --accent: #3b82f6;
  --accent-strong: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #dbeafe;
  --accent-tint: #eff6ff;
  --text: #0f172a;
  --text-muted: #475569;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow-md: 0 16px 40px rgba(15, 43, 91, 0.12);
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--surface-2);
  color: var(--text);
}

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  display: flex;
  justify-content: center;
  padding: 40px 16px 72px;
  min-height: 100vh;
  position: relative;
}

/* Soft aurora backdrop, same hues as the main site's hero */
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 12% 8%, rgba(59, 130, 246, 0.18), transparent 60%),
    radial-gradient(34vmax 34vmax at 88% 4%, rgba(14, 165, 233, 0.14), transparent 62%),
    radial-gradient(36vmax 36vmax at 18% 92%, rgba(6, 182, 212, 0.1), transparent 60%);
  filter: blur(8px) saturate(1.1);
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.card {
  width: 100%;
  max-width: 880px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  overflow: hidden;
  align-self: flex-start;
}

.header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
}

.logo-link {
  flex-shrink: 0;
  display: inline-flex;
}

.logo {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
}

/* Styled like the main site's nav links */
.back-link {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.9rem;
  border-radius: 10px;
  color: var(--navy-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.back-link:hover {
  background: var(--surface-2);
  color: var(--navy);
}

.back-link__arrow {
  flex-shrink: 0;
}

html[dir="rtl"] .back-link__arrow {
  transform: scaleX(-1);
}

.header h1 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.header p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.body {
  padding: 24px 28px 28px;
}

.step-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0 0 12px;
}

.day-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 20px;
}

.day-pill {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  text-align: center;
  min-width: 76px;
  font-size: 12.5px;
  color: var(--navy-soft);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.day-pill:hover {
  border-color: var(--accent);
}

.day-pill b {
  display: block;
  font-size: 15px;
  color: var(--text);
}

.day-pill.is-active {
  border-color: var(--accent);
  background: var(--accent-tint);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px var(--accent-soft);
}

.day-pill.is-active b {
  color: var(--accent-strong);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.slot-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 9px 6px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.slot-btn:hover {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.slot-btn.is-selected {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.slot-btn.is-taken,
.slot-btn.is-taken:hover {
  background: var(--surface-2);
  border-color: var(--border);
  color: #94a3b8;
  cursor: not-allowed;
}

.empty-note {
  font-size: 13px;
  color: var(--text-muted);
  padding: 12px 0;
}

.form {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy-soft);
  margin-bottom: 5px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

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

.selected-summary {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.selected-summary strong {
  color: var(--text);
}

.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

/* Mirrors the site's .btn--primary pill */
.btn {
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  background: var(--accent-strong);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 10px 24px -10px rgba(37, 99, 235, 0.7);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 16px 34px -12px rgba(37, 99, 235, 0.72);
}

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

.form-error {
  font-size: 12.5px;
  color: var(--danger);
  min-height: 1em;
}

.confirmation {
  text-align: center;
  padding: 40px 20px;
}

.confirmation .check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
}

.confirmation h2 {
  margin: 0 0 8px;
  font-size: 19px;
  color: var(--navy);
}

.confirmation p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin: 0;
}

.hidden {
  display: none !important;
}

html[dir="rtl"] body {
  font-family: "Vazirmatn", "Plus Jakarta Sans", system-ui, sans-serif;
}

html[dir="rtl"] .day-list,
html[dir="rtl"] .submit-row {
  direction: rtl;
}

html[dir="rtl"] .slot-grid {
  direction: rtl;
}
