:root {
  --navy: #0f2a44;
  --navy-hover: #183c5f;
  --gold: #d7af49;
  --light-gold: #ede37e;
  --ivory: #fffdf8;
  --blush: #fbf4f2;
  --ink: #263544;
  --muted: #687584;
  --line: rgba(15, 42, 68, 0.14);
  --shadow: 0 22px 60px rgba(15, 42, 68, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(237, 227, 126, 0.18), transparent 34%),
    linear-gradient(180deg, var(--ivory), var(--blush));
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
}

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

.site-header {
  color: white;
  background:
    linear-gradient(135deg, rgba(215, 175, 73, 0.22), transparent 40%),
    var(--navy);
  padding: 34px 20px;
}

.header-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo-placeholder {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid rgba(215, 175, 73, 0.85);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.05);
}

.logo-placeholder span {
  color: var(--light-gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-kicker {
  margin: 0 0 2px;
  color: var(--light-gold);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
}

.site-header h1 {
  color: white;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.05;
}

.tagline {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
}

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

.intro {
  max-width: 780px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 1.02rem;
}

.landing-intro {
  margin-inline: auto;
  text-align: center;
}

.single-page-shell {
  max-width: 860px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--navy);
  font-weight: 800;
  text-decoration-color: rgba(215, 175, 73, 0.75);
  text-underline-offset: 4px;
}

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

.choice-card {
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 330px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(237, 227, 126, 0.13), rgba(255, 255, 255, 0.9)),
    white;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.choice-card h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.65rem, 4vw, 2.3rem);
  line-height: 1.08;
}

.choice-card p:not(.section-label) {
  margin: 0;
  color: var(--muted);
}

.choice-card .button {
  width: fit-content;
  align-self: end;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.calculator-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.owner-card {
  border-top: 6px solid var(--gold);
}

.public-card {
  border-top: 6px solid var(--navy);
}

.card-heading,
.calculator-form,
.result-panel {
  padding: 24px;
}

.card-heading {
  background: rgba(237, 227, 126, 0.14);
  border-bottom: 1px solid var(--line);
}

.section-label {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-heading h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  line-height: 1.1;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.93rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(15, 42, 68, 0.18);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
  resize: vertical;
}

.hidden {
  display: none;
}

.modal-open {
  overflow: hidden;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(215, 175, 73, 0.18);
}

.addons-panel {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(215, 175, 73, 0.28);
  border-radius: 18px;
  background: rgba(237, 227, 126, 0.13);
}

.addons-panel h3,
.lead-form h3,
.result-panel h3 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.addon-list {
  display: grid;
  gap: 13px;
}

.addon-item {
  display: grid;
  grid-template-columns: auto 1fr minmax(78px, 96px);
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.addon-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.addon-item input[type="number"] {
  padding: 9px 10px;
}

.addon-note {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.result-panel {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(237, 227, 126, 0.1));
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--muted);
}

.result-row strong,
.mini-results strong,
.public-estimate strong {
  color: var(--gold);
}

.result-emphasis strong {
  font-size: 1.65rem;
}

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

.mini-results div {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 13px;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--line);
}

.mini-results span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.mini-results strong {
  font-size: 1.2rem;
}

.breakdown-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.message-box textarea {
  min-height: 154px;
  color: var(--navy);
  font-weight: 600;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.primary-button {
  color: white;
  background: var(--navy);
  box-shadow: 0 12px 24px rgba(15, 42, 68, 0.2);
}

.primary-button:hover {
  background: var(--navy-hover);
}

.accent-button {
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 12px 24px rgba(215, 175, 73, 0.22);
}

.public-estimate {
  margin-top: 22px;
  padding: 24px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(237, 227, 126, 0.22), rgba(255, 255, 255, 0.84)),
    white;
  border: 1px solid rgba(215, 175, 73, 0.34);
  text-align: center;
}

.public-estimate span {
  display: block;
  color: var(--navy);
  font-weight: 800;
}

.public-estimate strong {
  display: block;
  margin: 8px 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.1rem, 8vw, 3.55rem);
  line-height: 1;
}

.public-estimate p {
  margin: 0 auto;
  max-width: 480px;
  color: var(--muted);
  font-size: 0.92rem;
}

.lead-form {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.quote-button {
  width: 100%;
  padding: 16px 20px;
  font-size: 1rem;
}

.success-message,
.copy-status {
  min-height: 24px;
  margin: 0;
  color: var(--navy);
  font-weight: 800;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 42, 68, 0.58);
}

.success-modal.hidden {
  display: none;
}

.success-modal__card {
  width: min(520px, 100%);
  padding: 30px;
  border: 1px solid rgba(215, 175, 73, 0.34);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(237, 227, 126, 0.18), rgba(255, 255, 255, 0.96)),
    white;
  box-shadow: 0 28px 70px rgba(15, 42, 68, 0.28);
  text-align: center;
}

.success-modal__card h2 {
  margin-bottom: 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 8vw, 3rem);
}

.success-modal__card p:not(.section-label) {
  margin: 0 auto 24px;
  max-width: 390px;
  color: var(--muted);
}

.success-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.success-modal__actions a {
  text-decoration: none;
}

@media (max-width: 980px) {
  .calculator-grid,
  .page-choice-grid {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 26px 16px;
  }

  .header-inner {
    align-items: flex-start;
    gap: 16px;
  }

  .logo-placeholder {
    width: 72px;
    height: 72px;
  }

  .logo-placeholder span {
    font-size: 1.1rem;
  }

  .page-shell {
    width: min(100% - 24px, 1180px);
    margin-top: 20px;
  }

  .card-heading,
  .calculator-form,
  .result-panel {
    padding: 18px;
  }

  .field-grid,
  .mini-results {
    grid-template-columns: 1fr;
  }

  .addon-item {
    grid-template-columns: auto 1fr;
  }

  .addon-item input[type="number"] {
    grid-column: 2;
    width: 92px;
  }

  .success-modal__card {
    padding: 24px 18px;
  }

  .success-modal__actions {
    display: grid;
  }
}
