* { box-sizing: border-box; }

:root {
  --green: #005a2b;
  --green-dark: #073719;
  --green-soft: #e8f3ed;
  --purple: #3b1e6d;
  --ink: #111512;
  --muted: #626963;
  --soft: #f5f3f0;
  --line: #dcdedb;
  --white: #fff;
  --danger: #a52626;
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(circle at 8% 10%, rgba(0, 90, 43, 0.07), transparent 25rem),
    radial-gradient(circle at 94% 35%, rgba(59, 30, 109, 0.05), transparent 28rem),
    var(--soft);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  margin: 0;
  min-height: 100vh;
}

button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button, label, select { -webkit-tap-highlight-color: transparent; }

.tool-header {
  align-items: center;
  background: linear-gradient(115deg, var(--green-dark), var(--green) 65%, var(--purple));
  display: flex;
  justify-content: space-between;
  min-height: 88px;
  padding: 1rem clamp(1rem, 5vw, 4rem);
}

.brand img { display: block; max-height: 58px; width: min(205px, 47vw); }
.back-link { color: white; font-size: 0.9rem; font-weight: 700; }
.back-link span { margin-right: 0.35rem; }

main { padding-bottom: 4rem; }

.intro {
  align-items: center;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1220px;
  padding: clamp(3rem, 8vw, 6.5rem) clamp(1rem, 4vw, 3rem) clamp(2.2rem, 5vw, 4rem);
}

