:root {
  --bg: #16110d;
  --card: #fffaf2;
  --text: #22180f;
  --muted: #766858;
  --line: rgba(42, 25, 12, 0.16);
  --gold: #a9752b;
  --gold-dark: #6f4718;
  --error-bg: #fff0f0;
  --error-text: #8a1f1f;
  --success-bg: #edf9ee;
  --success-text: #1f6d2f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(169, 117, 43, 0.24), transparent 32%),
    linear-gradient(135deg, #17100b, #2b1f15 52%, #11100d);
  min-height: 100vh;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto;
}

.page-shell.compact { width: min(620px, calc(100% - 32px)); }

.booking-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0,0,0,0.35);
  padding: 28px;
  overflow: hidden;
}

.brand-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.brand-strip.centered { justify-content: center; }

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #24180f;
  border: 1px solid rgba(169,117,43,0.5);
  font-family: Georgia, serif;
  font-size: 24px;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: stretch;
}

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

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

.lead-text {
  color: #3a2d22;
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 22px;
}

.trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trust-points span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.45);
  color: #473728;
  font-size: 13px;
}

.product-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  min-height: 100%;
}

.product-image-wrap {
  background: #efe4d5;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.product-image-wrap img,
.lead-media img,
.admin-product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-info { padding: 18px; }

.product-info h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.15;
  margin: 12px 0 6px;
}

.product-info a, .lead-main a, .admin-nav a {
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.ready {
  background: var(--success-bg);
  color: var(--success-text);
}

.status-pill.not-ready {
  background: #fff5dc;
  color: #7b5516;
}

.muted { color: var(--muted); }

.missing-product {
  padding: 26px;
}

.small-error { color: var(--error-text); font-size: 13px; }

.blocking-note,
.flash {
  border-radius: 14px;
  padding: 12px 14px;
  margin: 18px 0;
}

.blocking-note,
.flash.error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid rgba(138, 31, 31, 0.16);
}

.flash.success {
  background: var(--success-bg);
  color: var(--success-text);
}

.booking-form {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.section-title h3 {
  margin: 0;
  font-size: 22px;
}

.section-title p {
  margin: 6px 0 18px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

label span,
.field-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #3a2d22;
  margin-bottom: 8px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid rgba(34, 24, 15, 0.2);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 16px;
  background: #fff;
  color: var(--text);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(169, 117, 43, 0.8);
  box-shadow: 0 0 0 4px rgba(169, 117, 43, 0.14);
}

.phone-input-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
}

.country-code-select {
  padding-left: 10px;
  padding-right: 8px;
}

.input-help {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

textarea { resize: vertical; }

.check-section { margin: 20px 0; }

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.check-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(255,255,255,0.55);
}

.check-pill input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.check-pill span {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}

.full-width { display: block; margin-bottom: 14px; }

.consent-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.primary-button,
.secondary-button,
.lead-actions button,
.product-search button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #1f140c;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 22px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.primary-button {
  width: 100%;
  font-size: 17px;
  padding: 16px 22px;
}

.primary-button:disabled,
select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.secondary-button {
  background: var(--gold-dark);
  margin-top: 12px;
}

.thank-card {
  text-align: center;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 12px auto 18px;
  background: var(--success-bg);
  color: var(--success-text);
  font-size: 42px;
  font-weight: 900;
}

.admin-shell {
  width: min(1280px, calc(100% - 28px));
  margin: 28px auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: #fffaf2;
  margin-bottom: 18px;
}

.admin-header h1 { font-size: 34px; margin-bottom: 6px; }
.admin-header p { margin: 0; color: rgba(255,250,242,0.72); }

.admin-nav { display: flex; gap: 12px; }
.admin-nav a { color: #fff; border: 1px solid rgba(255,255,255,0.25); padding: 10px 14px; border-radius: 999px; }

.lead-list { display: grid; gap: 14px; }

.lead-card {
  display: grid;
  grid-template-columns: 120px 1fr 280px;
  gap: 18px;
  background: #fffaf2;
  border-radius: 22px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.35);
}

.lead-media {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  background: #efe4d5;
}

.image-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
}

.lead-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.lead-main p { margin: 6px 0; }
.lead-message { background: #fff; border-left: 3px solid var(--gold); padding: 10px; border-radius: 10px; }

.lead-actions {
  display: grid;
  gap: 8px;
  align-content: start;
}

.lead-actions button { border-radius: 12px; padding: 12px; }

.empty-state {
  background: #fffaf2;
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.product-search {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 10px;
  margin: 0 0 18px;
  background: #fffaf2;
  padding: 14px;
  border-radius: 18px;
}

.product-grid-admin {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-product-card {
  background: #fffaf2;
  border-radius: 22px;
  padding: 14px;
}

.admin-product-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 12px;
}

.admin-product-card h2 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.admin-product-card label { margin-top: 10px; display: block; }
.admin-product-card input { font-size: 12px; }

@media (max-width: 900px) {
  .hero-grid,
  .form-grid.two,
  .form-grid.three,
  .check-grid,
  .lead-card,
  .product-search,
  .product-grid-admin,
  .phone-input-row {
    grid-template-columns: 1fr;
  }

  .booking-card { padding: 20px; border-radius: 22px; }
  .page-shell { width: min(100% - 18px, 1120px); margin: 10px auto; }
  .lead-card { gap: 12px; }
  .lead-media { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .admin-header { align-items: flex-start; flex-direction: column; }
}
