:root {
  --ink: #201c1a;
  --navy: #3f395f;
  --clay: #7a351b;
  --copper: #b4572a;
  --berry: #5d1316;
  --stone: #d6cec7;
  --mist: #f8f1ea;
  --surface: rgba(255, 255, 255, 0.92);
  --text: var(--ink);
  --accent: #5d1316;
  --shadow-soft: 0 18px 46px rgba(103, 65, 49, 0.14);
  --shadow-hard: 0 14px 30px rgba(103, 65, 49, 0.18);
}

* {
  box-sizing: border-box;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

body {
  margin: 0;
  color: var(--text);
  padding: 0;
  background: #f8f7f4;
}

.calc-header {
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(148,74,45,0.16);
  box-shadow: 0 12px 28px rgba(148,74,45,0.06);
}

.calc-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #944a2d, #7f2628);
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 12px 24px rgba(148,74,45,0.22);
}

.brand-mark .material-symbols-outlined {
  font-size: 22px;
}

.brand-mark.small {
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.brand-title {
  display: block;
  letter-spacing: -0.01em;
  font-weight: 800;
}

.brand-sub {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(31,36,48,0.6);
}

.contact-link {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(148,74,45,0.12);
  border: 1px solid rgba(148,74,45,0.18);
  transition: all 150ms ease;
}

.contact-link:hover {
  background: rgba(148,74,45,0.16);
  box-shadow: 0 10px 24px rgba(148,74,45,0.15);
}

.calc-contact-link {
  color: #ffffff !important;
}

.contact-link .material-symbols-outlined {
  font-size: 18px;
}

.wrap {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.calc-hero {
  padding: 32px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}


.calc-hero h1 {
  margin: 0;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  font-family: "Playfair Display", "Georgia", serif;
  color: #3f395f;
}

.mini {
  font-size: 0.9rem;
  margin: 6px 0 0;
  color: #64748b;
}

.trust-strip {
  margin-top: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.trust-link {
  border: 0;
  background: transparent;
  color: #944a2d;
  text-decoration: underline;
  font: inherit;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}

.trust-link:hover {
  opacity: 0.85;
}

.plan-preview {
  margin-top: 18px;
  padding: 22px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: grid;
  gap: 14px;
  font-size: 0.9rem;
}

.plan-preview-title {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #94a3b8;
  font-weight: 800;
}

.plan-preview-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-preview-row {
  display: grid;
  gap: 2px;
}

@media (min-width: 768px) {
  .plan-preview-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.plan-preview-label {
  font-size: 0.62rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 800;
}

.plan-preview-value {
  font-weight: 700;
  color: #3f395f;
}

.plan-preview-value-em {
  color: #944a2d;
  font-style: italic;
}

.card {
  padding: 18px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.card h2,
.card h3 {
  font-family: "Playfair Display", "Georgia", serif;
  color: #3f395f;
  letter-spacing: -0.01em;
}

.screen-animate {
  animation: fadeSlide 240ms ease;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.row,
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.hint {
  margin: 8px 0 0;
  color: rgba(31,36,48,0.75);
  line-height: 1.4;
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  background: #e2e8f0;
  color: #475569;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.74rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
}

.stepper {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.step {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  color: #94a3b8;
  font-size: 0.82rem;
  background: #ffffff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.step-icon {
  font-size: 16px;
  line-height: 1;
}

.step.active {
  border-color: #3f395f;
  border-width: 2px;
  background: rgba(63, 57, 95, 0.08);
  color: #3f395f;
  font-weight: 700;
}

.step.done {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.28);
  color: #15803d;
  font-weight: 700;
  opacity: 0.98;
}

.step.locked {
  color: #94a3b8;
  background: #ffffff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.col-12 { grid-column: span 12; }
.col-6  { grid-column: span 6; }
.col-4  { grid-column: span 4; }

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #334155;
  font-size: 0.75rem;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
  outline: none;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.875rem;
  line-height: 1.25rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: #944a2d;
  box-shadow: 0 0 0 3px rgba(148, 74, 45, 0.16);
  background: #ffffff;
}

input[type="date"] {
  min-height: 2.5rem;
}

textarea { min-height: 88px; resize: vertical; }

.actions,
.modal .footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.actions {
  margin-top: 14px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: #944a2d;
  color: #fff;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 160ms ease, opacity 120ms ease, background-color 120ms ease;
  box-shadow: 0 10px 20px rgba(148, 74, 45, 0.18);
}

.btn.secondary {
  background: #ffffff;
  color: #64748b;
  border-color: #e2e8f0;
  box-shadow: none;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(148, 74, 45, 0.24);
}

.btn.secondary:hover {
  box-shadow: none;
  background: #f8fafc;
}

.divider {
  height: 1px;
  background: rgba(122, 53, 27, 0.38);
  margin: 12px 0;
}

.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 10px 12px;
  border-radius: 10px;
}

.ok {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  padding: 10px 12px;
  border-radius: 10px;
}

.result {
  display: grid;
  gap: 6px;
}

.estimate-card {
  background: linear-gradient(120deg, rgba(122, 53, 27, 0.28), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(122, 53, 27, 0.4);
  border-radius: 16px;
  padding: 14px;
}

.estimate-amount {
  font-size: 1.35rem;
  font-weight: 800;
}

.section-title {
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: rgba(40, 32, 30, 0.6);
  border-top: 1px dashed rgba(148, 74, 45, 0.22);
  padding-top: 8px;
}

.details-shell {
  display: grid;
  gap: 0;
  margin: -18px;
}

.details-head {
  padding: 30px 32px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.details-form {
  border: 0;
  border-radius: 0;
  background: #ffffff;
  padding: 28px 32px 32px;
  display: grid;
  gap: 36px;
}

.details-section {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.details-address-panel {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 24px;
}

.details-section-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  color: #94a3b8;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.details-section-title .material-icons-round {
  font-size: 16px;
  color: #94a3b8;
}

.details-grid {
  margin-top: 0;
}

.field-help {
  margin-top: 6px;
  opacity: 1;
  color: #64748b;
  font-size: 0.72rem;
}

.field-with-icon {
  position: relative;
}

.field-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #94a3b8;
  pointer-events: none;
}

.field-with-icon input {
  padding-left: 38px;
  background: #ffffff;
}

.field-error-inline {
  margin-top: 8px;
}

.details-actions .actions {
  margin-top: 4px;
  padding-top: 22px;
  border-top: 1px solid #f1f5f9;
  justify-content: space-between;
}

.family-inline-check,
.consent-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin: 0;
}

.family-inline-check input[type="checkbox"],
.consent-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.consent-option input[type="checkbox"] {
  flex-shrink: 0;
}

.family-child-actions {
  align-items: center;
}

.family-child-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
  margin-top: 10px;
}

.family-child-head {
  align-items: center;
}

.family-child-title {
  font-weight: 700;
}

.family-child-grid {
  margin-top: 10px;
}

.cover-guide {
  margin-top: 12px;
}

.cover-guide-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 14px;
}

.cover-guide-title-pill {
  background: #201c1a;
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.15;
  max-width: 280px;
}

.cover-guide-top-dash {
  display: none;
}

.cover-guide-content {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 18px;
  align-items: start;
}

.cover-guide-panel {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  padding: 16px;
}

.cover-guide-panel h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #3f395f;
}

.cover-guide-panel p,
.cover-guide-panel li {
  color: #334155;
  font-size: 0.86rem;
  line-height: 1.45;
}

.cover-guide-panel ul {
  margin: 0.45rem 0 0.7rem 1.1rem;
}

.cover-guide-key-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
  color: #475569;
}

.cover-guide-rings {
  width: 36px;
  height: 20px;
  position: relative;
}

.cover-guide-rings:before,
.cover-guide-rings:after {
  content: "";
  position: absolute;
  top: 1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #111827;
}

.cover-guide-rings:before { left: 2px; }
.cover-guide-rings:after { left: 14px; }

.cover-guide-note-title {
  margin-top: 10px;
  font-weight: 700;
  color: #1e293b;
}

.cover-guide-important {
  margin-top: 8px;
  font-weight: 700;
}

.cover-guide-small {
  font-size: 0.84rem;
}

.cover-guide-image-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cover-guide-image-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
}

