﻿/* ============================================================================
   MTM Global Visa — site theme
   ----------------------------------------------------------------------------
   Brand tokens are taken from the logo: blue -> violet -> magenta gradient,
   logo red for alerts, cool light-grey ground.

   This file does two jobs:

     1. Provides the new design system (.ui-card, .ui-row, .tag, .band, .hero,
        .site-header ...) used by the redesigned pages.
     2. Re-skins the Bootstrap 4 / Front theme components the older pages still
        use — buttons, form controls, cards, alerts — so pages that were not
        rewritten (the eVisa form above all) inherit the new look without their
        markup changing.

   Naming: anything Bootstrap already owns and that we do NOT want to take over
   globally is prefixed `ui-`. In particular `.row` stays Bootstrap's grid row;
   the flex cluster from the design is `.ui-row`.

   Load order: after themev1.css and webStyles.css.
   ============================================================================ */

:root {
    --bg: #f3f4f7;
    --surface: #ffffff;
    --text: #1b1d21;
    --divider: rgba(27,29,33,.14);
    --accent: #e5188c;
    --accent-2: #1d6fd0;
    --alert: #ed1c24;
    --a-100: #ffeaf5;
    --a-200: #ffd0e9;
    --a-300: #ffa6d3;
    --a-400: #f96ab4;
    --a-500: #e5188c;
    --a-600: #c30f76;
    --a-700: #9b0b5e;
    --a-800: #700843;
    --a-900: #47062b;
    --b-100: #e9f2ff;
    --b-200: #cfe2fd;
    --b-300: #a6c8fa;
    --b-400: #6aa4f2;
    --b-500: #2b7de0;
    --b-600: #1d6fd0;
    --b-700: #14549f;
    --b-800: #0e3c73;
    --b-900: #0a2748;
    --n-100: #f7f8fa;
    --n-200: #eceef2;
    --n-300: #dcdfe6;
    --n-400: #bec3cd;
    --n-500: #9aa1ae;
    --n-600: #79808d;
    --n-700: #5b616c;
    --n-800: #3e424a;
    --n-900: #22252b;
    --font-heading: 'Z06-Walone';
    --font-body: 'Z06-Walone';
    --s1: 4px;
    --s2: 9px;
    --s3: 13px;
    --s4: 18px;
    --s6: 26px;
    --s8: 36px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 2px rgba(34,37,43,.12);
    --shadow-md: 0 3px 10px rgba(34,37,43,.14);
    --shadow-lg: 0 12px 32px rgba(34,37,43,.18);
    --gradient: linear-gradient(115deg,#0e3c73 0%,#1d6fd0 38%,#9b0b5e 100%);
    --mark: linear-gradient(135deg,#1d6fd0 0%,#7b3fbf 50%,#e5188c 100%);
}

/* base ---------------------------------------------------------------- */
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -.025em;
    color: var(--text);
}

h1, .h1 { font-size: clamp(32px, 4.4vw, 52px); }
h2, .h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3, .h3 { font-size: 23px; }
h4, .h4 { font-size: 19px; }
h5, .h5 { font-size: 16px; }

/* The all-caps eyebrow above a section heading. */
.kicker {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--a-700);
    margin: 0 0 var(--s2);
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    text-underline-offset: 3px;
}

a:hover { color: var(--a-700); text-decoration: none; }

img { max-width: 100%; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(229,24,140,.25); }

.muted, .text-muted { color: rgba(27,29,33,.62) !important; }

.wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding-left: var(--s4);
    padding-right: var(--s4);
}

.section { padding-top: var(--s8); }
.section-lg { padding-top: var(--s8); padding-bottom: var(--s8); }
.is-hidden { display: none !important; }

/* buttons -------------------------------------------------------------
   These deliberately override Bootstrap so untouched pages inherit the
   pill-shaped brand buttons. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    color: var(--text);
    background: transparent;
    border: 1px solid transparent;
    padding: 11px 18px;
    border-radius: 999px;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.btn-lg { font-size: 16px; padding: 14px 26px; }
.btn-sm { font-size: 13px; padding: 8px 14px; }

.btn-primary,
.btn-primary:not(:disabled):not(.disabled) {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
    background: var(--a-600);
    color: #fff;
    border-color: transparent;
    box-shadow: none;
}

.btn-secondary,
.btn-secondary:not(:disabled):not(.disabled) {
    border-color: var(--divider);
    background: transparent;
    color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:not(:disabled):not(.disabled):active {
    background: rgba(27,29,33,.06);
    color: var(--text);
    border-color: var(--divider);
}

.btn-ghost { color: var(--accent); padding-left: 6px; padding-right: 6px; }
.btn-ghost:hover { background: rgba(229,24,140,.1); color: var(--a-700); }

.btn-light { background: var(--a-300); color: var(--a-900); border-color: transparent; }
.btn-light:hover { background: #fff; color: var(--a-800); }

.btn-outline-light { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }

.btn-dashed { border: 1px dashed var(--n-400); color: var(--text); }
.btn-dashed:hover { background: var(--n-100); }

.btn-chip { background: var(--n-100); border-color: var(--divider); color: var(--text); }
.btn-chip:hover { background: var(--n-200); color: var(--text); }

.btn[aria-pressed="true"],
.btn-chip[aria-pressed="true"] {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}

.btn-block { width: 100%; }
.btn-pill { border-radius: 999px; }

.btn-soft-primary { background: var(--a-100); color: var(--a-800); border-color: transparent; }
.btn-soft-primary:hover { background: var(--a-200); color: var(--a-800); }
.btn-soft-danger { background: rgba(237,28,36,.12); color: var(--alert); border-color: transparent; }
.btn-danger { background: var(--alert); color: #fff; border-color: transparent; }
.btn-success { background: #1a8754; color: #fff; border-color: transparent; }

/* tags ---------------------------------------------------------------- */
.tag {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    letter-spacing: .02em;
    padding: 4px 11px;
    border-radius: 999px;
}

