@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #12111A;
  --surface: #1C1A29;
  --surface-2: #24222F;
  --border: #2c2a3d;
  --gold: #C9A15A;
  --violet: #7C6A9B;
  --text: #EDE9F0;
  --text-muted: #9C94AC;
  --success: #5FA97A;
  --error: #C1594A;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.site-logo {
  display: block;
  width: 50%;
  height: auto;
  margin: 0 auto 20px;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 34px;
  margin: 0 0 6px;
}

.hero p {
  color: var(--text-muted);
  margin-top: 0;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 32px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}

.reading-type {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  background: var(--surface-2);
  transition: border-color 0.15s ease;
}

.reading-type.selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }

.reading-type .name { font-weight: 600; font-size: 16px; }
.reading-type .meta { color: var(--text-muted); font-size: 13px; margin-top: 2px; }
.reading-type .price { font-family: 'Fraunces', serif; color: var(--gold); font-size: 18px; }

.calendar {
  margin-top: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cal-month {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  color: var(--text);
}

.cal-nav {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  font-family: 'Inter', sans-serif;
}

.cal-nav:disabled { opacity: 0.25; cursor: not-allowed; }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid transparent;
  background: none;
  color: var(--text);
  cursor: default;
  font-family: 'Inter', sans-serif;
  position: relative;
}

.cal-day.empty { visibility: hidden; }

.cal-day.unavailable {
  color: var(--text-muted);
  opacity: 0.35;
}

.cal-day.available {
  cursor: pointer;
  border-color: var(--border);
  background: var(--surface);
}

.cal-day.available .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 3px;
}

.cal-day.selected {
  background: var(--gold);
  color: #1a1720;
  font-weight: 600;
  border-color: var(--gold);
}

.cal-day.selected .dot { background: #1a1720; }

.cal-day.today:not(.selected) { border-color: var(--violet); }

.times-heading {
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.times-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.time-pill {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
}

.time-pill.selected { background: var(--gold); color: #1a1720; border-color: var(--gold); font-weight: 600; }

label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin: 14px 0 6px;
}

input[type=text], input[type=email], input[type=tel] {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.btn {
  background: var(--gold);
  color: #1a1720;
  border: none;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
  font-family: 'Inter', sans-serif;
}

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

.moon {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 4px 0 0 0 var(--gold);
  transform: scale(1);
  margin-right: 10px;
}

.note { color: var(--text-muted); font-size: 13px; }
.error-box { background: rgba(193,89,74,0.12); border: 1px solid var(--error); color: #e8a89e; padding: 12px 14px; border-radius: 8px; font-size: 13px; margin-top: 14px; }
.status-box { text-align: center; padding: 40px 24px; }
.status-box .moon-lg { width: 48px; height: 48px; border-radius: 50%; box-shadow: 18px 0 0 -2px var(--gold); margin: 0 auto 20px; }

.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.disclaimer input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.disclaimer label {
  margin: 0;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.payment-choice {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-option {
  flex: 1;
  min-width: 130px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
}

.payment-option input[type="radio"] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.payment-option:has(input:checked) {
  border-color: var(--gold);
}

.site-footer {
  position: fixed;
  bottom: 14px;
  right: 18px;
  display: flex;
  gap: 16px;
  z-index: 10;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.02em;
  opacity: 0.6;
  font-family: 'Inter', sans-serif;
}

/* Hover styles only apply on devices with real hover capability (a mouse).
   Touch devices don't have hover, and applying :hover on tap causes it to
   get visually "stuck" after navigating away and back (e.g. via the browser
   back button), since there's no pointer movement to clear it. */
@media (hover: hover) and (pointer: fine) {
  .reading-type:hover { border-color: var(--gold); }
  .cal-nav:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
  .cal-day.available:hover { border-color: var(--gold); }
  .time-pill:hover { border-color: var(--gold); }
  .btn:hover:not(:disabled) { filter: brightness(1.08); }
  .site-footer a:hover {
    opacity: 1;
    color: var(--gold);
  }
}
