/* ============================================================
   Ricky's Gutters: quote form (consolidated)
   One stylesheet for the three-step estimate form wherever it appears.
   Replaces the four near-duplicate copies that each carried their own CSS.
   ============================================================ */

.rg-qf {
  background: var(--rg-surface);
  border-radius: var(--rg-r-lg);
  box-shadow: var(--rg-shadow-card);
  overflow: hidden;
}

.rg-qf__head {
  background: var(--rg-navy);
  padding: 22px 28px;
  border-bottom: 3px solid var(--rg-cyan);
}
.rg-qf__title {
  font-family: var(--rg-font-head);
  font-size: clamp(1.25rem, 1.05rem + .8vw, 1.5625rem);
  font-weight: 800;
  color: var(--rg-on-dark);
}
.rg-qf__sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(.78rem, .72rem + .24vw, .875rem);
  line-height: 1.45;
  color: var(--rg-on-dark-dim);
  margin-top: 6px;
  white-space: nowrap;
}
.rg-qf__sub b {
  color: var(--rg-on-dark);
  font-weight: 800;
}

.rg-qf__body { padding: 28px; }

/* ---------- step indicator ---------- */

.rg-qf__steps { display: flex; gap: 8px; margin-bottom: 26px; }
.rg-qf__steps > div { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.rg-qf__steps b {
  height: 4px; background: #D7E2F2; border-radius: 2px; display: block;
  transition: background 200ms ease;
}
.rg-qf__steps span {
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--rg-text-muted); /* #8EA3C2 was 2.57:1 on white */
  transition: color 200ms ease;
}
.rg-qf__steps > div.is-active b { background: var(--rg-navy); }
.rg-qf__steps > div.is-active span { color: var(--rg-navy); }

/* ---------- fields ---------- */

/* The hero keeps the section height stable; the card itself should fit the
   active step so short steps do not leave a tall blank white block. */
[data-qf-form] { display: block; }
.rg-qf__step {
  display: none;
  flex-direction: column;
}
.rg-qf__step.is-current { display: flex; animation: rg-qf-in .2s ease-in-out; }
@keyframes rg-qf-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.rg-qf__q {
  font-family: var(--rg-font-head);
  font-size: 1.0625rem; font-weight: 700; color: var(--rg-text);
}
.rg-qf__help { font-size: var(--rg-helper); color: var(--rg-text-muted); margin-top: 4px; }

.rg-qf input[type="text"],
.rg-qf input[type="tel"],
.rg-qf input[type="email"],
.rg-qf select,
.rg-qf textarea {
  width: 100%;
  min-height: var(--rg-tap);
  margin-top: 14px;
  padding: 0 14px;
  border: 1px solid var(--rg-border-cool);
  border-radius: var(--rg-r-sm);
  font-family: var(--rg-font-body);
  font-size: 1rem;               /* 16px, stops iOS zooming the page on focus */
  color: var(--rg-text);
  background: #fff;
}
.rg-qf textarea { padding: 12px 14px; height: 108px; min-height: 108px; resize: none; }
.rg-qf select { appearance: none; background-image: url('/assets/icons/caret-down-fill.svg');
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

.rg-qf input:focus, .rg-qf select:focus, .rg-qf textarea:focus {
  outline: 3px solid rgba(0,200,255,.45);
  outline-offset: 1px;
  border-color: var(--rg-navy);
}
.rg-qf .is-error { border-color: #C83232 !important; }

.rg-qf__err {
  display: none;
  font-size: 13px; font-weight: 500; color: #C83232; margin-top: 6px;
}
.rg-qf__err.show { display: block; }

/* ---------- buttons ---------- */

.rg-qf__actions { display: flex; gap: 10px; margin-top: 22px; }

.rg-qf__next {
  flex: 1;
  min-height: var(--rg-tap);
  background: var(--rg-action);
  color: var(--rg-action-ink);
  border: 0;
  border-radius: var(--rg-r-sm);
  font-family: var(--rg-font-head);
  font-size: 1.125rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease;
}
.rg-qf__next:hover { background: var(--rg-action-hover); }

.rg-qf__back {
  flex: 0 0 25%;
  min-height: var(--rg-tap);
  background: none;
  border: 1px solid var(--rg-border-cool);
  border-radius: var(--rg-r-sm);
  color: var(--rg-text-body);
  font-family: var(--rg-font-head);
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
}
.rg-qf__back:hover { background: var(--rg-surface-alt); }

.rg-qf__alt {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--rg-hairline);
  font-size: var(--rg-helper); color: var(--rg-text-muted);
}
.rg-qf__alt a { font-family: var(--rg-font-head); font-weight: 800; color: var(--rg-navy); }

.rg-qf .g-recaptcha { margin-top: 16px; }

/* ---------- returning visitor ----------
   Someone who already sent a request sees this instead of the steps. */

.rg-qf__again { display: grid; gap: 8px; padding: 4px 0 6px; }
.rg-qf__again[hidden] { display: none; }
.rg-qf__again-eyebrow {
  font-family: var(--rg-font-head); font-size: var(--rg-eyebrow); font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--rg-blue); margin: 0;
}
.rg-qf__again-title {
  font-family: var(--rg-font-head); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  font-weight: 800; line-height: 1.2; color: var(--rg-navy); margin: 0; text-wrap: balance;
}
.rg-qf__again-text { font-size: var(--rg-helper); line-height: 1.55; color: var(--rg-text-body); margin: 0; }
.rg-qf__again-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.rg-qf__again-call,
.rg-qf__again-new {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 18px; border-radius: var(--rg-r-sm);
  font-family: var(--rg-font-head); font-size: .95rem; font-weight: 800; text-decoration: none;
  cursor: pointer; flex: 1 1 160px;
}
.rg-qf__again-call { background: var(--rg-action); color: var(--rg-action-ink); border: 0; }
.rg-qf__again-call:hover { background: var(--rg-action-hover); }
.rg-qf__again-call svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rg-qf__again-new { background: transparent; color: var(--rg-navy); border: 2px solid var(--rg-border-cool); }
.rg-qf__again-new:hover { border-color: var(--rg-navy); }
.rg-qf__again-call:focus-visible, .rg-qf__again-new:focus-visible { outline: 3px solid var(--rg-cyan); outline-offset: 2px; }

