/* ============================================================
   Elite Pro Garage Doors — service detail + quote wizard pages
   ============================================================ */

/* ---------- page hero banner ---------- */
.page-hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-950);
}
.page-hero .bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.05);
  animation: bannerDrift 14s var(--ease-out-expo) forwards;
}
@keyframes bannerDrift { to { transform: scale(1); } }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(95deg, rgba(6, 21, 48, 0.93) 30%, rgba(6, 21, 48, 0.45) 75%, rgba(6, 21, 48, 0.2));
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  max-width: 640px;
}
.crumbs {
  font-size: 0.82rem;
  color: var(--sky-300);
  margin-bottom: 0.9rem;
}
.crumbs a { color: var(--sky-300); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.2rem); margin-bottom: 0.8rem; }
.page-hero .lede { color: #c9dbf7; font-size: 1.08rem; }
.page-hero .price-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(243, 180, 31, 0.14);
  border: 1px solid rgba(243, 180, 31, 0.5);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ---------- service detail layout ---------- */
.svc-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: var(--space-section) 0;
  align-items: start;
}
.svc-main h2 { font-size: 1.9rem; margin: 2.2rem 0 0.9rem; }
.svc-main h2:first-child { margin-top: 0; }
.svc-main > p { color: var(--slate); margin-bottom: 1rem; }

.include-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 1.2rem 0 0.4rem;
}
.include-grid li {
  list-style: none;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: var(--sky-50);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-size: 0.93rem;
  color: var(--slate);
  transition: transform var(--duration-fast) var(--ease-out-expo), border-color var(--duration-fast);
}
.include-grid li:hover { transform: translateY(-3px); border-color: var(--blue-400); }
.include-grid svg { width: 19px; height: 19px; fill: var(--blue-500); flex: none; margin-top: 0.12rem; }

.signs-list { margin: 1.2rem 0 0.4rem; padding: 0; }
.signs-list li {
  list-style: none;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--line);
  color: var(--slate);
}
.signs-list svg { width: 19px; height: 19px; fill: #e8a13c; flex: none; margin-top: 0.2rem; }

/* FAQ accordion */
.faq { margin-top: 1.2rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 0.7rem;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow var(--duration-fast);
}
.faq details[open] { box-shadow: var(--shadow-soft); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  font-weight: 700;
  color: var(--navy-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--blue-500);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.1rem 1rem; color: var(--slate); font-size: 0.95rem; }

/* sidebar card */
.svc-side { position: sticky; top: 90px; display: grid; gap: 1.2rem; }
.side-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
}
.side-card.cta {
  background: linear-gradient(160deg, var(--navy-900), var(--blue-700));
  color: var(--white);
  border: 0;
}
.side-card.cta h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 0.4rem; }
.side-card.cta p { color: #c9dbf7; font-size: 0.9rem; margin-bottom: 1.1rem; }
.side-card.cta .btn { width: 100%; margin-bottom: 0.6rem; }
.side-card h3 { font-size: 1.25rem; margin-bottom: 0.8rem; }
.side-links { list-style: none; }
.side-links li { border-bottom: 1px dashed var(--line); }
.side-links li:last-child { border-bottom: 0; }
.side-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.2rem;
  text-decoration: none;
  color: var(--slate);
  font-size: 0.94rem;
  transition: color var(--duration-fast), transform var(--duration-fast) var(--ease-out-expo);
}
.side-links a:hover { color: var(--blue-600); transform: translateX(4px); }
.side-links a.current { color: var(--blue-600); font-weight: 700; }

/* related strip */
.related { padding-bottom: var(--space-section); }
.related h2 { font-size: 1.7rem; margin-bottom: 1.3rem; }
.related .svc-grid { grid-template-columns: repeat(3, 1fr); }

/* ============================================================
   quote wizard
   ============================================================ */
.quote-page {
  background:
    radial-gradient(800px 400px at 90% -10%, rgba(31, 107, 255, 0.12), transparent 65%),
    var(--sky-50);
  min-height: 70vh;
  padding: clamp(2.2rem, 5vw, 4rem) 0 var(--space-section);
}
.quote-head { text-align: center; max-width: 560px; margin: 0 auto 2rem; }
.quote-head h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); margin-bottom: 0.5rem; }
.quote-head p { color: var(--slate); }

/* progress */
.q-progress {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  max-width: 560px;
  margin: 0 auto 2.2rem;
}
.q-step-dot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--slate);
}
.q-step-dot .n {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--line);
  transition: all var(--duration-normal) var(--ease-out-expo);
}
.q-step-dot.active { color: var(--blue-600); }
.q-step-dot.active .n { border-color: var(--blue-500); background: var(--blue-500); color: var(--white); transform: scale(1.12); }
.q-step-dot.done .n { border-color: var(--blue-500); background: var(--sky-100); color: var(--blue-600); }
.q-step-dot .bar { width: 34px; height: 2px; background: var(--line); }
.q-step-dot.done .bar { background: var(--blue-400); }

