/* ==========================================================================
   TripGuidely styles.css (OMG Agency Edition — eSIM Hub PERFECT) — UPDATED
   - Hero = image + tool only (no hero-panel)
   - Tool is CENTERED nicely in hero (no “stuck to bottom” feeling)
   - Removes the ugly blank white area under the widget
   - Keeps layout stable: uses a realistic widget height (small, not 320/360)
   - Mobile overflow hard-fixed (no 100vw traps)
   - CWV-friendly: contain/isolation + predictable widget box
   - UPDATED NOW: iOS safe-area left/right + hero gutter + mobile buttons breathing room
   - UPDATED NOW: hero shell can support custom popovers like car-rental datepicker
   ========================================================================== */

/* 1) Design tokens --------------------------------------------------------- */
:root{
  /* Layout */
  --max:1120px;
  --header-h:72px;

  /* Spacing */
  --gutter:18px;

  /* Radii */
  --radius:18px;
  --radius2:26px;
  --radius3:14px;

  /* Typography */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --tracking-tight:-0.35px;

  /* Palette */
  --bg:#ffffff;
  --bg2:#fbfcfd;
  --card:#ffffff;

  --text:#0f172a;
  --muted:#475569;
  --muted2:#64748b;

  --line:rgba(15,23,42,.10);
  --line2:rgba(15,23,42,.14);
  --line3:rgba(15,23,42,.18);

  --turq:#12cfd0;
  --sand:#f4a261;

  /* CTA */
  --cta1:#12cfd0;
  --cta2:#0fb9ba;

  /* Shadows */
  --shadow: 0 18px 40px rgba(2,6,23,.10);
  --shadow2: 0 10px 22px rgba(2,6,23,.08);
  --shadow3: 0 6px 14px rgba(2,6,23,.06);

  /* Focus */
  --focus: rgba(18,207,208,.50);

  /* Premium helpers */
  --glow: 0 18px 50px rgba(18,207,208,.10);

  /* Hero */
  --hero-min: 720px;           /* desktop */
  --hero-min-m: 620px;         /* mobile */
  --hero-pos-x: 50%;
  --hero-pos-y: 35%;

  /* Tool sizing */
  --tool-max: var(--max);

  /* IMPORTANT: widget height that matches reality (kills the big white block) */
  --widget-h: 220px;           /* desktop */
  --widget-h-m: 260px;         /* mobile */
}

/* 2) Reset / base ---------------------------------------------------------- */
*,
*::before,
*::after{ box-sizing:border-box; }

html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  scroll-behavior:smooth;
  max-width:100%;
  overflow-x:hidden;
}

body{
  margin:0;
  font-family: var(--font);
  background:
    radial-gradient(900px 520px at 12% 0%, rgba(18,207,208,.14), transparent 55%),
    radial-gradient(1000px 600px at 88% 8%, rgba(244,162,97,.16), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  color:var(--text);
  line-height:1.58;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  max-width:100%;
  overflow-x:hidden;

  /* UPDATED: iOS notch safe-area (prevents content touching screen edges) */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

img, picture, video, canvas, svg{
  display:block;
  max-width:100%;
  height:auto;
}

iframe{
  max-width:100%;
  display:block;
  border:0;
}

input, button, textarea, select{ font: inherit; }
a{ color:inherit; }

::selection{ background: rgba(18,207,208,.22); }

a:focus-visible,
button:focus-visible,
summary:focus-visible{
  outline:3px solid var(--focus);
  outline-offset:3px;
  border-radius:12px;
}

a:focus,
button:focus,
summary:focus{
  outline:3px solid var(--focus);
  outline-offset:3px;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; animation:none !important; }
}

/* 3) Accessibility helpers ------------------------------------------------- */
.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

.skip{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:10px 12px;
  background:#ffffff;
  border:1px solid var(--line2);
  border-radius:12px;
  box-shadow: var(--shadow2);
  z-index:9999;
}

/* 4) Layout primitives ----------------------------------------------------- */
.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 var(--gutter);
  width:100%;
  min-width:0;
}

/* =========================================================
   UPDATED: Mobile/Edge breathing room (prevents side stretching)
   - Hero inner had 0 side padding -> match site gutter
   ========================================================= */
