/* =========================================================
   LANDSCAPING COST ESTIMATOR
   Complete Stylesheet
   ========================================================= */

/* ------------------------------
   CSS VARIABLES
------------------------------ */

:root {
  --forest-950: #12271f;
  --forest-900: #183429;
  --forest-800: #214838;
  --forest-700: #2d5f4a;
  --forest-600: #3b755c;
  --forest-500: #4d8a6f;

  --sage-300: #b7c9b8;
  --sage-200: #d3dfd1;
  --sage-100: #e8efe6;
  --sage-50: #f4f8f2;

  --clay-600: #9a5f3b;
  --clay-500: #b17149;
  --clay-100: #f1e0d3;

  --stone-950: #1f2522;
  --stone-900: #2b322e;
  --stone-800: #3c453f;
  --stone-700: #56615a;
  --stone-600: #707a73;
  --stone-500: #89918c;
  --stone-400: #aeb5b0;
  --stone-300: #cbd0cc;
  --stone-200: #dde1de;
  --stone-150: #e7eae7;
  --stone-100: #eff2ef;
  --stone-50: #f8faf8;

  --ivory: #fbfaf6;
  --white: #ffffff;

  --success: #2f7859;
  --warning: #b16b2f;
  --error: #b8473f;

  --shadow-soft: 0 10px 30px rgba(28, 52, 41, 0.08);
  --shadow-card: 0 18px 55px rgba(20, 43, 33, 0.12);
  --shadow-strong: 0 22px 70px rgba(18, 39, 31, 0.2);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition: 180ms ease;
  --container-width: 1460px;
}

/* ------------------------------
   RESET
------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #f5f8f3 0%, #fbfaf6 42%, #f4f7f3 100%);
  color: var(--stone-900);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
input[type="checkbox"],
input[type="radio"],
input[type="range"] {
  cursor: pointer;
}

button {
  border: 0;
}

input,
select {
  width: 100%;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(calc(100% - 40px), var(--container-width));
  margin-inline: auto;
}

/* ------------------------------
   HERO
------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 82px;
  background:
    radial-gradient(circle at 16% 18%, rgba(173, 206, 177, 0.18), transparent 26%),
    radial-gradient(circle at 86% 22%, rgba(177, 113, 73, 0.15), transparent 30%),
    linear-gradient(135deg, var(--forest-950) 0%, var(--forest-800) 58%, #2f5a47 100%);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.hero-decoration {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.48;
  pointer-events: none;
}

.hero-decoration-one {
  width: 420px;
  height: 420px;
  top: -220px;
  right: 9%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 50px rgba(255, 255, 255, 0.025),
    0 0 0 100px rgba(255, 255, 255, 0.02);
}

.hero-decoration-two {
  width: 300px;
  height: 300px;
  bottom: -215px;
  left: 7%;
  background: rgba(145, 187, 153, 0.08);
  box-shadow:
    0 0 0 55px rgba(145, 187, 153, 0.04),
    0 0 0 110px rgba(145, 187, 153, 0.025);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 70px;
  align-items: center;
}

.hero-copy {
  max-width: 850px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #e9f2e7;
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.eyebrow-icon {
  font-size: 1rem;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.4vw, 5.4rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-description {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.7vw, 1.19rem);
  line-height: 1.75;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-benefit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.91rem;
  font-weight: 650;
}

.benefit-check {
  display: inline-grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: rgba(198, 224, 201, 0.16);
  color: #d8f2db;
  font-size: 0.78rem;
}

.hero-summary-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

.summary-card-icon {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.55rem;
}

.summary-card-label {
  display: block;
  margin-bottom: 4px;
  color: #cad9cd;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-summary-card strong {
  display: block;
  color: var(--white);
  font-size: 1.16rem;
}

.hero-summary-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.91rem;
  line-height: 1.65;
}

/* ------------------------------
   MAIN LAYOUT
------------------------------ */

.main-content {
  position: relative;
  z-index: 2;
  padding: 54px 0 90px;
}

.estimator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 34px;
  align-items: start;
}

