/* Quote page — focused lead form styles */

.q-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg);
}
@media (min-width: 1024px) {
  .q-wrap { grid-template-columns: 1fr 1.1fr; }
}

/* Left rail — brand/ambient */
.q-rail {
  position: relative;
  overflow: hidden;
  padding: 40px 48px 48px;
  background: linear-gradient(180deg, #0c1118, #0a0d11);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
}
@media (min-width: 1024px) {
  .q-rail { position: sticky; top: 0; height: 100vh; }
}
.q-rail-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(74,144,184,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,144,184,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, black 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, black 10%, transparent 75%);
}
.q-rail-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(74,144,184,.12), transparent 60%);
}
.q-rail-top, .q-rail-bottom, .q-rail-mid { position: relative; z-index: 2; }

.q-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 200ms;
}
.q-back:hover { color: var(--white); }

.q-rail-mid { max-width: 440px; }
.q-rail-mid h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  line-height: .95;
  letter-spacing: -.03em;
  color: var(--white);
  margin: 28px 0 20px;
}
.q-rail-mid h1 em { color: var(--accent); font-style: normal; }
.q-rail-mid p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}

.q-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 40px;
}
.q-feat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}
.q-feat .dot {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.q-feat strong { color: var(--white); font-weight: 600; }

.q-rail-bottom {
  display: flex; gap: 20px; align-items: center;
  color: var(--muted);
  font-size: 12px;
  flex-wrap: wrap;
}
.q-rail-bottom .stars { color: #F5C94E; display: inline-flex; gap: 2px; }
.q-rail-bottom .div { width: 1px; height: 12px; background: var(--border); }

/* Right — form pane */
.q-pane {
  padding: 48px 32px 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
@media (min-width: 640px) { .q-pane { padding: 64px 48px 96px; } }

.q-form {
  width: 100%;
  max-width: 560px;
}

.q-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.q-step-dot {
  flex: 1;
  height: 3px;
  border-radius: 100px;
  background: var(--surface);
  overflow: hidden;
  position: relative;
}
.q-step-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 500ms var(--ease-glass);
}
.q-step-dot.done::before { transform: scaleX(1); }
.q-step-dot.active::before { transform: scaleX(.5); }

.q-step-label {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.q-h {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.04;
  letter-spacing: -.025em;
  color: var(--white);
  margin: 0 0 12px;
}
.q-h em { color: var(--accent); font-style: normal; }
.q-sub {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0 0 36px;
  max-width: 480px;
}

.q-scene {
  animation: qFade 450ms var(--ease-glass);
}
@keyframes qFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Option grid */
.q-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.q-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: left;
  transition: all 200ms var(--ease-glass);
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--white);
  font-size: 14.5px;
  font-weight: 500;
}
.q-opt:hover { border-color: rgba(255,255,255,.2); background: #191a1f; }
.q-opt.selected {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--white);
}
.q-opt .check {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all 200ms;
  flex: 0 0 18px;
}
.q-opt.selected .check { background: var(--accent); border-color: var(--accent); color: var(--white); }
.q-opt .check svg { opacity: 0; transform: scale(.4); transition: all 200ms; }
.q-opt.selected .check svg { opacity: 1; transform: scale(1); }

/* Inputs */
.q-field { margin-bottom: 20px; }
.q-field label {
  display: block;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.q-input, .q-textarea {
  width: 100%;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 200ms, box-shadow 200ms, background 200ms;
}
.q-input:hover, .q-textarea:hover { border-color: rgba(255,255,255,.18); }
.q-input:focus, .q-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(74,144,184,.14);
  background: #181b22;
}
.q-input::placeholder, .q-textarea::placeholder { color: var(--ghost-shadow); }
.q-textarea { resize: vertical; min-height: 100px; line-height: 1.5; }

.q-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) { .q-row { grid-template-columns: 1fr; } }

/* Number stepper */
.q-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.q-stepper button {
  width: 48px; height: 56px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 600;
  transition: color 200ms, background 200ms;
}
.q-stepper button:hover { color: var(--white); background: rgba(255,255,255,.03); }
.q-stepper .val {
  width: 64px;
  text-align: center;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

/* Nav buttons */
.q-nav {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.q-nav .btn { flex: 1; }
@media (min-width: 520px) { .q-nav .btn { flex: initial; min-width: 140px; } .q-nav .btn-primary { flex: 1; } }

/* Summary */
.q-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 28px;
}
.q-summary .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.q-summary .row:last-child { border-bottom: 0; }
.q-summary .row .k {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.q-summary .row .v { color: var(--white); font-weight: 500; text-align: right; max-width: 60%; }

/* Success */
.q-success {
  text-align: center;
  padding: 40px 0;
  animation: qFade 600ms var(--ease-glass);
}
.q-success .circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  color: var(--accent-light);
  animation: qPop 600ms var(--ease-glass) 200ms both;
}
@keyframes qPop {
  from { transform: scale(.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.q-foot {
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
.q-foot a { color: var(--accent-light); }

.q-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.q-logo .mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .04em;
  color: var(--white);
}
.q-logo .sep { color: var(--accent); font-weight: 300; font-size: 20px; }
.q-logo .sub {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.error { color: var(--error); font-size: 12px; margin-top: 6px; }