.hero-inner{
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

@media (max-width: 760px){
  :root{
    --header-h:64px;
    --gutter:16px;
    --tool-max: 100%;
  }

  /* Optional: keep hero tool from feeling too wide on big phones */
  .hero-tool-wrap{
    width: 100%;
    max-width: 720px;
  }
}

[id]{ scroll-margin-top: calc(var(--header-h) + 16px); }

hr{
  border:0;
  border-top:1px solid rgba(15,23,42,.12);
  margin: 26px 0;
}

ul, ol{
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--muted);
}
li{ margin: 6px 0; }

/* Content links: clean underline */
.content a{
  text-decoration:none;
  border-bottom: 1px solid rgba(18,207,208,.35);
}
.content a:hover{
  border-bottom-color: rgba(18,207,208,.75);
}

/* 5) Header / Nav ---------------------------------------------------------- */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(7,10,18,.62);
  border-bottom: 1px solid rgba(255,255,255,.10);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  width:100%;
}

.header::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(760px 220px at 12% 0%, rgba(18,207,208,.22), transparent 60%),
    radial-gradient(820px 260px at 88% 0%, rgba(244,162,97,.18), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 55%);
  opacity:.95;
}

.header .wrap,
.header .bar{ position:relative; }

.bar{
  min-height: var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:12px 0;
  min-width:0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  min-width: 180px;
}

.brand-name{
  font-weight:950;
  letter-spacing: var(--tracking-tight);
  font-size:1.10rem;
  color: rgba(255,255,255,.96);
}

.logo{
  width:44px;
  height:44px;
  border-radius:14px;
  background: rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:
    0 18px 44px rgba(0,0,0,.30),
    0 0 0 4px rgba(18,207,208,.16);
  display:grid;
  place-items:center;
  padding:2px;
  overflow:hidden;
  flex:0 0 auto;
}
.logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  filter: contrast(1.06) saturate(1.08);
}

.nav ul{
  list-style:none;
  display:flex;
  gap:6px;
  padding:6px;
  margin:0;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}

.nav a{
  position:relative;
  text-decoration:none;
  font-weight:800;
  color: rgba(226,232,240,.82);
  padding: 10px 14px;
  border-radius: 999px;
  transition: transform .14s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}
.nav a:hover{
  color: rgba(255,255,255,.95);
  background: rgba(255,255,255,.08);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
  transform: translateY(-1px);
}
.nav a[aria-current="page"]{
  color: rgba(255,255,255,.96);
  background: linear-gradient(135deg, rgba(18,207,208,.22), rgba(244,162,97,.18));
  border: 1px solid rgba(18,207,208,.26);
  box-shadow:
    0 18px 44px rgba(0,0,0,.30),
    0 0 0 4px rgba(18,207,208,.14);
}
.nav a[aria-current="page"]::after{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  bottom:7px;
  height:2px;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(18,207,208,.80), rgba(244,162,97,.55));
  opacity:.95;
}

/* CTA container */
.header-cta{ display:flex; align-items:center; gap:10px; }

/* Burger */
.burger{
  display:none;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: 0 18px 44px rgba(0,0,0,.30);
  color: rgba(255,255,255,.92);
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
}
.burger span{
  width:18px;
  height:2px;
  background: currentColor;
  border-radius:999px;
  position:relative;
  display:block;
}
.burger span::before,
.burger span::after{
  content:"";
  position:absolute;
  left:0;
  width:18px;
  height:2px;
  background: currentColor;
  border-radius:999px;
}
.burger span::before{ top:-6px; }
.burger span::after{ top:6px; }

.nav-drawer,
.nav-scrim{ display:none; }