.estimator-form-panel {
  min-width: 0;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  align-items: flex-end;
  margin-bottom: 24px;
  padding: 0 4px;
}

.panel-heading > div {
  flex: 1 1 auto;
}

.section-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--clay-600);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.panel-heading h2 {
  margin: 0;
  color: var(--forest-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.panel-heading p {
  max-width: 460px;
  margin: 0;
  color: var(--stone-600);
  font-size: 0.96rem;
}

/* ------------------------------
   FORM SECTIONS
------------------------------ */

.form-section {
  position: relative;
  margin-bottom: 24px;
  padding: 32px;
  border: 1px solid var(--stone-150);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.form-section:hover {
  border-color: #cbd8ca;
  box-shadow: 0 16px 45px rgba(28, 52, 41, 0.1);
}

.featured-section {
  border-color: #cad9ca;
  background:
    linear-gradient(180deg, rgba(245, 249, 243, 0.96), rgba(255, 255, 255, 0.98));
}

.compact-section {
  padding-bottom: 28px;
}

.form-section-heading {
  display: flex;
  gap: 17px;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--stone-150);
}

.section-icon {
  display: grid;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid #d4e0d2;
  border-radius: 15px;
  background: var(--sage-50);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
  font-size: 1.45rem;
}

.section-number {
  display: block;
  margin-bottom: 2px;
  color: var(--clay-600);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.form-section-heading h3 {
  margin: 0;
  color: var(--forest-950);
  font-size: 1.3rem;
  line-height: 1.25;
}

.form-section-heading p {
  margin: 7px 0 0;
  color: var(--stone-600);
  font-size: 0.92rem;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  gap: 20px;
}

.form-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-group {
  margin-bottom: 22px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-grid .form-group {
  margin-bottom: 0;
}

.form-grid + .form-group,
.form-group + .form-grid,
.form-grid + .form-grid {
  margin-top: 22px;
}

label {
  color: var(--stone-900);
  font-size: 0.92rem;
  font-weight: 700;
}

.form-group > label {
  display: block;
  margin-bottom: 9px;
}

.field-help,
.field-error {
  display: block;
  margin-top: 7px;
  font-size: 0.78rem;
  line-height: 1.5;
}

.field-help {
  color: var(--stone-600);
}

.field-error {
  min-height: 0;
  color: var(--error);
  font-weight: 650;
}

.label-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 11px;
}

.value-badge {
  flex: 0 0 auto;
  padding: 6px 11px;
  border: 1px solid #cdd9cc;
  border-radius: 999px;
  background: var(--sage-50);
  color: var(--forest-800);
  font-size: 0.79rem;
  font-weight: 800;
}

/* ------------------------------
   INPUTS AND SELECTS
------------------------------ */

input[type="text"],
input[type="number"],
select {
  min-height: 48px;
  border: 1px solid var(--stone-300);
  border-radius: 12px;
  background: var(--white);
  color: var(--stone-900);
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

input[type="text"],
input[type="number"] {
  padding: 11px 13px;
}

select {
  appearance: none;
  padding: 11px 42px 11px 13px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--forest-700) 50%),
    linear-gradient(135deg, var(--forest-700) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

input[type="text"]:hover,
input[type="number"]:hover,
select:hover {
  border-color: var(--sage-300);
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  border-color: var(--forest-500);
  box-shadow: 0 0 0 4px rgba(77, 138, 111, 0.13);
}

input:invalid,
select:invalid {
  box-shadow: none;
}

.input-with-suffix {
  display: flex;
  align-items: stretch;
}

.input-with-suffix input {
  min-width: 0;
  border-radius: 12px 0 0 12px;
}

.input-with-suffix span {
  display: grid;
  flex: 0 0 auto;
  min-width: 78px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--stone-300);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  background: var(--stone-50);
  color: var(--stone-700);
  font-size: 0.79rem;
  font-weight: 750;
}

.quantity-control {
  display: flex;
  flex: 0 0 120px;
  flex-direction: column;
  gap: 6px;
  color: var(--stone-700);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quantity-control input {
  min-height: 42px;
  text-align: center;
}

/* ------------------------------
   RANGE
------------------------------ */

input[type="range"] {
  width: 100%;
  height: 7px;
  margin: 8px 0 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--forest-600) 0%,
    var(--forest-600) 9.1%,
    var(--sage-200) 9.1%,
    var(--sage-200) 100%
  );
  appearance: none;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  width: 23px;
  height: 23px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--forest-700);
  box-shadow: 0 3px 10px rgba(33, 72, 56, 0.32);
  appearance: none;
}

input[type="range"]::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--forest-700);
  box-shadow: 0 3px 10px rgba(33, 72, 56, 0.32);
}