.cover-guide-image-box {
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-guide-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1);
  transform-origin: center;
  transition: transform 260ms ease;
}

.cover-guide-image-box:hover img {
  transform: scale(1.2);
}

.cover-guide-image-fallback {
  display: none;
  padding: 16px;
  text-align: center;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.4;
}

.cover-guide-image-fallback.visible {
  display: block;
}

@media (max-width: 980px) {
  .cover-guide-content {
    grid-template-columns: 1fr;
  }

  .cover-guide-title-pill {
    max-width: none;
  }

  .cover-guide-image-box {
    min-height: 420px;
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop.open { display: flex; }

.modal {
  width: min(760px, 96vw);
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid rgba(148, 74, 45, 0.2);
  box-shadow: 0 22px 60px rgba(148, 74, 45, 0.2);
  overflow: hidden;
}

.modal header, .modal .footer {
  padding: 14px 16px;
}

.modal .body {
  padding: 0 16px 16px;
}

.scroll {
  max-height: 240px;
  overflow: auto;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 74, 45, 0.14);
  background: rgba(148, 74, 45, 0.04);
}

.modal .footer {
  border-top: 1px solid rgba(31,36,48,0.10);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.consent-option span {
  line-height: 1.4;
}

.confirm-card {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 74, 45, 0.2);
  background: rgba(148, 74, 45, 0.06);
  display: flex;
  align-items: flex-start;
  gap: 10px;
 }

.confirm-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 700;
  margin: 0;
 }