/* Mobile nav drawer */
@media (max-width: 760px){
  .bar{ padding:10px 0; }
  .brand{ min-width:auto; }
  .header-cta{ display:none; }
  .nav ul{ display:none; }
  .burger{ display:inline-flex; }

  .nav-drawer,
  .nav-scrim{ display:block; }

  .nav-drawer{
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    z-index: 60;
    background: #ffffff;
    border-top: 1px solid rgba(255,255,255,.10);
    border-bottom: 1px solid rgba(15,23,42,.10);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 44px rgba(2,6,23,.14);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform .18s ease, opacity .18s ease;
  }

  body.nav-open .nav-drawer{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-drawer ul{
    list-style:none;
    margin: 0;
    padding: 16px 18px 18px;
    display:grid;
    gap:10px;
  }

  .nav-drawer a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    text-decoration:none;
    padding: 14px 14px;
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,.10);
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(2,6,23,.08);
    font-weight: 900;
    color: var(--text);
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  }

  .nav-drawer a:hover{
    border-color: rgba(18,207,208,.28);
    transform: translateY(-1px);
    box-shadow: 0 18px 44px rgba(2,6,23,.12);
  }

  .nav-drawer a[aria-current="page"]{
    background: linear-gradient(135deg, rgba(18,207,208,.18), rgba(244,162,97,.14));
    border-color: rgba(18,207,208,.26);
    box-shadow: 0 16px 38px rgba(2,6,23,.12);
  }

  .nav-scrim{
    position: fixed;
    inset: 0;
    top: var(--header-h);
    z-index: 55;
    background: rgba(2,6,23,.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }
  body.nav-open .nav-scrim{
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open{
    overflow:hidden;
    touch-action:none;
  }
}

/* 6) Main / breadcrumbs ---------------------------------------------------- */
.main{ padding:0 0 44px; width:100%; }

.breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  font-size:.92rem;
  color:var(--muted2);
  margin: 14px 0 14px;
}
.breadcrumbs a{
  color: rgba(100,116,139,.96);
  text-decoration:none;
  border-bottom:1px solid transparent;
}
.breadcrumbs a:hover{ border-bottom-color: rgba(15,23,42,.18); }

/* Meta line */
.meta{
  margin: 10px 0 0;
  color: var(--muted2);
  font-size: .95rem;
}

/* 7) HERO (Tool only) ------------------------------------------------------ */
.hero.hero-full{
  position:relative;
  overflow:visible;
  border-bottom:1px solid var(--line);
  width:100%;
  min-height: var(--hero-min);
  display:flex;
  align-items:stretch;
  z-index: 1;
}

@media (max-width: 760px){
  .hero.hero-full{ min-height: var(--hero-min-m); }
}

/* background */
.hero-bg{ position:absolute; inset:0; }
.hero-bg img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position: var(--hero-pos-x) var(--hero-pos-y);
}

/* subtle top/bottom fade for readability */
.hero-overlay{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(900px 520px at 12% 0%, rgba(18,207,208,.14), transparent 60%),
    radial-gradient(980px 560px at 88% 6%, rgba(244,162,97,.14), transparent 62%),
    linear-gradient(180deg, rgba(2,6,23,.30), rgba(2,6,23,.12) 34%, rgba(2,6,23,.06) 60%, rgba(2,6,23,.26));
  opacity:.96;
}

/* UPDATED: Hero text color (H1, kicker, lede, meta) when those elements are inside the hero */
.hero.hero-full,
.hero.hero-full h1{
  color: rgba(255,255,255,.96);
}

.hero.hero-full .kicker{
  color: rgba(226,232,240,.86);
}

.hero.hero-full .lede,
.hero.hero-full .meta{
  color: rgba(226,232,240,.82);
}

/* tool container (CENTER IT) */
.hero-inner{
  position:relative;
  width:100%;
  padding: 56px 0 56px;
  display:flex;
  align-items:center;
  overflow: visible;
  z-index: 2;
}

@media (max-width: 760px){
  .hero-inner{
    padding: 40px 0 32px;
    align-items:flex-end;
  }
}

/* 7.1) Hero tool ----------------------------------------------------------- */
.hero-tool-wrap{
  width: min(100%, var(--tool-max));
  margin: 0 auto;
  position: relative;
  overflow: visible;
  z-index: 3;
}

/* Make the tool feel visually centered even on huge screens */
@media (min-width: 1200px){
  .hero-tool-wrap{ transform: translateY(-10px); }
}

.hero-tool-title{
  margin: 0 0 6px 0;
  font-weight: 950;
  letter-spacing: -0.2px;
  font-size: 18px;
  color: rgba(255,255,255,.96);
  text-shadow: 0 14px 30px rgba(0,0,0,.44);
}

