/* Instant quote widget — on the home page (#quote). Everything is
   scoped under .iq so it doesn't fight the site's own styles. */

.iq {
  --green-dark: #1a3d1f;
  --green-mid: #2d6a35;
  --green-light: #4a9e56;
  --green-pale: #e8f5ea;
  --gold: #c8952a;
  --gold-light: #f0c96a;
  --text-dark: #111b14;
  --text-mid: #3a4a3d;
  --text-light: #5a6b5e;
  --border: #ddeadf;
  --bg: #f4f8f4;
  --card: #ffffff;
  --red: #b91c1c;
  max-width: 1040px; margin: 0 auto;
  font-family: 'Inter', system-ui, sans-serif; color: var(--text-dark); line-height: 1.5; text-align: left;
}
.iq * { box-sizing: border-box; }
.iq [hidden] { display: none !important; }
.iq button { font: inherit; }
.iq h1, .iq h2, .iq h3 { color: var(--green-dark); letter-spacing: -.01em; }
.iq h2 { font-size: 1.5rem; line-height: 1.2; }
.iq h3 { font-size: 1.05rem; }

.iq .iq-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 32px; box-shadow: 0 12px 40px rgba(17, 27, 20, .08); }
.iq .iq-start, .iq .iq-working, .iq .iq-fallback { max-width: 640px; margin: 0 auto; }

.iq .iq-eyebrow { display: inline-flex; gap: 8px; align-items: center; background: var(--green-pale); color: var(--green-mid); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; padding: 6px 12px; border-radius: 999px; }
.iq .iq-start h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); line-height: 1.15; margin: 14px 0 10px; letter-spacing: -.02em; color: var(--green-dark); }
.iq .iq-lead { color: var(--text-mid); margin: 0 0 24px; font-size: 1.05rem; }

.iq .iq-label { display: block; font-weight: 700; font-size: .9rem; margin: 18px 0 8px; color: var(--text-mid); }
.iq .iq-address { position: relative; }
.iq .iq-address i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--green-mid); }
.iq .iq-address input, .iq .iq-book input, .iq .iq-book textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 16px; font: inherit; font-size: 1rem; color: var(--text-dark); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s;
}
.iq .iq-address input { padding-left: 42px; font-size: 1.05rem; }
.iq .iq-address input:focus, .iq .iq-book input:focus, .iq .iq-book textarea:focus { border-color: var(--green-light); box-shadow: 0 0 0 4px rgba(74, 158, 86, .15); }

.iq .iq-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(17, 27, 20, .14); }
.iq .iq-suggest li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.iq .iq-suggest li i { position: static; transform: none; color: var(--text-light); margin-top: 3px; }
.iq .iq-suggest li strong { display: block; font-weight: 600; color: var(--text-dark); }
.iq .iq-suggest li span { color: var(--text-light); font-size: .88rem; }
.iq .iq-suggest li.active, .iq .iq-suggest li:hover { background: var(--green-pale); }
.iq .iq-suggest li.active i { color: var(--green-mid); }

