/* visit-fees.css: the visit visa part of /visa-services.html (hero, fee promise, country finder, trust strip, fee table, checklist, FAQ, contact).
   Uses the tokens of tokens.css and the .sv-* classes of service.css. Mobile first: the fee table becomes a list of cards below 760px. */

/* hero: one column, two buttons, short promise line */
.vf-hero .sv-hero-grid{padding-top:56px; padding-bottom:84px;}
.vf-hero h1{font-size:clamp(1.9rem, 5.2vw, 3rem); line-height:1.12; margin:0;}
.vf-hero .sv-hero-text p{color:#fff; font-size:1.05rem; line-height:1.55; margin:0; max-width:56ch;}
.vf-hero .hero-ctas{margin-top:6px;}
.vf-hero .hero-ctas .btn-primary, .vf-hero .hero-ctas .btn-ghost{min-height:var(--control-h); justify-content:center;}
.vf-hero .btn-ghost{color:#fff; border-color:rgba(255,255,255,0.75);}
.vf-hero .btn-ghost:hover{background:#fff; color:var(--navy);}
.vf-hero .sv-hero-text .vf-hero-promise{color:var(--gold); font-weight:700; font-size:1rem; margin:0;}

/* the fee promise: highlighted, first thing under the hero, before any fee is shown */
.vf-promise-wrap{position:relative; z-index:2; margin-top:-48px; padding:0 0 8px;}
.vf-promise{background:#fff; border:1px solid var(--line); border-left:8px solid var(--gold-deep); border-radius:var(--r-lg); box-shadow:var(--shadow-2); padding:26px 28px;}
.vf-promise h2{margin:0 0 8px; font-family:var(--font-body); font-size:var(--fs-sm); letter-spacing:0.1em; text-transform:uppercase; color:var(--link); font-weight:700;}
.vf-promise-text{margin:0; font-size:clamp(1.1rem, 2.4vw, 1.4rem); line-height:1.5; color:var(--navy); font-weight:600;}
.vf-promise-sub{margin:10px 0 0; color:var(--ink-soft); font-size:0.95rem; line-height:1.5;}
.vf-promise-text + .vf-promise-sub{margin-top:14px;}

/* controls shared by finder and table */
.vf-label{display:block; font-weight:600; color:var(--navy); margin:0 0 6px; font-size:0.95rem;}
.vf-finder input, .vf-tool input, .vf-tool select{width:100%; min-height:var(--control-h); border:1.5px solid var(--line-strong); border-radius:var(--r-md); padding:0 14px; font:inherit; color:var(--ink); background:#fff;}
.vf-finder input{min-height:58px; font-size:1.1rem; padding:0 16px;}
.vf-finder input:focus-visible, .vf-tool input:focus-visible, .vf-tool select:focus-visible, .vf-chip:focus-visible, .vf-sort:focus-visible, .vf-list button:focus-visible, .vf-faq summary:focus-visible{outline:none; box-shadow:var(--focus-ring); border-color:var(--link);}
.vf-finder{max-width:760px;}
.vf-combo{position:relative;}
.vf-list{list-style:none; margin:6px 0 0; padding:6px; position:absolute; left:0; right:0; top:100%; z-index:20; background:#fff; border:1px solid var(--line-strong); border-radius:var(--r-md); box-shadow:var(--shadow-2); max-height:min(46vh, 340px); overflow-y:auto;}
.vf-list[hidden]{display:none;}
.vf-list li{margin:0;}
.vf-list [role=option]{display:flex; justify-content:space-between; gap:12px; align-items:center; min-height:var(--tap-h); padding:8px 12px; border-radius:var(--r-sm); cursor:pointer; color:var(--ink);}
.vf-list [role=option] small{color:var(--ink-soft); white-space:nowrap;}
.vf-list [role=option][aria-selected=true], .vf-list [role=option]:hover{background:var(--primary-pale);}
.vf-chips{display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 0;}
.vf-chip{min-height:var(--tap-h); padding:0 16px; border:1.5px solid var(--line-strong); background:#fff; color:var(--navy); border-radius:var(--r-pill); font:inherit; font-size:0.9rem; font-weight:600; cursor:pointer;}
.vf-chip:hover{border-color:var(--navy);}
.vf-chip[aria-pressed=true]{background:var(--navy); border-color:var(--navy); color:#fff;}

/* result card of the finder */
.vf-result{margin-top:20px;}
.vf-card{background:#fff; border:1px solid var(--line); border-top:4px solid var(--gold-deep); border-radius:var(--r-lg); box-shadow:var(--shadow-2); padding:22px 24px;}
.vf-card h3{margin:0 0 12px; font-size:1.4rem; color:var(--navy); font-family:var(--font-head);}
.vf-card dl{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px; margin:0 0 14px;}
.vf-card dl > div{background:var(--bg-soft); border-radius:var(--r-md); padding:12px 14px;}
.vf-card dt{font-size:var(--fs-xs); letter-spacing:0.08em; text-transform:uppercase; color:var(--ink-soft); font-weight:700; margin:0 0 4px;}
.vf-card dd{margin:0; font-weight:700; color:var(--navy); font-size:1.05rem; line-height:1.35;}
.vf-card p{margin:0 0 10px; color:var(--ink-soft); line-height:1.55; font-size:0.95rem;}
.vf-card .vf-card-promise{color:var(--navy); font-weight:600;}
.vf-card-acts{display:flex; flex-wrap:wrap; gap:12px 18px; align-items:center; margin-top:14px;}
.vf-card-acts .btn-primary{min-height:var(--control-h); justify-content:center;}
.vf-linkbtn{background:none; border:0; padding:0; min-height:var(--tap-h); font:inherit; font-weight:600; color:var(--link); text-decoration:underline; text-underline-offset:3px; cursor:pointer;}

/* trust strip: facts only */
.vf-trust{padding:36px 0 0;}
.vf-trust-list{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:14px;}
.vf-trust-list li{background:#fff; border:1px solid var(--line); border-radius:var(--r-md); padding:16px 18px;}
.vf-trust-t{font-weight:700; color:var(--navy); margin:0 0 4px; font-size:0.98rem;}
.vf-trust-d{color:var(--ink-soft); font-size:0.9rem; line-height:1.5;}
.vf-trust-d a{color:var(--link); font-weight:600;}

/* fee table */
.vf-assume{margin:0 0 20px; max-width:78ch; padding:14px 16px; background:#fff; border:1px solid var(--line); border-left:4px solid var(--link); border-radius:var(--r-md); color:var(--ink-soft); line-height:1.55; font-size:0.95rem;}
.vf-assume strong{color:var(--navy);}
.vf-tools{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,260px); gap:14px; max-width:760px;}
.vf-count{margin:14px 0 8px; color:var(--ink-soft); font-size:0.9rem; min-height:1.4em;}
.vf-tablewrap{border:1px solid var(--line); border-radius:var(--r-md); background:#fff; overflow:hidden;}
.vf-table{width:100%; border-collapse:collapse;}
.vf-table thead th{text-align:left; background:var(--navy-deep); color:#fff; padding:0; font-size:0.74rem; letter-spacing:0.07em; text-transform:uppercase; font-weight:600;}
.vf-table thead th:not(:has(button)){padding:14px 16px;}
.vf-sort{width:100%; text-align:left; background:none; border:0; color:inherit; font:inherit; letter-spacing:inherit; text-transform:inherit; padding:14px 16px; cursor:pointer; min-height:var(--tap-h);}
.vf-sort::after{content:' \2195'; opacity:0.55;}
th[aria-sort=ascending] .vf-sort::after{content:' \2191'; opacity:1;}
th[aria-sort=descending] .vf-sort::after{content:' \2193'; opacity:1;}
.vf-table tbody th, .vf-table tbody td{padding:14px 16px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; font-size:0.93rem; color:var(--ink);}
.vf-table tbody th{font-weight:700; color:var(--navy);}
.vf-table tbody tr:last-child > *{border-bottom:0;}
.vf-table tbody tr:hover{background:var(--bg-soft);}
.vf-table tbody tr[hidden]{display:none;}
.vf-table .lbl{display:none;}
.vf-table .fee-service div:last-child, .vf-table .fee-total div:last-child{font-weight:700;}
.vf-table .fee-official{color:var(--ink);}
.vf-table tr[data-fee=varies] .fee-official > div:first-of-type + div, .vf-table tr[data-fee=varies] .fee-official > div:nth-child(2){color:var(--ink-soft); font-style:italic;}
.vf-scope-note{margin:14px 0 8px; color:var(--navy); font-weight:600; line-height:1.5; max-width:78ch;}
.fee-note a{color:var(--link); font-weight:600;}
.fee-note{margin-top:4px; font-size:0.82rem; color:var(--ink-soft); line-height:1.45; font-weight:400;}
.vf-table .vf-hl{background:#FFF8E1;}
.vf-empty{margin:14px 0 0; color:var(--ink-soft);}
.vf-after{margin:18px 0 0;}
.vf-ghost-dark{color:var(--navy); border-color:var(--navy);}
.vf-ghost-dark:hover{background:var(--navy); color:#fff;}
.vf-sr{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;}

/* checklist */
.vf-doctool{max-width:420px; margin-bottom:18px;}
.vf-docs{margin:0 0 14px; padding:0; list-style:none; display:grid; gap:8px; max-width:78ch;}
.vf-docs li{position:relative; background:#fff; border:1px solid var(--line); border-radius:var(--r-md); padding:12px 14px 12px 42px; color:var(--ink); line-height:1.5;}
.vf-docs li::before{content:''; position:absolute; left:14px; top:15px; width:14px; height:14px; border:2px solid var(--gold-deep); border-radius:3px;}
.vf-source{font-size:0.9rem; color:var(--ink-soft); margin:0 0 10px;}
.vf-source a{color:var(--link); font-weight:600;}

/* FAQ with native details: works without JavaScript */
.vf-faq{max-width:860px; display:grid; gap:10px;}
.vf-faq details{background:#fff; border:1px solid var(--line); border-radius:var(--r-md);}
.vf-faq summary{list-style:none; cursor:pointer; padding:16px 52px 16px 18px; min-height:var(--tap-h); font-weight:600; color:var(--navy); position:relative; line-height:1.4;}
.vf-faq summary::-webkit-details-marker{display:none;}
.vf-faq summary::after{content:'+'; position:absolute; right:18px; top:50%; transform:translateY(-50%); font-size:1.4rem; color:var(--link); line-height:1;}
.vf-faq details[open] summary::after{content:'\2212';}
.vf-faq-a{padding:0 18px 16px;}
.vf-faq-a p{margin:0; color:var(--ink-soft); line-height:1.6; font-size:0.96rem;}
.vf-faq-a a{color:var(--link); font-weight:600;}

/* contact */
.vf-contact{list-style:none; margin:0 0 28px; padding:0; display:flex; flex-wrap:wrap; gap:12px;}
.vf-contact .btn-primary, .vf-contact .btn-ghost{min-height:var(--control-h); justify-content:center;}
.vf-enquiry .sv-card{max-width:760px;}
.vf-more{padding-bottom:0;}

@media (prefers-reduced-motion: no-preference){
  .vf-card{animation:vfIn .2s ease-out;}
  @keyframes vfIn{from{opacity:0; transform:translateY(6px);}to{opacity:1; transform:none;}}
}

/* tablets and phones: the table turns into cards */
@media (max-width:760px){
  .vf-hero .sv-hero-grid{padding-top:36px; padding-bottom:72px;}
  .vf-hero .hero-ctas{flex-direction:column; align-items:stretch;}
  .vf-promise{padding:20px 18px; border-left-width:6px;}
  .vf-tools{grid-template-columns:1fr;}
  .vf-card dl{grid-template-columns:1fr;}
  .vf-tablewrap{border:0; background:none; overflow:visible;}
  .vf-table, .vf-table tbody, .vf-table tr, .vf-table th, .vf-table td{display:block; width:auto;}
  .vf-table thead{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0);}
  .vf-table tbody tr{background:#fff; border:1px solid var(--line); border-radius:var(--r-md); margin:0 0 10px; padding:6px 14px 10px;}
  .vf-table tbody tr[hidden]{display:none;}
  .vf-table tbody th{border:0; padding:8px 0 4px; font-size:1.05rem;}
  .vf-table tbody th .lbl, .vf-table tbody td .lbl{display:none;}
  .vf-table tbody td{display:flex; justify-content:space-between; gap:14px; border:0; border-top:1px solid var(--line); padding:8px 0; font-size:0.92rem;}
  .vf-table tbody td .lbl{display:block; color:var(--ink-soft); font-size:0.78rem; letter-spacing:0.06em; text-transform:uppercase; font-weight:600; flex:0 0 38%; padding-top:2px;}
  .vf-table td > div:not(.lbl){text-align:right; flex:1 1 auto;}
  .vf-table .fee-official{flex-wrap:wrap;}
  .vf-table .fee-official .fee-note{flex:0 0 100%; text-align:right;}
  .vf-table .fee-region{display:none;}
}
@media (max-width:640px){
  .vf-trust-list{grid-template-columns:1fr;}
  .vf-contact{flex-direction:column;}
  .vf-contact li{display:flex;}
  .vf-contact a{flex:1; justify-content:center;}
}