/* wizard card */
.q-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  overflow: hidden;
}
.q-pane { animation: paneIn 420ms var(--ease-out-expo); }
@keyframes paneIn {
  from { opacity: 0; transform: translateX(26px); }
  to { opacity: 1; transform: none; }
}
.q-pane h2 { font-size: 1.7rem; margin-bottom: 0.3rem; }
.q-pane .q-sub { color: var(--slate); font-size: 0.94rem; margin-bottom: 1.4rem; }

/* service picker */
.q-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.q-svc {
  position: relative;
  border: 2px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  text-align: left;
  padding: 0;
  transition: border-color var(--duration-fast), transform var(--duration-fast) var(--ease-out-expo), box-shadow var(--duration-fast);
}
.q-svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.q-svc.sel { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(31, 107, 255, 0.15); }
.q-svc img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.q-svc b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-900);
  padding: 0.55rem 0.7rem 0.15rem;
  line-height: 1.1;
}
.q-svc small { display: block; padding: 0 0.7rem 0.6rem; color: var(--slate); font-size: 0.76rem; }
.q-svc .tick {
  position: absolute;
  top: 8px; right: 8px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue-500);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--duration-fast) var(--ease-out-expo);
}
.q-svc.sel .tick { opacity: 1; transform: scale(1); }

/* option pills + fields */
.q-field { margin-bottom: 1.15rem; }
.q-field > label, .q-field > .lbl {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.45rem;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.pill {
  font: inherit;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--white);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-expo);
}
.pill:hover { border-color: var(--blue-400); transform: translateY(-2px); }
.pill.sel { border-color: var(--blue-500); background: var(--blue-500); color: var(--white); }
.q-field input, .q-field textarea, .q-field select {
  width: 100%;
  font: inherit;
  padding: 0.78rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--sky-50);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast), background var(--duration-fast);
}
.q-field input:focus, .q-field textarea:focus, .q-field select:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(31, 107, 255, 0.14);
}
.q-field textarea { min-height: 96px; resize: vertical; }
.q-field .err { display: none; color: #d23c3c; font-size: 0.8rem; margin-top: 0.3rem; }
.q-field.invalid .err { display: block; }
.q-field.invalid input { border-color: #d23c3c; }
.q-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }

/* wizard nav */
.q-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.q-back {
  font: inherit;
  font-weight: 600;
  background: none;
  border: 0;
  color: var(--slate);
  cursor: pointer;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
}
.q-back:hover { background: var(--sky-50); color: var(--navy-900); }

/* estimate summary */
.q-estimate {
  background: linear-gradient(160deg, var(--navy-900), var(--blue-700));
  color: var(--white);
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.q-estimate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 160px at 85% 0%, rgba(77, 141, 255, 0.4), transparent 60%);
}
.q-estimate .lbl2 {
  font-family: var(--font-display);
  letter-spacing: 0.22em;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--sky-300);
}
.q-estimate .amt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  line-height: 1.05;
  color: var(--gold-bright);
  position: relative;
  z-index: 1;
}
.q-estimate .note { font-size: 0.82rem; color: #b9cfef; position: relative; z-index: 1; }
.q-summary { list-style: none; margin-bottom: 1.5rem; }
.q-summary li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.2rem;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.q-summary li b { color: var(--navy-900); font-weight: 600; }
.q-summary li span { color: var(--slate); text-align: right; }
.q-send-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.q-send-grid .btn { width: 100%; }
.q-alt {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--slate);
}
.q-alt a { color: var(--blue-600); font-weight: 700; text-decoration: none; }

/* success */
.q-success { text-align: center; padding: 1.5rem 0; }
.q-success .big {
  width: 76px; height: 76px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--blue-500), var(--blue-700));
  color: var(--white);
  animation: popIn 500ms var(--ease-out-expo);
}
.q-success .big svg { width: 38px; height: 38px; fill: currentColor; }
@keyframes popIn {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.q-success h2 { margin-bottom: 0.5rem; }
.q-success p { color: var(--slate); max-width: 42ch; margin: 0 auto 1.4rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-side { position: static; }
  .related .svc-grid { grid-template-columns: 1fr; }
  .q-services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .include-grid { grid-template-columns: 1fr; }
  .q-grid-2 { grid-template-columns: 1fr; }
  .q-send-grid { grid-template-columns: 1fr; }
  .q-step-dot .t { display: none; }
  .q-step-dot .bar { width: 20px; }
}
