/* CabFare invitation page: the form as a pop-up (modal.js), plus the trust and proof blocks around the form.
   The form section itself becomes the pop-up (no DOM move), so the Turnstile check stays where it was rendered. */

/* ---------- trust and proof blocks (page and pop-up) ---------- */
.iv-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 7px 13px 7px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.iv-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5BE38A; box-shadow: 0 0 0 4px rgba(91, 227, 138, .22);
  animation: iv-pulse 1.8s ease-in-out infinite; }
@keyframes iv-pulse { 50% { box-shadow: 0 0 0 7px rgba(91, 227, 138, 0); } }

.iv-social { margin: 20px 0 6px; }
.iv-social__faces { display: flex; margin-bottom: 10px; }
.iv-social__faces i { width: 34px; height: 34px; margin-left: -9px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 inherit;
  font-style: normal; color: #fff; border: 2px solid #10532B; background: #2E8B57; }
.iv-social__faces i:first-child { margin-left: 0; background: #3FAF5C; }
.iv-social__faces i:nth-child(2) { background: #1F6F43; }
.iv-social__faces i:nth-child(3) { background: #4A9C6D; }
.iv-social__faces i:nth-child(4) { background: #2B7A4B; }
.iv-social__join { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: #fff; }
.iv-social__stars { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: rgba(255, 255, 255, .8); }
.iv-social__stars li { display: flex; align-items: center; gap: 7px; }
.st { display: inline-flex; gap: 1px; color: #FFC94D; }
.st svg { width: 15px; height: 15px; }
.st__half { display: inline-flex; width: 7px; overflow: hidden; }

.proof { color: rgba(255, 255, 255, .92); }
@media (min-width: 960px) {
  .invite__grid { grid-template-areas: "copy card" "proof card"; grid-template-rows: auto 1fr; row-gap: 30px; }
  .invite__copy { grid-area: copy; position: static; }
  .invite__grid > .fcard { grid-area: card; }
  .proof { grid-area: proof; align-self: start; }
}
.proof__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0 0 14px; padding: 0; }
.proof__stats li { background: rgba(255, 255, 255, .09); border-radius: 18px; padding: 16px 14px 15px; }
.proof__stats b { display: block; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; color: #fff; }
.proof__stats span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.35; color: rgba(255, 255, 255, .76); }
.proof__quote { margin: 0; padding: 18px 20px 16px; border-radius: 18px; background: rgba(255, 255, 255, .07); }
.proof__quote blockquote { margin: 0; font-size: 16px; line-height: 1.5; color: #fff; }
.proof__quote figcaption { margin-top: 10px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.proof__note { margin: 14px 0 0; font-size: 13px; color: rgba(255, 255, 255, .74); display: flex; gap: 8px; align-items: center; }
.proof__note::before, .trust__tick { content: ""; flex: 0 0 16px; height: 16px; border-radius: 50%; background: #3FAF5C no-repeat center / 10px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

.fcard__lead { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 9px 12px; border-radius: 12px;
  background: rgba(63, 175, 92, .1); color: #10532B; font-size: 13px; font-weight: 700; }
.fcard__lead svg { width: 15px; height: 15px; flex: 0 0 15px; }

.trust { margin: 14px 0 0; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .07); }
.trust__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; list-style: none; margin: 0; padding: 0; }
.trust__row li { display: flex; gap: 10px; align-items: center; min-width: 0; }
.trust__row svg { flex: 0 0 30px; width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #7EE2A0; }
.trust__row span { display: block; font-size: 12px; line-height: 1.3; color: rgba(255, 255, 255, .7); }
.trust__row b { display: block; font-size: 13px; font-weight: 700; color: #fff; }

/* ---------- the pop-up: a floating card over the blurred page ---------- */
html.iv-open { overflow: hidden; }
html.iv-open .invite {
  position: fixed; inset: 0; z-index: 1000; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; padding: clamp(16px, 4vh, 48px) 16px;
  background: rgba(4, 22, 12, .62); -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%);
  animation: iv-fade .22s ease-out;
}
html.iv-open .invite__bg, html.iv-open .invite::before { display: none; }
html.iv-open .invite__grid {
  max-width: 1040px; margin: 0 auto; padding: 0; gap: 0; border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, #1E7E40 0%, #10532B 46%, #0A3A20 100%);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08);
  animation: iv-pop .34s cubic-bezier(.2, .9, .25, 1.05);
}
html.iv-open .invite__copy { padding: 34px 26px 6px; }
html.iv-open .proof { padding: 18px 26px 28px; }
html.iv-open .invite__grid > .fcard { border-radius: 0; box-shadow: none; margin: 0; }
html.iv-open .replies { display: none; }
@media (min-width: 960px) {
  html.iv-open .invite__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); row-gap: 0; }
  html.iv-open .invite__copy { padding: 44px 44px 0; }
  html.iv-open .proof { padding: 24px 44px 44px; }
  html.iv-open .invite__grid > .fcard { align-self: stretch; padding: 40px 38px 30px; }
}
@media (max-width: 959px) { html.iv-open .invite__grid > .fcard { order: 2; } html.iv-open .proof { order: 3; } }
@keyframes iv-fade { from { opacity: 0; } }
@keyframes iv-pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }

.iv-x { display: none; }
html.iv-open .iv-x {
  display: grid; place-items: center; position: fixed; top: 14px; right: 14px; z-index: 1001;
  width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(8, 47, 24, .7); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
html.iv-open .iv-x:hover { background: rgba(8, 47, 24, .9); }
.iv-x svg { width: 22px; height: 22px; }

/* ---------- the floating button ---------- */
.iv-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
}
html.iv-past-hero:not(.iv-form-seen):not(.iv-open) .iv-fab { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 600px) { .iv-fab { left: 16px; right: 16px; bottom: 14px; justify-content: center; text-align: center; } }

@media (prefers-reduced-motion: reduce) {
  html.iv-open .invite, html.iv-open .invite__grid { animation: none; }
  .iv-fab { transition: none; }
  .iv-chip::before { animation: none; }
}

/* a lighter form: smaller privacy note, tighter fields in the pop-up so both panels balance */
.fcard .fine { font-size: 11.5px; line-height: 1.45; margin-top: 14px; }
.fcard .fine a { padding: 10px 0; margin: -10px 0; }
html.iv-open .form { gap: 12px; }
html.iv-open .field { gap: 5px; }
html.iv-open .field label { font-size: 14px; }
html.iv-open .field input, html.iv-open .field select { min-height: 46px; font-size: 16px; }
html.iv-open .check { min-height: 38px; }

/* centred in the viewport: auto margins inside a flex scroller centre the card when it fits and start it at the top
   when it is taller than the screen, so nothing is ever cut off */
html.iv-open .invite { display: flex; flex-direction: column; }
html.iv-open .invite__grid { margin: auto; width: 100%; }

/* real faces in the driver stack */
.iv-social__faces img { width: 40px; height: 40px; margin-left: -10px; border-radius: 50%; object-fit: cover; border: 2px solid #10532B;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25); background: #2E8B57; }
.iv-social__faces img:first-child { margin-left: 0; }