input[type="range"]:focus-visible {
  box-shadow: 0 0 0 4px rgba(77, 138, 111, 0.13);
}

.range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: var(--stone-500);
  font-size: 0.72rem;
}

.yard-size-reference {
  display: inline-flex;
  margin-top: 12px;
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--sage-50);
  color: var(--forest-700);
  font-size: 0.79rem;
  font-weight: 750;
}

/* ------------------------------
   OPTION CARDS
------------------------------ */

.option-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.option-card,
.checkbox-card,
.quality-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.option-card:hover,
.checkbox-card:hover,
.quality-option:hover {
  border-color: var(--sage-300);
  background: var(--sage-50);
  transform: translateY(-1px);
}

.option-card {
  min-height: 100%;
  padding: 15px;
}

.option-card input,
.checkbox-card input,
.quality-option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--forest-700);
}

.option-card:has(input:checked),
.checkbox-card:has(input:checked),
.quality-option:has(input:checked) {
  border-color: var(--forest-600);
  background: linear-gradient(180deg, #f2f7f1, #fbfdf9);
  box-shadow: 0 0 0 3px rgba(77, 138, 111, 0.08);
}

.option-card-content,
.checkbox-card > span,
.quality-option > span {
  display: block;
  min-width: 0;
}

.option-card-title,
.checkbox-card strong,
.quality-option strong {
  display: block;
  color: var(--stone-900);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.35;
}

.option-card-description,
.checkbox-card small,
.quality-option small {
  display: block;
  margin-top: 4px;
  color: var(--stone-600);
  font-size: 0.77rem;
  font-weight: 500;
  line-height: 1.5;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkbox-card {
  padding: 15px;
}

.recurring-option {
  background: linear-gradient(180deg, #fbf9f5, #ffffff);
}

.quality-selector {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quality-option {
  min-height: 132px;
  flex-direction: column;
  padding: 15px;
}

.quality-option input {
  margin-bottom: 4px;
}

/* ------------------------------
   SWITCH
------------------------------ */

.switch-option {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  background: var(--stone-50);
}

.switch-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.switch-track {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--stone-300);
  transition: background var(--transition);
}

.switch-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  transition: transform var(--transition);
}

.switch-option input:checked + .switch-track {
  background: var(--forest-600);
}

.switch-option input:checked + .switch-track .switch-thumb {
  transform: translateX(20px);
}

.switch-option input:focus-visible + .switch-track {
  box-shadow: 0 0 0 4px rgba(77, 138, 111, 0.15);
}

.switch-copy strong {
  display: block;
  color: var(--stone-900);
  font-size: 0.89rem;
}

.switch-copy small {
  display: block;
  margin-top: 2px;
  color: var(--stone-600);
  font-size: 0.77rem;
  font-weight: 500;
  line-height: 1.45;
}

/* ------------------------------
   SERVICE BUILDERS
------------------------------ */

.service-builder {
  margin-bottom: 15px;
  padding: 19px;
  border: 1px solid var(--stone-200);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fafcf9);
}

.service-builder:last-of-type {
  margin-bottom: 22px;
}

.service-builder-header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.service-builder-header h4 {
  margin: 0;
  color: var(--forest-900);
  font-size: 1rem;
}

.service-builder-header p {
  margin: 4px 0 0;
  color: var(--stone-600);
  font-size: 0.79rem;
}

.service-builder .form-group {
  margin-bottom: 0;
}

/* ------------------------------
   NOTICES AND DIVIDERS
------------------------------ */

.divider {
  height: 1px;
  margin: 25px 0;
  background: var(--stone-150);
}

.professional-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid #d9e3d7;
  border-radius: 13px;
  background: var(--sage-50);
  color: var(--forest-800);
}