.hero-tool-sub{
  margin: 0 0 12px 0;
  color: rgba(226,232,240,.86);
  font-size: 14px;
  text-shadow: 0 14px 30px rgba(0,0,0,.44);
}

/* shell */
.hero-tool-shell{
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 22px;
  box-shadow:
    0 34px 90px rgba(2,6,23,.34),
    0 0 0 1px rgba(255,255,255,.10);
  overflow: visible;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 4;
}

/* tighter pad so the widget looks “alive” */
.hero-tool-pad{
  padding: 14px 16px 14px;
  position: relative;
  overflow: visible;
}
@media (max-width: 760px){
  .hero-tool-pad{ padding: 12px 12px 12px; }
}

/* Widget box: NO giant min-height, just a realistic height */
#tp-esim-widget-hero{
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  contain: layout paint;
  height: var(--widget-h);
  border-radius: 16px;
}

/* Kill any skeleton/placeholder injected */
#tp-esim-widget-hero .tp-skeleton,
#tp-esim-widget-hero [class*="placeholder"],
#tp-esim-widget-hero [class*="skeleton"],
#tp-esim-widget-hero [class*="preload"],
#tp-esim-widget-hero [class*="loading"],
#tp-esim-widget-hero [class*="dashed"],
#tp-esim-widget-hero [style*="dashed"]{
  display:none !important;
  height:0 !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
}

/* Widget iframe pinned to the box */
#tp-esim-widget-hero iframe{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  border:0 !important;
}

/* Mobile */
@media (max-width: 760px){
  #tp-esim-widget-hero{ height: var(--widget-h-m); }
}

/* 8) Intro card (below hero) ---------------------------------------------- */
.kicker{
  font-size:.82rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color: rgba(15,23,42,.72);
  margin: 0 0 8px;
}
.kicker .dot{
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--turq), var(--sand));
  margin-right:8px;
  vertical-align:middle;
}

h1{
  margin:0 0 10px;
  font-size: clamp(2.05rem, 1.2rem + 2.6vw, 3.1rem);
  line-height:1.08;
  letter-spacing: var(--tracking-tight);
}
@media (max-width: 760px){
  h1{
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.6px;
  }
}

.lede{
  margin:0 0 14px;
  color:var(--muted);
  font-size:1.08rem;
  max-width: 72ch;
}
@media (max-width: 760px){
  .lede{
    font-size: 17px;
    line-height: 1.6;
  }
}

/* 9) Buttons --------------------------------------------------------------- */
.actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:11px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#ffffff;
  text-decoration:none;
  font-weight:850;
  color:var(--text);
  box-shadow: var(--shadow3);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  user-select:none;
  min-width:0;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(2,6,23,.12);
  background:#ffffff;
  border-color: rgba(15,23,42,.14);
}
.btn:active{ transform: translateY(0px); }

.btn.primary{
  background: linear-gradient(135deg, var(--cta1), var(--cta2));
  color:#ffffff;
  border: 1px solid rgba(18,207,208,.55);
  box-shadow: 0 12px 30px rgba(18,207,208,.35);
}
.btn.primary:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(18,207,208,.46);
  border-color: rgba(18,207,208,.75);
}
.btn.primary:active{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(18,207,208,.34);
}

.btn .pill{
  width:28px;
  height:28px;
  border-radius:12px;
  display:grid;
  place-items:center;
  border:1px solid rgba(15,23,42,.10);
  background:#ffffff;
  font-size:.95rem;
}
.btn.primary .pill{
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.18);
  color:#ffffff;
}

@media (max-width: 760px){
  .actions .btn{
    width:100%;
    padding: 16px 16px;
    border-radius: 16px;
    font-size: 18px;
    max-width: 720px;
    margin-inline: auto;
  }
  .actions .btn.primary{
    box-shadow: 0 18px 44px rgba(18,207,208,.22);
  }
}

/* 10) Trust row ------------------------------------------------------------ */
.trust{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}
@media (max-width: 860px){
  .trust{ grid-template-columns: 1fr; }
}
.trust-item{
  border:1px solid rgba(15,23,42,.10);
  background:#ffffff;
  border-radius:16px;
  padding:12px;
}
.trust-item b{ display:block; color:var(--text); }
.trust-item span{ color:var(--muted2); font-size:.93rem; }

