/* =========================================================
   Tip een vriend — /tip-een-vriend/genereer-link/ en
   /tip-een-vriend/via-referral-link/ (de pagina achter de link)
   ========================================================= */

/* ---------- Hero ---------- */
.tev-hero { padding: 80px 0 72px; }
.tev-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.tev-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29, 68, 115, .97) 0%, rgba(29, 68, 115, .9) 42%, rgba(29, 68, 115, .25) 75%, rgba(29, 68, 115, .1) 100%); pointer-events: none; }
.tev-hero .container { position: relative; z-index: 1; }
.tev-hero__text { max-width: 640px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.tev-hero__text p { font-size: 18px; line-height: 1.6; }
.tev-hero__badge { display: inline-flex; align-items: center; gap: 8px; background: var(--intro-orange-700); color: #fff; font-weight: 800; font-size: 14px; border-radius: var(--radius-pill); padding: 7px 14px; }
.tev-hero--landing { padding: 64px 0 56px; text-align: center; }
.tev-hero--landing::after { background: none; }
.tev-hero--landing .tev-hero__text { margin: 0 auto; align-items: center; }
.tev-hero--landing h1 { font-size: clamp(30px, 4vw, 48px); }
@media (max-width: 1023px) {
  .tev-hero__bg { opacity: .28; }
  .tev-hero::after { background: rgba(29, 68, 115, .55); }
}

/* ---------- Formulier ---------- */
.tev-form-wrap { padding: 64px 0; scroll-margin-top: 90px; }
.tev-card { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--border-1); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.tev-card__lead { font-size: 18px; font-weight: 800; color: var(--fg-1); }
.tev-form { display: flex; flex-direction: column; gap: 16px; }
.tev-form .form-grid { gap: 16px; }
.tev-form .btn[type=submit] { align-self: stretch; }
.tev-legend { font-size: 13px; color: var(--fg-3); }
.tev-legend span { color: var(--intro-orange-700); }

/* De gemaakte link */
.tev-done { gap: 16px !important; }
.tev-done h2 { font-size: 26px; font-weight: 800; }
.tev-done p { font-size: 16px; color: var(--fg-2); line-height: 1.55; }
.tev-link { display: flex; gap: 8px; align-items: stretch; }
.tev-link .input { font-size: 14px; font-weight: 600; color: var(--intro-darkblue); background: #fff; min-width: 0; }
.tev-link .btn { flex: 0 0 auto; }
.tev-share { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1DA851; color: #fff; }
.tev-again { align-self: flex-start; }
.tev-check { width: 48px; height: 48px; border-radius: 50%; background: var(--intro-lime); color: #fff; display: grid; place-items: center; }

/* ---------- Hoe het werkt + video ---------- */
.tev-how { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: center; }
.tev-steps { list-style: none; counter-reset: stap; display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.tev-steps li { counter-increment: stap; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; font-size: 17px; line-height: 1.55; color: var(--fg-2); }
.tev-steps li::before { content: counter(stap); width: 40px; height: 40px; border-radius: 50%; background: var(--intro-orange-700); color: #fff; font-weight: 800; display: grid; place-items: center; }
.tev-video { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .35); max-width: 380px; width: 100%; justify-self: center; }
.tev-video video { width: 100%; height: auto; display: block; }
.tev-mute { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--fg-1); border: 0; border-radius: var(--radius-pill); padding: 8px 14px; font-size: 14px; font-weight: 800; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); white-space: nowrap; }
.tev-mute:hover { background: var(--neutral-100); }

/* ---------- Na aanmelding via de link ---------- */
.tev-thanks h2 { font-size: 26px; font-weight: 800; }
.tev-thanks p { font-size: 16px; color: var(--fg-2); line-height: 1.6; }
.tev-thanks .row { gap: 10px; }
.tev-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.tev-contact:empty, .tev-thanks .socials:empty { display: none; }

@media (max-width: 900px) {
  .tev-how { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .tev-hero { padding: 56px 0 48px; }
  .tev-card { padding: 22px 18px; }
  .tev-form-wrap { padding: 40px 0; }
  .tev-form .form-grid { grid-template-columns: 1fr; }
  .tev-form .form-grid .span-2 { grid-column: auto; }
  .tev-link { flex-direction: column; }
  /* Delen: onder elkaar, allemaal even breed (was een trapje van drie verschillende breedtes) */
  .tev-share { flex-direction: column; }
  .tev-share .btn { width: 100%; justify-content: center; }
  .tev-contact .btn, .tev-thanks .row .btn { flex: 1 1 100%; justify-content: center; }
}
.tev-form .form-success:focus { outline: none; }
