/* Revolut Design System — chauffeurklaar.nl (RTL adapted)
   Tokens sourced from popular-web-designs/templates/revolut.md
   https://github.com/NousResearch/Hermes-Agent — MIT */
:root {
  --r-dark: #191c1f;
  --r-white: #ffffff;
  --r-surface: #f4f4f4;
  --r-blue: #494fdf;
  --r-action-blue: #4f55f1;
  --r-blue-text: #376cd5;
  --r-danger: #e23b4a;
  --r-deep-pink: #e61e49;
  --r-warning: #ec7e00;
  --r-yellow: #b09000;
  --r-teal: #00a87e;
  --r-light-green: #428619;
  --r-green-text: #006400;
  --r-light-blue: #007bc2;
  --r-brown: #936d62;
  --r-red-text: #8b0000;
  --r-mid-slate: #505a63;
  --r-cool-gray: #8d969e;
  --r-gray-tone: #c9c9cd;
  --r-text: var(--r-dark);
  --r-text-muted: var(--r-mid-slate);
  --r-border: var(--r-gray-tone);
  --r-radius-sm: 12px;
  --r-radius-card: 20px;
  --r-radius-pill: 9999px;
  --r-shadow-focus: 0 0 0 0.125rem rgba(73,79,223,0.35);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--r-text);
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
  line-height: 1.5;
  letter-spacing: 0.16px;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

/* Navbar (Revolut: pill CTAs, dark on light) */
.r-nav {
  background: var(--r-white);
  border-bottom: 1px solid var(--r-border);
  padding: 16px 0;
  position: sticky; top: 0; z-index: 50;
}
.r-nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.r-brand { font-weight: 500; font-size: 20px; color: var(--r-dark); text-decoration: none; letter-spacing: -0.4px; display: inline-flex; align-items: center; }
.r-brand-logo { height: 32px; width: 32px; vertical-align: middle; margin-right: 8px; }
[dir="rtl"] .r-brand-logo { margin-right: 0; margin-left: 8px; }
.r-nav-links { display: flex; gap: 8px; margin-inline-start: auto; }
.r-nav-link {
  display: inline-flex; align-items: center; padding: 10px 18px; border-radius: var(--r-radius-pill);
  font-weight: 500; font-size: 16px; color: var(--r-dark); text-decoration: none; transition: opacity 0.15s;
}
.r-nav-link:hover { opacity: 0.65; }
.r-nav-link.is-active { background: var(--r-surface); }

/* Hero */
.r-hero {
  padding: 80px 24px 64px;
  background: radial-gradient(ellipse at 30% 0%, rgba(73,79,223,0.08) 0%, transparent 60%);
}
.r-hero__inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.r-hero__text { text-align: start; }
.r-hero__text h1 {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 56px; line-height: 1.05;
  letter-spacing: -1.12px; color: var(--r-dark); margin: 0 0 20px;
}
.r-hero__text p.lede {
  font-size: 19px; line-height: 1.5; color: var(--r-text-muted);
  margin: 0 0 32px; max-width: 520px;
}
.r-hero__media img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  object-fit: cover; border-radius: 20px; box-shadow: 0 12px 36px rgba(0,0,0,0.12);
  background: var(--r-surface);
}

/* Buttons (Revolut pill system) */
.r-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 500; font-size: 17px; line-height: 1;
  padding: 16px 32px; border-radius: var(--r-radius-pill); cursor: pointer;
  border: 2px solid transparent; text-decoration: none; transition: opacity 0.15s, transform 0.05s;
  box-sizing: border-box;
  max-width: 100%;
}
.r-btn:hover { opacity: 0.85; }
.r-btn:active { transform: scale(0.98); }
.r-btn:focus-visible { outline: none; box-shadow: var(--r-shadow-focus); }
.r-btn--primary { background: var(--r-dark); color: var(--r-white); }
.r-btn--secondary { background: var(--r-surface); color: var(--r-dark); }
.r-btn--outline { background: transparent; color: var(--r-dark); border-color: var(--r-dark); }
.r-btn--success { background: var(--r-teal); color: var(--r-white); }
.r-btn--warning { background: var(--r-warning); color: var(--r-white); }
.r-btn--danger { background: var(--r-danger); color: var(--r-white); }
.r-btn--block { display: flex; width: 100%; }
.r-btn--lg { padding: 18px 36px; font-size: 18px; }

