:root {
  color-scheme: dark;
  --ink: #f8fbff;
  --muted: #b7c1cf;
  --line: rgba(213, 156, 86, 0.32);
  --paper: #030f1f;
  --card: #07182c;
  --card-strong: #0a2038;
  --brand: #071629;
  --brand-soft: #102c48;
  --accent: #d59c56;
  --accent-light: #f0c37b;
  --accent-dark: #b67a38;
  --shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #020b17 0%, #06162a 46%, #031020 100%);
  color: var(--ink);
}

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

.app-shell {
  width: min(760px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background:
    linear-gradient(160deg, rgba(213, 156, 86, 0.08), transparent 34%),
    linear-gradient(180deg, #06162a 0%, #031020 100%);
  box-shadow: 0 0 48px rgba(0, 0, 0, 0.45);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: max(12px, env(safe-area-inset-top)) 14px 12px;
  background: rgba(3, 15, 31, 0.96);
  color: #fff;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(213, 156, 86, 0.28);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  flex: 0 0 auto;
  object-fit: contain;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: rgba(240, 195, 123, 0.78);
  font-size: 0.8rem;
}

.top-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.top-action,
.button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.top-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 40px;
  border: 1px solid rgba(213, 156, 86, 0.46);
  border-radius: 999px;
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.top-action.install {
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  border-color: var(--accent);
  color: #06162a;
  box-shadow: 0 8px 18px rgba(213, 156, 86, 0.22);
}

.hero {
  padding: 34px 20px 20px;
  background:
    linear-gradient(135deg, rgba(213, 156, 86, 0.2) 0 1px, transparent 1px 100%),
    linear-gradient(145deg, #031020, #0a2038 72%, #07182c);
  background-size: 100% 100%, auto;
  border-bottom: 1px solid rgba(213, 156, 86, 0.24);
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.panel h2,
.history h2 {
  margin: 0;
  line-height: 1.05;
}

.hero h1 {
  max-width: 11ch;
  font-family: Georgia, serif;
  font-size: clamp(2.15rem, 11vw, 4.2rem);
  font-weight: 500;
}

.hero p:last-child {
  max-width: 35rem;
  color: rgba(248, 251, 255, 0.84);
  line-height: 1.6;
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(213, 156, 86, 0.38);
  border-radius: 999px;
  background: rgba(213, 156, 86, 0.1);
  color: rgba(248, 251, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 800;
}

.install-help {
  display: grid;
  gap: 14px;
  margin: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.install-help[hidden] {
  display: none;
}

.install-help h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.12;
}

.install-help p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px 12px;
  background: rgba(3, 15, 31, 0.86);
  border-bottom: 1px solid var(--line);
}

.step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.step span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.step.active {
  background: rgba(213, 156, 86, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(213, 156, 86, 0.48);
}

.step.active span {
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  color: #06162a;
}

.booking,
.history {
  padding: 18px 16px 22px;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.panel h2,
.history h2 {
  margin-bottom: 18px;
  font-size: 1.38rem;
}

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

.subhead {
  margin: 18px 0 12px;
  font-size: 1rem;
}

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

.method-card {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 4px 10px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.method-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(213, 156, 86, 0.4);
  border-radius: 8px;
  background: rgba(213, 156, 86, 0.08);
}

.method-icon svg {
  width: 22px;
  height: 22px;
}

.method-icon.phone svg {
  fill: var(--accent-light);
}

.method-icon.whatsapp {
  background: rgba(37, 211, 102, 0.13);
  border-color: rgba(37, 211, 102, 0.34);
}

.method-icon.whatsapp svg {
  fill: #25d366;
}

.method-icon.meet {
  background: rgba(255, 255, 255, 0.08);
}

.method-icon.meet svg {
  width: 24px;
  height: 24px;
}

.meet-green {
  fill: #00ac47;
}

.meet-blue {
  fill: #00832d;
}

.meet-yellow {
  fill: #fbbc04;
}

.meet-red {
  fill: #ea4335;
}

.method-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--card-strong);
  box-shadow: 0 0 0 3px rgba(213, 156, 86, 0.16);
}

.method-card span {
  font-weight: 900;
}

.method-card small {
  grid-column: 3;
  color: var(--muted);
  line-height: 1.4;
}

.session-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.session-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--card-strong);
  box-shadow: 0 0 0 3px rgba(213, 156, 86, 0.16);
}

.session-card small {
  grid-column: 2 / -1;
  color: var(--muted);
  line-height: 1.45;
}

.field {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent-light);
  outline: 3px solid rgba(213, 156, 86, 0.18);
}

.field input[type="date"] {
  color-scheme: dark;
}

.field textarea {
  resize: vertical;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0 18px;
  line-height: 1.45;
}

.actions,
.payment-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button.primary {
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  color: #06162a;
  box-shadow: 0 10px 24px rgba(213, 156, 86, 0.24);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.button.text {
  width: 100%;
  margin-top: 12px;
  background: transparent;
  color: var(--accent-light);
}

.summary-card,
.history-list article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.summary-card dl,
.summary-card div {
  display: grid;
  gap: 8px;
  margin: 0;
}

.summary-card div {
  grid-template-columns: 120px 1fr;
  padding: 8px 0;
  border-bottom: 1px solid rgba(213, 156, 86, 0.18);
}

.summary-card div:last-child {
  border-bottom: 0;
}

.summary-card dt {
  color: var(--muted);
  font-weight: 800;
}

.summary-card dd {
  margin: 0;
}

.notice {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.history {
  border-top: 1px solid var(--line);
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-list article {
  display: grid;
  gap: 4px;
}

.history-list span,
.history-list small {
  color: var(--muted);
}

@media (min-width: 680px) {
  .topbar,
  .booking,
  .history,
  .hero,
  .install-help {
    padding-left: 28px;
    padding-right: 28px;
  }

  .actions,
  .payment-actions {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 380px) {
  .topbar {
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand img {
    width: 36px;
    height: 32px;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand span {
    font-size: 0.72rem;
  }

  .top-actions {
    gap: 6px;
  }

  .top-action {
    min-width: 72px;
    min-height: 36px;
    padding: 0 9px;
    font-size: 0.74rem;
  }

  .steps {
    padding-left: 10px;
    padding-right: 10px;
  }

  .step {
    gap: 5px;
    font-size: 0.76rem;
  }

  .step span {
    width: 20px;
    height: 20px;
  }
}
