:root {
  color-scheme: light;
  --ink: #11100d;
  --ink-soft: #29271f;
  --paper: #f7f3ea;
  --paper-deep: #eee7d8;
  --gold: #dbc08f;
  --gold-deep: #b99358;
  --muted: #5a5449;
  --line: rgba(17, 16, 13, 0.14);
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(17, 16, 13, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 28%, rgba(219, 192, 143, 0.16), rgba(219, 192, 143, 0) 28rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.55) 42%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(0deg, rgba(247, 243, 234, 1) 0%, rgba(0, 0, 0, 0.08) 36%, rgba(0, 0, 0, 0.68) 100%),
    url("https://frameandfocusphotography.com/assets/woodhue-living.jpg") center top / min(2100px, 160vw) auto no-repeat,
    var(--paper);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(18px, 5vw, 56px);
  background: rgba(17, 16, 13, 0.9);
  backdrop-filter: blur(18px);
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(219, 192, 143, 0.5);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 14px;
  overflow: hidden;
}

.brand-mark img {
  width: 86%;
  height: 86%;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.brand small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px;
}

.nav button {
  min-width: 92px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav button.active {
  background: var(--gold);
  color: var(--ink);
}

.booking-layout,
.admin-layout {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.booking-hero {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 900px;
  padding: 60px 0 86px;
  color: var(--white);
}

.booking-hero h1,
.admin-hero h1,
.success-card h1 {
  margin: 18px 0 20px;
  font-family: var(--serif);
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.98;
  font-weight: 500;
}

.booking-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--gold-deep);
}