/* Cards (Revolut: 20px radius, no shadows, depth by sections) */
.r-card {
  background: var(--r-white);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-card);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.r-card--hover:hover {
  border-color: var(--r-dark);
  transform: translateY(-2px);
}

/* Pricing package card */
.r-package {
  text-align: center; padding: 40px 32px;
}
.r-package__name {
  font-size: 14px; font-weight: 500; color: var(--r-text-muted);
  text-transform: uppercase; letter-spacing: 1.4px; margin: 0 0 16px;
}
.r-package__price {
  font-size: 64px; font-weight: 500; line-height: 1; color: var(--r-dark);
  letter-spacing: -1.28px; margin: 0 0 8px;
}
.r-package__vat {
  font-size: 13px; color: var(--r-text-muted);
  margin: 0 0 24px; letter-spacing: 0.2px;
}
.r-package__includes {
  list-style: none; padding: 16px 0 24px; margin: 0 0 24px;
  border-top: 1px solid var(--r-border);
  border-bottom: 1px solid var(--r-border);
  text-align: start;
}
.r-package__includes li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 15px; color: var(--r-text);
  gap: 12px;
}
.r-package__incl-label { color: var(--r-text-muted); }
.r-package__incl-val { font-weight: 500; color: var(--r-dark); }
.r-package__includes--compact li { padding: 6px 0; font-size: 14px; }
.r-package__desc { color: var(--r-text-muted); margin: 0 0 24px; min-height: 48px; font-size: 15px; }
.r-package__cta { margin-top: 8px; }

/* Section headings */
.r-section { padding: 64px 0; }
.r-section--dark { background: var(--r-dark); color: var(--r-white); }
.r-section--surface { background: var(--r-surface); }
.r-section-head { text-align: center; margin: 0 auto 48px; max-width: 720px; padding: 0 24px; }
.r-section-title { margin: 0 0 12px; }
.r-section-sub { color: var(--r-text-muted); font-size: 17px; line-height: 1.5; margin: 0; }

