:root {
  --black: #000000;
  --dark: #434345;
  --gold: #bca480;
  --white: #ffffff;
  --soft: #f6f4f0;
  --line: rgba(67, 67, 69, .18);
  --danger: #9f1d1d;
  --success: #245b3a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Lato, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

a { color: inherit; }

.app-shell {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(0,0,0,.92), rgba(67,67,69,.7)),
    radial-gradient(circle at 75% 15%, rgba(188,164,128,.16), transparent 34%),
    var(--black);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

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

.brand img {
  width: 148px;
  max-width: 42vw;
  height: auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 900;
  letter-spacing: .08em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

.hero, .panel-wrap {
  padding: clamp(34px, 7vw, 84px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 450px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

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

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 8vw, 92px);
  line-height: .9;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lede {
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.card {
  background: var(--white);
  color: var(--dark);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}

.card-pad { padding: clamp(24px, 4vw, 42px); }

.property-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.address-block {
  margin: 22px 0;
  color: var(--dark);
  font-size: 20px;
  line-height: 1.35;
  text-align: center;
}

.address-block strong {
  display: block;
  margin-bottom: 4px;
  color: var(--black);
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

label {
  display: block;
  margin: 0;
  color: var(--dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

input, textarea, select {
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 18px;
  background: #fff;
  color: var(--black);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  outline: none;
}

select {
  min-height: 56px;
}

form > label:not(.choice),
.admin-card > label:not(.choice) {
  margin-top: 20px;
}

.form-grid + label:not(.choice),
label:not(.choice) + label:not(.choice),
textarea + label:not(.choice),
select + label:not(.choice),
input + label:not(.choice) {
  margin-top: 20px;
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.45;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(188,164,128,.18);
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 22px;
  background: var(--gold);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { filter: brightness(.96); }
.btn:disabled,
.btn[disabled] {
  cursor: pointer;
  opacity: 1;
  filter: none;
}
.btn.dark { background: var(--black); }
.btn.muted { background: #777b80; }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.24); color: var(--white); }
.btn.full { width: 100%; }

.card-pad .btn.full,
.admin-card form .btn {
  margin-top: 24px;
}

.question {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.question:first-of-type { border-top: 0; padding-top: 0; }

.page-video {
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--black);
  aspect-ratio: 16 / 9;
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
}

.page-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.question-title {
  margin-bottom: 14px;
  color: var(--black);
  font-size: 20px;
  line-height: 1.25;
}

.choice-list {
  display: grid;
  gap: 12px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--dark);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.choice input { width: auto; margin: 0; }

.choice-list .choice {
  margin-top: 0;
}

.notice {
  margin-bottom: 18px;
  border-radius: 8px;
  padding: 13px 15px;
  background: #fff6e6;
  color: #5c4320;
  font-weight: 800;
}

.notice.success { background: #eaf6ef; color: var(--success); }
.notice.danger { background: #fff1f1; color: var(--danger); }

.form-help {
  margin: 12px 0 0;
  color: #777;
  font-size: 13px;
  line-height: 1.45;
}

.form-help.error {
  color: var(--danger);
  font-weight: 800;
}

.admin-shell {
  min-height: 100vh;
  background: var(--soft);
  color: var(--dark);
}

.admin-top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  background: var(--black);
  color: var(--white);
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 66px);
}

.admin-nav {
  padding: 18px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.admin-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--dark);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.admin-nav a.active,
.admin-nav a:hover { background: var(--black); color: var(--white); }

.admin-main { padding: clamp(18px, 4vw, 38px); }

.admin-card {
  margin-bottom: 22px;
  padding: clamp(22px, 3vw, 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-card h2 {
  margin-bottom: 24px;
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th, td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--black);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.embed-preview {
  background: #191919;
  border-radius: 8px;
  padding: 24px;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  padding: 16px;
  border-radius: 8px;
  background: #151515;
  color: #f4f4f4;
}

.sequence-pages {
  display: grid;
  gap: 16px;
}

.sequence-page {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 16px;
  cursor: grab;
}

.sequence-page.dragging,
.sequence-question.dragging {
  opacity: .5;
}

.sequence-page-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.sequence-page-head strong {
  color: var(--black);
  font-size: 16px;
  text-transform: uppercase;
}

.sequence-page-head span {
  color: #777;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sequence-questions {
  display: grid;
  min-height: 56px;
  gap: 10px;
  border: 1px dashed rgba(67, 67, 69, .25);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.sequence-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  color: var(--dark);
  cursor: grab;
}

.sequence-question span {
  color: var(--black);
  font-weight: 800;
}

.sequence-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sequence-actions form {
  margin: 0;
}

.sequence-actions button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0;
  text-decoration: underline;
}

.sequence-question a,
.sequence-page-head a {
  color: var(--gold);
  font-weight: 900;
}

@media (max-width: 820px) {
  .hero-grid, .form-grid, .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { border-right: 0; border-bottom: 1px solid var(--line); }
  .topbar, .admin-top { align-items: flex-start; flex-direction: column; }
}
