/* ============================================================
   Royal Regina Golf Club — Common Stylesheet
   Primary: #005072
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* ── Variables ───────────────────────────────────────────── */
:root {
  --primary:       #005072;
  --primary-dark:  #003a52;
  --primary-mid:   #006b9a;
  --primary-light: #4a9cbe;
  --primary-pale:  #e0f0f7;

  --gold:          #c9a84c;
  --gold-light:    #e0c070;
  --gold-pale:     #f9f4e8;

  --cream:         #faf8f3;
  --white:         #ffffff;
  --gray-50:       #f5f5f0;
  --gray-100:      #eeece7;
  --gray-200:      #dddad2;
  --gray-300:      #c8c4ba;
  --gray-400:      #a8a49a;
  --gray-500:      #8a8680;
  --gray-600:      #6b6860;
  --gray-700:      #4a4844;
  --gray-800:      #2e2c28;
  --gray-900:      #1e1d1b;

  --shadow-sm:     0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:     0 8px 40px rgba(0,80,114,0.18);

  --radius:        8px;
  --radius-sm:     6px;
  --radius-md:     8px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--gray-50);
  min-height: 100vh;
  color: var(--gray-900);
  font-size: 15px;
  line-height: 1.5;
}

/* ── Utility ─────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Top Nav (above header) ──────────────────────────────── */
.top-nav {
  background: var(--primary-dark);
  padding: 0 1.5rem;
}
.top-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 38px;
  font-size: 0.76rem;
  gap: 0;
}
.top-nav a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0 0.65rem;
  line-height: 38px;
  display: inline-block;
  transition: color 0.15s;
  white-space: nowrap;
}
.top-nav a:hover { color: var(--white); }
.top-nav a.active { color: var(--gold-light); }

/* ── Dashboard Sub-nav ───────────────────────────────────── */
.subnav {
  background: var(--white);
  border-bottom: 2px solid var(--gray-200);
  position: sticky;
  top: 64px;   /* sits flush below the sticky site-header */
  z-index: 90;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
  white-space: nowrap;
}
.subnav a {
  display: flex;
  align-items: center;
  padding: 0 1.1rem;
  height: 44px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.subnav a:hover { color: var(--primary); border-bottom-color: var(--primary-light); }
.subnav a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.subnav a.subnav-logout { margin-left: auto; color: var(--gray-400); }
.subnav a.subnav-logout:hover { color: #c0392b; border-bottom-color: transparent; }

/* ── Subnav Dropdown ─────────────────────────────────────── */
/* Open state is toggled by nav.js via .open class.          */
/* Menu uses position:fixed so overflow:auto on .subnav-inner */
/* does not clip it.                                          */
.subnav-dropdown {
  display: inline-flex;
  align-items: center;
  height: 44px;
}
.subnav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 44px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  user-select: none;
}
.subnav-dropdown-trigger:hover,
.subnav-dropdown.open .subnav-dropdown-trigger { color: var(--primary); border-bottom-color: var(--primary-light); }
.subnav-dropdown-trigger.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.subnav-dropdown-trigger svg { opacity: 0.55; transition: transform 0.15s; }
.subnav-dropdown.open .subnav-dropdown-trigger svg { transform: rotate(180deg); }
.subnav-dropdown-menu {
  display: none;
  position: fixed;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  min-width: 200px;
  z-index: 9999;
  padding: 0.3rem 0;
}
.subnav-dropdown.open .subnav-dropdown-menu { display: block; }
.subnav-dropdown-menu a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  color: var(--gray-700);
  text-decoration: none;
  border-bottom: none;
  margin-bottom: 0;
  height: auto;
  white-space: nowrap;
  transition: background 0.1s, color 0.1s;
}
.subnav-dropdown-menu a:hover { background: var(--gray-50); color: var(--primary); }
.subnav-dropdown-menu a.active { color: var(--primary); font-weight: 600; }

/* ── Site Header ─────────────────────────────────────────── */
.site-header {
  background: var(--primary);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo { display: flex; align-items: center; text-decoration: none; }
.site-logo img { height: 30px; display: block; }
.site-logo-fallback {
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.header-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}
.header-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: var(--primary-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-light);
  flex-shrink: 0;
}