/* How it works */
.r-how__steps {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  counter-reset: step;
}
.r-how__step {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--r-white); border: 1px solid var(--r-border);
  border-radius: var(--r-radius-card); padding: 28px 24px;
}
.r-how__num {
  flex: 0 0 44px; width: 44px; height: 44px;
  background: var(--r-dark); color: var(--r-white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 18px; line-height: 1;
}
.r-how__body { flex: 1; min-width: 0; }
.r-how__title { font-size: 18px; font-weight: 500; line-height: 1.3; margin: 4px 0 8px; color: var(--r-dark); }
.r-how__desc { color: var(--r-text-muted); font-size: 15px; line-height: 1.5; margin: 0; }

/* FAQ */
.r-faq__list { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.r-faq__item {
  background: var(--r-white); border: 1px solid var(--r-border);
  border-radius: var(--r-radius-sm); padding: 0;
  transition: border-color 0.15s;
}
.r-faq__item[open] { border-color: var(--r-dark); }
.r-faq__q {
  cursor: pointer; padding: 18px 22px; font-weight: 500; font-size: 16px;
  color: var(--r-dark); list-style: none; position: relative; padding-inline-end: 48px;
}
.r-faq__q::-webkit-details-marker { display: none; }
.r-faq__q::after {
  content: '+'; position: absolute; top: 50%; transform: translateY(-50%);
  inset-inline-end: 18px; font-size: 22px; line-height: 1; color: var(--r-text-muted);
  transition: transform 0.2s;
}
.r-faq__item[open] .r-faq__q::after { content: '−'; }
.r-faq__a {
  margin: 0; padding: 0 22px 20px; color: var(--r-text-muted); font-size: 15px; line-height: 1.55;
}

/* Forms (Revolut: dark-on-light, pill inputs) */
.r-input, .r-textarea, .r-select {
  width: 100%; font-family: inherit; font-size: 16px; line-height: 1.4;
  padding: 14px 18px; border: 1px solid var(--r-border); border-radius: var(--r-radius-pill);
  background: var(--r-white); color: var(--r-dark); box-sizing: border-box;
}
.r-input:focus, .r-textarea:focus, .r-select:focus {
  outline: none; border-color: var(--r-blue); box-shadow: var(--r-shadow-focus);
}
.r-textarea, .r-select { border-radius: var(--r-radius-sm); }
.r-label {
  display: block; font-size: 14px; font-weight: 500; color: var(--r-dark);
  margin: 0 0 8px; letter-spacing: 0.16px;
}
.r-required { color: var(--r-danger); margin-inline-start: 4px; }
.r-field { margin: 0 0 20px; }
.r-help { font-size: 13px; color: var(--r-text-muted); margin: 8px 0 0; }
.r-group { display: flex; flex-direction: column; gap: 12px; }
.r-radio-card {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  border: 2px solid var(--r-border); border-radius: var(--r-radius-sm); cursor: pointer;
  transition: border-color 0.15s;
}
.r-radio-card:has(input:checked) { border-color: var(--r-dark); background: var(--r-surface); }
.r-radio-card input[type=radio] { accent-color: var(--r-dark); margin: 0; }

/* Alerts (Revolut semantic colors) */
.r-alert {
  padding: 16px 20px; border-radius: var(--r-radius-sm); font-size: 15px;
  margin: 0 0 24px; display: flex; align-items: flex-start; gap: 12px;
}
.r-alert--danger { background: rgba(226,59,74,0.08); color: var(--r-danger); border: 1px solid rgba(226,59,74,0.2); }
.r-alert--warning { background: rgba(236,126,0,0.08); color: var(--r-warning); border: 1px solid rgba(236,126,0,0.2); }
.r-alert--success { background: rgba(0,168,126,0.08); color: var(--r-teal); border: 1px solid rgba(0,168,126,0.2); }
.r-alert--info { background: rgba(73,79,223,0.08); color: var(--r-blue); border: 1px solid rgba(73,79,223,0.2); }

/* Status icons (Revolut uses 2rem emoji equivalents) */
.r-status-emoji { font-size: 3.5rem; line-height: 1; margin: 0 0 16px; }

/* Layout containers */
.r-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.r-container--narrow { max-width: 720px; }
.r-grid { display: grid; gap: 24px; }
.r-grid--packages { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.r-stack { display: flex; flex-direction: column; gap: 16px; }

/* Checkout layout: summary + form side-by-side on desktop */
.r-checkout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 32px;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}
.r-checkout__summary { position: sticky; top: 88px; }
.r-checkout__package { padding: 32px; }
.r-checkout__package .r-package__price { font-size: 48px; }
.r-checkout__package .r-package__name { margin-bottom: 12px; }
.r-checkout__package .r-package__vat { margin-bottom: 20px; }
.r-checkout__package .r-package__includes { margin: 0; border: none; padding: 0; }
.r-checkout__disclaimer {
  font-size: 13px; color: var(--r-text-muted);
  margin: 24px 0 0; padding-top: 20px;
  border-top: 1px solid var(--r-border);
  line-height: 1.5;
}
.r-checkout__form .r-card { padding: 40px 32px; }
.r-checkout__title { text-align: center; margin: 0 0 8px; }
.r-checkout__sub { text-align: center; color: var(--r-text-muted); margin: 0 0 24px; font-size: 15px; }
.r-checkout__back { text-align: center; margin: 24px 0 0; }
.r-checkout__back a { color: var(--r-text-muted); text-decoration: none; font-size: 14px; }
.r-checkout__back a:hover { color: var(--r-dark); text-decoration: underline; }

/* Code/IBAN display */
.r-code {
  display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 18px; padding: 12px 16px; background: var(--r-surface);
  border-radius: var(--r-radius-sm); letter-spacing: 0.5px;
  word-break: break-all;
}

/* Footer */
.r-footer {
  background: var(--r-dark); color: var(--r-white);
  padding: 48px 24px 32px; margin-top: 96px;
}
.r-footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.r-footer-brand { font-weight: 500; font-size: 18px; display: inline-flex; align-items: center; }
.r-footer-brand .r-brand-logo { filter: brightness(0) invert(1); margin-right: 8px; }
[dir="rtl"] .r-footer-brand .r-brand-logo { margin-right: 0; margin-left: 8px; }
.r-footer-links { display: flex; gap: 24px; margin-inline-start: auto; }
.r-footer-link { color: var(--r-white); text-decoration: none; opacity: 0.7; transition: opacity 0.15s; font-size: 15px; }
.r-footer-link:hover { opacity: 1; }
.r-footer-disclaimer {
  width: 100%; font-size: 13px; opacity: 0.6; margin: 24px 0 0;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1);
  line-height: 1.5;
}
.r-footer-copy { width: 100%; font-size: 13px; opacity: 0.5; margin: 12px 0 0; }

/* Page heading */
.r-h1 { font-size: 56px; font-weight: 500; line-height: 1.05; letter-spacing: -1.12px; margin: 0 0 16px; }
.r-h2 { font-size: 36px; font-weight: 500; line-height: 1.15; letter-spacing: -0.36px; margin: 0 0 12px; }
.r-h3 { font-size: 24px; font-weight: 500; line-height: 1.25; margin: 0 0 8px; }

/* Centered narrow column (login, verify confirm, my) */
.r-auth-wrap { max-width: 480px; margin: 0 auto; padding: 48px 24px; }

/* Responsive (Revolut breakpoints, simplified) */
@media (max-width: 960px) {
  .r-checkout { grid-template-columns: 1fr; gap: 24px; }
  .r-checkout__summary { position: static; }
  .r-how__steps { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 720px) {
  .r-nav-inner { padding: 0 16px; gap: 12px; flex-wrap: wrap; }
  .r-nav-links { width: 100%; justify-content: flex-start; gap: 6px; margin-inline-start: 0; }
  .r-nav-link { padding: 8px 14px; font-size: 14px; }
  .r-brand { font-size: 18px; }
  .r-brand-logo { height: 28px; width: 28px; }

  .r-hero { padding: 48px 20px 40px; }
  .r-hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .r-hero__text { text-align: center; }
  .r-hero__text h1 { font-size: 36px; letter-spacing: -0.8px; line-height: 1.1; }
  .r-hero__text p.lede { margin-left: auto; margin-right: auto; font-size: 17px; }
  .r-h1 { font-size: 36px; }
  .r-h2 { font-size: 28px; }
  .r-package__price { font-size: 52px; }

  .r-section { padding: 48px 0; }
  .r-section-head { margin-bottom: 32px; }
  .r-section-sub { font-size: 15px; }

  .r-container { padding: 0 16px; }

  .r-card { padding: 24px 20px; }
  .r-package { padding: 32px 24px; }

  .r-checkout__form .r-card { padding: 28px 22px; }

  .r-how__step { padding: 20px; gap: 14px; }
  .r-how__num { flex: 0 0 36px; width: 36px; height: 36px; font-size: 16px; }

  .r-faq__q { padding: 16px 18px; font-size: 15px; padding-inline-end: 44px; }
  .r-faq__a { padding: 0 18px 16px; font-size: 14px; }

  .r-footer { padding: 36px 20px 24px; margin-top: 64px; }
  .r-footer-inner { gap: 16px; }
  .r-footer-links { width: 100%; margin-inline-start: 0; }
}

/* Mobile-first tiny screens (375px) */
@media (max-width: 420px) {
  .r-hero { padding: 40px 16px 32px; }
  .r-hero__text h1 { font-size: 30px; }
  .r-hero__text p.lede { font-size: 16px; }
  .r-package__price { font-size: 44px; }
  .r-btn--lg { padding: 16px 24px; font-size: 16px; }
  .r-h2 { font-size: 24px; }
}

/* intl-tel-input integration — sits inside .r-field, matches Revolut pill style */
.iti {
  width: 100%;
  font-family: inherit;
  direction: ltr;
}
[dir="rtl"] .iti { direction: ltr; text-align: left; }
[dir="rtl"] #whatsapp_display { direction: rtl; text-align: right; }
[dir="rtl"] .iti__country-container { right: auto !important; left: 0 !important; }
.iti__flag-container { padding: 0 12px 0 14px; }
.iti__selected-flag {
  padding: 0 8px 0 0;
  border-radius: var(--r-radius-pill);
}
.iti__country-list {
  border-radius: var(--r-radius-sm);
  border: 1px solid var(--r-border);
  box-shadow: none;
  font-family: inherit;
  max-height: 240px;
}
#whatsapp_display {
  width: 100%; font-family: inherit; font-size: 16px; line-height: 1.4;
  padding: 14px 14px 14px 58px; border: 1px solid var(--r-border); border-radius: var(--r-radius-pill);
  background: var(--r-white); color: var(--r-dark); box-sizing: border-box;
}
#whatsapp_display:focus {
  outline: none; border-color: var(--r-blue); box-shadow: var(--r-shadow-focus);
}

