/* ============================================================
   travelX — service modules (v1.10)
   Visa guide · Travel consultancy · Transfers · Money exchange
   Loaded after style.css, so every variable and utility is available.
   ============================================================ */

/* ---------- shared bits ---------- */
.visa-h2 { font-size: 20px; font-weight: 800; letter-spacing: -.3px; margin: 26px 0 14px; }
.visa-count { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.visa-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.visa-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line);
  border-radius: 99px; padding: 8px 16px; font-weight: 700; font-size: 14px; color: var(--ink); }
.visa-chip:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.visa-chip .fl { font-size: 18px; }
.visa-hero { background: linear-gradient(120deg, #0c4a6e, var(--primary)); }
.consult-hero { background: linear-gradient(120deg, #4c1d95, var(--primary-dark)); }
.transfer-hero { background: linear-gradient(120deg, #065f46, var(--primary-dark)); }
.fx-page-hero { background: linear-gradient(120deg, #713f12, var(--primary-dark)); }
.visa-search { display: flex; gap: 10px; max-width: 560px; margin-top: 18px; }
.visa-search input { flex: 1; padding: 13px 16px; border: none; border-radius: 11px; font-size: 15px;
  font-family: var(--font); min-width: 0; }
.visa-search input:focus { outline: 3px solid rgba(253, 186, 116, .5); }

/* ---------- visa cards ---------- */
.visa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.visa-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 11px; transition: transform .16s, box-shadow .16s; }
.visa-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -16px rgba(15, 23, 42, .25); }
.vc-top { display: flex; align-items: flex-start; gap: 12px; }
.vc-flag { font-size: 32px; line-height: 1; }
.vc-top h3 { font-size: 16.5px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.vc-region { font-size: 12.5px; color: var(--muted); }
.vc-hot { margin-left: auto; background: #fff7ed; color: #c2410c; font-size: 11px; font-weight: 800;
  padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.vc-mid { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vc-diff { font-size: 12.5px; font-weight: 700; }
.vc-rows { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: #334155; }
.vc-foot { margin-top: auto; padding-top: 11px; border-top: 1px dashed var(--line);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.vc-price { font-size: 18px; font-weight: 800; color: var(--primary-dark); line-height: 1.2; }
.vc-price small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.vc-go { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* ---------- visa country page ---------- */
.vh-head { display: flex; align-items: center; gap: 16px; }
.vh-flag { font-size: 52px; line-height: 1; }
.visa-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.vf { background: #fff; padding: 14px 16px; }
.vf-lbl { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.vf-val { font-size: 15px; font-weight: 700; }
.visa-diff-note { margin-top: 14px; padding: 12px 16px; background: var(--bg); border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0; font-size: 14px; color: #334155; }
.doc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.doc-tab { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 8px 15px;
  font-weight: 700; font-size: 13.5px; cursor: pointer; font-family: var(--font); color: var(--ink); }
.doc-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.doc-panel { display: none; }
.doc-panel.active { display: block; }
.doc-h { font-size: 13.5px; font-weight: 800; color: var(--primary-dark); margin: 18px 0 8px;
  text-transform: uppercase; letter-spacing: .04em; }
.doc-panel .doc-h:first-child { margin-top: 0; }
.doc-list { list-style: none; }
.doc-list li { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.doc-list li:last-child { border-bottom: none; }
.doc-list li.optional { opacity: .78; }
.doc-list small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.doc-tick { flex-shrink: 0; width: 21px; height: 21px; border-radius: 50%; background: #dcfce7; color: #166534;
  font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.doc-list li.optional .doc-tick { background: #f1f5f9; color: #64748b; }
.note-list { list-style: none; }
.note-list li { position: relative; padding: 8px 0 8px 26px; font-size: 14.5px; border-bottom: 1px dashed var(--line); }
.note-list li:last-child { border-bottom: none; }
.note-list li::before { content: "!"; position: absolute; left: 0; top: 8px; width: 18px; height: 18px;
  background: #fef3c7; color: #92400e; border-radius: 50%; font-weight: 800; font-size: 12px;
  display: flex; align-items: center; justify-content: center; }
.visa-steps { list-style: none; counter-reset: vs; }
.visa-steps li { position: relative; counter-increment: vs; padding: 0 0 20px 46px; }
.visa-steps li:last-child { padding-bottom: 0; }
.visa-steps li::before { content: counter(vs); position: absolute; left: 0; top: 0; width: 30px; height: 30px;
  border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center; }
.visa-steps li::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 2px; background: var(--line); }
.visa-steps li:last-child::after { display: none; }
.visa-steps b { display: block; font-size: 15px; }
.visa-steps span { color: var(--muted); font-size: 14px; }
.vbox-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--line); }
.vbox-meta div { text-align: center; }
.vbox-meta span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.vbox-meta b { font-size: 14.5px; color: var(--primary-dark); }
.visa-help { background: linear-gradient(120deg, var(--primary-light), #fff); }
.applicant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.applicant-opt { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; cursor: pointer; background: #fff; font-weight: 700; font-size: 14px; }
.applicant-opt:hover { border-color: var(--primary); }
.applicant-opt.sel { border-color: var(--primary); background: var(--primary-light); }
.applicant-opt input { accent-color: var(--primary); }
.applicant-opt .ap-ico { font-size: 19px; }

/* ---------- consultancy ---------- */
.consult-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.consult-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.cc-head { display: flex; gap: 14px; align-items: flex-start; }
.cc-avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--primary-light); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 28px; overflow: hidden; }
.cc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cc-head h3 { font-size: 17px; font-weight: 800; line-height: 1.25; }
.cc-title { display: block; font-size: 13px; color: var(--primary-dark); font-weight: 700; }
.cc-rating { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cc-bio { font-size: 14px; color: #334155; }
.cc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-tag { background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 3px 11px;
  font-size: 12px; font-weight: 600; color: #475569; }
.cc-meta { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.cc-foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.cc-rate { font-size: 19px; font-weight: 800; color: var(--primary-dark); line-height: 1.2; }
.cc-rate small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.consult-card.picked { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249, 115, 22, .18); }
.meet-row { display: flex; gap: 10px; flex-wrap: wrap; }
.meet-opt { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 11px;
  padding: 11px 16px; cursor: pointer; font-weight: 700; font-size: 14px; background: #fff; }
.meet-opt:hover { border-color: var(--primary); }
.meet-opt.sel { border-color: var(--primary); background: var(--primary-light); }
.meet-opt input { accent-color: var(--primary); }
.consult-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--line); }
.consult-total span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.consult-total b { font-size: 26px; font-weight: 800; color: var(--primary-dark); }

/* ---------- transfers ---------- */
.route-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.route-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 11px; transition: transform .16s, box-shadow .16s; }
.route-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -16px rgba(15, 23, 42, .25); }
.rc-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.rc-flag { font-size: 20px; }
.rc-place { font-size: 13px; font-weight: 700; color: var(--muted); }
.rc-route { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rc-from, .rc-to { font-size: 15.5px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.rc-arrow { color: var(--accent); font-weight: 800; }
.rc-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.rc-foot { margin-top: auto; padding-top: 11px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rc-price { font-size: 14px; color: var(--muted); }
.rc-price b { font-size: 19px; color: var(--primary-dark); }
.rc-go { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.veh-opt { display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px; cursor: pointer; background: #fff; }
.veh-opt:hover { border-color: var(--primary); }
.veh-opt.sel { border-color: var(--primary); background: var(--primary-light); }
.veh-opt input { accent-color: var(--primary); width: 18px; height: 18px; flex-shrink: 0; }
.veh-ico { font-size: 26px; flex-shrink: 0; }
.veh-main { flex: 1; min-width: 0; }
.veh-name { display: block; font-weight: 800; font-size: 15px; }
.veh-desc { display: block; font-size: 13px; color: var(--muted); }
.veh-cap { display: block; font-size: 12.5px; color: #475569; margin-top: 3px; }
.veh-price { text-align: right; font-weight: 800; font-size: 17px; color: var(--primary-dark); flex-shrink: 0; }
.veh-price small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.route-note { margin-top: 12px; padding: 11px 14px; background: var(--primary-light); border-radius: 10px;
  font-size: 13px; color: var(--primary-dark); }

/* ---------- shared service confirmation ---------- */
.complete-box { max-width: 620px; margin: 20px auto 0; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 40px 34px; box-shadow: var(--shadow); text-align: center; }
.cb-ico { font-size: 56px; display: block; margin-bottom: 10px; }
.complete-box h1 { font-size: 26px; letter-spacing: -.4px; }
.cb-sub { color: var(--muted); margin: 8px auto 22px; max-width: 440px; }
.cb-table { text-align: left; }
.cb-note { font-size: 13.5px; color: var(--muted); margin-top: 16px; }
.cb-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* ---------- money exchange page ---------- */
.fx-converter { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); margin-bottom: 26px; }
.fx-converter h2 { font-size: 20px; margin-bottom: 16px; }
.fx-converter h2 span { color: var(--accent); }
.fx-conv-grid { display: grid; grid-template-columns: 1fr 1.4fr auto 1.4fr; gap: 12px; align-items: end; }
.fx-conv-grid > * { min-width: 0; }
.fx-swap { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; height: 44px; width: 44px;
  font-size: 18px; cursor: pointer; color: var(--primary); }
.fx-swap:hover { border-color: var(--primary); background: var(--primary-light); }
.fx-result { margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--line); }
.fx-out { font-size: clamp(24px, 4vw, 34px); font-weight: 800; color: var(--primary-dark); letter-spacing: -.5px; }
.fx-line { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.fx-top { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 8px; }
.fx-top-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 15px; box-shadow: var(--shadow); }
.ft-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ft-flag { font-size: 24px; }
.ft-head b { display: block; font-size: 15px; }
.ft-head span { font-size: 12px; color: var(--muted); }
.ft-rate { font-size: 22px; font-weight: 800; color: var(--primary-dark); letter-spacing: -.5px; }
.ft-bs { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; padding-top: 7px;
  border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.fx-table-head { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin-bottom: 14px; }
.fx-table-head h2 { margin: 0; }
.fx-table-head input { padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 14px; font-family: var(--font); min-width: 240px; }
.fx-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fx-table { min-width: 620px; }
.fx-table th.num, .fx-table td.num { text-align: right; white-space: nowrap; }
.fx-flag { font-size: 18px; margin-right: 7px; }
.fx-name { display: block; font-size: 12.5px; color: var(--muted); }
.fx-disclaimer { font-size: 12.5px; color: var(--muted); margin-top: 14px; line-height: 1.7; }

/* ---------- floating rate widget: right edge, vertically centred ---------- */
.fx-widget { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 88;
  display: flex; align-items: center; }
.fx-tab { display: flex; flex-direction: column; align-items: center; gap: 5px; border: none; cursor: pointer;
  background: var(--primary); color: #fff; padding: 14px 7px; border-radius: 12px 0 0 12px;
  font-family: var(--font); font-weight: 800; box-shadow: -4px 4px 18px -6px rgba(0, 0, 0, .35); }
.fx-tab:hover { background: var(--primary-dark); }
.fx-tab-ico { font-size: 17px; }
.fx-tab-txt { writing-mode: vertical-rl; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.fx-panel { position: absolute; right: 100%; top: 50%; transform: translate(14px, -50%) scale(.97);
  width: 310px; max-height: 78vh; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: -10px 12px 44px -12px rgba(15, 23, 42, .4); overflow: hidden; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; }
.fx-widget.open .fx-panel { opacity: 1; visibility: visible; transform: translate(-8px, -50%) scale(1); }
.fxp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 15px; background: var(--primary); color: #fff; }
.fxp-head b { display: block; font-size: 14.5px; }
.fxp-head span { font-size: 11.5px; color: #cffafe; }
.fxp-close { background: none; border: none; color: #cffafe; font-size: 16px; cursor: pointer; padding: 2px 4px; }
.fxp-close:hover { color: #fff; }
.fxp-search { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.fxp-search input { width: 100%; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 9px;
  font-size: 13.5px; font-family: var(--font); }
.fxp-list { overflow-y: auto; flex: 1; }
.fxp-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid #f1f5f9; }
.fxp-row:hover { background: var(--primary-light); }
.fxp-flag { font-size: 18px; }
.fxp-code { flex: 1; min-width: 0; font-weight: 800; font-size: 13.5px; }
.fxp-code small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fxp-rate { text-align: right; font-weight: 800; font-size: 13.5px; color: var(--primary-dark); white-space: nowrap; }
.fxp-rate small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.fxp-empty { padding: 18px 14px; text-align: center; color: var(--muted); font-size: 13px; }
.fxp-more { display: block; padding: 11px 14px; text-align: center; font-weight: 700; font-size: 13px;
  border-top: 1px solid var(--line); background: var(--bg); }
@media print { .fx-widget { display: none !important; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { gap: 15px; }
  .main-nav a { font-size: 14px; }
}
@media (max-width: 900px) {
  .visa-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-conv-grid { grid-template-columns: 1fr 1fr; }
  .fx-swap { justify-self: center; }
}
@media (max-width: 700px) {
  /* keep the tab clear of the WhatsApp/Messenger bubbles in the corner */
  .fx-widget { top: auto; bottom: 96px; transform: none; }
  .fx-tab { flex-direction: row; padding: 9px 12px; border-radius: 11px 0 0 11px; }
  .fx-tab-txt { writing-mode: horizontal-tb; }
  .fx-panel { position: fixed; right: 10px; left: 10px; top: auto; bottom: 152px; width: auto;
    max-height: 60vh; transform: translateY(10px) scale(.98); }
  .fx-widget.open .fx-panel { transform: translateY(0) scale(1); }
  .fx-table-head input { min-width: 0; width: 100%; }
}
@media (max-width: 560px) {
  .visa-facts { grid-template-columns: minmax(0, 1fr); }
  .applicant-grid, .fx-conv-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .vh-flag { font-size: 40px; }
  .veh-opt { flex-wrap: wrap; }
  .veh-price { width: 100%; text-align: left; padding-top: 6px; border-top: 1px dashed var(--line); }
  .complete-box { padding: 30px 20px; }
  .consult-total { flex-direction: column; align-items: stretch; }
  .consult-total .btn { width: 100%; }
  .doc-tab { font-size: 13px; padding: 7px 13px; }
}