.tag-accent   { background: var(--a-100); color: var(--a-800); }
.tag-accent-2 { background: var(--b-100); color: var(--b-800); }
.tag-neutral  { background: var(--n-200); color: var(--n-800); }
.tag-alert    { background: var(--alert); color: #fff; letter-spacing: .1em; }
.tag-success  { background: #d9f2e5; color: #0f5132; }
.tag-warning  { background: #fff3cd; color: #7a5b00; }

/* cards ---------------------------------------------------------------
   `.ui-card` is the design's card. Bootstrap's own `.card` is only re-skinned
   (radius, border, shadow) so existing markup keeps its padding rules. */
.ui-card {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
    padding: var(--s6);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.card {
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--divider);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.card-kicker {
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
}

.card-text-body {
    margin: 0;
    font-size: 14px;
    opacity: .82;
    flex: 1;
}

.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }

/* fields --------------------------------------------------------------- */
.field label,
.form-label {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
    color: rgba(27,29,33,.7);
}

.input,
.form-control,
.custom-select {
    width: 100%;
    min-height: 44px;
    height: auto;
    padding: 8px 15px;
    font: inherit;
    font-size: 14px;
    color: var(--text);
    background: var(--n-100);
    border: 1px solid var(--divider);
    border-radius: 999px;
    appearance: none;
}

.input:hover,
.form-control:hover { border-color: rgba(27,29,33,.4); }

.input:focus,
.form-control:focus {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: none;
    outline-offset: 0;
}

textarea.input,
textarea.form-control { border-radius: var(--radius-md); min-height: 96px; }

select.input,
select.form-control {
    background-image: linear-gradient(45deg,transparent 50%,var(--n-600) 50%),linear-gradient(135deg,var(--n-600) 50%,transparent 50%);
    background-position: calc(100% - 19px) 20px, calc(100% - 14px) 20px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 38px;
}

.invalid-feedback,
.form-control-feedback.has-danger { color: var(--alert); font-size: 13px; }

.error-border { border-color: var(--alert) !important; }

/* ---------------------------------------------------------------------------
   Branch cards — the offices on the About page. Two side by side on desktop,
   stacked on a phone. The map leads, because "where is it" is the question
   people arrive with; the details sit underneath it.
   --------------------------------------------------------------------------- */
.branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--s8, 26px);
}

.branch-card {
    background: var(--surface, #fff);
    border: 1px solid var(--divider, #e6e6e6);
    border-radius: var(--r-lg, 16px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease;
}

.branch-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .10);
}

.branch-card__map {
    position: relative;
    width: 100%;
    /* 16:9 without depending on the theme's embed-responsive helpers. */
    padding-top: 56%;
    background: var(--n-100, #f4f5f7);
}

.branch-card__map iframe {
    position: absolute;
    inset: 0;
    /* Pasted embeds carry width="600" height="450"; override both. */
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.branch-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 22px 0;
}

.branch-card__name {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.branch-card__body { padding: 14px 22px 22px; }

.branch-line {
    display: flex;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid var(--divider, #e6e6e6);
    font-size: 14px;
    line-height: 1.5;
}

.branch-card__body > .branch-line:first-child { border-top: 0; }

.branch-line__icon {
    flex: 0 0 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--n-100, #f4f5f7);
    color: var(--accent, #df2a90);
    font-size: 14px;
}

.branch-line__label {
    display: block;
    font-size: 12px;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--n-600, #6b7280);
    margin-bottom: 1px;
}

.branch-line a { color: inherit; }
.branch-line a:hover { color: var(--accent, #df2a90); }

/* Several numbers on one branch, comma separated in the database. */
.branch-phones { display: flex; flex-wrap: wrap; gap: 4px 14px; }

@media (max-width: 575px) {
    .branch-card__head { padding: 15px 16px 0; }
    .branch-card__body { padding: 12px 16px 18px; }
}

/* The field validation stopped on. The ring matters as much as the border:
   after scrolling a long form the eye needs somewhere to land. */
.input.is-invalid,
.form-control.is-invalid {
    border-color: var(--alert) !important;
    box-shadow: 0 0 0 3px rgba(237, 28, 36, .15);
}

/* Panels rather than single inputs — the branch tiles, the upload box. */
.is-invalid:not(.input):not(.form-control) {
    outline: 2px solid var(--alert);
    outline-offset: 4px;
    border-radius: var(--r-md);
}

/* The bootstrap-select plugin used by the booking form renders a button. */
.bootstrap-select > .dropdown-toggle,
.bootstrap-select .btn-white {
    min-height: 44px;
    background: var(--n-100) !important;
    border: 1px solid var(--divider) !important;
    border-radius: 999px !important;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--text) !important;
    text-align: left;
    justify-content: flex-start;
}

.bootstrap-select .dropdown-menu { border-radius: var(--radius-md); border: 1px solid var(--divider); }

/* layout helpers -------------------------------------------------------- */
.grid { display: grid; gap: var(--s4); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.g-form { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* The design's flex cluster. Named `ui-row` so Bootstrap's `.row` grid,
   which the eVisa and admin-facing forms rely on, is left intact. */
.ui-row { display: flex; gap: var(--s2); flex-wrap: wrap; }

.washed { filter: saturate(.85) contrast(.95); }

/* Image placeholder. Swap for an <img> carrying the same class. */
.ph {
    display: grid;
    place-items: center;
    text-align: center;
    padding: var(--s4);
    font-size: 12px;
    color: var(--n-700);
    background: repeating-linear-gradient(135deg, var(--n-200) 0 10px, var(--n-300) 10px 20px);
    border-radius: var(--radius-lg);
    object-fit: cover;
}

/* header ---------------------------------------------------------------- */
.announce {
    background: var(--b-900);
    color: var(--b-200);
    font-size: 13px;
    padding: 9px 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    text-align: center;
}

.announce a { color: var(--a-300); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
  /*  background: rgba(243,244,247,.94);*/
    background: #fff;
    backdrop-filter: blur(10px);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding-top: var(--s3);
    padding-bottom: var(--s3);
}

.brand { display: flex; align-items: center; gap: var(--s2); margin-right: auto; }

.mark {
    width: 52px;
   /* height: 42px;*/
   /* border-radius: 999px;*/
    background:#fff;
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    flex: none;
    overflow: hidden;
}

.mark img { width: 100%; height: 100%; object-fit: cover; }

.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 18px; line-height: 1.1; display: block; }
.brand-sub { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(27,29,33,.55); display: block; }

.main-nav { display: flex; gap: 2px; flex-wrap: wrap; }

.main-nav a {
    color: var(--text);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.main-nav a:hover { background: var(--n-200); color: var(--text); }
.main-nav a[aria-current="page"], .main-nav a.active { background: var(--a-100); color: var(--a-800); }

.header-actions { display: flex; align-items: center; gap: var(--s2); }

.seg { display: inline-flex; border: 1px solid var(--divider); border-radius: 999px; overflow: hidden; font-size: 13px; }
.seg button, .seg a {
    border: 0;
    background: transparent;
    padding: 8px 13px;
    cursor: pointer;
    font-weight: 600;
    color: var(--n-700);
    line-height: 1.2;
}
.seg button[aria-pressed="true"], .seg a[aria-pressed="true"] { background: var(--accent); color: #fff; }

.nav-toggle {
    display: none;
    border: 1px solid var(--divider);
    background: transparent;
    border-radius: 999px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 18px;
}

/* dropdown inside the main nav (visa requirements) */
.nav-drop { position: relative; }
.nav-drop > .nav-drop-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 60;
}
.nav-drop:hover > .nav-drop-menu, .nav-drop.is-open > .nav-drop-menu { display: block; }
.nav-drop-menu a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; color: var(--text); }
.nav-drop-menu a:hover { background: var(--n-100); color: var(--accent); }

/* hero ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; }

.hero .wrap {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: var(--s8);
    align-items: center;
    padding-top: var(--s8);
    padding-bottom: var(--s8);
}

.blob { position: absolute; border-radius: 999px; }
.blob-a { width: 600px; height: 600px; background: var(--a-100); right: -170px; top: -190px; }
.blob-b { width: 300px; height: 300px; background: var(--b-100); left: -130px; bottom: 30px; }

.hero-media { height: 430px; box-shadow: var(--shadow-lg); }

.dots { display: flex; gap: 6px; margin-top: var(--s8); }
.dots button {
    height: 12px;
    width: 12px;
    border: 0;
    border-radius: 999px;
    background: var(--n-300);
    cursor: pointer;
    transition: width .25s ease;
    padding: 0;
}
.dots button[aria-pressed="true"] { width: 38px; background: var(--accent); }

/* destination cards ------------------------------------------------------
   The flag stands in for country photography: a tinted panel with the flag
   floating on it, so the card reads as designed rather than as a placeholder. */
.destination-flag {
    display: grid;
    place-items: center;
    height: 170px;
    border-radius: var(--radius-lg);
    background: linear-gradient(140deg, var(--b-100) 0%, var(--a-100) 100%);
    overflow: hidden;
}

.destination-flag img {
    width: 108px;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    display: block;
}

/* Small flag sitting inside a section eyebrow. */
.kicker-flag {
    width: 18px;
    height: auto;
    border-radius: 2px;
    display: inline-block;
    vertical-align: -3px;
    margin-right: 6px;
}

/* partner lockup ---------------------------------------------------------
   Kicker text and the partner's own logo on one baseline. */
.partner-lockup {
    display: flex;
    align-items: center;
    gap: var(--s3);
    flex-wrap: wrap;
    margin-bottom: var(--s2);
}

.partner-logo {
    height: 38px;
    width: auto;
    display: block;
}

/* On the gradient band the logo needs a light plate to stay legible. */
.band .partner-logo {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 5px 9px;
    box-shadow: var(--shadow-sm);
}

.trust { background: var(--b-100); }
.trust .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2) var(--s8);
    justify-content: space-between;
    padding-top: var(--s3);
    padding-bottom: var(--s3);
    font-size: 13px;
    color: var(--b-900);
}
.trust span { display: flex; align-items: center; gap: 9px; }
.trust i { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); flex: none; }

/* banded sections -------------------------------------------------------- */
.band { background: var(--gradient); color: #fff; position: relative; overflow: hidden; }
.band h1, .band h2, .band h3, .band h4 { color: #fff; }
.band .kicker { color: var(--a-300); }
.band p { color: rgba(255,255,255,.82); }
.band .wrap { position: relative; padding-top: var(--s8); padding-bottom: var(--s8); }

.stat { background: rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: var(--s4); }
.stat b { display: block; font-family: var(--font-heading); font-size: 22px; color: var(--a-300); margin-bottom: 3px; }

.dark { background: var(--n-900); color: rgba(255,255,255,.78); }
.dark h2, .dark h3, .dark h4 { color: #fff; }

.step-num {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    flex: none;
}

.step {
    display: flex;
    gap: var(--s3);
    align-items: flex-start;
    padding: var(--s3);
    background: var(--bg);
    border-radius: var(--radius-lg);
}

/* insurance / multi-step forms -------------------------------------------- */
.layout-side { display: grid; grid-template-columns: 270px 1fr; gap: var(--s6); align-items: start; }
.layout-side-r { grid-template-columns: 1fr 300px; }
.sticky-side { position: sticky; top: 96px; }

.plan-price { font-family: var(--font-heading); font-weight: 700; font-size: 24px; color: var(--a-700); }

.benefit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s4);
    padding: var(--s3) 0;
    border-bottom: 1px solid var(--divider);
}

/*  Schedule of benefits, one card each.
    The two-column .benefit row above works when a benefit is a name and a
    number; it stops working once each carries a paragraph of policy wording,
    because the limit ends up stranded beside a block of text. */
.benefit-card {
    display: flex;
    gap: var(--s3);
    align-items: flex-start;
    padding: var(--s4) var(--s4) var(--s4) var(--s3);
    margin-bottom: var(--s3);
    background: var(--n-100);
    border-radius: var(--radius-md);
}

.benefit-check {
    flex: none;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #1f9d55;
}

.benefit-body { min-width: 0; }

.benefit-body h4 { margin: 0 0 4px; }

.benefit-detail {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(27,29,33,.72);
}

/*  The limit is the number people scan for, so it is set apart from the
    wording rather than reading as its last sentence. */
.benefit-limit {
    margin: var(--s2) 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--b-700);
}

@media (max-width: 767px) {
    .benefit-card { padding: var(--s3); gap: var(--s2); }
    .benefit-detail { font-size: 13px; }
}

.doc {
    display: flex;
    gap: var(--s3);
    padding: var(--s3) 0;
    border-bottom: 1px solid var(--divider);
    align-items: baseline;
}
.doc i { width: 9px; height: 9px; border-radius: 999px; background: var(--accent); flex: none; }

/* sky lounge ------------------------------------------------------------
   Cropped to a fixed height so three cards of differing text length still
   line their photos up across the row. */
.lounge-shot {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

@media (max-width: 767px) {
    /* One card per row on a phone, so the crop can be shallower. */
    .lounge-shot { height: 160px; }
}

/*  A lounge card lists five inclusions, where a visa card lists one or two.
    At the shared .doc rhythm — 13px padding on top of the card's own 9px flex
    gap — that pushed the price below the fold. Tighter here only; the visa
    requirement lists keep the roomier spacing they were designed for.  */
.lounge-card { gap: 0; }

.lounge-card .doc {
    padding: 7px 0;
    font-size: 14px;
    line-height: 1.45;
    gap: var(--s2);
}

.lounge-card .doc i { width: 7px; height: 7px; }

/*  Nothing follows the last inclusion but the price, which brings its own
    margin — so the trailing rule and its padding are just dead space.  */
.lounge-card .doc:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

.lounge-card h3 { margin-bottom: var(--s1); }
.lounge-card .card-text-body { margin-bottom: var(--s2); }
.lounge-card .tag { align-self: flex-start; margin: var(--s3) 0 var(--s2); }
.lounge-card .lounge-shot { margin-bottom: var(--s1); }
.lounge-card .btn { margin-top: var(--s3); }

/* downloadable forms attached to a visa type --------------------------- */
.download-card {
    display: flex;
    align-items: flex-start;
    gap: var(--s3);
    padding: var(--s4);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.download-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
    color: var(--text);
}

.download-icon {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: var(--radius-sm);
    background: var(--a-100);
    color: var(--a-700);
    display: grid;
    place-items: center;
    font-size: 18px;
}

.download-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.25;
}

.download-meta { display: block; font-size: 12px; color: rgba(27,29,33,.62); margin-top: 2px; }

/* long-form guidance, collapsed by default ------------------------------ */
.guidance {
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    background: var(--n-100);
    padding: var(--s3) var(--s4);
    margin-bottom: var(--s2);
}

.guidance > summary {
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    list-style: none;
}

.guidance > summary::-webkit-details-marker { display: none; }
/* Kept to plain ASCII so the marker survives any stylesheet encoding. */
.guidance > summary::after { content: "+"; float: right; color: var(--n-600); font-weight: 700; }
.guidance[open] > summary::after { content: "-"; }

.guidance-body {
    padding-top: var(--s3);
    margin-top: var(--s3);
    border-top: 1px solid var(--divider);
    font-size: 14px;
}

.guidance-body img { border-radius: var(--radius-md); height: auto; }
.guidance-body table { width: 100%; }

.steps { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s6); }
.steps .tag { font-size: 13px; padding: 7px 15px; }
.steps .tag.is-current { background: var(--accent); color: #fff; }
.steps .tag.is-done { background: var(--b-100); color: var(--b-800); }

.traveller { background: var(--bg); border-radius: var(--radius-lg); padding: var(--s6); margin-bottom: var(--s3); }

/* The traveller the certificate is issued to is called out. */
.traveller.is-primary {
    background: var(--surface);
    border: 1px solid var(--a-300);
    box-shadow: var(--shadow-sm);
}

.traveller-contact {
    margin-top: var(--s6);
    padding-top: var(--s4);
    border-top: 1px solid var(--divider);
}

.traveller-section {
    display: flex;
    align-items: center;
    gap: var(--s2);
    margin-bottom: var(--s3);
    font-size: 16px;
}

.traveller-section .fas { color: var(--accent); }

/* Required-field marker. */
.req { color: var(--alert); font-weight: 700; }

/* Dialling code beside the number it belongs to. */
.phone-group { display: grid; grid-template-columns: 150px 1fr; gap: var(--s2); }

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

.upload {
    border: 1px dashed var(--n-400);
    border-radius: var(--radius-lg);
    padding: var(--s8);
    text-align: center;
    background: var(--bg);
}

/* payment step: the Kyat figure the buyer actually transfers ---------------- */
.pay-total {
    background: var(--a-100);
    border: 1px solid var(--a-200);
    border-radius: var(--radius-lg);
    padding: var(--s4) var(--s6);
    margin: 18px 0;
}

.pay-total-mmk {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 30px;
    line-height: 1.15;
    color: var(--a-700);
}

/* payment step: account details beside a scannable QR ---------------------- */
.pay-panel {
    background: var(--b-100);
    border-radius: var(--radius-lg);
    padding: var(--s6);
    margin: 18px 0;
}

.pay-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s2);
    text-align: center;
}

.pay-qr img {
    width: 190px;
   /* height: 190px;*/
    border-radius: var(--radius-md);
    background: #fff;
    padding: var(--s2);
    box-shadow: var(--shadow-sm);
}

/* queued payment receipts -------------------------------------------------- */
.receipt-list { display: grid; gap: var(--s2); margin-top: var(--s4); text-align: left; }

.receipt-item {
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: var(--s2) var(--s3);
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
}

.receipt-thumb {
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--n-200);
    display: grid;
    place-items: center;
}

.receipt-thumb.is-pdf { color: var(--a-700); font-size: 20px; }

.receipt-meta { flex: 1; min-width: 0; font-size: 13px; }
.receipt-meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipt-meta span { color: rgba(27,29,33,.62); }

/* printable receipts ------------------------------------------------------
   A success page keeps the whole receipt in one element and marks whatever
   belongs to the screen alone — buttons, upload forms, notices — .no-print.
   Printing hides those through the media query at the foot of this file; the
   download hides them for as long as html2canvas is copying the element, and
   `body.is-capturing` is what says so. Both paths therefore save the same
   document. */
.receipt-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--s2);
    margin-bottom: var(--s4);
}

