/* Cost estimator page: a compact, editorial planning experience scoped to this page. */
.cost-estimator-page {
  --estimator-ink: #20342a;
  --estimator-green: #28573c;
  --estimator-muted: #5d6c62;
  --estimator-line: #dce2d9;
  --estimator-paper: #f5f4ef;
  --estimator-gold: #a58a57;
  background: #fff;
}

.cost-estimator-page main {
  padding-top: var(--total-header-height);
}

.cost-estimator-page .estimator-page-intro {
  padding: clamp(34px, 5vw, 66px) 0 clamp(30px, 4vw, 48px);
  background: #f6f5f0;
  border-bottom: 1px solid #e4e5dd;
}

.cost-estimator-page .estimator-page-intro-inner {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
  padding-inline: 0 !important;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.72fr);
  align-items: end;
  gap: clamp(32px, 6vw, 84px);
}

.cost-estimator-page .estimator-page-intro-copy {
  max-width: 700px;
}

.cost-estimator-page .estimator-eyebrow,
.cost-estimator-page .estimator-section-label {
  margin: 0 0 14px;
  color: #68776c;
  font: 700 0.74rem/1.3 var(--font-sans, "Hanken Grotesk", sans-serif);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cost-estimator-page .estimator-eyebrow span {
  padding: 0 5px;
  color: var(--estimator-gold);
}

.cost-estimator-page .estimator-page-intro h1 {
  max-width: 690px;
  margin: 0;
  color: var(--estimator-ink);
  font: 400 clamp(2.35rem, 4.3vw, 3.9rem)/1.04 var(--font-serif, "EB Garamond", Georgia, serif);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.cost-estimator-page .estimator-page-intro h1 em {
  color: #806d48;
  font-style: italic;
}

.cost-estimator-page .estimator-intro-summary {
  max-width: 64ch;
  margin: 18px 0 0;
  color: var(--estimator-muted);
  font: 400 1rem/1.65 var(--font-sans, "Hanken Grotesk", sans-serif);
}

.cost-estimator-page .estimator-brief {
  padding: 20px 22px 18px;
  border: 1px solid #e0e3dc;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(32 52 42 / 5%);
}

.cost-estimator-page .estimator-brief-label {
  margin: 0 0 14px;
  color: #68776c;
  font: 700 0.68rem/1.3 var(--font-sans, "Hanken Grotesk", sans-serif);
  letter-spacing: 0.12em;
}

.cost-estimator-page .estimator-brief ol {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cost-estimator-page .estimator-brief li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  color: var(--estimator-ink);
  font: 600 0.91rem/1.45 var(--font-sans, "Hanken Grotesk", sans-serif);
}

.cost-estimator-page .estimator-brief li span:first-child {
  color: var(--estimator-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cost-estimator-page .estimator-brief-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #eceee8;
  color: #68776c;
  font: 400 0.8rem/1.5 var(--font-sans, "Hanken Grotesk", sans-serif);
}

.cost-estimator-page .estimator-calculator-section {
  padding: clamp(42px, 6vw, 72px) 0 clamp(54px, 7vw, 84px) !important;
  border: 0;
  background: var(--estimator-paper) !important;
}

.cost-estimator-page .calc-container {
  display: flex !important;
  width: 100% !important;
  max-width: 1040px !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

.cost-estimator-page .estimator-calculator-heading {
  width: 100%;
  max-width: 820px;
  margin: 0 auto 24px;
  text-align: left;
}

.cost-estimator-page .estimator-section-label {
  margin-bottom: 9px;
  color: var(--estimator-green);
}

.cost-estimator-page .estimator-calculator-heading h2 {
  margin: 0 0 8px;
  color: var(--estimator-ink);
  font: 400 clamp(1.85rem, 3vw, 2.55rem)/1.12 var(--font-serif, "EB Garamond", Georgia, serif);
  letter-spacing: -0.025em;
}

.cost-estimator-page .estimator-calculator-heading > p:not(.estimator-section-label):not(.estimator-estimate-note) {
  max-width: 66ch;
  margin: 0;
  color: var(--estimator-muted);
  font: 400 1rem/1.6 var(--font-sans, "Hanken Grotesk", sans-serif);
}

.cost-estimator-page .estimator-estimate-note {
  max-width: 820px;
  margin: 14px 0 0;
  padding: 11px 14px;
  border-left: 3px solid var(--estimator-gold);
  background: #eeede6;
  color: #526257;
  font: 400 0.86rem/1.55 var(--font-sans, "Hanken Grotesk", sans-serif);
}

.cost-estimator-page .calc-card.wizard-card {
  width: 100%;
  max-width: 820px !important;
  padding: clamp(22px, 3.2vw, 36px) !important;
  border: 1px solid var(--estimator-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgb(32 52 42 / 8%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  overflow: visible;
}

.cost-estimator-page .wizard-header {
  min-height: 34px;
  margin-bottom: 14px;
}

.cost-estimator-page .wizard-step-title {
  color: #53685a;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
}

.cost-estimator-page .wizard-reset-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #e0e5df;
  color: #526257;
}

.cost-estimator-page .wizard-reset-btn:hover {
  background: #f5f7f4;
  color: var(--estimator-green);
}

.cost-estimator-page .wizard-reset-btn:focus-visible,
.cost-estimator-page .wizard-selection-card:focus-visible,
.cost-estimator-page .locality-chip:focus-visible,
.cost-estimator-page .wizard-actions button:focus-visible,
.cost-estimator-page .wizard-actions a:focus-visible {
  outline: 3px solid rgb(165 138 87 / 45%);
  outline-offset: 3px;
}

.cost-estimator-page .wizard-progress-segments {
  gap: 6px;
  margin-bottom: 30px;
}

.cost-estimator-page .wizard-progress-segments .segment {
  height: 5px;
  background: #e8ebe5;
}

.cost-estimator-page .wizard-progress-segments .segment.active {
  background: var(--estimator-green);
}

.cost-estimator-page .wizard-step-heading {
  margin: 0 0 7px;
  color: var(--estimator-ink);
  font: 400 clamp(1.55rem, 2.8vw, 2rem)/1.16 var(--font-serif, "EB Garamond", Georgia, serif);
  letter-spacing: -0.018em;
}

.cost-estimator-page .wizard-step-subheading {
  margin-bottom: 24px;
  color: #617067;
  font-size: 0.96rem;
  line-height: 1.55;
}

.cost-estimator-page .wizard-input-group {
  max-width: 680px;
  margin-bottom: 20px;
}

.cost-estimator-page .wizard-input-label {
  color: #526257;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
}

.cost-estimator-page .wizard-input,
.cost-estimator-page .wizard-select,
.cost-estimator-page .wizard-input-simple {
  min-height: 48px;
  border-color: #d7ded6;
  border-radius: 7px;
  background-color: #fff;
}

.cost-estimator-page .wizard-input:focus,
.cost-estimator-page .wizard-select:focus,
.cost-estimator-page .wizard-input-simple:focus {
  border-color: var(--estimator-green);
  box-shadow: 0 0 0 3px rgb(40 87 60 / 12%);
  outline: none;
}

.cost-estimator-page .wizard-cards-grid {
  gap: 12px;
  margin-bottom: 24px;
}

.cost-estimator-page .wizard-selection-card {
  min-width: 0;
  min-height: 82px;
  padding: 17px 18px;
  border: 1px solid #dce2d9;
  border-radius: 10px;
  box-shadow: none;
}

.cost-estimator-page .wizard-selection-card:hover {
  border-color: #91a394;
  background: #fbfcfa;
  box-shadow: 0 5px 14px rgb(32 52 42 / 6%);
  transform: translateY(-1px);
}

.cost-estimator-page .wizard-selection-card.selected {
  border-color: var(--estimator-green);
  background: #f4f8f4;
  box-shadow: inset 0 0 0 1px var(--estimator-green);
}

.cost-estimator-page .wizard-card-title {
  color: var(--estimator-ink);
  font-size: 1.08rem;
}

.cost-estimator-page .wizard-card-desc {
  color: #66756b;
  font-size: 0.86rem;
}

.cost-estimator-page .wizard-actions {
  gap: 12px;
  margin-top: 22px;
}

.cost-estimator-page .wizard-actions .btn {
  min-height: 48px;
  border-radius: 7px;
}

.cost-estimator-page .wizard-actions .wizard-next-btn {
  min-width: 175px;
}

.cost-estimator-page .wizard-results-container.triple {
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)) !important;
  gap: 14px !important;
}

.cost-estimator-page .result-plan-card {
  min-width: 0;
  padding: 22px 18px;
  border-radius: 12px;
}

.cost-estimator-page .wizard-disclaimer-box {
  border-radius: 8px;
  background: #f5f4ef;
}

.cost-estimator-page .estimator-next-step {
  padding: 50px 0;
  background: #203a2a;
}

.cost-estimator-page .estimator-next-step .cta-blob {
  display: none;
}

.cost-estimator-page .estimator-next-step .cta-banner-container {
  width: min(100% - 48px, 1080px);
  margin: 0 auto;
  padding-inline: 0 !important;
}

.cost-estimator-page .estimator-next-step .cta-eyebrow {
  color: #d7c498;
  letter-spacing: 0.12em;
}

.cost-estimator-page .estimator-next-step .cta-banner-content h3 {
  max-width: 560px;
  line-height: 1.13;
}

.cost-estimator-page .estimator-localities .container {
  width: min(100% - 48px, 1040px) !important;
  padding-inline: 0 !important;
}

.cost-estimator-page .enquiry-container {
  width: min(100% - 48px, 1040px);
  margin: 0 auto;
  padding-inline: 0 !important;
  gap: clamp(30px, 5vw, 64px);
}

.cost-estimator-page .seo-guide-section {
  background: #f6f5f0 !important;
}

.cost-estimator-page .seo-guide-section .container,
.cost-estimator-page .seo-content-wrapper {
  width: min(100% - 48px, 940px);
  max-width: 940px !important;
  margin-inline: auto !important;
}

.cost-estimator-page .seo-guide-section .container {
  padding-inline: 0 !important;
}

.cost-estimator-page .seo-content-wrapper {
  font-size: 1rem;
  line-height: 1.75 !important;
}

.cost-estimator-page .seo-content-wrapper > h2 {
  max-width: 760px;
  font-size: clamp(2rem, 3vw, 2.65rem) !important;
  line-height: 1.12;
}

.cost-estimator-page .seo-content-wrapper > p {
  max-width: 74ch;
}

@media (max-width: 760px) {
  .cost-estimator-page .estimator-page-intro-inner {
    width: min(100% - 36px, 640px);
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cost-estimator-page .estimator-page-intro h1 {
    max-width: 580px;
    font-size: clamp(2.2rem, 8vw, 3.25rem);
  }

  .cost-estimator-page .estimator-brief {
    max-width: none;
    padding: 17px 18px 15px;
  }

  .cost-estimator-page .estimator-brief ol {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cost-estimator-page .calc-container {
    padding: 0 18px !important;
  }

  .cost-estimator-page .estimator-calculator-heading {
    margin-bottom: 18px;
  }

  .cost-estimator-page .calc-card.wizard-card {
    padding: 24px !important;
  }

  .cost-estimator-page .estimator-next-step .cta-banner-container {
    width: min(100% - 36px, 640px);
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .cost-estimator-page .estimator-next-step .cta-banner-actions {
    width: 100%;
  }

  .cost-estimator-page .estimator-next-step .cta-btn {
    min-width: 0;
  }

  .cost-estimator-page .enquiry-container {
    width: min(100% - 36px, 640px);
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .cost-estimator-page .seo-guide-section .container,
  .cost-estimator-page .seo-content-wrapper {
    width: min(100% - 36px, 720px);
  }
}

@media (max-width: 540px) {
  .cost-estimator-page .estimator-page-intro {
    padding: 34px 0 30px;
  }

  .cost-estimator-page .estimator-page-intro-inner {
    width: min(100% - 32px, 480px);
  }

  .cost-estimator-page .estimator-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .cost-estimator-page .estimator-intro-summary {
    margin-top: 14px;
    font-size: 0.96rem;
  }

  .cost-estimator-page .estimator-calculator-section {
    padding: 38px 0 54px !important;
  }

  .cost-estimator-page .calc-container {
    padding: 0 14px !important;
  }

  .cost-estimator-page .estimator-estimate-note {
    font-size: 0.81rem;
  }

  .cost-estimator-page .calc-card.wizard-card {
    padding: 20px 16px !important;
    border-radius: 13px;
  }

  .cost-estimator-page .wizard-progress-segments {
    gap: 4px;
    margin-bottom: 24px;
  }

  .cost-estimator-page .wizard-cards-grid.grid-2x2,
  .cost-estimator-page .wizard-cards-grid.grid-2 {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .cost-estimator-page .wizard-selection-card {
    min-height: 70px;
    padding: 14px 15px;
  }

  .cost-estimator-page .wizard-step-heading {
    font-size: 1.65rem;
  }

  .cost-estimator-page .wizard-actions {
    align-items: stretch;
  }

  .cost-estimator-page .wizard-actions.flex-between > * {
    flex: 1 1 0 !important;
  }

  .cost-estimator-page .wizard-actions .wizard-next-btn {
    min-width: 0;
  }

  .cost-estimator-page .wizard-results-container.triple {
    grid-template-columns: 1fr !important;
  }

  .cost-estimator-page .estimator-next-step {
    padding: 38px 0;
  }

  .cost-estimator-page .estimator-next-step .cta-banner-container,
  .cost-estimator-page .enquiry-container,
  .cost-estimator-page .seo-guide-section .container,
  .cost-estimator-page .seo-content-wrapper {
    width: min(100% - 32px, 480px);
  }

  .cost-estimator-page .estimator-next-step .cta-banner-content h3 {
    font-size: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cost-estimator-page .wizard-step-pane {
    animation: none;
  }

  .cost-estimator-page .wizard-selection-card {
    transition: none;
  }
}

/* Keep all estimator copy and cards comfortably inside the viewport on small screens.
   These containers intentionally reset their desktop padding, so restore the shared gutter
   after the global mobile .container rules are applied. */
@media (max-width: 991px) {
  .cost-estimator-page .estimator-page-intro-inner,
  .cost-estimator-page .estimator-next-step .cta-banner-container,
  .cost-estimator-page .enquiry-container,
  .cost-estimator-page .estimator-localities .container,
  .cost-estimator-page .seo-guide-section .container {
    width: 100% !important;
    box-sizing: border-box !important;
    padding-inline: 16px !important;
    margin-inline: auto !important;
  }

  .cost-estimator-page .estimator-page-intro-inner { max-width: 1120px !important; }
  .cost-estimator-page .estimator-next-step .cta-banner-container { max-width: 1080px !important; }
  .cost-estimator-page .enquiry-container { max-width: 1040px !important; }
  .cost-estimator-page .estimator-localities .container { max-width: 1040px !important; }
  .cost-estimator-page .seo-guide-section .container { max-width: 940px !important; }

  .cost-estimator-page .seo-content-wrapper {
    width: 100% !important;
    max-width: 940px !important;
    box-sizing: border-box !important;
  }
}