.professional-notice p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
}

.notice-icon {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest-700);
  color: var(--white);
  font-size: 0.73rem;
  font-weight: 850;
}

.warning-notice {
  border-color: #ead1b7;
  background: #fff8f0;
  color: #71451f;
}

.warning-notice .notice-icon {
  background: var(--warning);
}

.maintenance-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--clay-100);
  color: #70462d;
  font-size: 0.79rem;
  font-weight: 650;
}

/* ------------------------------
   CONDITIONAL FIELDS
------------------------------ */

.conditional-field {
  animation: revealField 220ms ease;
}

@keyframes revealField {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------
   ESTIMATE SIDEBAR
------------------------------ */

.estimate-sidebar {
  position: sticky;
  top: 24px;
}

.estimate-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.estimate-card-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 28px 28px 22px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,0.08), transparent 30%),
    linear-gradient(135deg, var(--forest-950), var(--forest-700));
  color: var(--white);
}

.estimate-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: #d7e7d9;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8fcea1;
  box-shadow: 0 0 0 5px rgba(143, 206, 161, 0.11);
}

.estimate-card-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  letter-spacing: -0.025em;
}

.estimate-icon {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 17px;
  background: rgba(255,255,255,0.08);
  font-size: 1.5rem;
}

.estimate-total-block {
  padding: 28px;
  background:
    linear-gradient(180deg, #f6faf4, #ffffff);
  text-align: center;
}

.estimate-total-label {
  display: block;
  margin-bottom: 2px;
  color: var(--stone-600);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.estimate-total {
  display: block;
  margin-top: 3px;
  color: var(--forest-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.estimate-range {
  margin-top: 10px;
  color: var(--stone-600);
  font-size: 0.84rem;
}

.estimate-range strong {
  color: var(--forest-700);
}

.estimate-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 22px;
  border: 1px solid var(--stone-150);
  border-radius: 14px;
  background: var(--stone-50);
}

.snapshot-item {
  min-width: 0;
  padding: 13px 10px;
  text-align: center;
}

.snapshot-item + .snapshot-item {
  border-left: 1px solid var(--stone-150);
}

.snapshot-item span {
  display: block;
  color: var(--stone-500);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.snapshot-item strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--stone-900);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.estimate-divider {
  height: 1px;
  margin: 24px 28px;
  background: var(--stone-150);
}

/* ------------------------------
   COST BREAKDOWN
------------------------------ */

.cost-breakdown {
  padding: 0 28px;
}

.cost-breakdown-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 15px;
}

.cost-breakdown-heading h3 {
  margin: 0;
  color: var(--forest-950);
  font-size: 1rem;
}

.cost-breakdown-heading span {
  color: var(--stone-500);
  font-size: 0.7rem;
  font-weight: 700;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--stone-100);
}

.cost-row:last-child {
  border-bottom: 0;
}

.cost-row > strong {
  flex: 0 0 auto;
  padding-top: 2px;
  color: var(--forest-800);
  font-size: 0.87rem;
}

.cost-row-label {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: flex-start;
}

.cost-icon {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--sage-50);
  font-size: 0.92rem;
}

.cost-row-label strong {
  display: block;
  color: var(--stone-900);
  font-size: 0.79rem;
  line-height: 1.35;
}

.cost-row-label small {
  display: block;
  margin-top: 2px;
  color: var(--stone-500);
  font-size: 0.66rem;
  line-height: 1.35;
}

/* ------------------------------
   ESTIMATE CALCULATION
------------------------------ */

.estimate-calculation {
  padding: 0 28px 4px;
}

.calculation-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 8px 0;
  color: var(--stone-700);
  font-size: 0.83rem;
}