/* The masthead the receipt only needs once it leaves the screen: on paper or
   in a saved image there is no site header above it to say who issued it. */
.receipt-brand {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: var(--s4);
    text-align: left;
    padding-bottom: var(--s3);
    margin-bottom: var(--s6);
    border-bottom: 1px solid var(--divider);
}

.receipt-brand img { height: 46px; width: auto; }
.receipt-brand small { display: block; color: var(--n-600); font-size: 12px; text-align: right; }

body.is-capturing .receipt-brand { display: flex !important; }
body.is-capturing .no-print { display: none !important; }

.form-nav {
    display: flex;
    gap: var(--s2);
    justify-content: flex-end;
    align-items: center;
    margin-top: var(--s6);
    padding-top: var(--s4);
    border-top: 1px solid var(--divider);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: var(--s3);
    padding: 8px 0;
    border-bottom: 1px solid var(--divider);
    font-size: 14px;
}

/* the visa-type radio tiles on the booking form */
.type-tile { position: relative; }
.type-tile input { position: absolute; opacity: 0; width: 0; height: 0; }
.type-tile label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    margin: 0;
    padding: var(--s4);
    cursor: pointer;
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.type-tile label:hover { border-color: var(--a-300); }
.type-tile input:checked + label {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent) inset;
    background: var(--a-100);
}
.type-tile .type-name { font-family: var(--font-heading); font-weight: 600; font-size: 15px; }
.type-tile .type-meta { font-size: 12px; color: rgba(27,29,33,.62); }

