/* =========================================================
   COVERINSTANTLY — SHARED TOP BOX V3
   Quote is the visual source of truth for Quote, Cover,
   Contact, How It Works, About, Calculating and Success.
========================================================= */

.top-box{
  position:relative;
  overflow:hidden;
  padding:0!important;
  background:linear-gradient(135deg,#061426 0%,#0d2946 68%,#173b60 100%)!important;
  color:#fff;
}

.top-box::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 86% 12%,rgba(237,61,77,.26),transparent 25%),
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:auto,52px 52px,52px 52px;
}

.top-box > .container{
  position:relative;
  z-index:1;
}

/* Non-quote pages keep a container around their grid. */
.top-box > .container:not(.top-box-grid){
  padding-top:48px;
  padding-bottom:54px;
}

/* Quote uses the container itself as the grid. */
.top-box > .container.top-box-grid{
  padding-top:48px!important;
  padding-bottom:54px!important;
}

.top-box-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 460px!important;
  align-items:start!important;
  gap:54px!important;
}

/* Remove different page-level offsets so every left column begins identically. */
.cover-hero-grid.top-box-grid,
.about-hero-grid.top-box-grid,
.how-hero-grid.top-box-grid,
.support-hero-grid.top-box-grid{
  padding-top:0!important;
}

.top-box-copy{
  min-width:0;
  align-self:start;
}

.top-box .breadcrumb{
  min-height:18px;
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 20px!important;
  padding:0!important;
  color:#9fb0c4!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:18px;
}

.top-box .breadcrumb a{
  color:var(--red-500,#ed3d4d)!important;
}

.top-box .breadcrumb i{
  width:9px;
  text-align:center;
  color:#8296ad;
  font-size:9px!important;
}

.top-box .breadcrumb span{
  color:#fff!important;
}

/* All five icon labels now use the quote-page treatment. */
.top-box .top-box-badge{
  min-height:16px;
  display:inline-flex!important;
  align-items:center!important;
  gap:9px!important;
  margin:0 0 18px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#ff9ca5!important;
  font-size:12px!important;
  font-weight:950!important;
  line-height:16px!important;
  letter-spacing:.11em!important;
  text-transform:uppercase!important;
}

.top-box .top-box-badge i{
  width:16px;
  display:inline-grid;
  place-items:center;
  color:#ff9ca5!important;
  font-size:12px!important;
}

.top-box .top-box-copy > h1{
  max-width:780px!important;
  margin:0 0 15px!important;
  color:#fff!important;
  font-size:clamp(38px,5vw,68px)!important;
  font-weight:inherit;
  line-height:.96!important;
  letter-spacing:-.068em!important;
}

.top-box .top-box-copy > p{
  max-width:740px!important;
  margin:0!important;
  color:#c9d6e5!important;
  font-size:17px!important;
  line-height:1.7!important;
}

.top-box .top-box-copy .cover-actions,
.top-box .top-box-copy .about-actions,
.top-box .top-box-copy .how-actions,
.top-box .top-box-copy .hero-actions{
  margin-top:28px!important;
}

.top-box .top-box-copy .cover-hero-note,
.top-box .top-box-copy .about-note,
.top-box .top-box-copy .how-note,
.top-box .top-box-copy .support-note{
  margin-top:17px!important;
  color:#aebdd0!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.55!important;
}

.top-box-grid > aside,
.top-box-grid > .quote-progress-track{
  width:100%;
  min-width:0;
  margin:0!important;
  align-self:start!important;
}


/* Quote-stage progress card: identical sizing on every journey page. */
.top-box .quote-progress-track{
  display:grid!important;
  grid-template-columns:auto 1fr auto 1fr auto 1fr auto!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  padding:24px!important;
  border:1px solid rgba(255,255,255,.13)!important;
  border-radius:22px!important;
  background:rgba(255,255,255,.075)!important;
  box-shadow:none!important;
  backdrop-filter:blur(14px)!important;
}

.top-box .progress-stage{
  display:grid!important;
  justify-items:center!important;
  gap:8px!important;
  min-width:62px!important;
  color:#8296ad!important;
}

.top-box .progress-stage span{
  width:42px!important;
  height:42px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(255,255,255,.14)!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.06)!important;
  color:inherit!important;
  font-size:14px!important;
  box-shadow:none!important;
}

.top-box .progress-stage small{
  display:block!important;
  color:inherit!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1.15!important;
  text-align:center!important;
  white-space:nowrap!important;
  opacity:1!important;
}

.top-box .progress-stage.complete,
.top-box .progress-stage.current{
  color:#fff!important;
}

.top-box .progress-stage.complete span{
  border-color:#45ae7b!important;
  background:#1e7e53!important;
}

.top-box .progress-stage.current span{
  border-color:#ff7b87!important;
  background:var(--red-500,#ed3d4d)!important;
  box-shadow:0 12px 30px rgba(237,61,77,.25)!important;
}

.top-box .progress-connector{
  height:2px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.12)!important;
}

.top-box .progress-connector.complete{
  background:#45ae7b!important;
}

@media(max-width:980px){
  .top-box-grid{
    grid-template-columns:minmax(0,1fr)!important;
    gap:30px!important;
  }

  .top-box-grid > aside,
  .top-box-grid > .quote-progress-track{
    width:100%;
    max-width:720px;
  }
}

@media(max-width:760px){
  .top-box > .container:not(.top-box-grid){
    padding-top:28px;
    padding-bottom:36px;
  }

  .top-box > .container.top-box-grid{
    padding-top:28px!important;
    padding-bottom:36px!important;
  }

  .top-box-grid{
    gap:23px!important;
  }

  .top-box .breadcrumb{
    margin-bottom:17px!important;
    font-size:12px!important;
  }

  .top-box .top-box-badge{
    margin-bottom:16px!important;
    font-size:10px!important;
    letter-spacing:.1em!important;
  }

  .top-box .top-box-copy > h1{
    margin-bottom:13px!important;
    font-size:34px!important;
    line-height:1!important;
    letter-spacing:-.052em!important;
  }

  .top-box .top-box-copy > p{
    font-size:14px!important;
    line-height:1.58!important;
  }
}


@media(max-width:760px){
  .top-box .quote-progress-track{
    grid-template-columns:auto minmax(5px,1fr) auto minmax(5px,1fr) auto minmax(5px,1fr) auto!important;
    gap:4px!important;
    padding:11px 7px!important;
    border-radius:15px!important;
    overflow:hidden!important;
  }

  .top-box .progress-stage{
    min-width:40px!important;
    gap:5px!important;
  }

  .top-box .progress-stage span{
    width:32px!important;
    height:32px!important;
    border-radius:10px!important;
    font-size:11px!important;
  }

  .top-box .progress-stage small{
    font-size:8px!important;
  }
}

@media(max-width:370px){
  .top-box .progress-stage{
    min-width:37px!important;
  }

  .top-box .progress-stage small{
    font-size:7px!important;
    letter-spacing:-.02em!important;
  }
}

