:root {
  --gradient: linear-gradient(135deg, #FFD65A 0%, #FF8A00 100%);
  --gradient-hover: linear-gradient(135deg, #FFCB3D 0%, #FF7A00 100%);
  --ink: #1F2430;
  --muted: #6B7280;
  --card-bg: #FFFFFF;
  --page-bg: #FBF9F6;
  --border: #ECE7E0;
  --shadow-soft: 0 8px 24px rgba(31, 36, 48, 0.06);
  --shadow-lift: 0 20px 45px rgba(255, 138, 0, 0.18);
  --radius-lg: 24px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: #0B0D14;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Bewegende achtergrond ---------- */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-photo {
  position: absolute;
  inset: -6%;
  background: url("images/achtergrond.jpg") center 60% / cover no-repeat;
  animation: bg-drift 32s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes bg-drift {
  0%   { transform: scale(1)    translate(0, 0); }
  50%  { transform: scale(1.08) translate(-1.5%, 1%); }
  100% { transform: scale(1.12) translate(1.5%, -1.5%); }
}

.bg-lights span {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0;
  mix-blend-mode: screen;
  animation-name: light-float, light-twinkle;
  animation-timing-function: ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-direction: alternate, alternate;
}

@keyframes light-float {
  from { transform: translate(0, 0); }
  to   { transform: translate(40px, -25px); }
}

@keyframes light-twinkle {
  0%   { opacity: 0.05; }
  50%  { opacity: 0.55; }
  100% { opacity: 0.15; }
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(11, 13, 20, 0.35) 0%, rgba(11, 13, 20, 0.75) 70%),
    linear-gradient(180deg, rgba(11, 13, 20, 0.55) 0%, rgba(11, 13, 20, 0.35) 40%, rgba(11, 13, 20, 0.8) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .bg-photo,
  .bg-lights span { animation: none; }
  .bg-lights span { opacity: 0.25; }
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 13, 20, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
}

.logo img {
  height: 58px;
  width: auto;
  display: block;
}

.nav-links a {
  margin-left: 28px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: #FFD65A; }

.nav-links .nav-call {
  color: #1F1400;
  background: var(--gradient);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
}

.nav-links .nav-call:hover { color: #1F1400; background: var(--gradient-hover); }

.nav-links { margin-left: auto; }

.lang-switch {
  display: flex;
  margin-left: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch button {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 10px;
  cursor: pointer;
}

.lang-switch button:hover { color: #FFD65A; }

.lang-switch button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-badges span {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  padding: 8px 14px;
  border-radius: 999px;
}

.hero-call {
  display: inline-block;
  margin-top: 28px;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  background: var(--gradient);
  color: #1F1400;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(255, 138, 0, 0.35);
  transition: transform 0.15s ease, background 0.2s ease;
}

.hero-call:hover { background: var(--gradient-hover); transform: translateY(-2px); }

.footer p { margin: 4px 0; }

.footer a { color: #FFD65A; text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 32px 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: #FFFFFF;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Calculator ---------- */
.calculator {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 32px 80px;
}

.calc-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
}

.calc-card h2 {
  margin: 0 0 28px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

#price-form,
#booking-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  background: #FAFAFA;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field:focus-within {
  border-color: #FF8A00;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(255, 138, 0, 0.12);
}

.field-icon {
  font-size: 18px;
  padding: 0 0 0 20px;
}

.field input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 18px 20px;
}

.field input::placeholder,
.field textarea::placeholder { color: #9CA3AF; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-row > .field { min-width: 0; }
.field-row input { min-width: 0; width: 100%; padding-left: 12px; padding-right: 12px; }

@media (max-width: 420px) {
  .field-row { grid-template-columns: 1fr; }
}

.address-group {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.address-group legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.field-row-address,
.field-row.field-row-address { grid-template-columns: 2fr 3fr; gap: 10px; }

.field-textarea { align-items: flex-start; }
.field-textarea .field-icon { padding-top: 18px; }

.field textarea {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 18px 20px;
  resize: vertical;
  min-height: 90px;
}

.btn-calculate {
  margin-top: 8px;
  border: none;
  border-radius: var(--radius-md);
  padding: 18px 24px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #1F1400;
  background: var(--gradient);
  cursor: pointer;
  box-shadow: var(--shadow-lift);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-calculate:hover {
  background: var(--gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(255, 138, 0, 0.26);
}

.btn-calculate:active { transform: translateY(0); }

.btn-calculate:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(31, 20, 0, 0.25);
  border-top-color: #1F1400;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error-msg {
  margin: 18px 4px 0;
  color: #D33A2C;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

/* ---------- Result ---------- */
.result {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px dashed var(--border);
  text-align: center;
}

.result-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.result-price {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.result-price span:first-child {
  font-size: 32px;
  margin-right: 4px;
}

.result-meta {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Booking ---------- */
.booking,
.booking-success {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px dashed var(--border);
}

.booking h3,
.booking-success h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.booking-intro,
.booking-success p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.booking-success { text-align: center; }

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  color: #1F1400;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* ---------- How it works ---------- */
.how-it-works {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 32px 120px;
  text-align: center;
}

.how-it-works h2 {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 48px;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-soft);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  color: #1F1400;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 28px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  background: rgba(11, 13, 20, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .calc-card { padding: 32px 24px; }
  .hero { padding: 64px 24px 40px; }
  .topbar-inner { padding: 14px 16px; }
  .logo img { height: 46px; }
  .nav-links a:not(.nav-call) { display: none; }
  .nav-links .nav-call span { display: none; }
  .nav-links .nav-call { margin-left: 0; }
  .nav-links .nav-call::after { content: attr(data-label); }
  .lang-switch { margin-left: 10px; }
  .lang-switch button { padding: 6px 7px; font-size: 12px; }
}

@media (max-width: 400px) {
  .logo img { height: 38px; }
  .nav-links .nav-call { padding: 7px 12px; font-size: 14px; }
  .lang-switch { margin-left: 8px; }
  .lang-switch button { padding: 6px 5px; }
}

/* ---------- Taxi-animatie na bevestigen ---------- */
.taxi-stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.taxi-run {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(11, 13, 20, 0.72);
  backdrop-filter: blur(6px);
  animation: taxi-fade 3.4s ease forwards;
  cursor: pointer;
}

.taxi-run[hidden] { display: none; }

.taxi-road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 4px;
  background: repeating-linear-gradient(90deg, rgba(255, 214, 90, 0.7) 0 48px, transparent 48px 96px);
  animation: taxi-road 3.4s linear forwards;
}

.taxi-track {
  position: relative;
  width: min(92vw, 780px);
  animation: taxi-drive 3.4s forwards;
  will-change: transform;
}

.taxi-car {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.taxi-body {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: taxi-pitch 3.4s ease-in-out forwards;
}

.taxi-wheel { animation: taxi-wheel 3.4s forwards; }

.taxi-beam { animation: taxi-beam 3.4s ease forwards; }

.taxi-speedlines {
  position: absolute;
  right: 100%;
  top: 22%;
  width: 46%;
  height: 56%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  animation: taxi-lines 3.4s ease forwards;
}

.taxi-speedlines span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 90, 0.85));
}

.taxi-speedlines span:nth-child(2) { margin-left: 30%; }
.taxi-speedlines span:nth-child(3) { margin-left: 12%; }
.taxi-speedlines span:nth-child(4) { margin-left: 45%; }

.taxi-caption {
  margin: 28px 24px 0;
  color: #fff;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 600;
  text-align: center;
  opacity: 0;
  animation: taxi-caption 3.4s ease forwards;
}

.taxi-caption strong {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* binnenrijden, afremmen in het midden, dan wegscheuren */
@keyframes taxi-drive {
  0%   { transform: translateX(calc(-50vw - 100%)); animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1); }
  36%  { transform: translateX(0); }
  62%  { transform: translateX(0); animation-timing-function: cubic-bezier(0.6, 0, 0.9, 0.6); }
  100% { transform: translateX(calc(50vw + 100%)); }
}

@keyframes taxi-wheel {
  0%   { transform: rotate(0deg); animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1); }
  36%  { transform: rotate(1440deg); }
  62%  { transform: rotate(1440deg); animation-timing-function: cubic-bezier(0.6, 0, 0.9, 0.6); }
  100% { transform: rotate(3240deg); }
}

@keyframes taxi-pitch {
  0%, 30% { transform: rotate(0deg); }
  38%     { transform: rotate(1.6deg); }
  46%     { transform: rotate(-0.6deg); }
  54%     { transform: rotate(0deg); }
  64%     { transform: rotate(-1.4deg); }
  80%, 100% { transform: rotate(-0.4deg); }
}

@keyframes taxi-lines {
  0%, 28%  { opacity: 1; }
  38%, 60% { opacity: 0; }
  72%, 100% { opacity: 1; }
}

@keyframes taxi-beam {
  0%   { opacity: 0.5; }
  36%, 62% { opacity: 1; }
  100% { opacity: 0.6; }
}

@keyframes taxi-caption {
  0%, 34%  { opacity: 0; transform: translateY(10px); }
  44%, 88% { opacity: 1; transform: translateY(0); }
  100%     { opacity: 0; }
}

@keyframes taxi-road {
  from { background-position: 0 0; }
  to   { background-position: -1400px 0; }
}

@keyframes taxi-fade {
  0%   { opacity: 0; }
  6%, 86% { opacity: 1; }
  100% { opacity: 0; }
}

/* Minder beweging: taxi staat stil in het midden, alleen in- en uitfaden */
@media (prefers-reduced-motion: reduce) {
  .taxi-track,
  .taxi-body,
  .taxi-wheel,
  .taxi-road { animation: none; }
  .taxi-speedlines { display: none; }
  .taxi-caption { animation-name: taxi-fade; }
}