/* -------------------------------------------------------------------------
   Booking form spacing

   These reproduce exactly what the inline styles on the form used to do, moved
   into classes so the breakpoint can tune them. On a phone the generous desktop
   rhythm costs a lot of scrolling for no benefit, so it tightens up.
   ------------------------------------------------------------------------- */
/* .form-card is shared by the booking form and the insurance purchase form. */
.form-card { padding: var(--s8); }

/* Fieldsets used purely to group a step, with the browser's default chrome off. */
.form-step { border: 0; padding: 0; margin: 0; }

.form-block { margin-bottom: var(--s6); }
.form-block--divided { border-top: 1px solid var(--divider); padding-top: var(--s6); }
.form-block--spaced { margin-top: var(--s6); }
.form-block__title { margin-bottom: var(--s4); }

/* Two classes, so this wins over .form-step's margin shorthand whatever the
   source order. */
.form-step.form-block { margin-bottom: var(--s6); }

/* Wider columns than the shared .g-form default, for the booking form only. At
   200px every field is sized for a name, and an email address gets cut off
   mid-word. Raising the minimum drops the applicant block from four columns to
   three, which is enough for a full address — and it keeps the rows even, where
   letting one field span two columns would leave a hole at the end of row one. */
.visa-form .g-form { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

@media (max-width: 767px) {

    /* The card already sits inside .wrap's own gutter, so a wide inner padding
       is paying for the same margin twice. */
    .form-card { padding: var(--s4) var(--s3); gap: var(--s1); }

    .form-block,
    .form-step.form-block { margin-bottom: var(--s4); }
    .form-block--divided { padding-top: var(--s4); }
    .form-block--spaced { margin-top: var(--s4); }
    .form-block__title { margin-bottom: var(--s3); }

    /* Single column anyway on a phone, so the grid gap is pure vertical space. */
    .form-card .grid { gap: var(--s3); }

    /* Branch tiles carry two or three lines of address and phone; they do not
       need desktop padding on top of that. */
    .form-card .type-tile label { padding: var(--s3); gap: 4px; }

    /* Inner panels: the appointment checklist, and the traveller cards and
       payment panels on the insurance form. */
    .form-card .ui-card,
    .form-card .traveller,
    .form-card .pay-panel { padding: var(--s4); }

    /* Section headings inside a step. */
    .form-card h2 { font-size: 22px; margin-bottom: var(--s2); }
}

/* -------------------------------------------------------------------------
   Visa type picker — phones only

   Above 768px nothing here applies: the cards stay in their grid and the
   trigger button and sheet chrome are hidden. Below it the same cards move
   into a bottom sheet, so a destination with a dozen categories no longer
   pushes the form off the screen.
   ------------------------------------------------------------------------- */

/* Desktop and tablet: the trigger and the sheet furniture do not exist. */
.type-picker,
.type-sheet__head,
.type-sheet__backdrop { display: none; }

@media (max-width: 767px) {

    .type-picker {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--s3);
        width: 100%;
        min-height: 58px;
        padding: 10px var(--s4);
        text-align: left;
        background: var(--surface);
        border: 1px solid var(--divider);
        border-radius: var(--radius-lg);
        cursor: pointer;
        transition: border-color .15s ease, box-shadow .15s ease;
    }

    .type-picker.is-chosen {
        border-color: var(--accent);
        box-shadow: 0 0 0 1px var(--accent) inset;
    }

    .type-picker.is-invalid {
        border-color: var(--alert);
        box-shadow: 0 0 0 3px rgba(237, 28, 36, .15);
    }

    .type-picker__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

    .type-picker__label {
        font-size: 11px;
        letter-spacing: .04em;
        text-transform: uppercase;
        color: rgba(27,29,33,.55);
    }

    .type-picker__value {
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: 15px;
        /* A long category name must not stretch the button. */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .type-picker__chevron {
        flex: 0 0 auto;
        width: 9px;
        height: 9px;
        border-right: 2px solid var(--accent);
        border-bottom: 2px solid var(--accent);
        transform: rotate(45deg) translate(-2px, -2px);
    }

    /* ---- the sheet itself ---- */
    .type-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1060;
        display: flex;
        flex-direction: column;
        max-height: 88vh;
        background: var(--surface);
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -10px 40px rgba(0,0,0,.22);
        transform: translateY(101%);
        transition: transform .28s cubic-bezier(.32, .72, 0, 1);
        /* Off-screen it must not be reachable by keyboard or screen reader. */
        visibility: hidden;
    }

    .type-sheet.is-open { transform: translateY(0); visibility: visible; }

    .type-sheet__head {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: var(--s3);
        padding: var(--s5) var(--s5) var(--s3);
        border-bottom: 1px solid var(--divider);
    }

    .type-sheet__grabber {
        grid-column: 1 / -1;
        justify-self: center;
        width: 38px;
        height: 4px;
        margin-bottom: 10px;
        border-radius: 2px;
        background: var(--n-300, #d7d9de);
    }

    .type-sheet__title { margin: 0; font-size: 17px; }

    .type-sheet__done {
        padding: 7px 16px;
        font-weight: 600;
        color: #fff;
        background: var(--accent);
        border: 0;
        border-radius: 999px;
        cursor: pointer;
    }

    /* The card grid becomes the scrolling area of the sheet. */
    .type-sheet__body {
        padding: var(--s4) var(--s5) calc(var(--s5) + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .type-sheet__backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1059;
        background: rgba(17, 18, 22, .45);
        opacity: 0;
        pointer-events: none;
        transition: opacity .28s ease;
    }

    .type-sheet__backdrop.is-open { opacity: 1; pointer-events: auto; }

    /* Stops the page behind from scrolling while the sheet is up. */
    body.type-sheet-open { overflow: hidden; }
}

/* =========================================================================
   eVisa application form
   -------------------------------------------------------------------------
   The eVisa form keeps its original Bootstrap / Front-theme markup — only its
   appearance changes. Everything below re-skins the components that page uses
   so it reads as part of the new design without its HTML being rewritten.
   ========================================================================= */

.evisa-page { background: var(--bg); padding-top: var(--s6); }

/* --- step progress across the top of the card --------------------------- */
.evisa-page .card-header { background: var(--n-100); padding: var(--s6) !important; }

.evisa-page .nav-icon {
    display: flex;
    gap: var(--s3);
    flex-wrap: wrap;
    justify-content: center;
    border: 0;
}

.evisa-page .nav-icon .nav-item {
    display: flex;
    align-items: center;
    gap: var(--s2);
    flex: 1 1 200px;
    padding: var(--s3);
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--divider);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--n-700);
    text-align: left;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.evisa-page .nav-icon .nav-icon-action {
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 999px;
    background: var(--n-200);
    color: var(--n-700);
    display: grid;
    place-items: center;
    font-size: 15px;
    transition: background .15s ease, color .15s ease;
}

/* HSStepForm marks the step in progress `active` and finished steps `u-checked`. */
.evisa-page .nav-icon .nav-item.active {
    border-color: var(--accent);
    background: var(--a-100);
    color: var(--a-800);
}

.evisa-page .nav-icon .nav-item.active .nav-icon-action {
    background: var(--accent);
    color: #fff;
}

.evisa-page .nav-icon .nav-item.u-checked {
    border-color: var(--b-300);
    background: var(--b-100);
    color: var(--b-800);
}

.evisa-page .nav-icon .nav-item.u-checked .nav-icon-action {
    background: var(--b-600);
    color: #fff;
}

/* --- section headings inside the steps ---------------------------------- */
.evisa-page .border-bottom {
    border-bottom: 1px solid var(--divider) !important;
}

.evisa-page .card-body h2,
.evisa-page .card-body .h5 {
    font-family: var(--font-heading);
    font-size: 19px;
    color: var(--text) !important;
}

/* --- radio tiles (eVisa type, payment method) ---------------------------- */
.evisa-page .checkbox-outline { width: 100%; padding: 0; }

.evisa-page .checkbox-outline__label {
    display: block;
    width: 100%;
    margin: 0;
    padding: var(--s4) !important;
    cursor: pointer;
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg) !important;
    font-size: 14px;
    transition: border-color .15s ease, background .15s ease;
}

