.stepstone-estimator {
      --cream: #f7f1e8;
      --surface: #fbf7f0;
      --white: #ffffff;
      --navy: #1c3050;
      --ink: #2b2620;
      --muted: #5a5346;
      --blue-muted: #5a6b85;
      --border: #d8cdbb;
      --border-soft: #e7dcc9;
      --accent: #a95518;
      --accent-dark: #87400f;
      --success: #27613b;
      --danger: #a12820;
      --radius: 4px;
    }

    .stepstone-estimator,
    .stepstone-estimator * {
      box-sizing: border-box;
    }

    .stepstone-estimator {
      color-scheme: light;
    }

    .stepstone-estimator {
      margin: 0;
      padding: 16px;
      background: var(--cream);
      color: var(--ink);
      font-family: Inter, Arial, sans-serif;
      font-size: 16px;
      line-height: 1.55;
    }

    .stepstone-estimator button,
    .stepstone-estimator input,
    .stepstone-estimator select,
    .stepstone-estimator textarea {
      font: inherit;
    }

    .estimator-shell {
      width: min(100%, 1000px);
      margin: 0 auto;
      overflow: hidden;
      background: var(--surface);
      border: 1px solid var(--border);
      border-top: 3px solid var(--accent);
      border-radius: var(--radius);
    }

    .estimator-header {
      max-width: 680px;
      margin: 0 auto;
      padding: 32px 36px 28px;
      text-align: center;
    }

    .eyebrow {
      margin: 0 0 7px;
      color: var(--accent);
      font-size: 12px;
      font-weight: 700;
      letter-spacing: .1em;
      text-transform: uppercase;
    }

    .stepstone-estimator h1,
    .stepstone-estimator h2 {
      margin: 0;
      color: var(--navy);
      font-family: "Source Serif 4", Georgia, serif;
      font-weight: 600;
    }

    .stepstone-estimator h1 {
      font-size: clamp(30px, 4vw, 38px);
      line-height: 1.15;
    }

    .stepstone-estimator h2 {
      font-size: 23px;
      line-height: 1.25;
    }

    .estimator-header p:last-child {
      margin: 12px 0 0;
      color: var(--muted);
      font-size: 16px;
    }

    .estimator-section {
      padding: 20px 24px 22px;
      border-top: 1px solid var(--border-soft);
    }

    .estimator-section[aria-labelledby="property-heading"] {
      padding-bottom: 12px;
    }

    .estimator-section[aria-labelledby="contact-heading"] {
      padding-top: 16px;
    }

    .section-heading {
      margin-bottom: 12px;
    }

    .two-column,
    .option-grid,
    .contact-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px 18px;
    }

    .field,
    .input-group {
      min-width: 0;
    }

    .field label,
    .input-group > label,
    .field-label {
      display: block;
      margin: 0 0 7px;
      color: var(--navy);
      font-size: 14px;
      font-weight: 600;
    }

    .stepstone-estimator input[type="text"],
    .stepstone-estimator input[type="email"],
    .stepstone-estimator input[type="tel"],
    .stepstone-estimator input[type="number"],
    .stepstone-estimator select,
    .stepstone-estimator textarea {
      width: 100%;
      min-height: 46px;
      padding: 10px 12px;
      color: var(--ink);
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 3px;
      outline: none;
    }

    .stepstone-estimator textarea {
      min-height: 86px;
      resize: vertical;
    }

    .stepstone-estimator input:focus,
    .stepstone-estimator select:focus,
    .stepstone-estimator textarea:focus,
    .stepstone-estimator button:focus-visible,
    .stepstone-estimator .tooltip:focus-visible {
      outline: 3px solid rgba(169, 85, 24, .25);
      outline-offset: 2px;
      border-color: var(--accent);
    }

    .option-grid {
      margin-top: 16px;
    }

    .stepstone-estimator fieldset {
      min-width: 0;
      margin: 0;
      padding: 14px 16px 11px;
      border: 1px solid var(--border-soft);
      border-radius: 3px;
    }

    .stepstone-estimator legend {
      padding: 0 6px;
      color: var(--navy);
      font-family: "Source Serif 4", Georgia, serif;
      font-size: 18px;
      font-weight: 600;
    }

    .choice-list {
      display: grid;
      gap: 4px;
    }

    .service-option {
      display: flex;
      min-height: 36px;
      align-items: center;
      gap: 8px;
    }

    .service-option .choice-row {
      min-width: 0;
      flex: 1 1 auto;
    }

    .choice-row {
      display: flex;
      min-height: 36px;
      align-items: center;
      gap: 9px;
      color: var(--muted);
      cursor: pointer;
      font-size: 14px;
    }

    .choice-row input {
      width: 18px;
      height: 18px;
      margin: 0;
      accent-color: var(--navy);
      flex: 0 0 auto;
    }

    .outbuilding-choice {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 82px;
      gap: 14px;
      align-items: center;
      margin-top: 8px;
      padding-top: 10px;
      border-top: 1px solid var(--border-soft);
    }

    .outbuilding-choice input {
      text-align: center;
    }

    .outbuilding-copy {
      min-width: 0;
      color: var(--muted);
      font-size: 14px;
    }

    .outbuilding-copy strong {
      display: block;
      color: var(--navy);
      font-weight: 600;
    }

    .outbuilding-choice .field label {
      margin-bottom: 4px;
      font-size: 12px;
      text-align: center;
    }

    .tooltip {
      position: relative;
      display: inline-flex;
      width: 20px;
      height: 20px;
      align-items: center;
      justify-content: center;
      margin-left: 3px;
      color: var(--navy);
      border: 0;
      border-radius: 50%;
      cursor: help;
      font-size: 17px;
      font-weight: 700;
      vertical-align: middle;
      background: transparent;
      padding: 0;
    }

    .tooltip-text {
      position: absolute;
      z-index: 5;
      bottom: calc(100% + 9px);
      left: 50%;
      width: min(240px, calc(100vw - 48px));
      padding: 8px 10px;
      visibility: hidden;
      transform: translateX(-50%);
      color: var(--white);
      background: var(--navy);
      border-radius: 3px;
      font-size: 12px;
      font-weight: 500;
      line-height: 1.4;
      opacity: 0;
      pointer-events: none;
    }

    .tooltip:hover .tooltip-text,
    .tooltip:focus .tooltip-text,
    .tooltip:focus-within .tooltip-text {
      visibility: visible;
      opacity: 1;
    }

    .estimate-total {
      margin: 14px 0 0;
      padding: 12px 0 0;
      color: var(--ink);
      border-top: 1px solid var(--border-soft);
    }

    .estimate-promise {
      margin: 13px 0 0;
      color: var(--navy);
      font-size: 12px;
      font-weight: 600;
      line-height: 1.45;
    }

    .total-line {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 20px;
    }

    .total-label {
      color: var(--navy);
      font-size: 14px;
      font-weight: 600;
    }

    .total-value {
      color: var(--navy);
      font-family: "Source Serif 4", Georgia, serif;
      font-size: 25px;
      font-weight: 700;
      white-space: nowrap;
    }

    #quoteSummary {
      margin: 3px 0 0;
      color: var(--blue-muted);
      font-size: 11px;
      line-height: 1.4;
    }

    .estimate-note {
      display: flex;
      align-items: flex-start;
      gap: 6px;
      margin: 6px 0 0;
      color: var(--blue-muted);
      font-size: 11px;
    }

    .estimate-note .tooltip {
      color: var(--navy);
      border-color: var(--border);
      flex: 0 0 auto;
    }

    .help-text {
      margin: 10px 0 0;
      color: var(--blue-muted);
      font-size: 13px;
      text-align: center;
    }

    .realtor-group {
      padding: 13px 15px 15px;
    }

    .realtor-group legend {
      color: var(--navy);
      font-family: Inter, Arial, sans-serif;
      font-size: 14px;
      font-weight: 600;
    }

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

    .full-width {
      grid-column: 1 / -1;
    }

    .required-mark {
      color: var(--accent);
    }

    .estimator-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding: 18px 24px 20px;
      border-top: 1px solid var(--border-soft);
    }

    .action-note {
      max-width: 390px;
      margin: 0;
      color: var(--blue-muted);
      font-size: 13px;
    }

    .button-row {
      display: flex;
      gap: 10px;
      flex: 0 0 auto;
    }

    .button-link {
      min-height: 46px;
      padding: 11px 22px;
      border: 1px solid var(--navy);
      border-radius: 3px;
      font-weight: 700;
      cursor: pointer;
    }

    .button-link:disabled {
      cursor: wait;
      opacity: .65;
    }

    #quoteBtn {
      color: var(--navy);
      background: transparent;
    }

    #quoteBtn:hover {
      background: #eef0f3;
    }

    #bookBtn {
      color: var(--surface);
      background: var(--accent);
      border-color: var(--accent);
    }

    #bookBtn:hover {
      background: var(--accent-dark);
      border-color: var(--accent-dark);
    }

    #contactResult {
      min-height: 24px;
      margin: 0;
      padding: 0 24px 16px;
      color: var(--navy);
      font-size: 14px;
      font-weight: 700;
      text-align: center;
    }

    #contactResult a {
      color: inherit;
    }

    @media (max-width: 760px) {
      .stepstone-estimator {
        padding: 0;
        font-size: 16px;
      }

      .estimator-shell {
        display: block;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
      }

      .estimator-header,
      .estimator-section {
        padding-right: 16px;
        padding-left: 16px;
      }

      .estimator-header {
        padding-top: 28px;
        padding-bottom: 24px;
      }

      .two-column,
      .option-grid,
      .contact-grid,
      .realtor-grid {
        grid-template-columns: 1fr;
      }

      .full-width {
        grid-column: auto;
      }

      .estimate-total {
        margin-top: 14px;
        padding-top: 12px;
      }

      .total-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
      }

      .tooltip-text {
        right: 0;
        left: auto;
        transform: none;
      }

      .estimator-actions {
        align-items: stretch;
        flex-direction: column;
        padding: 16px;
      }

      .help-text {
        margin: 10px 0 0;
      }

      .button-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
      }

      #contactResult {
        padding: 0 16px 16px;
      }
    }

.stepstone-estimator {
  width: 100%;
}