/* ---------- failure notice (after a redirect back from the handler) ---------- */

.rg-qf__error {
  display: grid; gap: 4px; margin: 0 0 18px; padding: 14px 16px;
  border-left: 4px solid #B8302A; border-radius: 0 var(--rg-r-sm) var(--rg-r-sm) 0;
  background: #FBE7E5; color: #7A1F1A;
}
.rg-qf__error[hidden] { display: none; }
.rg-qf__error-title { font-family: var(--rg-font-head); font-weight: 800; margin: 0; color: #7A1F1A; }
.rg-qf__error p { margin: 0; font-size: var(--rg-helper); line-height: 1.5; }
.rg-qf__error a { color: inherit; font-weight: 700; }

/* ---------- honeypot: off-screen, never display:none (some bots check) ---------- */

.rg-qf__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.rg-qf__next.is-busy { opacity: .75; cursor: progress; }

@media (max-width: 750px) {
  .rg-qf__head { padding: 18px 20px; }
  .rg-qf__body { padding: 20px; }
  .rg-qf__steps { margin-bottom: 20px; }
}

@media (max-width: 360px) {
  .rg-qf__sub { gap: 6px; font-size: .75rem; white-space: nowrap; }
}

@media (max-width: 380px) {
  .rg-qf .g-recaptcha {
    transform: scale(.88);
    transform-origin: left top;
    margin-bottom: -10px;
  }
}

@media (max-width: 330px) {
  .rg-qf .g-recaptcha {
    transform: scale(.78);
    margin-bottom: -20px;
  }
}

/* ============================================================
   Mobile audit fixes (≤750px)
   ============================================================ */
@media (max-width: 750px) {
  /* step labels were 12px, below the 14px floor the design set */
  .rg-qf__steps span { font-size: 13px; letter-spacing: .4px; }

  /* "Rather talk it through? (352) 707-4002" was a 16px-tall tap target */
  .rg-qf__alt a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2px;
  }
}

/* Shared quote header and progression controls. */
.rg-qf__head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.rg-qf__trust { flex: 0 0 auto; padding-left: 17px; border-left: 1px solid rgba(255,255,255,.26); }
.rg-qf__trust > span { display: block; color: var(--rg-cyan-light); font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rg-qf__trust b { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: #fff; font-family: var(--rg-font-head); font-size: .78rem; white-space: nowrap; }
.rg-qf__trust svg { width: 16px; height: 16px; fill: none; stroke: var(--rg-cyan-light); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rg-qf__next { display: inline-flex; align-items: center; justify-content: center; gap: 11px; }
.rg-qf__next svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }


.rg-qf__trust > a { display:flex; align-items:center; gap:5px; margin-top:6px; color:#fff; font-size:.66rem; text-decoration:underline; text-underline-offset:3px; }
.rg-qf__trust > a svg { width:13px; height:13px; }
.rg-qf__head { gap:12px; }
@media (max-width:750px) {
 .rg-qf__head { align-items:flex-start; padding:17px 18px; }
 .rg-qf__trust { padding-left:12px; }
 .rg-qf__trust > span { font-size:.56rem; }
 .rg-qf__trust b { font-size:.68rem; }
 .rg-qf__trust > a { max-width:100px; font-size:.62rem; }
 .rg-qf__trust > a svg { display:none; }
}
@media (max-width:390px) {
 .rg-qf__trust > span { display:none; }
 .rg-qf__trust { padding-left:10px; }
 .rg-qf__trust b { max-width:86px; white-space:normal; line-height:1.15; }
}

/* Compact trust badge. */
.rg-qf__trust {
 display:inline-flex;
 align-items:center;
 gap:7px;
 flex:0 0 auto;
 padding:8px 12px;
 border:1px solid rgba(255,255,255,.3);
 border-radius:999px;
 background:rgba(0,200,255,.12);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
 color:#fff;
}
.rg-qf__trust strong { font-family:var(--rg-font-head); font-size:.72rem; font-weight:800; line-height:1; white-space:nowrap; }
.rg-qf__trust > svg { width:17px; height:17px; fill:none; stroke:var(--rg-cyan-light); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
@media (max-width:390px) {
 .rg-qf__trust { gap:5px; padding:7px 9px; }
 .rg-qf__trust strong { font-size:.64rem; }
 .rg-qf__trust > svg { width:15px; height:15px; }
}