.evisa-page .checkbox-outline__label:hover { border-color: var(--a-300); }

.evisa-page .checkbox-outline__input:checked ~ .checkbox-outline__label {
    border-color: var(--accent);
    background: var(--a-100);
    box-shadow: 0 0 0 1px var(--accent) inset;
}

/* --- document upload drop zones ----------------------------------------- */
.evisa-page .file-attachment-input {
    display: block;
    width: 100%;
    cursor: pointer;
    text-align: center;
    background: var(--n-100);
    border: 1px dashed var(--n-400);
    border-radius: var(--radius-lg);
    padding: var(--s6) var(--s4);
    transition: border-color .15s ease, background .15s ease;
}

.evisa-page .file-attachment-input:hover {
    border-color: var(--accent);
    background: var(--a-100);
}

.evisa-page .file-attachment-input img { margin-inline: auto; }
.evisa-page .file-attachment-input__label { display: block; margin: var(--s3) auto 0; font-size: 13px; }

/* --- copy-to-clipboard field on the payment step ------------------------- */
.evisa-page .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.evisa-page .input-group-text {
    background: var(--n-200);
    border: 1px solid var(--divider);
    border-left: 0;
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
    padding-inline: var(--s4);
    color: var(--n-800);
}

/* --- important instructions notice --------------------------------------- */
.evisa-page blockquote.bg-soft-danger {
    background: rgba(237,28,36,.08) !important;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(237,28,36,.2) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.evisa-page blockquote.bg-soft-danger h5 { color: var(--alert); }

/* --- step navigation buttons --------------------------------------------- */
.evisa-page .btn-soft-secondary {
    background: var(--n-200);
    color: var(--n-800);
    border-color: transparent;
}

.evisa-page .btn-soft-secondary:hover { background: var(--n-300); color: var(--n-900); }

.evisa-page .d-flex.justify-content-end { gap: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--divider); }
.evisa-page .d-flex.justify-content-end .btn { font-size: 15px; padding: 12px 24px; }