/* Chat widget */
.r-chat-bubble {
  position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px;
  border-radius: 50%; background: var(--r-blue); color: #fff; border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.18); cursor: pointer; font-size: 28px; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.r-chat-bubble:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.22); }
[dir="rtl"] .r-chat-bubble { right: auto; left: 20px; }
.r-chat-panel {
  position: fixed; right: 20px; bottom: 88px; width: 360px; max-width: calc(100vw - 40px);
  height: 500px; max-height: calc(100vh - 120px); background: var(--r-white);
  border-radius: 16px; box-shadow: 0 12px 36px rgba(0,0,0,.18); display: none; flex-direction: column;
  z-index: 10000; overflow: hidden; font-family: inherit;
}
[dir="rtl"] .r-chat-panel { right: auto; left: 20px; }
.r-chat-panel.is-open { display: flex; }
.r-chat-header {
  background: var(--r-blue); color: #fff; padding: 14px 16px; font-weight: 600; font-size: 15px;
}
.r-chat-messages { flex: 1; padding: 12px; overflow-y: auto; background: #f5f7fa; display: flex; flex-direction: column; gap: 8px; }
.r-chat-msg { max-width: 80%; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.4; word-wrap: break-word; white-space: pre-wrap; }
.r-chat-msg.user { align-self: flex-end; background: var(--r-blue); color: #fff; border-bottom-right-radius: 4px; }
.r-chat-msg.bot  { align-self: flex-start; background: var(--r-white); color: var(--r-dark); border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
[dir="rtl"] .r-chat-msg.user { align-self: flex-start; border-bottom-right-radius: 12px; border-bottom-left-radius: 4px; }
[dir="rtl"] .r-chat-msg.bot  { align-self: flex-end;  border-bottom-left-radius: 12px; border-bottom-right-radius: 4px; }
.r-chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #eef0f3; background: var(--r-white); }
.r-chat-form input { flex: 1; padding: 10px 12px; border: 1px solid #d8dde3; border-radius: 8px; font-size: 14px; }
.r-chat-form button { background: var(--r-blue); color: #fff; border: none; border-radius: 8px; padding: 0 16px; font-weight: 600; cursor: pointer; }
.r-chat-form button:disabled { opacity: .5; cursor: not-allowed; }
.r-chat-status { padding: 8px 12px; font-size: 12px; color: var(--r-text-muted); text-align: center; }