/* ── Page Stripe ─────────────────────────────────────────── */
.page-stripe {
  height: 3px;
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 45%, var(--gold) 100%);
}

/* ── Main Layout ─────────────────────────────────────────── */
.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

/* ── Page Head ───────────────────────────────────────────── */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}
.page-head h1 {
  font-family: 'EB Garamond', serif;
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--gray-900);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.page-head h1 span {
  display: block;
  font-size: 0.875rem;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  color: var(--gray-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.page-crumb { font-size: 0.78rem; color: var(--gray-500); }
.page-crumb a { color: var(--primary-mid); text-decoration: none; }
.page-crumb a:hover { text-decoration: underline; }

/* ── Step Indicators ─────────────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  margin-bottom: 1.75rem;
}
.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-500);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s;
}
.step-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.25s;
}
.step.active .step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.step.active .step-label { color: var(--gray-900); font-weight: 600; }
.step.done .step-num {
  background: var(--primary-mid);
  border-color: var(--primary-mid);
  color: var(--white);
}
.step.done .step-label { color: var(--primary); }
.step-line {
  flex: 1;
  height: 1px;
  background: var(--gray-200);
  margin: 0 0.75rem;
  min-width: 20px;
}

/* ── Card ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.card-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--gray-100);
  background: var(--cream);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.card-header-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.card-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--gray-900);
  line-height: 1.25;
}
.card-desc { font-size: 0.82rem; color: var(--gray-500); margin-top: 0.2rem; line-height: 1.4; }
.card-body { padding: 1.75rem; }

/* ── Section ─────────────────────────────────────────────── */
.section { margin-bottom: 1.75rem; }
.section:last-child { margin-bottom: 0; }
.section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-mid);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--gray-100); }
.divider { height: 1px; background: var(--gray-100); margin: 1.5rem 0; }

/* ── Forms ───────────────────────────────────────────────── */
select,
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a8680' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  padding-right: 2rem;
}
input[type="text"],
input[type="email"],
input[type="tel"] { background-image: none; padding-right: 0.7rem; }
select:focus, input:focus {
  outline: none;
  border-color: var(--primary-mid);
  box-shadow: 0 0 0 3px rgba(0,107,154,0.12);
}

/* ── Combobox ────────────────────────────────────────────── */
.combobox-wrap { position: relative; }
.combobox-wrap.locked .combobox-input {
  background: var(--gray-100);
  color: var(--gray-600);
  cursor: default;
}
.combobox-input {
  width: 100%;
  padding: 0.5rem 1.8rem 0.5rem 0.7rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.combobox-input:focus {
  outline: none;
  border-color: var(--primary-mid);
  box-shadow: 0 0 0 3px rgba(0,107,154,0.12);
}
.combobox-input.has-value { font-weight: 500; color: var(--primary); }
.combobox-clear {
  position: absolute;
  right: 0.45rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--gray-300);
  cursor: pointer;
  font-size: 0.7rem;
  padding: 3px 5px;
  border-radius: 3px;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}
.combobox-clear:hover { color: var(--gray-700); background: var(--gray-100); }
.combobox-list {
  position: absolute;
  top: calc(100% + 3px); left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-height: 200px;
  overflow-y: auto;
  z-index: 200;
  padding: 3px 0;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-200) transparent;
}
.combobox-list li {
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--gray-900);
  transition: background 0.1s;
  border-radius: 3px;
  margin: 0 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.combobox-list li:hover,
.combobox-list li.active { background: var(--primary-pale); color: var(--primary); }
.combobox-list li.disabled-opt { color: var(--gray-300); cursor: not-allowed; font-style: italic; }
.combobox-list li.disabled-opt:hover { background: none; color: var(--gray-300); }
.combobox-no-results { padding: 0.5rem 0.7rem; font-size: 0.8rem; color: var(--gray-300); font-style: italic; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-row {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-100);
}
.btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 1px 4px rgba(0,80,114,0.25);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(0,80,114,0.35);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.btn-secondary:hover { background: var(--gray-50); border-color: var(--gray-300); }
.btn-warning {
  background: var(--gold);
  color: var(--primary-dark);
  border: 1px solid var(--gold);
  box-shadow: 0 1px 4px rgba(201,168,76,0.3);
}
.btn-warning:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-1px); }

