/* Financial Sufficiency Calculator — حاسبة الكفاية المالية */
.vfc-wrap{
  --honey:#f5c350; --amber:#da9e32; --cream:#fff8eb; --gold:#ffd782;
  --ink:#3c280a; --navy:#11243b; --ok:#1a7f37; --warn:#9a6700; --bad:#b42318;
  --line:#ece2cf;
  background:linear-gradient(180deg,#fffdf8 0%,#fff6e6 100%);
  padding:32px 16px 64px; font-family:inherit; color:var(--ink);
}
.vfc-container{max-width:780px;margin:0 auto;}
.vfc-head{text-align:center;margin-bottom:24px;}
.vfc-badge{display:inline-block;background:var(--gold);color:var(--ink);font-weight:700;
  font-size:.8rem;padding:6px 14px;border-radius:999px;margin-bottom:12px;}
.vfc-head h1{font-size:1.9rem;font-weight:900;margin:0 0 10px;color:var(--navy);}
.vfc-head p{color:#6b5a3e;line-height:1.8;max-width:620px;margin:0 auto;}

.vfc-card{background:#fff;border:1px solid var(--line);border-radius:16px;
  padding:22px;margin-bottom:16px;box-shadow:0 2px 14px rgba(60,40,10,.05);}
.vfc-card h3{margin:0 0 16px;font-size:1.15rem;color:var(--navy);font-weight:800;}

.vfc-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.vfc-field{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:.92rem;}
.vfc-field span{color:#5a4a30;}
.vfc-field select,.vfc-field input{padding:12px 14px;border:1.5px solid var(--line);
  border-radius:11px;font-size:1rem;font-family:inherit;background:#fffdf9;color:var(--ink);}
.vfc-field select:focus,.vfc-field input:focus{outline:none;border-color:var(--amber);
  box-shadow:0 0 0 3px rgba(218,158,50,.15);}

.vfc-tier{margin:18px 0 4px;display:flex;align-items:center;gap:14px;flex-wrap:wrap;}
.vfc-tier-label{font-weight:700;color:#5a4a30;}
.vfc-tier-opts{display:flex;gap:8px;flex:1;}
.vfc-tier-opts label{flex:1;position:relative;cursor:pointer;}
.vfc-tier-opts input{position:absolute;opacity:0;}
.vfc-tier-opts span{display:block;text-align:center;padding:11px;border:1.5px solid var(--line);
  border-radius:11px;font-weight:700;background:#fffdf9;transition:.15s;}
.vfc-tier-opts input:checked+span{background:var(--honey);border-color:var(--amber);color:var(--ink);}

/* europe transit toggle */
.vfc-europe{margin-top:18px;padding:16px;background:#fffaf0;border:1px solid var(--line);border-radius:12px;}
.vfc-switch{display:flex;align-items:center;gap:10px;cursor:pointer;font-weight:700;}
.vfc-switch input{position:absolute;opacity:0;}
.vfc-switch-ui{flex:0 0 auto;width:46px;height:26px;background:#d9cdb4;border-radius:999px;position:relative;transition:.2s;}
.vfc-switch-ui::after{content:"";position:absolute;top:3px;right:3px;width:20px;height:20px;background:#fff;border-radius:50%;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.2);}
.vfc-switch input:checked+.vfc-switch-ui{background:var(--amber);}
.vfc-switch input:checked+.vfc-switch-ui::after{right:23px;}
.vfc-switch-text{flex:1;font-size:.95rem;}
.vfc-europe-note{margin:10px 0 0;font-size:.82rem;color:#8a7a5e;line-height:1.7;}

.vfc-btn{border:none;border-radius:12px;font-size:1.05rem;font-weight:800;font-family:inherit;
  padding:15px 22px;cursor:pointer;transition:.15s;width:100%;}
.vfc-btn-primary{background:linear-gradient(135deg,var(--honey),var(--amber));color:var(--ink);margin-top:20px;}
.vfc-btn-primary:hover{filter:brightness(1.05);}
.vfc-btn-primary:disabled{opacity:.6;cursor:wait;}
.vfc-btn-gold{background:var(--navy);color:#fff;}
.vfc-btn-line{background:#fff;border:1.5px solid var(--line);color:var(--ink);}
.vfc-actions{display:flex;gap:12px;margin:4px 0 16px;}
.vfc-actions .vfc-btn{width:auto;flex:1;}

/* loading */
.vfc-loading{text-align:center;padding:40px 20px;}
.vfc-loading p{margin:16px 0 0;color:#7a6743;font-weight:700;}
.vfc-spinner{width:48px;height:48px;margin:0 auto;border:4px solid var(--line);
  border-top-color:var(--amber);border-radius:50%;animation:vfc-spin .8s linear infinite;}
@keyframes vfc-spin{to{transform:rotate(360deg);}}

/* verdict */
.vfc-verdict{display:flex;align-items:center;gap:18px;border-width:2px;}
.vfc-verdict.vfc-ok{border-color:var(--ok);background:#f1f9f3;}
.vfc-verdict.vfc-warn{border-color:var(--warn);background:#fff8e8;}
.vfc-verdict.vfc-bad{border-color:var(--bad);background:#fdf0ee;}
.vfc-verdict-icon{font-size:2.6rem;}
.vfc-verdict-text{flex:1;}
.vfc-verdict-text h2{margin:0 0 4px;font-size:1.5rem;font-weight:900;color:var(--navy);}
.vfc-verdict-text p{margin:0;color:#6b5a3e;font-size:.92rem;}
.vfc-gauge{text-align:center;min-width:90px;}
.vfc-gauge-num{font-size:1.7rem;font-weight:900;color:var(--navy);}
.vfc-gauge-cap{font-size:.72rem;color:#8a7a5e;}

/* required range */
.vfc-range{display:flex;gap:12px;}
.vfc-range-item{flex:1;background:#fffaf0;border:1.5px solid var(--line);border-radius:12px;
  padding:16px;text-align:center;}
.vfc-range-rec{border-color:var(--amber);background:linear-gradient(135deg,#fffaf0,#fff2d6);}
.vfc-range-cap{display:block;font-size:.82rem;color:#7a6743;margin-bottom:8px;}
.vfc-range-val{font-size:1.5rem;font-weight:900;color:var(--navy);}
.vfc-shortfall{margin:14px 0 0;padding:12px 14px;background:#fdf0ee;border-radius:10px;
  color:var(--bad);font-weight:700;font-size:.92rem;}

/* breakdown table */
.vfc-table{width:100%;border-collapse:collapse;}
.vfc-table td{padding:13px 6px;border-bottom:1px solid var(--line);font-size:.97rem;}
.vfc-table td:last-child{text-align:left;font-weight:800;color:var(--navy);white-space:nowrap;}
.vfc-table small{display:block;color:#9a8a6c;font-weight:500;font-size:.78rem;margin-top:3px;}
.vfc-table-sub td{font-weight:800;border-top:2px solid var(--line);}
.vfc-table-buffer td{color:var(--amber);}
.vfc-table-flight td{background:#fff7e8;font-weight:700;}
.vfc-table-flight td:first-child{border-radius:0 8px 8px 0;}
.vfc-table-flight td:last-child{border-radius:8px 0 0 8px;}

/* tips */
.vfc-tips ul{margin:0;padding:0;list-style:none;}
.vfc-tips li{padding:12px 0;border-bottom:1px dashed var(--line);line-height:1.8;font-size:.95rem;}
.vfc-tips li:last-child{border-bottom:none;}

.vfc-disclaimer{font-size:.8rem;color:#9a8a6c;line-height:1.7;text-align:center;
  padding:14px;background:#faf4e8;border-radius:10px;margin:0;}

/* lead */
.vfc-lead{border:2px dashed var(--amber);background:linear-gradient(135deg,#fffaf0,#fff5e2);
  opacity:.6;transition:.3s;}
.vfc-lead.vfc-lead-active{opacity:1;box-shadow:0 4px 20px rgba(218,158,50,.18);}
.vfc-lead p{color:#6b5a3e;margin:0 0 14px;}
.vfc-lead-row{display:flex;gap:10px;flex-wrap:wrap;}
.vfc-lead-row input{flex:1;min-width:120px;padding:12px 14px;border:1.5px solid var(--line);
  border-radius:11px;font-family:inherit;font-size:1rem;background:#fff;}
.vfc-lead-row .vfc-btn{width:auto;flex:0 0 auto;margin:0;}
.vfc-lead-done{color:var(--ok);font-weight:700;margin:12px 0 0;}

@media (max-width:560px){
  .vfc-grid{grid-template-columns:1fr;}
  .vfc-head h1{font-size:1.55rem;}
  .vfc-range{flex-direction:column;}
  .vfc-verdict{flex-wrap:wrap;}
  .vfc-actions{flex-direction:column;}
}
