/* ================================================================
   iClick — Quote Received / Underwriting view
   Replaces the harsh "Quote declined" rejection screen with a warmer
   "Almost there" application-received view. Scoped to
   .quote-received-v2 so the design tokens don't leak into other
   parts of the app.
   ================================================================ */

.quote-received-v2 {
  /* Brand */
  --qr-brand: #2540ff;
  --qr-brand-600: #1d33d6;
  --qr-brand-50: #eef0ff;
  --qr-brand-100: #dde2ff;

  /* Ink */
  --qr-ink-900: #0b1330;
  --qr-ink-700: #1f2747;
  --qr-ink-500: #5a6079;
  --qr-ink-400: #858ba6;
  --qr-ink-300: #b9bdcd;
  --qr-ink-200: #e3e6ef;
  --qr-ink-100: #eef0f6;

  /* Surfaces */
  --qr-surface: #fbfbfd;
  --qr-card: #ffffff;
  --qr-line: #e6e8f0;
  --qr-line-soft: #eff1f7;

  /* Status */
  --qr-ok: #16a34a;
  --qr-ok-50: #e8f6ed;

  /* Radius */
  --qr-r-md: 12px;
  --qr-r-lg: 16px;

  /* Shadow */
  --qr-shadow-card: 0 1px 0 rgba(11, 19, 48, 0.04), 0 1px 2px rgba(11, 19, 48, 0.04);

  font-family: var(--font-body);
  color: var(--qr-ink-900);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  margin-top: -40px !important;

}

.quote-received-v2 .received-stage {
  display: flex;
  justify-content: center;
  padding: 64px 16px 96px;
  background:
    radial-gradient(1100px 420px at 50% -120px, var(--qr-brand-50) 0%, rgba(238, 240, 255, 0) 60%),
    var(--qr-surface);
  min-height: calc(100vh - 60px);
}

.quote-received-v2 .received {
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero icon */
.quote-received-v2 .hero-mark {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.quote-received-v2 .hero-mark .ring-soft {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--qr-brand-50) 0%, rgba(238, 240, 255, 0) 75%);
}
.quote-received-v2 .hero-mark .disc {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: linear-gradient(160deg, #ffffff 0%, var(--qr-brand-50) 100%);
  border: 1px solid var(--qr-brand-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qr-brand);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 18px 42px -22px rgba(37, 64, 255, 0.45),
    0 2px 6px rgba(11, 19, 48, 0.04);
  position: relative;
  z-index: 1;
}
.quote-received-v2 .hero-mark .disc svg {
  width: 44px;
  height: 44px;
}
.quote-received-v2 .hero-mark .pulse {
  position: absolute;
  inset: -6px;
  border-radius: 32px;
  border: 1.5px solid var(--qr-brand-100);
  animation: qr-pulse 2.6s ease-out infinite;
  z-index: 0;
}
@keyframes qr-pulse {
  0%   { transform: scale(0.96); opacity: 0.7; }
  80%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

/* Headline */
.quote-received-v2 h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--qr-ink-900);
  margin: 0 0 14px;
  text-align: center;
  text-wrap: balance;
}
.quote-received-v2 h1 em {
  font-style: normal;
  color: var(--qr-brand);
  font-weight: 700;
}
.quote-received-v2 .lede {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--qr-ink-500);
  text-align: center;
  max-width: 520px;
  margin: 0 0 36px;
  text-wrap: pretty;
}

/* Reference chip */
.quote-received-v2 .ref-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--qr-line);
  font-size: 12px;
  color: var(--qr-ink-500);
  margin-bottom: 22px;
  box-shadow: var(--qr-shadow-card);
  white-space: nowrap;
}
.quote-received-v2 .ref-chip .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--qr-ok-50);
  color: var(--qr-ok);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.quote-received-v2 .ref-chip .dot svg {
  width: 11px;
  height: 11px;
}
.quote-received-v2 .ref-chip code {
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--qr-ink-900);
  font-weight: 500;
  white-space: nowrap;
}

/* Action card */
.quote-received-v2 .next-card {
  background: white;
  border: 1px solid var(--qr-line);
  border-radius: var(--qr-r-lg);
  box-shadow: var(--qr-shadow-card);
  width: 100%;
  overflow: hidden;
}
.quote-received-v2 .next-card .head {
  padding: 18px 24px 14px;
  border-bottom: 1px dashed var(--qr-line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.quote-received-v2 .next-card .head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--qr-ink-900);
}
.quote-received-v2 .next-card .head .head-sub {
  font-size: 1.15rem;
  color: var(--qr-ink-500);
}
.quote-received-v2 .next-card .head .head-sub b {
  color: var(--qr-ink-900);
  font-weight: 600;
}

