.tvf-app, .tvf-app *{font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;}
:root{
  --tvf-bg:#f6f8fb;
  --tvf-card:#ffffff;
  --tvf-border:#e3e7ee;
  --tvf-text:#1f2937;
  --tvf-muted:#6b7280;
  --tvf-primary:#1f6fb2;
  --tvf-primary-hover:#155a91;
}

.tvf-app{background:var(--tvf-bg); min-height:100vh;}
.tvf-brand{display:flex; align-items:center; gap:14px; justify-content:center; margin:18px 0;}
.tvf-logo{width:64px; height:64px; object-fit:contain;}
.tvf-brand-name{font-weight:700; color:#111827; text-align:left; line-height:1.1;}
.tvf-brand-name small{font-weight:600; color:var(--tvf-muted);}

.tvf-card{background:var(--tvf-card); border:1px solid var(--tvf-border); border-radius:14px; padding:18px; box-shadow:0 6px 18px rgba(17,24,39,.06); margin:14px 0;}
.tvf-hero h2{margin:0; font-size:30px; color:#111827; text-align:center; font-weight:800;}
.tvf-sub{margin:6px 0 0; text-align:center; color:#111827; font-size:18px;}
.tvf-info{margin-top:14px; display:flex; gap:12px; align-items:flex-start; background:#eef4fb; border:1px solid #d8e6f6; padding:12px 14px; border-radius:12px; color:#1f3b57;}
.tvf-info-icon{width:28px; height:28px; border-radius:999px; background:var(--tvf-primary); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700;}

.tvf-form h3{margin:0 0 10px; font-size:22px;}
.tvf-form h4{margin:14px 0 8px; font-size:16px; color:#111827;}
.tvf-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
.tvf-grid label{display:flex; flex-direction:column; font-weight:600; color:#111827;}
.tvf-grid input,.tvf-grid select{margin-top:6px; padding:10px 12px; border:1px solid var(--tvf-border); border-radius:10px; font-weight:400; font-size:15px; background:#fff;}
.tvf-grid input:focus,.tvf-grid select:focus{outline:none; border-color:#b9d5f2; box-shadow:0 0 0 4px rgba(31,111,178,.12);}
.tvf-sep{border:none; border-top:1px solid var(--tvf-border); margin:16px 0;}

.tvf-vehicle{padding:14px; border:1px solid var(--tvf-border); border-radius:12px; background:#fff; margin:10px 0;}
.tvf-vehicle-header{display:flex; justify-content:space-between; align-items:center; margin-bottom:10px;}
.tvf-link{background:none; border:none; padding:0; color:var(--tvf-primary); cursor:pointer; text-decoration:underline;}

.tvf-btn{display:inline-flex; align-items:center; justify-content:center; border-radius:12px; padding:12px 16px; font-weight:700; border:1px solid transparent; cursor:pointer;}
.tvf-btn-primary{background:var(--tvf-primary); color:#fff; width:180px; margin-left:auto; display:block;}
.tvf-btn-primary:hover{background:var(--tvf-primary-hover);}
.tvf-btn-ghost{background:#fff; border-color:var(--tvf-border); color:var(--tvf-primary);}

.tvf-check{display:flex; gap:10px; align-items:flex-start; font-size:15px; color:#111827;}
.tvf-check input{margin-top:4px;}
.tvf-check-inline{margin:10px 0 0; align-items:center;}
.tvf-footnote{color:var(--tvf-muted); font-size:13px; text-align:center; margin-top:12px;}

.tvf-alert{padding:12px;border-radius:12px;margin:12px 0;border:1px solid var(--tvf-border); background:#fff;}
.tvf-success{border-color:#b6e2c0; background:#e7f7ea;}
.tvf-error{border-color:#f5b5b5; background:#fde8e8;}

@media (max-width:760px){
  .tvf-grid{grid-template-columns:1fr;}
  .tvf-app-title{font-size:30px;}
}


.tvf-privacy{margin-top:12px; border:1px solid var(--tvf-border); border-radius:12px; background:#fff;}
.tvf-privacy summary{cursor:pointer; padding:12px 14px; font-weight:700; color:#111827; list-style:none;}
.tvf-privacy summary::-webkit-details-marker{display:none;}
.tvf-privacy summary:after{content:"▾"; float:right; color:var(--tvf-muted);}
.tvf-privacy[open] summary:after{content:"▴";}
.tvf-privacy-body{padding:12px 14px; border-top:1px solid var(--tvf-border); color:#111827;}
.tvf-privacy-body p{margin:0 0 10px;}

.tvf-hero h2, .tvf-form h3, .tvf-form h4{font-family: inherit;}

.tvf-form textarea{width:100%;border:1px solid #e5e7eb;border-radius:12px;padding:10px 12px;font:inherit;}

/* ---- Frontend i18n helpers ---- */
.tvf-lang-card{margin-bottom:14px;}

/* RTL support for Urdu / Farsi / Dari / Pashto */
.tvf-form.tvf-rtl{direction:rtl;}
.tvf-form.tvf-rtl .tvf-brand-name{ text-align:right; }
.tvf-form.tvf-rtl .tvf-grid{direction:rtl;}
.tvf-form.tvf-rtl .tvf-grid label{align-items:flex-end; text-align:right;}
.tvf-form.tvf-rtl .tvf-vehicle-header{flex-direction:row-reverse;}
.tvf-form.tvf-rtl .tvf-info{flex-direction:row-reverse;}

/* Keep technical fields LTR even in RTL UI */
.tvf-form.tvf-rtl input[type="email"],
.tvf-form.tvf-rtl input[name="bank_iban"],
.tvf-form.tvf-rtl input[name$="[license_plate]"],
.tvf-form.tvf-rtl input[name$="[concession_number]"],
.tvf-form.tvf-rtl input[name="business_postcode"],
.tvf-form.tvf-rtl input[name="residence_postcode"],
.tvf-form.tvf-rtl input[name="managing_director_postcode"],
.tvf-form.tvf-rtl input[name="concession_count"],
.tvf-form.tvf-rtl input[name="phone"],
.tvf-form.tvf-rtl input[name="managing_director_phone"]{
  direction:ltr;
  unicode-bidi:plaintext;
}

.tvf-real-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 8px}
.tvf-real-tabs .tvf-guard-driver-tab{appearance:none;-webkit-appearance:none;cursor:pointer}
.tvf-driver-list-panel,.tvf-driver-count-panel{display:none}
.tvf-driver-list-panel.is-active{display:grid}
.tvf-driver-count-panel.is-active{display:inline}