.kicker {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

h1, h2, h3 { font-style: italic; font-weight: 900; letter-spacing: -0.035em; line-height: 1; margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 5.25rem); max-width: 880px; text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
h3 { font-size: 1.15rem; }

.intro-copy { color: var(--muted); font-size: clamp(1rem, 2vw, 1.22rem); line-height: 1.6; margin: 1.25rem 0 0; max-width: 720px; }
.intro-copy strong { color: var(--green); }

.estimator-shell {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 32px;
  box-shadow: 0 22px 70px rgba(26, 39, 30, 0.1);
  margin: 0 auto;
  max-width: 1220px;
  overflow: hidden;
  width: calc(100% - 2rem);
}

.steps {
  align-items: center;
  background: #fafafa;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  padding: 1.35rem;
}

.step {
  align-items: center;
  background: transparent;
  border: 0;
  color: #929692;
  display: flex;
  gap: 0.55rem;
  padding: 0;
}

.step span {
  align-items: center;
  background: #e5e7e5;
  border-radius: 50%;
  display: flex;
  font-size: 0.8rem;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.step b { font-size: 0.84rem; }
.step.is-active, .step.is-complete { color: var(--green); }
.step.is-active span, .step.is-complete span { background: var(--green); color: white; }
.step-line { background: #dfe2df; height: 2px; margin: 0 1rem; max-width: 90px; width: 8vw; }

.form-step { display: none; padding: clamp(1.5rem, 5vw, 4rem); }
.form-step.is-active { animation: enter 0.3s ease both; display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }

.step-heading { margin-bottom: 2rem; }
.step-heading > p:last-child { color: var(--muted); line-height: 1.55; margin: 0.8rem 0 0; }

.service-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.service-option { position: relative; }
.service-option input { opacity: 0; pointer-events: none; position: absolute; }
.service-option label {
  background: #fafafa;
  border: 2px solid transparent;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 1.35rem;
  transition: border 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.service-option label:hover { border-color: #a9c9b7; transform: translateY(-3px); }
.service-option input:checked + label { background: var(--green-soft); border-color: var(--green); }
.service-icon {
  align-items: center;
  background: white;
  border-radius: 14px;
  color: var(--green);
  display: flex;
  font-size: 1.5rem;
  font-weight: 900;
  height: 47px;
  justify-content: center;
  margin-bottom: auto;
  width: 47px;
}
.service-option strong { font-size: 1rem; margin-top: 1.2rem; }
.service-option small { color: var(--muted); line-height: 1.45; margin-top: 0.4rem; }

.question-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 0.55rem; }
.field.full { grid-column: 1 / -1; }
.field > label, .field legend { font-size: 0.86rem; font-weight: 800; }
.field-label { align-items: center; display: inline-flex; gap: 0.45rem; }
.info-tip {
  align-items: center;
  background: var(--green-soft);
  border: 0;
  border-radius: 50%;
  color: var(--green);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 22px;
}
.info-tip small {
  background: var(--green-dark);
  border-radius: 10px;
  bottom: calc(100% + 9px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  left: 50%;
  line-height: 1.45;
  opacity: 0;
  padding: 0.7rem 0.8rem;
  pointer-events: none;
  position: absolute;
  text-align: left;
  transform: translate(-50%, 5px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  visibility: hidden;
  width: min(245px, 72vw);
  z-index: 20;
}
.info-tip:hover small, .info-tip:focus small { opacity: 1; transform: translate(-50%, 0); visibility: visible; }
.field label small { color: var(--muted); font-weight: 400; }
.field select, .field input[type="number"], .field input[type="text"] {
  appearance: none;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 52px;
  padding: 0.8rem 0.9rem;
  width: 100%;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%); background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px; background-repeat: no-repeat; background-size: 5px 5px; }
.field select:focus, .field input:focus, .contact-card input:focus, .contact-card textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 90, 43, 0.12); outline: 0; }
.field-help { color: var(--muted); font-size: 0.74rem; line-height: 1.4; }

.check-grid { display: grid; gap: 0.65rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check-option { position: relative; }
.check-option input { opacity: 0; position: absolute; }
.check-option span {
  align-items: center;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  font-size: 0.83rem;
  font-weight: 700;
  min-height: 48px;
  padding: 0.7rem 0.85rem 0.7rem 2.6rem;
  position: relative;
}
.check-option span::before { border: 2px solid #adb2ad; border-radius: 5px; content: ""; height: 17px; left: 0.8rem; position: absolute; width: 17px; }
.check-option input:checked + span { background: var(--green-soft); border-color: var(--green); color: var(--green-dark); }
.check-option input:checked + span::before { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 3px var(--green-soft); }

.drone-note { background: #f4effa; border-left: 4px solid var(--purple); border-radius: 0 14px 14px 0; margin-top: 1.5rem; padding: 1rem 1.2rem; }
.drone-note strong { color: var(--purple); }
.drone-note p { color: #5f5668; font-size: 0.83rem; line-height: 1.55; margin: 0.35rem 0 0; }

.form-actions { align-items: center; display: flex; justify-content: space-between; margin-top: 2.2rem; }
.form-actions.align-right { justify-content: flex-end; }
.primary-button, .secondary-button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 900;
  gap: 0.7rem;
  justify-content: center;
  min-height: 50px;
  padding: 0.8rem 1.4rem;
  text-transform: uppercase;
}
.primary-button { background: var(--green); border: 2px solid var(--green); color: white; }
.primary-button:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); }
.secondary-button { background: white; border: 2px solid var(--line); color: var(--ink); }
.field-error { color: var(--danger); font-size: 0.85rem; font-weight: 700; min-height: 1.2rem; }

.result-layout { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr); }
.result-card { background: linear-gradient(130deg, var(--green-dark), var(--green)); border-radius: 24px; color: white; overflow: hidden; padding: clamp(1.4rem, 4vw, 2.5rem); position: relative; }
.result-card::after { border: 1px solid rgba(255,255,255,.16); border-radius: 50%; content: ""; height: 230px; position: absolute; right: -100px; top: -110px; width: 230px; }
.result-card > p:first-child { font-size: 0.78rem; font-weight: 900; letter-spacing: 0.1em; margin: 0 0 0.8rem; opacity: 0.75; text-transform: uppercase; }
.price-range { font-size: clamp(2.3rem, 6vw, 4.1rem); font-weight: 900; letter-spacing: -0.06em; line-height: 1; }
.hours-range { font-size: 0.86rem; margin-top: 0.7rem; opacity: 0.85; }
.range-bar { background: rgba(255,255,255,.2); border-radius: 99px; height: 6px; margin: 1.5rem 0; overflow: hidden; }
.range-bar span { animation: loadbar 0.8s ease both; background: white; display: block; height: 100%; width: 72%; }
@keyframes loadbar { from { width: 0; } }
.estimate-note { border-top: 1px solid rgba(255,255,255,.18); font-size: 0.78rem; line-height: 1.55; margin: 0; padding-top: 1.2rem; }

.breakdown-card { border: 1px solid var(--line); border-radius: 20px; margin-top: 1rem; padding: 1.3rem; }
.breakdown-card ul { list-style: none; margin: 1rem 0; padding: 0; }
.breakdown-card li { align-items: baseline; border-bottom: 1px dashed var(--line); display: flex; font-size: 0.84rem; gap: 0.8rem; justify-content: space-between; padding: 0.6rem 0; }
.breakdown-card li span:last-child { color: var(--green); flex: 0 0 auto; font-weight: 800; }
.breakdown-card > p { color: var(--muted); font-size: 0.74rem; line-height: 1.5; margin: 0.8rem 0 0; }
.text-button { background: transparent; border: 0; color: var(--green); font-weight: 800; margin-top: 1rem; padding: 0; }

.contact-card { background: #f7f6f4; border-radius: 24px; padding: clamp(1.35rem, 4vw, 2.2rem); }
.contact-card > p:not(.kicker) { color: var(--muted); font-size: 0.9rem; line-height: 1.55; margin: 0.85rem 0 1.5rem; }
.contact-card form { display: grid; gap: 1rem; }
.contact-card label { display: grid; font-size: 0.8rem; font-weight: 800; gap: 0.4rem; }
.contact-card label > span { color: var(--danger); }
.contact-card label small { color: var(--muted); font-weight: 400; }
.contact-card input, .contact-card textarea { background: white; border: 1px solid var(--line); border-radius: 11px; min-height: 48px; padding: 0.75rem 0.85rem; width: 100%; }
.contact-card textarea { min-height: 85px; resize: vertical; }
.contact-fields { display: grid; gap: 0.8rem; grid-template-columns: 1fr 1fr; }
.contact-card fieldset { border: 0; margin: 0; padding: 0; }
.contact-card legend { font-size: 0.8rem; font-weight: 800; margin-bottom: 0.5rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice-row label { position: relative; }
.choice-row input { opacity: 0; position: absolute; }
.choice-row span { background: white; border: 1px solid var(--line); border-radius: 999px; color: var(--ink) !important; cursor: pointer; padding: 0.55rem 0.8rem; }
.choice-row input:checked + span { background: var(--green); border-color: var(--green); color: white !important; }
.privacy-copy { color: var(--muted); font-size: 0.68rem; margin: 0; }
.full-button { border: 0; width: 100%; }
.direct-links { display: flex; font-size: 0.75rem; font-weight: 800; gap: 1rem; justify-content: center; }
.direct-links a { color: var(--green); text-decoration: underline; }
.trap-field { height: 0; left: -9999px; overflow: hidden; position: absolute; width: 0; }
.submit-error { background: #fff0f0; border-radius: 10px; color: var(--danger); font-size: 0.8rem; line-height: 1.45; padding: 0.8rem; }

.fine-print { margin: 0 auto; max-width: 1220px; padding: clamp(3rem, 7vw, 5rem) 1rem 0; text-align: center; }
.fine-print > div { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); margin-top: 1.5rem; }
.fine-print article { background: rgba(255,255,255,.65); border-radius: 16px; padding: 1.3rem; }
.fine-print strong { color: var(--green); }
.fine-print p { color: var(--muted); font-size: 0.84rem; line-height: 1.5; margin: 0.5rem 0 0; }

.success-panel { background: white; border-radius: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.09); margin: 7rem auto; max-width: 720px; padding: clamp(2rem, 7vw, 5rem); text-align: center; width: calc(100% - 2rem); }
.success-panel h1 { font-size: clamp(2rem, 6vw, 3.8rem); }
.success-panel > p:not(.kicker) { color: var(--muted); line-height: 1.6; margin: 1rem auto 1.8rem; max-width: 540px; }
.success-icon { align-items: center; background: var(--green-soft); border-radius: 50%; color: var(--green); display: flex; font-size: 1.6rem; font-weight: 900; height: 58px; justify-content: center; margin: 0 auto 1rem; width: 58px; }

footer { align-items: center; background: #101310; color: white; display: flex; font-size: 0.76rem; justify-content: space-between; min-height: 72px; padding: 1rem clamp(1rem, 5vw, 4rem); }
footer span { font-weight: 900; text-transform: uppercase; }
footer a { opacity: 0.7; }

@media (max-width: 820px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .result-layout { grid-template-columns: 1fr; }
  .intro { align-items: flex-start; }
}

@media (max-width: 600px) {
  .tool-header { min-height: 72px; }
  .brand img { max-height: 48px; }
  .back-link { font-size: 0; }
  .back-link span { font-size: 1.45rem; }
  .intro { padding-top: 3rem; }
  .estimator-shell { border-radius: 22px; width: calc(100% - 1rem); }
  .steps { padding: 1rem 0.7rem; }
  .step b { display: none; }
  .step-line { margin: 0 0.5rem; width: 12vw; }
  .form-step { padding: 1.25rem; }
  .service-grid, .question-grid, .fine-print > div { grid-template-columns: 1fr; }
  .service-option label { min-height: 150px; }
  .check-grid, .contact-fields { grid-template-columns: 1fr; }
  .form-actions { gap: 0.7rem; }
  .primary-button, .secondary-button { font-size: 0.78rem; padding: 0.7rem 1rem; }
  .price-range { font-size: 2.45rem; }
  footer { align-items: flex-start; flex-direction: column; gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
