/* Quote form and owner pricing page */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.quote-section { background: var(--cream); }
.quote-grid { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
.quote-form fieldset, .owner-form fieldset { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px 18px; margin: 0 0 18px; }
.quote-form legend, .owner-form legend { font: 700 1.25rem var(--serif); padding: 0; float: left; width: 100%; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.quote-form legend + *, .owner-form legend + * { clear: both; }
.num { width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: var(--white); display: grid; place-items: center; font-size: 1rem; flex: none; }
label { display: block; font-weight: 600; margin-bottom: 14px; }
input:not([type=range]):not([type=radio]):not([type=checkbox]), select, textarea { display: block; width: 100%; margin-top: 6px; font: 400 1rem var(--sans); padding: 12px 14px; border: 1.5px solid #cfc8b8; border-radius: 10px; background: var(--white); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(240,124,18,.35); border-color: var(--orange); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--orange-dk) 50%), linear-gradient(135deg, var(--orange-dk) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; font-size: 1.05rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hint, .help { color: var(--muted); font-size: .93rem; font-weight: 400; margin: -4px 0 16px; }
.fine { color: var(--muted); font-size: .85rem; margin-top: 10px; }
.form-error { color: #b42318; font-weight: 600; min-height: 1px; margin: 4px 0 10px; }
.hp { position: absolute; left: -5000px; }
.btn-block { width: 100%; }

/* Sliders */
.slider { margin-bottom: 20px; }
.slider-top { display: flex; justify-content: space-between; align-items: baseline; }
.slider-top label { margin: 0; }
.slider output { font: 700 1.35rem var(--serif); color: var(--orange-dk); }
.slider-ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 99px; margin: 12px 0 6px; background: linear-gradient(90deg, var(--green), var(--yellow) var(--yel, 50%), var(--orange) var(--fill, 50%), #e7e1d3 var(--fill, 50%)); cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--white); border: 4px solid var(--orange); box-shadow: 0 2px 8px rgba(0,0,0,.25); transition: transform .1s; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 4px solid var(--orange); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
input[type=range]:focus-visible { outline: 3px solid rgba(240,124,18,.4); outline-offset: 4px; }

/* Choice pills */
.pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.pills.two { grid-template-columns: 1fr 1fr; }
.pill { margin: 0; cursor: pointer; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: block; height: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 12px; background: var(--white); transition: border-color .15s, background .15s; }
.pill small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.pill input:checked + span { border-color: var(--orange); background: #fff4e8; box-shadow: 0 0 0 1px var(--orange); }
.pill input:focus-visible + span { outline: 3px solid rgba(240,124,18,.4); }

/* Toggles and checks */
.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; margin-bottom: 12px; }
.toggle input { position: absolute; opacity: 0; }
.sw { width: 50px; height: 28px; border-radius: 99px; background: #d5cfc0; position: relative; flex: none; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.toggle input:checked + .sw { background: var(--green); }
.toggle input:checked + .sw::after { transform: translateX(22px); }
.toggle input:focus-visible + .sw { outline: 3px solid rgba(240,124,18,.4); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--orange); }

/* Summary */
.quote-summary { position: sticky; top: 100px; }
.quote-summary h2 { font-size: 1.4rem; }
.quote-summary dl { margin: 0; }
.quote-summary dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.quote-summary dt { color: var(--muted); }
.quote-summary dd { margin: 0; font-weight: 700; text-align: right; }
.quote-summary img { width: 130px; margin: 10px auto 0; }

/* Thank you popup */
.thanks { border: 0; border-radius: 20px; padding: 0; max-width: 560px; width: calc(100% - 32px); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.thanks::backdrop { background: rgba(13,25,18,.7); }
.thanks[open] { animation: pop .25s ease-out; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.thanks-in { padding: 30px 30px 24px; text-align: center; position: relative; }
.thanks-mascot { width: 120px; margin: -6px auto 8px; }
.thanks .close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 2rem; line-height: 1; color: var(--muted); cursor: pointer; }
.btn-row.center { justify-content: center; }
.quote-box table { width: 100%; border-collapse: collapse; text-align: left; font-size: .95rem; }
.quote-box td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.quote-box td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.quote-box tr.total td { font: 700 1.3rem var(--serif); border-bottom: 0; color: var(--orange-dk); padding-top: 12px; }

/* Owner page */
.owner .site-header { position: static; }
.owner-tag { color: var(--yellow); font-weight: 700; }
.owner-main { padding: 36px 20px 60px; }
.login { max-width: 420px; margin: 40px auto; }
.owner-grid { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.owner-side { position: sticky; top: 20px; }
.owner-form h1 { font-size: 2rem; }
.choice { display: flex; gap: 10px; font-weight: 400; align-items: flex-start; }
.choice input { margin-top: 5px; accent-color: var(--orange); width: 18px; height: 18px; flex: none; }
.money, .pct { position: relative; display: block; }
.money::before { content: "$"; position: absolute; left: 12px; top: calc(50% + 3px); transform: translateY(-50%); color: var(--muted); font-weight: 400; }
.money input { padding-left: 26px !important; }
.pct::after { content: "%"; position: absolute; right: 14px; top: calc(50% + 3px); transform: translateY(-50%); color: var(--muted); font-weight: 400; }
.city-row { display: grid; grid-template-columns: 1fr 120px 40px 40px; gap: 8px; align-items: center; margin-bottom: 4px; }
.city-row input { margin-top: 0 !important; }
.city-row .money::before { top: 50%; }
.icon-btn { height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; font-size: 1.1rem; cursor: pointer; }
.icon-btn.del { color: #b42318; }
.btn-line { border-color: var(--orange); color: var(--orange-dk); background: var(--white); cursor: pointer; font-size: .95rem; margin-top: 8px; }
.save-bar { position: sticky; bottom: 0; background: var(--white); padding: 14px 0; display: flex; gap: 16px; align-items: center; border-top: 1px solid var(--line); }
.owner button.btn { cursor: pointer; font-family: var(--sans); }
.leads { margin-top: 30px; }
.table-wrap { overflow-x: auto; }
.leads table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.leads th, .leads td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }

@media (max-width: 960px) {
  .quote-grid, .owner-grid { grid-template-columns: 1fr; }
  .quote-summary, .owner-side { position: static; }
  .quote-summary img { display: none; }
}
@media (max-width: 600px) {
  .pills { grid-template-columns: 1fr 1fr; }
  .pills.two, .row2 { grid-template-columns: 1fr; }
  .quote-form fieldset { padding: 20px 16px 12px; }
  .thanks-in { padding: 24px 18px 18px; }
}

[hidden] { display: none !important; }

/* Quote card in the home page hero */
.hero-in:has(.hero-form) { grid-template-columns: 1fr minmax(0, 500px); }
.hero-form { background: var(--white); color: var(--ink); border-radius: 22px; padding: 30px 30px 22px; box-shadow: 0 24px 60px rgba(0,0,0,.4); border-top: 6px solid var(--orange); }
.hero-form h2 { font-size: 2rem; margin-bottom: .15em; }
.sub-lead { color: var(--muted); margin-bottom: 18px; }
.hero-form label { margin-bottom: 12px; font-size: .95rem; }
.hero-form input:not([type=range]):not([type=checkbox]), .hero-form select { padding: 11px 13px; }
.req { color: var(--orange-dk); margin-left: 2px; }
.slider.compact { margin: 4px 0 14px; }
.slider.compact input[type=range] { margin-bottom: 0; }
.form-trust { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: .88rem; color: var(--muted); }
.form-trust li::before { content: "\2713"; color: var(--green); font-weight: 900; margin-right: 5px; }
.hero .trust { flex-direction: column; gap: 8px; font-size: 1.02rem; margin: 22px 0 0; }
img.photo { border-radius: var(--radius); margin-top: 18px; max-width: 420px; width: 100%; }

@media (max-width: 1020px) {
  .hero-in:has(.hero-form) { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .hero:has(.hero-form) { padding: 22px 0 30px; }
  .hero:has(.hero-form) h1 { font-size: 1.65rem; }
  .hero:has(.hero-form) .hero-lead, .hero:has(.hero-form) .btn-row, .hero:has(.hero-form) .trust { display: none; }
  .hero-form { padding: 22px 18px 18px; }
  .hero-form h2 { font-size: 1.6rem; }
  .hero-form .row2 { grid-template-columns: 1fr 1fr; gap: 0 10px; }
}
@media (max-width: 420px) {
  .hero-form .row2 { grid-template-columns: 1fr; }
}
