:root {
  --bg: #fff7ec;
  --card: #ffffff;
  --ink: #251514;
  --muted: #7b6a66;
  --brand: #8b2f18;
  --brand-2: #e1793f;
  --success: #168a4a;
  --danger: #c0392b;
  --line: #efd7c7;
  --shadow: 0 18px 50px rgba(90, 43, 16, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(225, 121, 63, .22), transparent 32rem),
    linear-gradient(180deg, #fffaf4 0%, var(--bg) 100%);
  color: var(--ink);
}

button,
input,
textarea,
select { font: inherit; }

.app-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 16px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 26px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--brand), #4a150e);
  color: #fff;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
  font-size: 12px;
  opacity: .75;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(30px, 9vw, 58px); line-height: .95; }
h2 { margin-bottom: 6px; font-size: 22px; }
.hero-copy { margin-bottom: 0; color: #ffe8da; line-height: 1.55; }

.card {
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.progress-card {
  margin: 16px 0;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.progress-card > div {
  padding: 14px;
  border-radius: 18px;
  background: #fff3e8;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.muted, .hint, small { color: var(--muted); }
.hint { margin-bottom: 0; line-height: 1.45; }

.booking-grid {
  display: grid;
  gap: 16px;
}

.section-card,
.action-card,
.admin-panel { padding: 18px; }

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.step {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

label {
  display: block;
  margin: 14px 0 7px;
  font-weight: 900;
}

input,
textarea,
select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
  min-height: 54px;
  background: #fffdf9;
  color: var(--ink);
  outline: none;
}

textarea { min-height: 112px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(225,121,63,.16); }

.package-list,
.slot-list,
.payment-options,
.booking-list {
  display: grid;
  gap: 10px;
}

.package-card,
.slot-btn,
.radio-card,
.booking-item {
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: #fffdf9;
}

.package-card {
  padding: 14px;
  cursor: pointer;
  display: grid;
  gap: 8px;
}

.package-card.active,
.radio-card:has(input:checked) {
  border-color: var(--brand-2);
  background: #fff0e4;
  box-shadow: 0 0 0 4px rgba(225,121,63,.14);
}

.package-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.price-line { font-weight: 950; color: var(--brand); }
.deposit-line { color: var(--muted); font-size: 13px; }

.slot-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.slot-btn {
  min-height: 52px;
  font-weight: 900;
  cursor: pointer;
}

.slot-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.slot-btn:disabled {
  background: #f0e6df;
  color: #a08f88;
  cursor: not-allowed;
  text-decoration: line-through;
}

.radio-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
}

.radio-card input { width: 22px; min-height: 22px; accent-color: var(--brand); }
.radio-card span { display: grid; gap: 3px; }

.qr-box {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #fff3e8;
}

.fake-qr {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, #111 10px, transparent 10px 18px, #111 18px 26px, transparent 26px),
    linear-gradient(#111 10px, transparent 10px 18px, #111 18px 26px, transparent 26px),
    #fff;
  border: 8px solid #fff;
  box-shadow: inset 0 0 0 2px #111;
}

.form-message {
  min-height: 28px;
  margin-bottom: 12px;
  font-weight: 800;
}
.form-message.error { color: var(--danger); }
.form-message.success { color: var(--success); }

.primary-btn,
.whatsapp-btn,
.ghost-btn,
.danger-btn {
  border: 0;
  border-radius: 18px;
  padding: 15px 18px;
  min-height: 54px;
  font-weight: 950;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.primary-btn { width: 100%; background: var(--brand); color: #fff; }
.whatsapp-btn { width: 100%; margin-top: 10px; background: #19a957; color: #fff; }
.ghost-btn { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.26); }
.danger-btn { background: #ffe6e2; color: var(--danger); }
.hidden { display: none !important; }

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

.booking-item {
  padding: 14px;
  display: grid;
  gap: 8px;
}
.booking-item strong { color: var(--brand); }
.booking-meta { color: var(--muted); font-size: 13px; line-height: 1.45; }

@media (min-width: 760px) {
  .app-shell { padding: 28px; }
  .hero { grid-template-columns: 1fr auto; align-items: center; padding: 38px; }
  .progress-card { grid-template-columns: repeat(3, 1fr); }
  .booking-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .action-card { grid-column: 1 / -1; }
  .slot-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
