/* =========================
   QUOTE PAGE (Luxury + Card Form)
   File: css/quote.css
========================= */

/* Base resets for this page only */
body.quote-page, body.quote-page *{
  box-sizing: border-box;
}
body.quote-page{
  margin: 0;
  background: #070A10;
  color: #fff;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Luxury background */
body.quote-page::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(255, 215, 120, 0.14), transparent 60%),
    radial-gradient(900px 520px at 80% 15%, rgba(120, 170, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.85)),
    url("../images/aboutbk.png") center / cover no-repeat;
  transform: translateZ(0);
}

body.quote-page::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(6,8,12,0.55);
  backdrop-filter: blur(2px);
}

/* Hero */
.quote-hero{
  padding: 72px 0 34px;
  text-align: center;
}

.quote-hero h1{
  font-family: "DM Serif Display", serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.06;
  margin: 0 0 12px;
  letter-spacing: 0.2px;
}

.quote-hero p{
  max-width: 900px;
  margin: 0 auto;
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
}

/* Badges */
.quote-badges{
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.q-badge{
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
}

/* Layout */
.quote-wrap{
  padding: 10px 0 90px;
}
.quote-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
}

/* =========================
   FORM CARD (NOT a phone)
========================= */
.phone-shell{
  width: min(720px, 92vw);
  margin: 0 auto;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10, 12, 18, 0.58);
  box-shadow:
    0 30px 90px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
}

/* Hide the “phone” topbar + notch */
.phone-topbar{ display:none; }
.phone-notch{ display:none; }

.phone-body{
  padding: 22px 22px 18px;
  position: relative;
}

/* Progress */
.progress-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.progress-title{
  font-size: 0.92rem;
  color: rgba(255,255,255,0.78);
}

.dots{
  display: flex;
  gap: 7px;
}
.dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.20);
}
.dot.active{
  background: rgba(255,215,120,0.95);
  box-shadow: 0 0 0 4px rgba(255,215,120,0.12);
}

/* Slides container */
.slides{
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

/* ✅ FIXED SLIDER (this is what was breaking you) */
.track{
  display: flex;
  width: 100%; /* MUST be 100% */
  transition: transform 420ms cubic-bezier(.2,.9,.2,1);
  will-change: transform;
}

.step{
  flex: 0 0 100%;  /* each step is one full “screen” */
  width: 100%;
  padding: 20px;
  min-height: 380px;
}

/* Headings */
.step h2{
  font-family: "DM Serif Display", serif;
  margin: 2px 0 6px;
  font-size: 1.75rem;
  letter-spacing: 0.2px;
}
.step p.sub{
  margin: 0 0 16px;
  color: rgba(255,255,255,0.72);
  font-size: 1.0rem;
  line-height: 1.35;
}

/* Fields */
.field{ margin-bottom: 12px; }
.field label{
  display: block;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.80);
  margin-bottom: 6px;
}
.field input, .field select{
  width: 100%;
  padding: 13px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.28);
  color: #fff;
  outline: none;
  font-size: 1rem;
}
.field input::placeholder{
  color: rgba(255,255,255,0.45);
}
.field input:focus, .field select:focus{
  border-color: rgba(255,215,120,0.45);
  box-shadow: 0 0 0 4px rgba(255,215,120,0.10);
}

/* Pills */
.pill-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}
.pill{
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.88);
  border-radius: 14px;
  padding: 12px 12px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  font-size: 0.95rem;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.pill:hover{ transform: translateY(-1px); }
.pill.selected{
  border-color: rgba(255,215,120,0.65);
  background: rgba(255,215,120,0.12);
  box-shadow: 0 0 0 4px rgba(255,215,120,0.10);
}

/* Buttons */
.btn-row{
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.btn{
  flex: 1;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  font-weight: 600;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn.primary{
  border-color: rgba(255,215,120,0.55);
  background: linear-gradient(180deg, rgba(255,215,120,0.22), rgba(255,215,120,0.08));
}
.btn:disabled{
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Fine print */
.fineprint{
  margin-top: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.35;
}

/* Loader overlay */
.interstitial{
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 50;
  background: rgba(6,8,12,0.88);
  backdrop-filter: blur(10px);
  padding: 22px;
}
.interstitial.show{ display: flex; }

.spinner{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,0.18);
  border-top-color: rgba(255,215,120,0.9);
  animation: spin 0.9s linear infinite;
  margin: 0 auto 14px;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

.i-title{
  font-family: "DM Serif Display", serif;
  font-size: 1.4rem;
  margin: 0 0 6px;
}
.i-sub{
  color: rgba(255,255,255,0.76);
  margin: 0;
  font-size: 0.98rem;
}
.i-micro{
  color: rgba(255,255,255,0.55);
  margin-top: 10px;
  font-size: 0.86rem;
}

/* Success */
.success{
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,215,120,0.22);
  background: rgba(255,215,120,0.08);
  color: rgba(255,255,255,0.92);
  line-height: 1.45;
  margin-top: 8px;
}

/* Small screens */
@media (max-width: 520px){
  .phone-body{ padding: 16px; }
  .step{ min-height: 410px; padding: 18px; }
  .pill-grid{ grid-template-columns: 1fr; }
}
