:root {
  color-scheme: light;
  --ink: #253439;
  --muted: #687575;
  --line: #e2e4e1;
  --panel: #f6f7f4;
  --paper: #ffffff;
  --navy: #17224D;
  --charcoal: #253439;
  --charcoal-soft: #4C5757;
  --gold: #DBBD66;
  --gold-dark: #b79a43;
  --gold-pale: #feedba;
  --blue: #17224D;
  --danger: #a43c36;
  --shadow: 0 12px 28px rgba(23, 34, 77, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f0f2f4;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

.topbar {
  align-items: center;
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 8px 22px rgba(23, 34, 77, 0.16);
  color: white;
  display: flex;
  justify-content: space-between;
  min-height: 78px;
  padding: 16px clamp(18px, 4vw, 44px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-lockup {
  align-items: center;
  display: flex;
  gap: 16px;
}

.brand-logo {
  background: white;
  border-radius: 6px;
  height: 58px;
  object-fit: contain;
  padding: 6px 8px;
  width: 120px;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 2px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.1;
  margin-bottom: 0;
}

.status-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(219, 189, 102, 0.65);
  border-radius: 999px;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 12px;
  white-space: nowrap;
}

.layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1480px;
  padding: 24px clamp(16px, 4vw, 44px) 48px;
}

.script-panel {
  align-self: start;
  background: #f8f8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 126px);
  overflow: auto;
  padding: 18px;
  position: sticky;
  top: 102px;
}

.script-block {
  border-bottom: 1px solid var(--line);
  padding: 0 0 16px;
}

.script-block + .script-block {
  padding-top: 16px;
}

.script-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.script-block h2 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.script-block p {
  color: #39433f;
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.form-shell {
  display: grid;
  gap: 18px;
}

.form-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
}

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

.section-heading h2 {
  font-size: 1.12rem;
  margin-bottom: 2px;
}

.section-heading p {
  color: var(--muted);
  margin-bottom: 0;
}

.step {
  align-items: center;
  background: var(--navy);
  border: 2px solid var(--gold);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  flex: 0 0 30px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

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

.address-grid {
  grid-template-columns: minmax(240px, 2fr) minmax(140px, 1fr) 90px minmax(110px, 0.75fr);
}

.wide {
  grid-column: 1 / -1;
}

label {
  color: #2f3835;
  display: grid;
  font-size: 0.88rem;
  font-weight: 750;
  gap: 6px;
}

input,
select,
textarea {
  background: #fbfcfb;
  border: 1px solid #c7d1ce;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 9px 10px;
  width: 100%;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(219, 189, 102, 0.32);
  outline: none;
}

.conditional,
.project-section,
[data-project] {
  display: none;
}

.conditional.is-visible,
.project-section.is-visible {
  display: grid;
}

[data-project].is-visible {
  display: grid;
}

.project-section {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.project-section h3 {
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 2px;
}

.notice {
  background: var(--gold-pale);
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: #68440c;
  font-weight: 750;
  margin: 10px 0 4px;
  padding: 10px 12px;
}

.internal-row {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 360px);
  margin-top: 18px;
  padding-top: 18px;
}

.submit-row {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  margin-top: 18px;
}

button {
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 42px;
  padding: 10px 16px;
}

button:hover {
  background: #25306a;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

button.secondary {
  background: white;
  border-color: #b8c5c1;
  color: #34413d;
}

button.secondary:hover {
  background: #f7f1dc;
}

.slot-help {
  background: #f9f4e4;
  border-left: 4px solid var(--gold);
  color: #4b4534;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
  padding: 10px 12px;
}

.message {
  border-radius: 6px;
  display: none;
  font-weight: 750;
  margin-top: 14px;
  padding: 12px;
}

.message.is-visible {
  display: block;
}

.message.success {
  background: #f9f4e4;
  border: 1px solid var(--gold);
  color: var(--navy);
}

.message.error {
  background: #fff0ee;
  border: 1px solid #efbbb5;
  color: var(--danger);
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .script-panel {
    max-height: none;
    position: static;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .brand-logo {
    height: 48px;
    width: 100px;
  }

  .two,
  .address-grid,
  .submit-row {
    grid-template-columns: 1fr;
  }
}


.inline-page .topbar {
  position: sticky;
}

.inline-layout {
  margin: 0 auto;
  max-width: 980px;
  padding: 24px clamp(16px, 4vw, 44px) 56px;
}

.inline-form {
  display: grid;
  gap: 18px;
}

.inline-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
}

.call-step {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 16px 0 0;
}

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

.call-step + .call-step,
.inline-two + .call-step,
.call-step + .inline-two,
.inline-two + .inline-two {
  margin-top: 16px;
}

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

.say {
  background: #f9f4e4;
  border-left: 4px solid var(--gold);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  padding: 12px 14px;
}

.script-only .say {
  background: #f6f7f4;
  border-left-color: var(--navy);
}

.answer-step label {
  margin-top: 2px;
}

.inline-project {
  gap: 16px;
}

.inline-project.is-visible {
  display: grid;
}

.inline-address-grid {
  margin-top: 0;
}

.inline-submit-row {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

@media (max-width: 720px) {
  .inline-two {
    grid-template-columns: 1fr;
  }
}