/* ── Summary Bar ─────────────────────────────────────────── */
.summary-bar {
  background: var(--primary-pale);
  border: 1px solid #a0cce0;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
}
.summary-bar-icon { color: var(--primary); font-size: 1.1rem; }
.summary-table { font-size: 0.83rem; }
.summary-table tr td:first-child { color: var(--gray-500); font-weight: 500; padding-right: 1.25rem; white-space: nowrap; }
.summary-table tr td:last-child { color: var(--primary); font-weight: 600; }

/* ── Date Chips ──────────────────────────────────────────── */
.date-scroll {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-200) transparent;
}
.date-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--white);
  min-width: 62px;
  transition: border-color 0.15s, background 0.15s;
}
.date-chip:hover { border-color: var(--primary-light); background: var(--primary-pale); }
.date-chip.selected { border-color: var(--primary); background: var(--primary); }
.date-chip.selected .date-dow,
.date-chip.selected .date-num,
.date-chip.selected .date-month { color: rgba(255,255,255,0.85); }
.date-chip.selected .date-num { color: var(--white); }
.date-chip.disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.date-chip.disabled .date-avail { background: #c0392b; }
.date-dow { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gray-500); }
.date-num { font-family: 'EB Garamond', serif; font-size: 1.2rem; font-weight: 500; color: var(--gray-900); line-height: 1.15; }
.date-month { font-size: 0.6rem; color: var(--gray-500); }
.date-avail { width: 5px; height: 5px; border-radius: 50%; background: var(--primary-light); margin-top: 3px; }