/* 11) Content layout ------------------------------------------------------- */
.grid{
  display:grid;
  grid-template-columns: 1fr 330px;
  gap:18px;
  margin-top:18px;
  align-items:start;
  min-width:0;
}
.grid > *{ min-width:0; }

@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  border:1px solid var(--line);
  background:#ffffff;
  border-radius:var(--radius);
  box-shadow: var(--shadow2);
  min-width:0;
}

.pad{ padding:18px; }

h2{
  margin: 22px 0 8px;
  font-size: 1.22rem;
  letter-spacing: -.12px;
}

p{ margin: 0 0 12px; color:var(--muted); }
.content p strong{ color:var(--text); }

@media (min-width: 981px){
  aside.card{
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }
}

/* section title */
.section-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin: 0 0 10px;
}
.section-title h2{ margin:0; font-size:1.22rem; }
.section-title p{
  margin:0;
  color:var(--muted2);
  font-size:.95rem;
}

/* eSIM utilities */
.esim-section{ margin-top:16px; }
.aff-note{
  margin:10px 0 0;
  color:var(--muted2);
  font-size:.92rem;
}
.aff-note-lg{ font-size:.95rem; }
.cta-title{ margin:0 0 6px; }
.cta-copy{ margin:0 0 12px; }

/* 12) Lists ---------------------------------------------------------------- */
.checklist,
.steps{
  margin: 10px 0 12px;
  padding-left: 18px;
  color: var(--muted);
}

.checklist{
  list-style:none;
  padding-left:0;
  display:grid;
  gap:8px;
}

.checklist li{
  margin:0;
  padding-left: 28px;
  position:relative;
  line-height:1.55;
}

.checklist li::before{
  content:"";
  position:absolute;
  left:0;
  top: 9px;
  width:14px;
  height:14px;
  border-radius:999px;
  background: linear-gradient(135deg, rgba(18,207,208,.22), rgba(244,162,97,.18));
  border: 1px solid rgba(18,207,208,.26);
  box-shadow: 0 10px 22px rgba(2,6,23,.06);
}

.steps{
  counter-reset: step;
  padding-left:0;
  list-style:none;
  display:grid;
  gap:10px;
}

.steps li{
  margin:0;
  padding: 12px 12px 12px 52px;
  border: 1px solid rgba(15,23,42,.10);
  background:#ffffff;
  border-radius:16px;
  position:relative;
  box-shadow: 0 10px 22px rgba(2,6,23,.06);
}

.steps li::before{
  counter-increment: step;
  content: counter(step);
  position:absolute;
  left:12px;
  top:12px;
  width:30px;
  height:30px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-weight:950;
  color: rgba(15,23,42,.92);
  background: linear-gradient(135deg, rgba(18,207,208,.16), rgba(244,162,97,.12));
  border: 1px solid rgba(15,23,42,.10);
}

/* 13) Category cards ------------------------------------------------------- */
.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}
@media (max-width: 900px){
  .cards{ grid-template-columns: 1fr; }
}

.cat{
  position:relative;
  display:block;
  text-decoration:none;
  border:1px solid rgba(15,23,42,.10);
  border-radius:18px;
  padding:14px;
  background:
    radial-gradient(420px 160px at 10% 10%, rgba(18,207,208,.12), transparent 60%),
    radial-gradient(420px 160px at 90% 30%, rgba(244,162,97,.12), transparent 60%),
    #ffffff;
  box-shadow: 0 10px 20px rgba(2,6,23,.06);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  min-height:124px;
}
.cat:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(2,6,23,.12);
  border-color: rgba(18,207,208,.28);
}

.cat strong{
  display:block;
  font-size:1.02rem;
  margin-bottom:6px;
}
.cat span{
  display:block;
  color:var(--muted);
  font-size:.97rem;
  max-width:56ch;
}

.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  font-size:.9rem;
  color:var(--muted2);
}
.tag i{
  width:10px;
  height:10px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--turq), var(--sand));
  display:inline-block;
}

/* 14) Link cards ----------------------------------------------------------- */
.links{ display:grid; gap:10px; }