.iq .iq-services { display: flex; flex-wrap: wrap; gap: 8px; }
.iq .iq-svc { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--border); background: #fff; color: var(--text-mid); border-radius: 999px; padding: 9px 14px; font-weight: 600; font-size: .92rem; cursor: pointer; transition: all .15s; }
.iq .iq-svc i { color: var(--text-light); }
.iq .iq-svc[aria-pressed="true"] { background: var(--green-mid); border-color: var(--green-mid); color: #fff; }
.iq .iq-svc[aria-pressed="true"] i { color: var(--gold-light); }

.iq .iq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 12px; padding: 15px 22px; font-weight: 700; font-size: 1.05rem; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, opacity .15s; }
.iq .iq-btn-gold { background: var(--gold); color: #fff; box-shadow: 0 6px 18px rgba(200, 149, 42, .35); }
.iq .iq-btn-gold:hover { transform: translateY(-1px); }
.iq .iq-btn:disabled { opacity: .6; cursor: default; transform: none; }
.iq #go { width: 100%; margin-top: 24px; }

.iq .iq-error { color: var(--red); background: #fdecec; border-radius: 10px; padding: 10px 14px; margin: 16px 0 0; font-size: .92rem; }
.iq .iq-link { background: none; border: 0; color: var(--green-mid); font-weight: 600; cursor: pointer; margin-top: 18px; padding: 6px 0; }

/* Working */
.iq .iq-working { text-align: center; }
.iq .iq-working h2 { margin: 18px 0 20px; color: var(--green-dark); }
.iq .iq-radar { position: relative; width: 96px; height: 96px; margin: 8px auto 0; border-radius: 50%; background: var(--green-pale); display: grid; place-items: center; color: var(--green-mid); font-size: 1.8rem; }
.iq .iq-radar::before, .iq .iq-radar::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green-light); animation: iq-ping 2s ease-out infinite; }
.iq .iq-radar::after { animation-delay: 1s; }
@keyframes iq-ping { from { transform: scale(1); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }
.iq .iq-steps { list-style: none; padding: 0; margin: 0 auto; max-width: 380px; text-align: left; }
.iq .iq-steps li { display: flex; gap: 12px; align-items: center; padding: 10px 0; color: #a3b1a6; font-weight: 500; transition: color .3s; }
.iq .iq-steps li i { width: 20px; text-align: center; }
.iq .iq-steps li.on { color: var(--text-dark); }
.iq .iq-steps li.on i { color: var(--gold); }
.iq .iq-steps li.done { color: var(--green-mid); }
.iq .iq-steps li.done i::before { content: '\f00c'; }

/* Result */
.iq .iq-result { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.iq .iq-photo-card { padding: 16px; }
.iq .iq-photo { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: #dfe7df; }
.iq .iq-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.iq .iq-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); color: var(--gold); font-size: 2rem; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.iq .iq-photo-card.no-photo .iq-photo { display: none; }
.iq .iq-address-line { font-weight: 700; margin: 14px 4px 4px; }
.iq .iq-summary { color: var(--text-mid); margin: 0 4px 12px; }
.iq .iq-measures { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 4px 4px; }
.iq .iq-measures span { background: var(--green-pale); color: var(--green-dark); border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 600; }
.iq .iq-measures i { color: var(--green-mid); margin-right: 6px; }

.iq .iq-quote-card h2 { margin: 0 0 12px; color: var(--green-dark); }
.iq .iq-line { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.iq .iq-line:last-child { border-bottom: 0; }
.iq .iq-line-name { font-weight: 700; }
.iq .iq-line-detail { color: var(--text-light); font-size: .88rem; margin-top: 2px; }
.iq .iq-line-price { text-align: right; white-space: nowrap; }
.iq .iq-line-price strong { display: block; font-size: 1.35rem; color: var(--green-dark); letter-spacing: -.01em; }
.iq .iq-line-price span { color: var(--text-light); font-size: .82rem; }
.iq .iq-fine { color: var(--text-light); font-size: .82rem; background: var(--bg); border-radius: 10px; padding: 10px 12px; margin: 8px 0 0; }

.iq .iq-book { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--border); display: grid; gap: 10px; }
.iq .iq-book h3 { margin: 0 0 4px; font-size: 1.05rem; }
.iq .iq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.iq .iq-book .iq-btn { margin-top: 4px; }
.iq .iq-done { text-align: center; margin-top: 22px; padding: 22px; border-radius: 14px; background: var(--green-pale); }
.iq .iq-done i { color: var(--green-mid); font-size: 2rem; }
.iq .iq-done h3 { margin: 8px 0 4px; }
.iq .iq-done p { margin: 0; color: var(--text-mid); }

/* Three questions */
.iq .iq-details { max-width: 640px; margin: 0 auto; }
.iq .iq-details h2 { margin: 14px 0 6px; color: var(--green-dark); font-size: 1.6rem; }
.iq .iq-details .iq-lead { margin-bottom: 4px; }
.iq .iq-details .iq-eyebrow { text-transform: none; letter-spacing: 0; max-width: 100%; }
.iq .iq-pick { display: grid; gap: 8px; }
.iq .iq-pick-row { grid-template-columns: repeat(4, 1fr); }
.iq .iq-pick button { text-align: left; border: 1.5px solid var(--border); background: #fff; border-radius: 12px; padding: 10px 14px; cursor: pointer; display: flex; gap: 10px; align-items: baseline; transition: all .15s; }
.iq .iq-pick-row button { flex-direction: column; gap: 2px; align-items: flex-start; }
.iq .iq-pick button strong { color: var(--text-dark); }
.iq .iq-pick button span { color: var(--text-light); font-size: .85rem; }
.iq .iq-pick button[aria-pressed="true"] { border-color: var(--green-mid); background: var(--green-pale); box-shadow: inset 0 0 0 1px var(--green-mid); }
.iq #details-btn { width: 100%; margin-top: 22px; }
.iq .iq-details > .iq-link { display: block; margin: 14px auto 0; }
.iq .iq-not-right { margin: 10px 4px 2px; font-size: .9rem; }

/* Fallback */
.iq .iq-fallback { text-align: center; }
.iq .iq-big-icon { font-size: 2.4rem; color: var(--green-mid); }
.iq .iq-fallback p { color: var(--text-mid); margin: 8px 0 22px; }
.iq .iq-fallback .iq-link { display: block; margin: 14px auto 0; }

.iq .iq-credit { font-size: .72rem; color: var(--text-light); margin: 6px 4px 0; }
.iq .iq-photo-card.no-photo .iq-credit { display: none; }

.iq .iq-areas { margin: 12px 4px 4px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; font-size: .88rem; }
.iq .iq-areas-title { font-weight: 700; color: var(--text-mid); margin-bottom: 4px; }
.iq .iq-area { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--text-mid); }
.iq .iq-area-total { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 6px; font-weight: 700; color: var(--text-dark); }

/* Services we don't quote instantly yet */
.iq .iq-svc:disabled { cursor: default; opacity: .55; background: #f4f6f4; }
.iq .iq-svc .iq-soon { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-light); }
.iq .iq-custom-hint { color: var(--text-light); font-size: .88rem; margin: 10px 0 0; }
.iq .iq-custom-hint a { color: var(--green-mid); font-weight: 600; }

@media (max-width: 760px) {
  .iq .iq-card { padding: 22px 18px; border-radius: 16px; }
  .iq .iq-result { grid-template-columns: 1fr; }
  .iq .iq-photo-card { padding: 12px; }
  .iq .iq-row { grid-template-columns: 1fr; }
  .iq .iq-pick-row { grid-template-columns: 1fr 1fr; }
  .iq .iq-pick button { flex-direction: column; gap: 2px; }
}