.calculation-row span small {
  display: inline-flex;
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--sage-100);
  color: var(--forest-700);
  font-size: 0.65rem;
  font-weight: 800;
}

.calculation-row strong {
  color: var(--stone-900);
}

.final-calculation {
  margin-top: 7px;
  padding-top: 15px;
  border-top: 1px solid var(--stone-150);
  color: var(--forest-900);
  font-weight: 800;
}

.final-calculation strong {
  color: var(--forest-800);
  font-size: 1.08rem;
}

.recurring-maintenance-summary {
  margin: 20px 28px 0;
  padding: 15px;
  border: 1px solid #d8e1d5;
  border-radius: 14px;
  background: linear-gradient(180deg, #f5f9f3, #ffffff);
}

.recurring-maintenance-summary span {
  display: block;
  color: var(--stone-600);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.recurring-maintenance-summary strong {
  display: block;
  margin-top: 3px;
  color: var(--forest-800);
  font-size: 1.06rem;
}

.recurring-maintenance-summary small {
  display: block;
  margin-top: 3px;
  color: var(--stone-600);
  font-size: 0.72rem;
}

/* ------------------------------
   BUTTONS
------------------------------ */

.estimate-actions {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 10px;
  padding: 24px 28px 0;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  justify-content: center;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.primary-button {
  background: var(--forest-800);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(33, 72, 56, 0.2);
}

.primary-button:hover {
  background: var(--forest-700);
  box-shadow: 0 10px 22px rgba(33, 72, 56, 0.25);
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid var(--stone-250, #d6dbd7);
  background: var(--white);
  color: var(--stone-800);
}

.secondary-button:hover {
  background: var(--stone-50);
  transform: translateY(-1px);
}

.primary-button:focus-visible,
.secondary-button:focus-visible {
  outline: 3px solid rgba(77, 138, 111, 0.22);
  outline-offset: 2px;
}

.estimate-disclaimer {
  margin: 24px 28px 28px;
  padding: 15px;
  border-radius: 13px;
  background: var(--stone-50);
}

.estimate-disclaimer strong {
  display: block;
  color: var(--stone-800);
  font-size: 0.74rem;
}

.estimate-disclaimer p {
  margin: 5px 0 0;
  color: var(--stone-600);
  font-size: 0.68rem;
  line-height: 1.55;
}

/* ------------------------------
   FOOTER
------------------------------ */

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--stone-150);
  background: #eef3ed;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
}

.footer-content strong {
  color: var(--forest-900);
  font-size: 0.92rem;
}

.footer-content p {
  max-width: 680px;
  margin: 4px 0 0;
  color: var(--stone-600);
  font-size: 0.78rem;
}

.footer-badge {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  padding: 10px 13px;
  border: 1px solid #cdd9cc;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--forest-700);
  font-size: 0.76rem;
  font-weight: 750;
}

/* ------------------------------
   RESPONSIVE: LARGE TABLETS
------------------------------ */

@media (max-width: 1220px) {
  .estimator-layout {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 26px;
  }

  .form-section {
    padding: 27px;
  }

  .quality-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quality-option {
    min-height: 116px;
  }

  .estimate-card-header,
  .estimate-total-block {
    padding-inline: 24px;
  }

  .cost-breakdown,
  .estimate-calculation {
    padding-inline: 24px;
  }

  .estimate-divider {
    margin-inline: 24px;
  }

  .estimate-actions {
    padding-inline: 24px;
  }

  .estimate-disclaimer {
    margin-inline: 24px;
  }
}

/* ------------------------------
   RESPONSIVE: TABLETS
------------------------------ */

@media (max-width: 980px) {
  .hero {
    padding: 58px 0 66px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-summary-card {
    max-width: 620px;
  }

  .main-content {
    padding-top: 42px;
  }

  .estimator-layout {
    grid-template-columns: 1fr;
  }

  .estimate-sidebar {
    position: static;
  }

  .estimate-card {
    max-width: 760px;
    margin-inline: auto;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

/* ------------------------------
   RESPONSIVE: SMALL TABLETS
------------------------------ */

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--container-width));
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 12vw, 4rem);
  }

  .hero-benefits {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-benefit {
    width: fit-content;
  }

  .main-content {
    padding-bottom: 66px;
  }

  .form-section {
    padding: 23px;
    border-radius: 20px;
  }

  .form-section-heading {
    gap: 14px;
  }

  .section-icon {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }

  .form-grid-two,
  .option-card-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .quality-selector {
    grid-template-columns: 1fr 1fr;
  }

  .service-builder-header {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .quantity-control {
    max-width: 150px;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}

/* ------------------------------
   RESPONSIVE: MOBILE
------------------------------ */

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(calc(100% - 20px), var(--container-width));
  }

  .hero {
    padding: 40px 0 48px;
  }

  .hero-eyebrow {
    font-size: 0.69rem;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.2rem);
    line-height: 1.01;
  }

  .hero-description {
    font-size: 0.96rem;
  }

  .hero-summary-card {
    padding: 21px;
    border-radius: 20px;
  }

  .summary-card-icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .panel-heading h2 {
    font-size: 2rem;
  }

  .form-section {
    padding: 19px;
    border-radius: 18px;
  }

  .form-section-heading {
    margin-bottom: 22px;
    padding-bottom: 18px;
  }

  .form-section-heading p {
    font-size: 0.84rem;
  }

  .label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .option-card,
  .checkbox-card {
    padding: 13px;
  }

  .quality-selector {
    grid-template-columns: 1fr;
  }

  .quality-option {
    min-height: auto;
    flex-direction: row;
  }

  .quality-option input {
    margin-bottom: 0;
  }

  .service-builder {
    padding: 16px;
  }

  .input-with-suffix span {
    min-width: 70px;
    font-size: 0.72rem;
  }

  .estimate-card {
    border-radius: 22px;
  }

  .estimate-card-header {
    padding: 23px 20px 19px;
  }

  .estimate-card-header h2 {
    font-size: 1.42rem;
  }

  .estimate-icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .estimate-total-block {
    padding: 24px 20px;
  }

  .estimate-total {
    font-size: 3.2rem;
  }

  .estimate-snapshot {
    grid-template-columns: 1fr;
    margin-inline: 18px;
  }

  .snapshot-item + .snapshot-item {
    border-top: 1px solid var(--stone-150);
    border-left: 0;
  }

  .snapshot-item {
    padding: 11px 12px;
  }

  .estimate-divider {
    margin: 21px 20px;
  }

  .cost-breakdown,
  .estimate-calculation {
    padding-inline: 20px;
  }

  .cost-breakdown-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .cost-row {
    align-items: flex-start;
  }

  .cost-row-label small {
    display: none;
  }

  .estimate-actions {
    grid-template-columns: 1fr;
    padding: 22px 20px 0;
  }

  .recurring-maintenance-summary {
    margin-inline: 20px;
  }

  .estimate-disclaimer {
    margin: 22px 20px 24px;
  }

  .footer-badge {
    width: 100%;
    justify-content: center;
  }
}

/* ------------------------------
   ACCESSIBILITY
------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------
   PRINT
------------------------------ */

@media print {
  @page {
    margin: 0.55in;
  }

  body {
    background: var(--white);
    color: #000;
    font-size: 11pt;
  }

  .hero,
  .estimator-form-panel,
  .site-footer,
  .estimate-actions {
    display: none !important;
  }

  .main-content {
    padding: 0;
  }

  .container,
  .estimator-layout {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .estimator-layout {
    display: block;
  }

  .estimate-sidebar {
    position: static;
  }

  .estimate-card {
    overflow: visible;
    border: 1px solid #ccc;
    border-radius: 0;
    box-shadow: none;
  }

  .estimate-card-header {
    background: #244d3b !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .estimate-total-block,
  .estimate-snapshot,
  .cost-icon,
  .estimate-disclaimer,
  .recurring-maintenance-summary {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .cost-row {
    break-inside: avoid;
  }

  .estimate-total {
    font-size: 38pt;
  }
}