.link-card{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.10);
  background:#ffffff;
  text-decoration:none;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
  min-width:0;
}
.link-card:hover{
  border-color:rgba(18,207,208,.28);
  background:#ffffff;
  transform: translateY(-1px);
}

.link-card strong{ color:var(--text); }
.link-card span{ color:var(--muted2); font-size:.93rem; }

.arrow{
  width:34px;
  height:34px;
  border-radius:14px;
  display:grid;
  place-items:center;
  border:1px solid rgba(15,23,42,.10);
  background:linear-gradient(135deg, rgba(18,207,208,.12), rgba(244,162,97,.10));
  color:rgba(15,23,42,.92);
  flex:0 0 auto;
  font-weight:900;
}

/* 15) Callouts ------------------------------------------------------------- */
.callout{
  margin: 12px 0 14px;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(18,207,208,.22);
  background:linear-gradient(135deg, rgba(18,207,208,.12), rgba(244,162,97,.12));
  color:var(--muted);
}
.callout b{ color:var(--text); }

/* 16) Mini grid ------------------------------------------------------------ */
.mini-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:10px;
  margin-top:10px;
}
@media (max-width: 900px){
  .mini-grid{ grid-template-columns: 1fr; }
}

.mini{
  display:flex;
  gap:12px;
  align-items:flex-start;
  border:1px solid rgba(15,23,42,.10);
  background:#ffffff;
  border-radius:16px;
  padding:12px;
  min-width:0;
}

.mini-icon{
  width:34px;
  height:34px;
  border-radius:14px;
  display:grid;
  place-items:center;
  border:1px solid rgba(15,23,42,.10);
  background:linear-gradient(135deg, rgba(18,207,208,.14), rgba(244,162,97,.12));
  font-weight:900;
}

.mini b{ display:block; color:var(--text); }
.mini span{ display:block; color:var(--muted2); font-size:.93rem; }

/* 17) FAQ details ---------------------------------------------------------- */
details{
  border:1px solid rgba(15,23,42,.10);
  border-radius:16px;
  background:#ffffff;
  padding:12px;
  margin:10px 0;
}
summary{
  cursor:pointer;
  font-weight:850;
  color:var(--text);
  list-style:none;
}
summary::-webkit-details-marker{ display:none; }
details p{ margin:8px 0 0; }

/* 18) Footer (DARK LUXE) — UPDATED (3 columns) ---------------------------- */
.footer{
  margin-top: 80px;
  padding: 78px 0 34px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(226,232,240,.84);
  position:relative;
  background:
    radial-gradient(1000px 560px at 12% 0%, rgba(18,207,208,.22), transparent 58%),
    radial-gradient(1100px 640px at 88% 10%, rgba(244,162,97,.18), transparent 60%),
    linear-gradient(180deg, #0b1220, #070a12 62%, #06070d);
  width:100%;
}

.footer::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 40%),
    radial-gradient(900px 520px at 50% 0%, rgba(255,255,255,.05), transparent 56%);
  opacity:.9;
}

.footer .wrap{
  position:relative;
}

.footer a{
  color: rgba(226,232,240,.78);
  text-decoration:none;
}

.footer a:hover{
  color: rgba(255,255,255,.95);
}

/* grid */
.foot-grid{
  display:grid;
  grid-template-columns: minmax(280px, 1.35fr) minmax(160px, .8fr) minmax(180px, .9fr);
  gap: clamp(26px, 3vw, 48px);
  padding-bottom: 26px;
  align-items:start;
}

.foot-col{
  min-width:0;
}

/* brand */
.foot-brand strong{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:950;
  letter-spacing: var(--tracking-tight);
  color: rgba(255,255,255,.96);
  font-size: 1.14rem;
}

.foot-brand strong::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--turq), var(--sand));
  box-shadow:
    0 0 0 4px rgba(18,207,208,.18),
    0 14px 40px rgba(18,207,208,.16);
  transform: translateY(1px);
}

.foot-desc{
  margin: 12px 0 16px;
  color: rgba(226,232,240,.74);
  line-height: 1.65;
  max-width: 34ch;
}

.foot-meta{
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  font-size:.92rem;
  color: rgba(148,163,184,.92);
}

.sep{
  margin:0 6px;
  color: rgba(148,163,184,.55);
}

