/* ===========================================================================
   Ramblin' Man — booking system theme
   Palette + type matched to ramblinmanbar.com:
   midnight base, warm amber accent, MD Nichrome (display) + MD Primer (body)
   — the site's own fonts, self-hosted (see fonts.css).
   =========================================================================== */

:root {
  --midnight: #13171f;
  --surface: #181c25;
  --surface-2: #202632;
  --surface-3: #2a3140;
  --border: #2a3140;
  --border-soft: #232a36;

  --text: #eff1f4;
  --text-dim: #c2c7d0;
  --muted: #8891a4;

  --accent: #eba13d; /* amber gold — the brand colour */
  --accent-bright: #fdbb12;
  --accent-deep: #d06a28; /* burnt orange — hover/press */
  --cream: #fff2db;

  --ok: #4ea777;
  --warn: #eba13d;
  --bad: #d9604e;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  /* Brand fonts (self-hosted, see fonts.css) with Futura-family fallbacks
     that match the site's own fallback stack. */
  --font: 'MD Primer', Futura, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'MD Nichrome', 'MD Primer', Futura, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-feature-settings: 'ss01', 'ss02'; /* MD Primer stylistic sets, as on the site */
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(235, 161, 61, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(208, 106, 40, 0.06), transparent 55%),
    var(--midnight);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 0.4em;
}
.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-bright); }

.container { width: min(960px, 92vw); margin: 0 auto; }

/* --- header --------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--border-soft);
  background: rgba(19, 23, 31, 0.7);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand .logo {
  height: 30px;
  width: auto;
  max-width: 62vw;
  display: block;
}
.brand .sub {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}
.header-contact { color: var(--muted); font-size: 0.85rem; text-align: right; }
.header-contact a { color: var(--text-dim); }

/* --- hero ----------------------------------------------------------------- */
.hero { padding: 54px 0 26px; text-align: center; }
.hero .eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); color: var(--cream); }
.hero p { color: var(--text-dim); max-width: 46ch; margin: 12px auto 0; }

/* --- booking-type tabs ---------------------------------------------------- */
.tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 32px 0 26px;
  flex-wrap: wrap;
}
.tab {
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  padding: 14px 26px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.18s ease;
}
.tab:hover { border-color: var(--accent-deep); color: var(--cream); }
.tab.active {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  border-color: var(--accent);
  color: #201406;
  box-shadow: 0 8px 24px rgba(235, 161, 61, 0.28);
}
.tab .tab-sub { display: block; font-size: 0.68rem; font-weight: 500; text-transform: none; letter-spacing: 0; opacity: 0.85; }

/* --- card / form ---------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.panel { margin-bottom: 60px; }
.panel[hidden] { display: none; }
.panel-intro { color: var(--muted); margin: -4px 0 22px; font-size: 0.95rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--midnight);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(235, 161, 61, 0.18);
}
textarea { resize: vertical; min-height: 84px; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238891a4' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}
.hint { font-size: 0.78rem; color: var(--muted); }

/* --- area chooser (radio cards) ------------------------------------------ */
.area-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.area-option {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  cursor: pointer;
  background: var(--surface-2);
  transition: all 0.15s ease;
}
.area-option:hover { border-color: var(--accent-deep); }
.area-option input { position: absolute; opacity: 0; pointer-events: none; }
.area-option .name { font-weight: 600; color: var(--cream); letter-spacing: 0.02em; }
.area-option .desc { font-size: 0.82rem; color: var(--muted); margin-top: 3px; }
.area-option .meta { font-size: 0.75rem; color: var(--accent); margin-top: 8px; letter-spacing: 0.03em; }
.area-option.selected {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(235, 161, 61, 0.12), rgba(235, 161, 61, 0.03));
  box-shadow: 0 0 0 1px var(--accent) inset;
}

/* --- time slots ----------------------------------------------------------- */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 9px; }
.slot {
  appearance: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 11px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-3);
  background: var(--surface-2);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.14s ease;
}
.slot:hover:not(:disabled) { border-color: var(--accent); color: var(--cream); }
.slot.selected {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  border-color: var(--accent);
  color: #201406;
}
.slot:disabled { opacity: 0.32; cursor: not-allowed; text-decoration: line-through; }
.slots-status { color: var(--muted); font-size: 0.9rem; padding: 6px 0; }

/* --- deposit callout ------------------------------------------------------ */
.deposit-callout {
  border: 1px dashed var(--accent-deep);
  background: rgba(235, 161, 61, 0.07);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--cream);
  font-size: 0.92rem;
}
.deposit-callout b { color: var(--accent-bright); }

/* --- buttons -------------------------------------------------------------- */
.btn {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.16s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #201406;
  box-shadow: 0 10px 26px rgba(235, 161, 61, 0.28);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text-dim); }
.btn-ghost:hover { border-color: var(--accent); color: var(--cream); }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }

/* --- messages ------------------------------------------------------------- */
.form-error {
  color: #ffb4a6;
  background: rgba(217, 96, 78, 0.12);
  border: 1px solid rgba(217, 96, 78, 0.4);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.9rem;
  margin-top: 16px;
}
.form-error[hidden] { display: none; }

/* --- confirmation --------------------------------------------------------- */
.confirmation { text-align: center; padding: 20px 6px; }
.confirmation .tick {
  width: 62px; height: 62px; margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(78, 167, 119, 0.15);
  border: 1px solid rgba(78, 167, 119, 0.5);
  color: var(--ok); font-size: 1.8rem;
}
.confirmation h2 { color: var(--cream); }
.summary {
  text-align: left;
  margin: 22px auto 0;
  max-width: 460px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.summary .row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; border-bottom: 1px solid var(--border-soft); }
.summary .row:last-child { border-bottom: none; }
.summary .k { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.summary .v { color: var(--text); font-weight: 600; text-align: right; }
.summary .ref .v { color: var(--accent); letter-spacing: 0.08em; }

/* --- footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 26px 0 50px; color: var(--muted); font-size: 0.85rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* --- utility -------------------------------------------------------------- */
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(32, 20, 6, 0.35); border-top-color: #201406;
  display: inline-block; vertical-align: -3px; margin-right: 8px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 6px; }
  .header-contact { text-align: left; }
  .hero { padding: 36px 0 18px; }
  .card { padding: 20px; }
}