.confirm-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
 }

.confirm-text {
  line-height: 1.5;
 }

/* Review summary blocks */
.summary{
  border: 1px solid rgba(148, 74, 45, 0.18);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
}
.summary-title{
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.summary-grid{
  display: grid;
  gap: 8px;
}
.summary-row .k{
  color: rgba(40, 32, 30, 0.72);
}
.summary-row .v{
  text-align: right;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.calc-step-title {
  margin: 0 0 10px;
}

.calc-mt-0 {
  margin-top: 0;
}

.calc-mt-6 {
  margin-top: 6px;
}

.calc-mt-8 {
  margin-top: 8px;
}

.calc-mt-10 {
  margin-top: 10px;
}

.calc-mt-12 {
  margin-top: 12px;
}

.calc-mb-0 {
  margin-bottom: 0;
}

.calc-mini-muted {
  opacity: 0.9;
}

.calc-mini-muted-light {
  opacity: 0.85;
}

.calc-inline-list {
  margin: 0 0 0 18px;
}

.calc-compact-list {
  margin: 0;
  padding-left: 18px;
}

.calc-family-note {
  margin: 0 0 8px;
  opacity: 0.9;
}

.calc-family-child-title {
  margin: 0 0 6px;
  opacity: 0.9;
}

.calc-family-empty {
  margin: 0;
  opacity: 0.9;
}

.inline-terms-link-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.inline-terms-link {
  color: #944a2d;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.inline-terms-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  background: #ffffff;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.68rem;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.inline-terms-link-wrap:hover .inline-terms-tooltip,
.inline-terms-link-wrap:focus-within .inline-terms-tooltip {
  opacity: 1;
}

.calc-footer {
  max-width: 1100px;
  margin: 20px auto 0;
  padding: 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(148, 74, 45, 0.18);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(148, 74, 45, 0.12);
  font-size: 0.9rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 700;
}

.footer-sub {
  font-weight: 600;
  color: rgba(40, 32, 30, 0.6);
  font-size: 0.85rem;
}

.footer-copy {
  color: rgba(40, 32, 30, 0.65);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Responsive tweaks for mobile */
@media (max-width: 768px) {
  .calc-header-inner, .calc-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .calc-hero {
    padding: 20px;
  }

  .card {
    padding: 14px;
  }

  .details-shell {
    margin: -14px;
  }

  .details-head {
    padding: 20px 20px 16px;
  }

  .details-form {
    padding: 18px 20px 22px;
    gap: 24px;
  }

  .details-address-panel {
    padding: 16px;
  }

  .cover-guide-content {
    grid-template-columns: 1fr;
  }

  .cover-guide-title-pill {
    max-width: none;
  }

  .cover-guide-image-box {
    min-height: 380px;
  }

  .row {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .col-6, .col-4 {
    grid-column: span 12;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
    text-align: center;
  }

  .stepper {
    gap: 6px;
  }

  .calc-header, .calc-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-link {
    width: 100%;
    text-align: center;
  }
}