/* column titles */
.foot-title{
  margin: 0 0 14px;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:.76rem;
  color: rgba(148,163,184,.95);
}

/* link lists */
.foot-links{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:14px;
}

.foot-links li{
  margin:0;
}

.foot-links a{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding: 8px 10px;
  margin-left:-10px;
  border-radius:14px;
  font-weight:750;
  transition: transform .14s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.foot-links a::before{
  content:"";
  width:9px;
  height:9px;
  border-radius:999px;
  background: rgba(18,207,208,.75);
  box-shadow: 0 0 0 4px rgba(18,207,208,.16);
  opacity:.95;
  flex:0 0 auto;
  transform: translateY(1px);
}

.foot-links a::after{
  content:"";
  position:absolute;
  left:34px;
  right:10px;
  bottom:9px;
  height:2px;
  border-radius:2px;
  background: linear-gradient(90deg, rgba(18,207,208,.60), rgba(244,162,97,.35));
  opacity:0;
  transform: scaleX(.82);
  transform-origin:left;
  transition: opacity .16s ease, transform .16s ease;
}

.foot-links a:hover{
  background: rgba(255,255,255,.06);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
  transform: translateX(3px);
  color: rgba(255,255,255,.95);
}

.foot-links a:hover::after{
  opacity:1;
  transform: scaleX(1);
}

/* bottom strip */
.foot-bottom{
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px;
}

.foot-bottom-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.foot-disclaimer{
  margin:0;
  max-width:92ch;
  color: rgba(148,163,184,.95);
  font-size:.88rem;
  line-height:1.6;
}

.foot-legal-inline{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  font-size:.88rem;
  color: rgba(148,163,184,.92);
}

.foot-legal-inline a{
  color: rgba(226,232,240,.82);
  text-decoration:none;
  padding: 6px 8px;
  border-radius:12px;
  transition: background .16s ease, color .16s ease, transform .14s ease;
}

.foot-legal-inline a:hover{
  color: rgba(255,255,255,.95);
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}

.foot-legal-inline .dot{
  opacity:.70;
  transform: translateY(-1px);
}

/* tablet */
@media (max-width: 980px){
  .foot-grid{
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .foot-col-brand{
    grid-column: 1 / -1;
  }
}

/* mobile */
@media (max-width: 760px){
  .foot-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .foot-bottom-row{
    gap:10px;
  }

  .foot-legal-inline{
    justify-content:flex-start;
  }
}

/* 19) High-contrast mode --------------------------------------------------- */
@media (prefers-contrast: more){
  .btn, .card, .cat, .link-card, details, .steps li{
    border-color: rgba(15,23,42,.26);
  }
  .footer{ border-top-color: rgba(255,255,255,.18); }
  .foot-links a{ text-decoration: underline; text-underline-offset: 3px; }
}

/* ==========================================================================
   Travelpayouts Widget Skin (Hero + optional old section)
   - Mobile overflow guard
   ========================================================================== */

#tp-esim-widget,
#tp-esim-widget-hero{
  position: relative;
  contain: layout paint;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Optional old widget height reserve */
#tp-esim-widget{ min-height: 320px; }

#tp-esim-widget iframe,
#tp-esim-widget-hero iframe{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  border:0 !important;
}

/* Inputs inside widget */
#tp-esim-widget input,
#tp-esim-widget select,
#tp-esim-widget button,
#tp-esim-widget-hero input,
#tp-esim-widget-hero select,
#tp-esim-widget-hero button{
  font: inherit !important;
  border-radius: 16px !important;
}

#tp-esim-widget input,
#tp-esim-widget select,
#tp-esim-widget-hero input,
#tp-esim-widget-hero select{
  border: 1px solid rgba(15,23,42,.12) !important;
  background: #ffffff !important;
  color: var(--text) !important;
  padding: 14px 14px !important;
  box-shadow: 0 10px 22px rgba(2,6,23,.06) !important;
  max-width:100%;
}

#tp-esim-widget input:focus,
#tp-esim-widget select:focus,
#tp-esim-widget-hero input:focus,
#tp-esim-widget-hero select:focus{
  outline: 3px solid var(--focus) !important;
  outline-offset: 2px !important;
}

