/* ================================================================
   BUCKEYE BLOCK STAGE — Master Stylesheet
   ----------------------------------------------------------------
   All custom styles for the booking system.
   Bootstrap 5.3 utility/component classes are not redefined —
   only project-specific tokens, components, and overrides live here.
   ================================================================ */


/* ── Design tokens ────────────────────────────────────────────── */
:root {
  --forest:  #1a3a2a;
  --gold:    #d4a843;
  --rust:    #b8341b;
  --cream:   #faf8f3;
  --light:   #f0ede4;
  --border:  #d8d0bc;
  --text:    #2a2a2a;
  --muted:   #7a7060;
}


/* ── Base typography ──────────────────────────────────────────── */
body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
}

.font-serif    { font-family: 'Playfair Display', serif; }


/* ── Theme color helpers (only what Bootstrap doesn't supply) ─── */
.text-forest   { color: var(--forest); }
.text-gold     { color: var(--gold); }
.text-rust     { color: var(--rust); }
.text-soft     { color: var(--muted); }

.bg-forest     { background: var(--forest); color: #fff; }
.bg-rust       { background: var(--rust); color: #fff; }
.bg-gold       { background: var(--gold); color: var(--forest); }
.bg-cream      { background: var(--cream); }
.bg-soft       { background: #f8f8f6; }
.bg-light-2    { background: var(--light); }


/* ── Themed buttons ───────────────────────────────────────────── */
.btn-forest {
  background: var(--forest);
  color: #fff;
  border: none;
}
.btn-forest:hover { background: var(--rust); color: #fff; }

.btn-rust {
  background: var(--rust);
  color: #fff;
  border: none;
}
.btn-rust:hover { background: #8c2715; color: #fff; }

.btn-gold {
  background: var(--gold);
  color: var(--forest);
  border: none;
  font-weight: 700;
}
.btn-gold:hover { background: #b88f31; color: var(--forest); }


/* ── Modal — themed header ────────────────────────────────────── */
.modal-header.themed {
  background: var(--forest);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.modal-header.themed .btn-close { filter: invert(1); }
.modal-header.themed .modal-title { font-family: 'Playfair Display', serif; }


/* ── Public site header ───────────────────────────────────────── */
.site-header {
  background: var(--forest);
  color: #fff;
  padding: 20px 0 16px;
  border-bottom: 4px solid var(--gold);
}
.site-header .eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.site-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin: 4px 0 0;
  font-weight: 700;
}
.site-header .subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  margin-top: 2px;
}
.site-header .header-nav a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  font-size: 13px;
  margin-left: 20px;
  letter-spacing: .5px;
}
.site-header .header-nav a:hover { color: var(--gold); }


/* ── Calendar (used on both public + public-calendar pages) ───── */
.cal-wrapper {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .07);
}
.cal-nav {
  background: var(--forest);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cal-nav h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin: 0;
}
.cal-nav .btn-nav {
  background: rgba(255, 255, 255, .15);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .2s;
}
.cal-nav .btn-nav:hover { background: rgba(255, 255, 255, .3); color: #fff; }
.cal-nav .btn-nav:disabled { opacity: .3; cursor: default; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow {
  text-align: center;
  padding: 10px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--light);
}
.cal-cell {
  min-height: 90px;
  padding: 8px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  vertical-align: top;
}
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell.empty   { background: var(--light); opacity: .5; }
.cal-cell.past    { background: #f8f8f8; }
.cal-cell.today   { background: #fffbf0; }
.cal-cell.today .day-num { color: var(--rust); font-weight: 700; }
.cal-cell.has-event { background: #f0f7f0; cursor: pointer; }
.cal-cell.has-event:hover { background: #e3f2e3; }

.day-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

/* Availability pills */
.cal-pill {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: .3px;
}
.cal-pill.open    { background: #e8f5e9; color: #2e7d32; }
.cal-pill.unavail { background: #fdecea; color: #c62828; }
.cal-pill.pending { background: #fff8e1; color: #f57f17; }

.btn-reserve {
  margin-top: 6px;
  display: block;
  width: 100%;
  background: var(--forest);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 5px 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .3px;
  transition: background .2s;
}
.btn-reserve:hover { background: var(--rust); }

.event-chip {
  background: var(--forest);
  color: #fff;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-top: 3px;
}

/* Calendar legend dots */
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.legend-dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-dot.open    { background: #c8e6c9; }
.legend-dot.pending { background: #ffecb3; }
.legend-dot.unavail { background: #ffcdd2; }
.legend-dot.public  { background: #c8e6c9; width: 12px; height: 12px; border-radius: 2px; }


/* ── Booking modal — section labels + insurance dropbox ───────── */
.section-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 20px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.section-label .hint {
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.insurance-box {
  background: #fffbf0;
  border: 2px dashed var(--gold);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.insurance-box:hover { background: #fff8e1; border-color: var(--rust); }
.insurance-box i { font-size: 2rem; color: var(--gold); display: block; margin-bottom: 6px; }
.insurance-box .note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.insurance-box .note a { color: var(--rust); font-weight: 600; }
.insurance-box.has-file { background: #f0f7f0; border-color: var(--forest); }

.terms-scroll {
  font-size: 12px;
  color: var(--muted);
  background: var(--light);
  border-radius: 6px;
  padding: 14px;
  line-height: 1.7;
  max-height: 200px;
  overflow-y: auto;
}

.fee-table-card {
  font-size: 13px;
  background: var(--light);
  border-radius: 6px;
  padding: 14px;
  line-height: 1.6;
}

.btn-submit-app {
  background: var(--forest);
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  width: 100%;
  letter-spacing: .5px;
  transition: background .2s;
}
.btn-submit-app:hover { background: var(--rust); color: #fff; }

/* Submit success state */
.success-state { text-align: center; padding: 40px 20px; }
.success-state i { font-size: 4rem; color: #2e7d32; margin-bottom: 16px; }


/* ── Public-calendar — upcoming events sidebar ────────────────── */
.upcoming-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  margin-bottom: 12px;
}
.upcoming-date {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.upcoming-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--forest);
  margin: 2px 0;
}
.upcoming-meta { font-size: 12px; color: var(--muted); }


/* ── Admin login ──────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}
.login-header {
  background: var(--forest);
  padding: 32px 32px 24px;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}
.login-header .eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.login-header h1 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.5rem;
  margin: 6px 0 0;
}
.login-header .product { font-size: 12px; color: rgba(255, 255, 255, .5); margin-top: 4px; }
.login-body { padding: 32px; }

.btn-login {
  background: var(--forest);
  color: #fff;
  border: none;
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  letter-spacing: .5px;
  transition: background .2s;
}
.btn-login:hover { background: var(--rust); }

.back-link        { text-align: center; margin-top: 16px; }
.back-link a      { font-size: 12px; color: #888; text-decoration: none; }
.back-link a:hover { color: var(--rust); }


/* ── Admin layout ─────────────────────────────────────────────── */
.admin-page    { background: #f4f4f2; font-size: 14px; }
.admin-sidebar {
  width: 230px;
  min-height: 100vh;
  background: var(--forest);
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
}
.sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.sidebar-brand .eyebrow {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.sidebar-brand h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #fff;
  margin: 4px 0 0;
}
.sidebar-nav { padding: 12px 0; flex: 1; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: all .15s;
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sidebar-nav a.active {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-left-color: var(--gold);
  font-weight: 600;
}
.sidebar-nav a i { font-size: 16px; width: 20px; text-align: center; }
.sidebar-nav .nav-section {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .3);
  padding: 16px 20px 6px;
  font-weight: 700;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
}
.sidebar-footer strong { display: block; color: rgba(255, 255, 255, .8); }
.sidebar-footer a { color: rgba(255, 255, 255, .4); text-decoration: none; font-size: 11px; }
.sidebar-footer a:hover { color: var(--rust); }

.admin-main    { margin-left: 230px; min-height: 100vh; }
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-topbar h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin: 0;
  color: var(--forest);
}
.admin-content { padding: 28px; }


/* ── Admin tables ─────────────────────────────────────────────── */
.admin-content .table th {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 2px solid var(--border);
}
.admin-content .table td { vertical-align: middle; }
.admin-content .table-hover tbody tr:hover { background: #f9f8f5; }


/* ── Stat cards (admin dashboard) ─────────────────────────────── */
.stat-card {
  border-top: 3px solid var(--forest);
  padding: 1rem;
  background: #fff;
  border-radius: .375rem;
  border: 1px solid var(--border);
  text-align: center;
}
.stat-card .num   { font-size: 2rem; font-weight: 700; color: var(--forest); }
.stat-card .label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #666; }
.stat-card.pending  { border-top-color: #ffc107; }
.stat-card.pending  .num { color: #856404; }
.stat-card.approved { border-top-color: #198754; }
.stat-card.approved .num { color: #198754; }
.stat-card.denied   { border-top-color: #dc3545; }
.stat-card.denied   .num { color: #dc3545; }


/* ── Application status badges ────────────────────────────────── */
.status-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}
.status-badge.sm    { font-size: 9px;  padding: 2px 5px; }
.status-badge.pending  { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.status-badge.approved { background: #d1e7dd; color: #0f5132; border: 1px solid #a3cfbb; }
.status-badge.denied   { background: #f8d7da; color: #842029; border: 1px solid #f1aeb5; }


/* ── Door access code (admin + emails + contract) ─────────────── */
.door-code {
  font-size: 1.1em;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
}
.door-code-large {
  font-family: 'Courier New', monospace;
  font-size: 16pt;
  letter-spacing: 4px;
  font-weight: 700;
  color: var(--rust);
  background: #fff;
  padding: 4px 12px;
  display: inline-block;
  border: 1px dashed #856404;
  margin-top: 4px;
}


/* ── Insurance certificate inline preview (review page) ───────── */
.cert-preview { background: #f8f8f6; }
.cert-preview-header {
  background: #fff;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  border-bottom: 1px solid var(--border);
}
.cert-preview-header i { font-size: 1.6rem; color: var(--rust); }
.cert-preview-header .filename { font-weight: 600; font-size: 13px; }
.cert-preview-header .filemeta { font-size: 11px; color: var(--muted); }
.cert-preview-body {
  background: #e9e7e0;
  padding: 0;
  text-align: center;
}
.cert-preview-body embed,
.cert-preview-body img {
  display: block;
}
.cert-preview-body embed {
  width: 100%;
  height: 600px;
  border: none;
}
.cert-preview-body img {
  max-width: 100%;
  max-height: 600px;
  margin: 0 auto;
  background: #fff;
}
.cert-preview-body .no-preview {
  padding: 1.5rem;
  color: var(--muted);
  font-size: 13px;
}

/* No-cert warning box */
.cert-missing {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #ffc107;
  border-radius: .375rem;
  background: #fff3cd;
}
.cert-missing i { font-size: 2rem; color: #856404; }
.cert-missing .title { font-weight: 600; color: #856404; }
.cert-missing .desc  { font-size: 12px; color: #856404; margin-bottom: .5rem; }


/* ────────────────────────────────────────────────────────────────
   PRINTABLE CONTRACT
   ──────────────────────────────────────────────────────────────── */

@page {
  size: letter;
  margin: 0.6in 0.7in;
}

.contract-body {
  background: #f0f0f0;
  font-family: 'Source Sans 3', Georgia, serif;
  font-size: 11pt;
  line-height: 1.5;
  color: #000;
}

.contract-page {
  max-width: 8.5in;
  margin: 0 auto;
  background: #fff;
  padding: 0.6in 0.7in;
  min-height: 11in;
}

/* Print toolbar — hidden when printing */
.contract-toolbar {
  max-width: 8.5in;
  margin: 12px auto;
  padding: 12px 20px;
  background: var(--forest);
  color: #fff;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Source Sans 3', sans-serif;
}
.contract-toolbar h2 { margin: 0; font-size: 1rem; font-weight: 600; }
.contract-toolbar .btn-toolbar-print {
  background: var(--gold);
  color: var(--forest);
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
}
.contract-toolbar .btn-toolbar-back {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .4);
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
}

/* Header */
.contract-header {
  border-bottom: 3px double var(--forest);
  padding-bottom: 16px;
  margin-bottom: 24px;
  text-align: center;
}
.contract-header .eyebrow {
  font-size: 9pt;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 700;
}
.contract-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 22pt;
  margin: 4px 0 2px;
  letter-spacing: -.5px;
}
.contract-header .subtitle {
  font-size: 10pt;
  color: #555;
  font-style: italic;
}
.contract-header .meta {
  margin-top: 10px;
  font-size: 9pt;
  color: #555;
  display: flex;
  justify-content: center;
  gap: 24px;
}
.contract-header .meta strong { color: #000; }

/* Sections */
.contract-section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 13pt;
  margin: 20px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--forest);
  color: var(--forest);
  letter-spacing: .5px;
}

.contract-intro {
  font-size: 10pt;
  color: #333;
  margin-bottom: 18px;
  text-align: justify;
  line-height: 1.6;
}

/* Field grid */
.contract-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 6px;
}
.contract-grid.full { grid-template-columns: 1fr; }

.contract-field {
  padding: 6px 12px 6px 0;
  border-bottom: 1px dotted #999;
  font-size: 10pt;
}
.contract-field .label {
  display: inline-block;
  font-weight: 600;
  color: #555;
  font-size: 8pt;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-right: 8px;
  min-width: 110px;
}
.contract-field .label-stacked {
  display: block;
  font-weight: 600;
  color: #555;
  font-size: 8pt;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contract-field .value-stacked {
  font-size: 10pt;
  line-height: 1.5;
  color: #222;
  border-bottom: 1px dotted #999;
  padding-bottom: 6px;
  white-space: pre-line;
}
.contract-field.fee-line {
  border-bottom: 1px solid #000;
  display: inline-block;
  min-width: 50%;
  margin-top: 4px;
}

/* Checkbox indicators */
.contract-checkboxes {
  display: flex;
  gap: 22px;
  margin: 8px 0;
  font-size: 10pt;
  flex-wrap: wrap;
}
.contract-checkboxes .row-label { font-size: 10pt; margin: 10px 0 4px; font-weight: 600; }
.contract-cb {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1.5px solid #000;
  vertical-align: middle;
  margin-right: 6px;
  text-align: center;
  line-height: 10px;
  font-size: 11pt;
  font-weight: 700;
  color: var(--rust);
}
.contract-cb.checked::before { content: '\2713'; }

/* Terms blocks */
.contract-terms-block {
  background: #faf9f4;
  border: 1px solid var(--border);
  padding: 14px 18px;
  font-size: 9.5pt;
  line-height: 1.55;
  color: #222;
  margin-bottom: 8px;
}
.contract-terms-block p { margin: 0 0 8px; }
.contract-terms-block p:last-child { margin-bottom: 0; }
.contract-terms-block strong { color: var(--forest); }
.contract-terms-block .insurance-status {
  font-size: 8.5pt;
  font-style: italic;
  color: #666;
  margin-top: 6px;
}

.contract-terms-list {
  padding-left: 20px;
  font-size: 9.5pt;
  line-height: 1.55;
  column-count: 2;
  column-gap: 24px;
  margin: 0;
}
.contract-terms-list li {
  margin-bottom: 6px;
  break-inside: avoid;
}

/* Fee schedule table */
.contract-fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9.5pt;
  margin: 6px 0;
}
.contract-fee-table thead tr {
  background: #faf9f4;
  border-bottom: 1px solid var(--forest);
}
.contract-fee-table th {
  padding: 4px 8px;
  text-align: left;
  font-weight: 600;
}
.contract-fee-table th.notes-col { font-style: italic; color: #666; }
.contract-fee-table td { padding: 4px 8px; }
.contract-fee-table td.notes-cell { color: #555; font-size: 9pt; }
.contract-fee-table tbody tr { border-bottom: 1px dotted #ccc; }
.contract-fee-table tr.contract-rate-active { background: #fffbf0; }
.contract-fee-table td.contract-rate-cell-active {
  background: var(--gold);
  color: var(--forest);
  font-weight: 700;
  outline: 1px solid var(--forest);
}

.contract-fee-notes {
  font-size: 8.5pt;
  color: #555;
  margin: 4px 0 8px;
  padding-left: 18px;
}

/* Signatures */
.contract-signatures { margin-top: 28px; page-break-inside: avoid; }
.contract-signatures .intro { font-size: 9.5pt; color: #333; margin: 0 0 14px; }
.contract-sig-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 18px;
}
.contract-sig-line {
  border-bottom: 1.5px solid #000;
  height: 36px;
  margin-bottom: 4px;
}
.contract-sig-label {
  font-size: 8pt;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555;
  font-weight: 600;
}
.contract-sig-name { font-size: 9pt; color: #888; margin-top: 2px; }

/* Approval details box */
.contract-admin-box {
  background: #fff8e1;
  border: 2px solid #ffc107;
  padding: 14px 18px;
  margin-top: 18px;
  page-break-inside: avoid;
}
.contract-admin-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 11pt;
  margin: 0 0 8px;
  color: #856404;
}
.contract-admin-box .detail-row { margin-bottom: 8px; }
.contract-admin-box .notes-row { font-size: 10pt; }

/* Status banner in header */
.status-banner {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.status-banner.approved { background: #d1e7dd; color: #0f5132; border: 1px solid #198754; }
.status-banner.pending  { background: #fff3cd; color: #664d03; border: 1px solid #ffc107; }
.status-banner.denied   { background: #f8d7da; color: #842029; border: 1px solid #dc3545; }

/* Contract footer */
.contract-footer {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid #ccc;
  font-size: 8pt;
  color: #888;
  text-align: center;
}

/* Certificate of insurance — separate printable page(s) */
.cert-page { page-break-before: always; padding-top: 8px; }
.cert-page .caption { font-size: 9pt; color: #555; margin: 0 0 10px; }
.cert-page .caption.continuation { font-style: italic; }
.cert-image-wrap {
  border: 1px solid #ccc;
  background: #fff;
  padding: 8px;
  text-align: center;
}
.cert-image {
  max-width: 100%;
  max-height: 9in;
  height: auto;
  display: block;
  margin: 0 auto;
}
.cert-pdf-wrap {
  border: 1px solid #ccc;
  background: #f5f5f5;
  width: 100%;
  height: 9in;
}
.cert-pdf { width: 100%; height: 100%; border: none; }
.pdf-print-note {
  margin-top: 10px;
  padding: 12px 14px;
  background: #fff8e1;
  border: 1px solid #ffc107;
  border-radius: 4px;
  font-size: 9.5pt;
  line-height: 1.5;
}
.pdf-print-note .help-link {
  display: inline-block;
  background: var(--rust);
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 9.5pt;
  margin-top: 6px;
}
.pdf-print-note .footnote { font-size: 8.5pt; color: #666; margin-top: 8px; }

.cert-unavailable {
  padding: 14px;
  background: #f5f5f5;
  border: 1px dashed #999;
  font-size: 10pt;
  color: #666;
}


/* ── Print rules ──────────────────────────────────────────────── */
@media print {
  body { background: #fff; }
  .contract-toolbar,
  .pdf-print-note,
  .no-print { display: none !important; }
  .contract-page {
    box-shadow: none;
    padding: 0;
    max-width: none;
  }
  .cert-pdf-wrap { height: 9.5in; }
  .cert-image    { max-height: 9.5in; }
}


/* ── Installer page ───────────────────────────────────────────── */
.installer-container { max-width: 640px; }


/* ── Content editor (admin/content.php) ───────────────────────── */
.content-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.content-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  transition: box-shadow .15s, opacity .15s;
}
.content-row textarea,
.content-row input[type="text"] {
  flex: 1;
  border: 1px solid #dee2e6;
}
.content-row-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  color: var(--muted);
  cursor: grab;
  user-select: none;
  font-size: 18px;
  align-self: stretch;
}
.content-row-handle:active { cursor: grabbing; }
.content-row.dragging {
  opacity: .5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

/* Pricing fee table editor */
.fee-editor th { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.fee-editor input { font-size: 13px; }

/* Bracket matrix editor (admin/content.php) */
.bracket-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  background: #fff;
}
.bracket-card-header {
  background: var(--forest);
  color: #fff;
  padding: 8px 14px;
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  letter-spacing: .5px;
}
.bracket-matrix th {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.bracket-matrix .bracket-row-label {
  text-align: left;
  color: var(--text);
  font-weight: 600;
  background: var(--light);
}
.bracket-matrix input { font-size: 13px; }

/* Public rate preview card (index.php) */
.rate-preview {
  background: #fffbf0;
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 16px 0;
  display: none;
}
.rate-preview.show { display: block; }
.rate-preview .rate-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.rate-preview .rate-amount {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--rust);
  font-weight: 700;
  margin-bottom: 2px;
}
.rate-preview .rate-desc { font-size: 13px; color: var(--muted); }

/* Suggested rate hint (admin/review.php) */
.suggested-rate {
  background: #fffbf0;
  border-left: 3px solid var(--gold);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
}
.suggested-rate-apply {
  padding: 0;
  font-size: 12px;
  font-weight: 600;
}

.col-w-30 { width: 30%; }
.col-w-20 { width: 20%; }
.col-w-5  { width: 50px; }


/* ── Embed mode (iframe-friendly trimmed view) ────────────────── */
body.embed-mode { background: transparent; }
body.embed-mode main.container { padding-top: 12px; padding-bottom: 12px; }
/* Drop the right-side info column in embed — host page has its own context */
body.embed-mode .col-lg-4 { display: none; }
body.embed-mode .col-lg-8 { flex: 0 0 100%; max-width: 100%; }

/* Embed snippet UI (admin/embed.php) */
.embed-snippet {
  background: #1e1e1e;
  color: #d4d4d4;
  border-color: #333;
  resize: vertical;
}
.embed-snippet:focus { background: #1e1e1e; color: #d4d4d4; border-color: var(--gold); }
.copy-snippet-btn { position: absolute; top: 8px; right: 8px; }
.embed-preview-iframe {
  width: 100%;
  height: 360px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--cream);
}


/* ── Mobile responsive tweaks ─────────────────────────────────── */

/* Admin off-canvas drawer (mobile nav) */
.admin-menu-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--forest);
  font-size: 18px;
  line-height: 1;
  padding: 4px 10px;
}
.admin-menu-toggle:hover { background: var(--light); color: var(--forest); }

.admin-offcanvas {
  width: 260px;
  background: var(--forest);
  color: #fff;
}
.admin-offcanvas .offcanvas-header {
  background: var(--forest);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  padding: 14px 18px;
}
.admin-offcanvas .offcanvas-title {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1rem;
}
/* Reuse the sidebar nav styling inside the drawer; remove default padding */
.admin-offcanvas .offcanvas-body {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.admin-offcanvas .sidebar-nav { flex: 1; }

/* Hide the duplicate brand block inside the drawer (the header already labels it) */
.admin-offcanvas .sidebar-brand { display: none; }

@media (max-width: 991.98px) {
  .admin-sidebar { display: none; }
  .admin-main    { margin-left: 0; }
}

@media (max-width: 576px) {
  .cal-cell { min-height: 60px; padding: 4px; }
  .cal-pill { display: none; }
  .btn-reserve { font-size: 10px; padding: 4px 2px; }
  .day-num { font-size: 12px; }
  .event-chip { font-size: 9px; padding: 2px 4px; }
}