/* ── Tee Grid ────────────────────────────────────────────── */
.tee-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px,1fr)); gap: 0.5rem; }
.tee-slot {
  padding: 0.55rem 0.4rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  background: var(--white);
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}
.tee-slot:hover:not(.restricted) { border-color: var(--primary-light); background: var(--primary-pale); }
.tee-slot.selected-1 { border-color: var(--gold); background: var(--gold-pale); }
.tee-slot.selected-2 { border-color: #74b9ff; background: #f0f8ff; }
.tee-slot.selected-3 { border-color: #a29bfe; background: #f8f7ff; }
.tee-slot.restricted { background: var(--gray-50); opacity: 0.5; cursor: not-allowed; border-style: dashed; border-color: var(--gray-200); }
.tee-time { font-family: 'EB Garamond', serif; font-size: 0.95rem; font-weight: 500; color: var(--gray-900); }
.tee-avail { font-size: 0.68rem; color: var(--gray-600); margin-top: 2px; }
.tee-slot.restricted .tee-time { color: var(--gray-300); }
.tee-restrict-label { font-size: 0.58rem; color: var(--gray-300); margin-top: 2px; line-height: 1.2; }
.tee-pref-badge {
  position: absolute;
  top: -7px; right: -7px;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  border: 2px solid var(--white);
}
.tee-slot.selected-1 .tee-pref-badge { background: var(--gold); color: var(--white); }
.tee-slot.selected-2 .tee-pref-badge { background: #74b9ff; color: var(--white); }
.tee-slot.selected-3 .tee-pref-badge { background: #a29bfe; color: var(--white); }
.tee-section-header {
  grid-column: 1/-1;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0 0.2rem;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-300);
  border-top: 1px solid var(--gray-100);
  margin-top: 0.15rem;
}
.tee-section-header:first-child { border-top: none; margin-top: 0; }
.restrict-badge {
  font-size: 0.58rem; font-weight: 600;
  padding: 1px 5px; border-radius: 20px;
  background: var(--gold-pale); border: 1px solid var(--gold-light); color: #7a4a00;
  text-transform: none; letter-spacing: 0;
}

/* ── Time Legend ─────────────────────────────────────────── */
.time-legend { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 0.65rem; font-size: 0.72rem; color: var(--gray-500); }
.legend-item { display: flex; align-items: center; gap: 0.35rem; }
.legend-dot { width: 11px; height: 11px; border-radius: 3px; border: 1.5px solid; flex-shrink: 0; }

/* ── Category Tags ───────────────────────────────────────── */
.cat-tag {
  display: inline-block;
  font-size: 0.62rem; font-weight: 600;
  padding: 2px 6px; border-radius: 20px;
  border: 1px solid; letter-spacing: 0.02em; white-space: nowrap;
}
.member-cat-display { min-height: 18px; margin-top: 0.2rem; }
.guest-tag {
  font-size: 0.62rem; font-weight: 600;
  padding: 2px 6px; border-radius: 20px;
  background: var(--gold-pale); border: 1px solid var(--gold-light); color: #7a4a00;
  white-space: nowrap;
}

/* ── Guest Components ────────────────────────────────────── */
.add-guest-btn {
  display: flex; align-items: center; gap: 0.4rem;
  background: none;
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  font-size: 0.82rem; color: var(--gray-500);
  cursor: pointer; width: 100%;
  transition: all 0.15s;
  font-family: 'Source Sans 3', sans-serif;
  margin-top: 0.6rem;
}
.add-guest-btn:hover { border-color: var(--primary-mid); color: var(--primary); background: var(--primary-pale); }
.guest-card { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 0.85rem; margin-top: 0.6rem; }
.guest-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.65rem; }
.guest-card-title { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-500); }
.remove-guest { background: none; border: none; color: var(--gray-300); cursor: pointer; font-size: 1rem; line-height: 1; padding: 2px; transition: color 0.15s; }
.remove-guest:hover { color: #c0392b; }
.guest-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.guest-fields .full-width { grid-column: 1/-1; }
.guest-mode-tabs { display: flex; gap: 0.4rem; margin-bottom: 0.65rem; }
.guest-tab {
  flex: 1; padding: 0.45rem 0.65rem;
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  background: var(--white);
  font-family: 'Source Sans 3', sans-serif; font-size: 0.78rem; font-weight: 500;
  color: var(--gray-500); cursor: pointer; transition: all 0.12s; text-align: center;
}
.guest-tab:hover { border-color: var(--primary-mid); color: var(--primary); }
.guest-tab.active { border-color: var(--primary); background: var(--primary-pale); color: var(--primary); font-weight: 600; }

/* ── Confirm Card ────────────────────────────────────────── */
.confirm-card { text-align: center; padding: 2.5rem 2rem; }
.confirm-icon {
  width: 64px; height: 64px;
  background: var(--primary-pale); border: 2px solid var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.1rem;
  animation: pop 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
}
@keyframes pop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirm-title { font-family: 'EB Garamond', serif; font-size: 1.7rem; font-weight: 500; color: var(--gray-900); margin-bottom: 0.35rem; }
.confirm-sub { color: var(--gray-500); font-size: 0.875rem; margin-bottom: 1.5rem; }
.confirm-details { background: var(--cream); border: 1px solid var(--gray-100); border-radius: var(--radius-md); padding: 1rem 1.25rem; text-align: left; margin-bottom: 1.25rem; }
.confirm-row { display: flex; justify-content: space-between; padding: 0.35rem 0; font-size: 0.85rem; border-bottom: 1px solid var(--gray-100); }
.confirm-row:last-child { border-bottom: none; }
.confirm-row span:first-child { color: var(--gray-500); }
.confirm-row span:last-child { font-weight: 600; color: var(--gray-900); }
.ref-number { font-family: 'EB Garamond', serif; font-size: 1.05rem; color: var(--gold); font-weight: 500; }

/* ── Error & Notices ─────────────────────────────────────── */
.member-error { font-size: 0.72rem; color: #c0392b; margin-top: 0.3rem; display: none; }
.member-error.visible { display: block; }
.no-access-banner { background: #fff0f0; border: 1px solid #f0a0a0; border-radius: var(--radius-sm); padding: 0.65rem 0.85rem; font-size: 0.82rem; color: #c0392b; font-weight: 500; margin-bottom: 0.65rem; }
.booking-window-notice { font-size: 0.72rem; color: var(--gray-500); margin-top: 0.35rem; font-style: italic; }

/* ── Slideup animation ───────────────────────────────────── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .guest-fields { grid-template-columns: 1fr; }
  .guest-fields .full-width { grid-column: 1; }
  .card-body { padding: 1.25rem; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .tee-grid { grid-template-columns: repeat(auto-fill, minmax(80px,1fr)); }
}
