:root {
  --ink-deep: #081726;
  --ink: #0E2436;
  --ink-raised: #15334C;
  --border: #1E3C56;
  --cloud: #EAF3F1;
  --steel: #7C93A6;
  --grow: #2FC98A;
  --aqua: #46C8E6;
  --pop: #FFD23F;
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 24px 16px;
  background: var(--ink-deep);
  color: var(--cloud);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* The embed iframe supplies its own background; don't double up. */
body.embedded { padding: 0; background: transparent; }

.card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card-head { margin-bottom: 24px; }

/* Green, not pop yellow: availability and good news share the green; yellow is
   reserved for the confirm button and the success mark. */
.offer-banner {
  margin: 0 0 20px;
  padding: 12px 14px;
  background: var(--ink-raised);
  border-left: 3px solid var(--grow);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}
.brand { margin: 0 0 4px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); }
h1 { margin: 0 0 4px; font-size: 22px; font-weight: 600; }
.tagline { margin: 0; color: var(--steel); font-size: 14px; }

.step-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.step-label { margin: 0; font-size: 15px; font-weight: 500; }

.link-back, .link-inline {
  background: none; border: none; padding: 0;
  color: var(--aqua); font-family: inherit; font-size: 13px; cursor: pointer;
}
.link-back:hover, .link-inline:hover { text-decoration: underline; }

/* --- booking types --- */
.type-list { display: flex; flex-direction: column; gap: 10px; }
.type-btn {
  display: block; width: 100%; text-align: left;
  background: var(--ink-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  color: var(--cloud); font-family: inherit; font-size: 15px; cursor: pointer;
  transition: border-color 120ms ease;
}
.type-btn:hover { border-color: var(--aqua); }
.type-btn strong { display: block; font-weight: 600; margin-bottom: 2px; }
.type-btn span { color: var(--steel); font-size: 13px; }

/* --- calendar --- */
.month-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-weight: 500; }
.nav-btn {
  background: var(--ink-raised); border: 1px solid var(--border); border-radius: 8px;
  color: var(--cloud); width: 32px; height: 32px; font-size: 18px; cursor: pointer; line-height: 1;
}
.nav-btn:disabled { opacity: 0.35; cursor: default; }

.weekday-row, .day-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.weekday-row { margin-bottom: 6px; color: var(--steel); font-size: 11px; text-align: center; }

.day-cell {
  aspect-ratio: 1; border: 1px solid transparent; border-radius: 8px;
  background: none; color: var(--cloud); font-family: inherit; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.day-cell.empty { visibility: hidden; }
/* Availability is signalled by the dot AND the border, never by colour alone. */
.day-cell.available { background: var(--ink-raised); border-color: var(--border); }
.day-cell.available::after {
  content: ''; position: absolute; bottom: 5px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--grow);
}
.day-cell.unavailable { color: var(--steel); opacity: 0.4; cursor: default; }
.day-cell.selected { border-color: var(--aqua); background: var(--ink-raised); font-weight: 600; }
.day-cell.selected::after { background: var(--aqua); }

.tz-note { margin: 16px 0 0; color: var(--steel); font-size: 12px; }
.tz-picker { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 12px; color: var(--steel); }
.tz-picker select {
  background: var(--ink-raised); color: var(--cloud); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px; font-family: inherit; font-size: 13px;
}

/* --- slots --- */
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.slot-btn {
  background: var(--ink-raised); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 8px; color: var(--cloud); font-family: inherit; font-size: 14px; cursor: pointer;
  transition: border-color 120ms ease;
}
.slot-btn:hover { border-color: var(--aqua); }
.slot-btn.selected { border-color: var(--aqua); font-weight: 600; }

/* --- form --- */
.summary {
  margin: 0 0 20px; padding: 12px 14px;
  background: var(--ink-raised); border-left: 3px solid var(--grow); border-radius: 6px;
  font-size: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-size: 13px; color: var(--steel); }
.field em { font-style: normal; opacity: 0.7; }
.field input, .field textarea {
  background: var(--ink-deep); border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 12px; color: var(--cloud); font-family: inherit; font-size: 15px; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--aqua); outline-offset: 1px; border-color: transparent; }

/* Pop yellow appears exactly twice in the whole flow: here and the done mark.
   The brand holds it in reserve for the one thing that matters most. */
.confirm {
  width: 100%; background: var(--pop); border: none; border-radius: 8px;
  padding: 14px; color: var(--ink-deep); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.confirm:hover { filter: brightness(1.06); }
.confirm:disabled { opacity: 0.5; cursor: default; filter: none; }

.form-error { margin: 0 0 12px; color: #FF8B8B; font-size: 13px; }

/* --- done --- */
#step-done { text-align: center; padding: 12px 0; }
.done-mark {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--pop); color: var(--ink-deep);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.done-title { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.done-detail { margin: 0 0 6px; font-size: 15px; }
.done-note { margin: 0; color: var(--steel); font-size: 13px; }

.status { margin: 16px 0 0; color: var(--steel); font-size: 13px; text-align: center; min-height: 1em; }

:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
