/* Quote form, hero-with-form layout, and mobile call dock. Uses the tokens from base.css. */

/* ---- Hero with the quote card on the right ---- */
.hero--quote .hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 44px;
  align-items: center;
}
.hero--quote .hero__copy { min-width: 0; }
.hero--quote.hero--lg .hero__title { font-size: 48px; }
@media (max-width: 960px) {
  .hero--quote .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero--quote.hero--lg .hero__title { font-size: 36px; }
}

/* ---- Quote card ---- */
.qcard {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(10, 18, 26, 0.35);
  overflow: hidden;
  scroll-margin-top: 90px;
}
.qcard::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--orange), var(--orange-d)); }
.qcard__head { padding: 20px 24px 4px; }
.qcard__title { font-size: 21px; font-weight: 800; color: var(--slate-d); letter-spacing: -0.01em; }
.qcard__sub { margin-top: 4px; font-size: 13.5px; color: var(--slate-soft); line-height: 1.45; }

/* ---- Form ---- */
.qf { padding: 14px 24px 22px; }
.qf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.qf__f { display: flex; flex-direction: column; min-width: 0; }
.qf__f--wide { grid-column: 1 / -1; }
.qf__f label { font-size: 11.5px; font-weight: 700; color: var(--slate); margin-bottom: 4px; letter-spacing: 0.02em; }
.qf__opt { font-weight: 500; color: var(--slate-soft); }
.qf__f input,
.qf__f select {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  color: var(--slate-d);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.qf__f input:focus,
.qf__f select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232, 101, 31, 0.15); }
.qf__err { display: none; margin-top: 4px; font-size: 12px; font-weight: 600; color: #c0392b; }
.field.err input,
.field.err select { border-color: #c0392b; }
.field.err .qf__err { display: block; }

.qf__btn {
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(232, 101, 31, 0.3);
  transition: background 0.15s, transform 0.15s;
}
.qf__btn:hover { background: var(--orange-d); transform: translateY(-1px); }
.qf__btn:disabled { opacity: 0.7; cursor: default; transform: none; }
.qf__btn:focus-visible, .qf__f input:focus-visible, .qf__f select:focus-visible { outline: 2px solid var(--slate-d); outline-offset: 2px; }
.qf__note { margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--slate-soft); }
.qf__note a { color: var(--orange); font-weight: 800; text-decoration: none; }
.qf__ok { margin-top: 10px; padding: 10px; border-radius: 8px; background: #eaf7ee; color: #1e7b3c; font-weight: 700; text-align: center; }

/* honeypot + hidden email: kept in the DOM, never shown */
.qf__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qf__hidden { display: none; }

@media (max-width: 480px) {
  .qf__grid { grid-template-columns: 1fr; }
  .qcard__head, .qf { padding-left: 18px; padding-right: 18px; }
}

/* ---- Mobile call dock ---- */
.upl-dock { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .upl-dock {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: var(--slate-d);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
    box-shadow: 0 -6px 18px rgba(10, 18, 26, 0.25);
  }
  .upl-dock a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; border-radius: 10px;
    font-weight: 800; font-size: 15px; letter-spacing: 0.02em; text-decoration: none;
  }
  .upl-dock__call { background: var(--orange); color: #fff; }
  .upl-dock__call svg { width: 18px; height: 18px; fill: currentColor; }
  .upl-dock__quote { background: #fff; color: var(--slate-d); }
  .upl-dock__num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---- Thank-you page ---- */
.ty { background: var(--bg); padding: 56px 16px 80px; }
.ty__wrap { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.ty__card { background: #fff; border-radius: 14px; box-shadow: 0 6px 24px rgba(28, 42, 54, 0.07); padding: 34px 30px; text-align: center; }
.ty__check { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 30px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ty__title { font-size: 30px; font-weight: 800; color: var(--slate-d); letter-spacing: -0.02em; }
.ty__sub { margin-top: 10px; color: var(--slate-soft); line-height: 1.6; font-size: 15.5px; }
.ty__lab { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); }
.ty__call { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 16px 28px; border-radius: 12px; background: var(--orange); color: #fff; font-size: 24px; font-weight: 800; text-decoration: none; box-shadow: 0 8px 20px rgba(232, 101, 31, 0.3); }
.ty__call svg { width: 22px; height: 22px; fill: currentColor; }
.ty__fine { margin-top: 10px; font-size: 13px; color: var(--slate-soft); }
.ty__rows { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 14px; box-shadow: 0 6px 24px rgba(28, 42, 54, 0.07); }
.ty__rows li { display: flex; flex-direction: column; gap: 3px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.ty__rows li:last-child { border-bottom: 0; }
.ty__rows strong { color: var(--slate-d); }
.ty__rows span { color: var(--slate-soft); font-size: 14px; }

/* Header "Call Now": the number stays in the DOM for app.js (.callbtn .ph), hidden visually. */
.hdr__num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* No footer on phones: the call dock covers contact, and the page ends at the content. */
@media (max-width: 760px) {
  .ft { display: none; }
}