.hero-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-actions span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.gold-button,
.black-button,
.outline-button {
  min-height: 48px;
  border-radius: 0;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.gold-button {
  background: var(--gold);
  color: var(--ink);
}

.black-button {
  background: var(--ink);
  color: var(--white);
}

.outline-button {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.gold-button:hover,
.black-button:hover,
.outline-button:hover {
  transform: translateY(-1px);
}

.small {
  min-height: 36px;
  padding: 0 14px;
}

.booking-panel {
  margin: 0 0 80px;
  background: rgba(247, 243, 234, 0.96);
  border: 1px solid rgba(17, 16, 13, 0.12);
  box-shadow: var(--shadow);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 0;
  background: linear-gradient(135deg, rgb(21, 19, 15), rgb(11, 11, 9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
}

.proof-strip span {
  min-height: 84px;
  display: flex;
  align-items: center;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.proof-strip span:last-child {
  border-right: 0;
}

.progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.progress button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.progress button:last-child {
  border-right: 0;
}

.progress span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: var(--paper-deep);
  color: var(--ink);
}

.progress .current {
  background: var(--ink);
  color: var(--white);
}

.progress .current span {
  background: var(--gold);
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 560px;
}

.form-surface {
  padding: clamp(24px, 5vw, 48px);
}

.step-head h2,
.section-head h2 {
  margin: 10px 0 22px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  font-weight: 500;
}

label {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  padding: 16px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  outline: 0;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 4px rgba(219, 192, 143, 0.22);
}

.split-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.address-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.address-suggestions button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.direction-group {
  display: grid;
  gap: 14px;
  margin: 20px 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(238, 231, 216, 0.52);
}

.direction-group small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.direction-options {
  display: grid;
  grid-template-columns: repeat(9, minmax(44px, 1fr));
  gap: 6px;
}

.direction-options button {
  min-height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.direction-options button.selected {
  border-color: var(--gold-deep);
  background: var(--ink);
  color: var(--white);
}

.summary {
  border-left: 1px solid var(--line);
  background: rgba(238, 231, 216, 0.58);
  padding: 34px;
}

.summary-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.summary-top span,
.summary-line span,
.intelligence-card span,
.confirmation-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary-top strong {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
}

.summary-line,
.admin-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.service-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.summary-line.total {
  font-weight: 800;
}

.intelligence-card,
.confirmation-card {
  margin-top: 26px;
  padding: 22px;
  background: var(--ink);
  color: var(--white);
}

.intelligence-card p,
.confirmation-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}

.service-list,
.slots {
  display: grid;
  gap: 12px;
}

.service-card,
.slot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  padding: 18px;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.slot {
  grid-template-columns: 1fr auto;
}

.service-card.selected,
.slot.selected {
  border-color: var(--gold-deep);
  background: rgba(219, 192, 143, 0.2);
}

.service-card:hover,
.slot:hover {
  transform: translateY(-1px);
}

.service-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

.service-card strong,
.slot strong,
.admin-line strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}

.service-card small,
.slot small,
.admin-line small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.service-card em,
.slot em,
.admin-line em {
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
}

.slot em small {
  display: block;
  margin-top: 5px;
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty {
  padding: 24px;
  border: 1px solid var(--line);
  color: var(--muted);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  padding: 74px 0 38px;
  color: var(--white);
}

.admin-hero h1 {
  max-width: 820px;
  font-size: clamp(38px, 5vw, 64px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.metrics article {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.metrics article:last-child {
  border-right: 0;
}

.metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metrics strong {
  display: block;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  padding: 18px 0 80px;
}

.admin-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
}

.admin-login-panel {
  width: min(620px, 100%);
  margin: 86px auto 120px;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--line);
  background: rgba(247, 243, 234, 0.96);
  box-shadow: var(--shadow);
}

.admin-login-panel h1 {
  margin: 14px 0 16px;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 62px);
  line-height: 0.98;
  font-weight: 500;
}

.admin-login-panel p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.admin-login-panel .black-button {
  width: 100%;
  margin-top: 18px;
}

.form-error {
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(122, 35, 24, 0.28);
  background: rgba(122, 35, 24, 0.08);
  color: #7a2318;
  font-size: 14px;
  font-weight: 700;
}

.admin-panel.wide {
  grid-row: span 2;
}

.section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.section-head h2 {
  margin: 0;
  font-size: 34px;
}

.booking-table {
  display: grid;
}

.booking-table article {
  display: grid;
  grid-template-columns: 1fr 150px 100px 160px;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.booking-table article:last-child {
  border-bottom: 0;
}

.booking-table span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.pill {
  display: inline-grid;
  min-width: 76px;
  place-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill.approved {
  background: var(--ink);
  color: var(--white);
}

.pill.pending {
  background: rgba(219, 192, 143, 0.24);
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-actions button {
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.muted-action {
  align-self: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reschedule-editor {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 14px;
  margin-top: 4px;
  padding: 16px;
  border: 1px solid rgba(185, 147, 88, 0.45);
  background: rgba(219, 192, 143, 0.14);
}

.admin-line.compact {
  padding: 12px 0;
}

.service-editor {
  display: grid;
  gap: 14px;
  margin: 16px 0;
  padding: 18px;
  border: 1px solid rgba(185, 147, 88, 0.45);
  background: rgba(219, 192, 143, 0.16);
}

.service-editor textarea {
  min-height: 92px;
}

.toggle-line {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

.toggle-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

.setup-note {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.setup-note strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.setup-note p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.split-fields.tight {
  margin: 0;
}

.compact-row {
  margin-top: 2px;
}

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

.roadmap .section-head {
  width: 100%;
}

.roadmap span {
  border: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

.success-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--paper);
}

.success-card {
  width: min(720px, 100%);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  padding: clamp(28px, 6vw, 58px);
  box-shadow: var(--shadow);
}

.success-card h1 {
  color: var(--ink);
  font-size: clamp(42px, 6vw, 72px);
}

.success-card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.success-card .confirmation-card {
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .topbar,
  .admin-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .nav button {
    flex: 1;
  }

  .booking-hero {
    min-height: auto;
    padding: 70px 0 92px;
  }

  .progress,
  .panel-grid,
  .split-fields,
  .metrics,
  .admin-grid,
  .proof-strip {
    grid-template-columns: 1fr;
  }

  .progress button {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .summary {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .proof-strip span {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .booking-table article {
    grid-template-columns: 1fr;
  }

  .reschedule-editor {
    grid-template-columns: 1fr;
  }

  .service-admin-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .direction-options {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .booking-layout,
  .admin-layout {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    padding: 18px 14px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .service-card,
  .slot {
    grid-template-columns: 1fr;
  }
}