/* Contact rail */
.quote-received-v2 .contact-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.quote-received-v2 .contact-tile {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.15s;
}
.quote-received-v2 .contact-tile + .contact-tile {
  border-left: 1px solid var(--qr-line-soft);
}
.quote-received-v2 .contact-tile:hover { background: #fafbff; }
.quote-received-v2 .contact-tile .ic {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  background: var(--qr-brand-50);
  border: 1px solid var(--qr-brand-100);
  color: var(--qr-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.quote-received-v2 .contact-tile .ic svg { width: 18px; height: 18px; }
.quote-received-v2 .contact-tile .label {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--qr-ink-400);
  font-weight: 600;
}
.quote-received-v2 .contact-tile .value {
  font-size: 1.25rem;
  color: var(--qr-ink-900);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  font-feature-settings: 'tnum';
}
.quote-received-v2 .contact-tile .value.email { font-size: 16px; }
.quote-received-v2 .contact-tile .row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote-received-v2 .contact-tile .row .stack {
  flex: 1;
  min-width: 0;
}

/* Footer */
.quote-received-v2 .next-card .foot {
  background: #fafbff;
  border-top: 1px solid var(--qr-line-soft);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.quote-received-v2 .next-card .foot .left-msg {
  font-size: 1.15rem;
  color: var(--qr-ink-500);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.quote-received-v2 .next-card .foot .left-msg svg {
  width: 25px;
  height: 25px;
  color: var(--qr-ink-400);
  flex-shrink: 0;
}

/* Timeline */
.quote-received-v2 .timeline {
  width: 100%;
  margin-top: 22px;
  background: white;
  border: 1px solid var(--qr-line);
  border-radius: var(--qr-r-lg);
  padding: 18px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.quote-received-v2 .timeline .step {
  position: relative;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quote-received-v2 .timeline .step + .step::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--qr-line);
}
.quote-received-v2 .timeline .step .pip {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--qr-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--qr-ink-300);
}
.quote-received-v2 .timeline .step.done .pip {
  background: var(--qr-brand);
  border-color: var(--qr-brand);
  color: white;
}
.quote-received-v2 .timeline .step.now .pip {
  background: white;
  border-color: var(--qr-brand);
  color: var(--qr-brand);
  box-shadow: 0 0 0 4px var(--qr-brand-50);
}
.quote-received-v2 .timeline .step .pip svg {
  width: 12px;
  height: 12px;
}
.quote-received-v2 .timeline .step .lab {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--qr-ink-400);
  font-weight: 600;
}
.quote-received-v2 .timeline .step.now .lab { color: var(--qr-brand); }
.quote-received-v2 .timeline .step .ttl {
  font-size: 1.15rem;
  color: var(--qr-ink-900);
  font-weight: 600;
}
.quote-received-v2 .timeline .step .desc {
  font-size: 1rem;
  color: var(--qr-ink-500);
  line-height: 1.4;
}

/* Back link */
.quote-received-v2 .back-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.25rem;
  color: var(--qr-ink-500);
}
.quote-received-v2 .back-row a {
  color: var(--qr-ink-700);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
}
.quote-received-v2 .back-row a:hover {
  background: var(--qr-ink-100);
  color: var(--qr-ink-900);
}
.quote-received-v2 .back-row a svg {
  width: 25px;
  height: 25px;
}

/* Responsive */
@media (max-width: 640px) {
  .quote-received-v2 .contact-rail { grid-template-columns: 1fr; }
  .quote-received-v2 .contact-tile + .contact-tile {
    border-left: 0;
    border-top: 1px solid var(--qr-line-soft);
  }
  .quote-received-v2 .timeline {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .quote-received-v2 .timeline .step + .step::before { display: none; }
  .quote-received-v2 h1 { font-size: 26px; }
}

/* ================================================================
   Coastal variant — minimal "we can't cover homes this close to the
   sea" decline screen. Hero icon + headline + lede only, no card,
   no timeline, no actions.
   ================================================================ */
.quote-received-v2.coastal .received-stage {
  align-items: center;
  padding: 96px 16px;
}
.quote-received-v2.coastal .received {
  max-width: 640px;
}
.quote-received-v2.coastal .hero-mark {
  margin-bottom: 32px;
}
.quote-received-v2.coastal .hero-mark .ring-soft {
  inset: -22px;
}
.quote-received-v2.coastal .hero-mark .disc svg {
  width: 48px;
  height: 48px;
}
.quote-received-v2.coastal h1 {
  line-height: 1.25;
  margin: 0 0 18px;
}
.quote-received-v2.coastal .lede {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  max-width: 540px;
  margin: 0;
}
@media (max-width: 640px) {
  .quote-received-v2.coastal .lede { font-size: 1.25rem; }
}

/* ================================================================
   Typography map — explicit font-family for every text-bearing
   class in the quote-received view. Mono accents
   (.ref-chip code) keep their own font-family declaration.
   ================================================================ */

/* Heading-style: card titles, eyebrow caps, contact-tile values,
   timeline step titles, helper card titles. */
.quote-received-v2 .next-card .head h3,
.quote-received-v2 .contact-tile .label,
.quote-received-v2 .contact-tile .value,
.quote-received-v2 .timeline .step .lab,
.quote-received-v2 .timeline .step .ttl {
  font-family: var(--font-heading);
  
}

/* Body-style: lede paragraph, card sub-info, footer messages,
   timeline descriptions, back-link. */
.quote-received-v2 .lede,
.quote-received-v2 .next-card .head .head-sub,
.quote-received-v2 .next-card .foot .left-msg,
.quote-received-v2 .timeline .step .desc,
.quote-received-v2 .ref-chip,
.quote-received-v2 .back-row,
.quote-received-v2 .back-row a {
  font-family: var(--font-body);
}