/* alerts ----------------------------------------------------------------- */
.alert { border-radius: var(--radius-md); border: 0; font-size: 14px; }
.alert-danger, .bg-soft-danger { background: rgba(237,28,36,.1); color: var(--alert); }
.alert-success { background: #d9f2e5; color: #0f5132; }
.alert-info { background: var(--b-100); color: var(--b-800); }

/* footer ------------------------------------------------------------------ */
.site-footer { background: var(--n-900); color: rgba(255,255,255,.78); margin-top: var(--s8); }

.site-footer .wrap {
    padding-top: var(--s8);
    padding-bottom: var(--s6);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--s6);
}

.site-footer h5 { font-family: var(--font-heading); font-size: 15px; color: #fff; margin: 0 0 var(--s3); }
.site-footer a { display: block; color: rgba(255,255,255,.78); font-size: 14px; padding: 4px 0; }
.site-footer a:hover { color: var(--a-300); }

.footer-bar { border-top: 1px solid rgba(255,255,255,.14); }
.footer-bar .wrap {
    display: flex;
    justify-content: space-between;
    gap: var(--s3);
    flex-wrap: wrap;
    font-size: 13px;
    padding-top: var(--s3);
    padding-bottom: var(--s3);
}
.footer-bar a { color: var(--a-300); display: inline; }

/* page loader (kept from the previous theme, restyled) --------------------- */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(27,29,33,.72);
    z-index: 2000;
    display: grid;
    place-items: center;
}
.overlay .loading { text-align: center; color: #fff; }

/* responsive --------------------------------------------------------------- */
@media (max-width: 1024px) {
    .layout-side, .layout-side-r { grid-template-columns: 1fr; }
    .sticky-side { position: static; }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; order: 3; }
    .main-nav {
        display: none;
        order: 4;
        width: 100%;
        flex-direction: column;
        gap: 2px;
        padding-bottom: var(--s3);
    }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 13px 16px; border-radius: var(--radius-md); }
    .nav-drop-menu { position: static; box-shadow: none; padding-left: var(--s4); }
    .nav-drop > .nav-drop-menu { display: block; }
    .site-header .wrap { flex-wrap: wrap; }
    .header-actions .btn-primary { display: none; }
    .hero .wrap { padding-top: var(--s6); padding-bottom: var(--s6); }
    .hero-media { height: 280px; }
    .blob-a { width: 340px; height: 340px; right: -120px; top: -120px; }
    .blob-b { display: none; }
    .trust .wrap { gap: var(--s2); }
    .benefit { grid-template-columns: 1fr; gap: 2px; }
    .ui-card { padding: var(--s4); }
    .section { padding-top: var(--s6); }
}

@media (max-width: 560px) {
    .btn, .btn-lg { width: 100%; justify-content: center; }
    .ui-row .btn { width: auto; }
    .btn-chip, .btn-ghost, .btn-sm { width: auto; }
    .form-nav .btn { width: auto; }
    .g-2, .g-3, .g-4, .g-form { grid-template-columns: 1fr; }
    .site-footer .wrap { gap: var(--s4); }
    .announce { font-size: 12px; }
}

@media print {
    .site-header, .announce, .nav-toggle, .site-footer { display: none; }
    .no-print { display: none !important; }

    body { background: #fff; }
    .section { padding-top: 0; padding-bottom: 0; }
    .wrap { max-width: none; }

    /* On paper a shadow prints as grey mud, so the card is drawn with a rule
       instead, and is kept off a page break wherever the browser allows it. */
    .ui-card { box-shadow: none !important; border: 1px solid #dcdfe6; }
    .receipt-brand { display: flex; }
    .summary-row, .receipt-item { break-inside: avoid; page-break-inside: avoid; }
}