#tp-esim-widget button,
#tp-esim-widget [type="submit"],
#tp-esim-widget-hero button,
#tp-esim-widget-hero [type="submit"]{
  border: 1px solid rgba(18,207,208,.30) !important;
  background: linear-gradient(135deg, rgba(18,207,208,.22), rgba(244,162,97,.18)) !important;
  color: var(--text) !important;
  font-weight: 900 !important;
  padding: 14px 16px !important;
  box-shadow: 0 18px 44px rgba(18,207,208,.12) !important;
  transition: transform .12s ease, box-shadow .12s ease !important;
}
#tp-esim-widget button:hover,
#tp-esim-widget [type="submit"]:hover,
#tp-esim-widget-hero button:hover,
#tp-esim-widget-hero [type="submit"]:hover{
  transform: translateY(-1px) !important;
  box-shadow: 0 22px 54px rgba(2,6,23,.14) !important;
}

#tp-esim-widget [class*="powered"],
#tp-esim-widget [class*="Powered"],
#tp-esim-widget-hero [class*="powered"],
#tp-esim-widget-hero [class*="Powered"]{
  opacity: .72 !important;
  font-size: .9rem !important;
}

@media (max-width: 760px){
  #tp-esim-widget{ min-height: 280px; }
  #tp-esim-widget input,
  #tp-esim-widget select,
  #tp-esim-widget button,
  #tp-esim-widget-hero input,
  #tp-esim-widget-hero select,
  #tp-esim-widget-hero button{
    border-radius: 18px !important;
  }
}

/* ==========================================================================
   Consent banner (GLOBAL) — TripGuidely — UPDATED
   - Uses existing .btn styles (primary + default)
   - Stable layout, safe-area iOS, no CLS
   - Adds scroll-padding-bottom so anchored sections aren’t hidden
   - Optional: body.consent-open can add breathing room
   ========================================================================== */

:root{
  --consent-z: 9999;
  --consent-bg: rgba(7,10,18,.88);
  --consent-border: rgba(255,255,255,.14);
  --consent-text: rgba(226,232,240,.92);
  --consent-sub: rgba(148,163,184,.92);

  /* Prevent banner from covering anchored sections */
  --consent-hint: 84px;
}
@media (max-width: 760px){
  :root{ --consent-hint: 160px; }
}

/* Helps #hash anchor jumps + in-page scrolling */
body{ scroll-padding-bottom: var(--consent-hint); }

/* Optional: if JS adds .consent-open, give a bit of breathing room */
body.consent-open{ padding-bottom: var(--consent-hint); }

.consent-banner{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--consent-z);

  background: var(--consent-bg);
  border-top: 1px solid var(--consent-border);

  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);

  box-shadow: 0 -18px 50px rgba(0,0,0,.30);

  /* spacing */
  padding: 14px 0;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
}

.consent-banner .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.consent-copy{ min-width: 0; }

.consent-title{
  margin: 0 0 4px;
  font-weight: 950;
  letter-spacing: var(--tracking-tight);
  color: var(--consent-text);
  font-size: .98rem;
}

.consent-text{
  margin: 0;
  color: var(--consent-sub);
  font-size: .92rem;
  line-height: 1.5;
  max-width: 78ch;
}

.consent-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Make buttons feel right on dark glass */
.consent-banner .btn{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}
.consent-banner .btn:hover{
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.18);
}

/* Primary stays your gradient, but with a bit more pop on dark */
.consent-banner .btn.primary{
  border-color: rgba(18,207,208,.55);
  box-shadow: 0 16px 40px rgba(18,207,208,.22);
}

/* Optional tiny link style (for "Manage consent" somewhere) */
.consent-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-weight: 800;
  color: rgba(226,232,240,.88);
  text-decoration: none;
  border-bottom: 1px solid rgba(18,207,208,.35);
}
.consent-link:hover{
  border-bottom-color: rgba(18,207,208,.75);
  color: rgba(255,255,255,.95);
}

@media (max-width: 760px){
  .consent-banner .wrap{
    flex-direction: column;
    align-items: stretch;
  }
  .consent-actions{
    width: 100%;
    white-space: normal;
  }
  .consent-actions .btn{
    width: 100%;
    justify-content: center;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 1.02rem;
  }
}
