/* ==========================================================================
   e-visa-cambodia.com — Modern Design System
   Loaded AFTER style.css so it wins the cascade.
   Restyles shared chrome (navbar, footer, buttons, hero, cards, headings,
   forms) into a modern, professional, fully responsive look.
   All content, links, scripts and backend behavior are preserved.
   ========================================================================== */

:root {
    /* Brand palette (kept from existing theme, refined) */
    --brand-50:  #eef4fb;
    --brand-100: #d6e4f5;
    --brand-200: #aecbe9;
    --brand-300: #7fa9d6;
    --brand-400: #4a80c0;
    --brand-500: #1667b9;   /* primary brand blue */
    --brand-600: #0f56a0;
    --brand-700: #0b4783;
    --brand-800: #0a3a6b;
    --brand-900: #082c50;

    --ink-900: #0f2e50;     /* deep navy for headings */
    --ink-700: #243b55;
    --ink-600: #3a4f68;
    --ink-500: #5a6b80;
    --ink-400: #7c8aa0;

    --gold-400: #e7c15a;
    --gold-500: #d4af37;    /* accent gold */
    --gold-600: #b8932a;

    --surface:      #ffffff;
    --surface-soft: #f5f8fc;
    --surface-mist: #eef3f9;
    --line:         #e3eaf3;
    --line-strong:  #cfd9e6;

    --success: #1f9d6b;
    --danger:  #e0455e;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(15, 46, 80, .06), 0 1px 3px rgba(15, 46, 80, .08);
    --shadow-md: 0 6px 16px rgba(15, 46, 80, .10), 0 2px 6px rgba(15, 46, 80, .06);
    --shadow-lg: 0 18px 40px rgba(15, 46, 80, .16), 0 6px 14px rgba(15, 46, 80, .08);
    --shadow-brand: 0 10px 24px rgba(22, 103, 185, .30);

    /* Shape */
    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    /* Motion */
    --ease: cubic-bezier(.22, .61, .36, 1);
    --speed: .25s;

    --font-sans: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-display: "Nunito", "Segoe UI", system-ui, sans-serif;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--ink-700);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--ink-900);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.2;
}

h1 { font-size: clamp(30px, 3.4vw, 46px); }
h2 { font-size: clamp(24px, 2.4vw, 34px); }
h3 { font-size: clamp(20px, 1.8vw, 26px); }

p {
    color: var(--ink-600);
    line-height: 1.75;
}

a {
    color: var(--brand-600);
    transition: color var(--speed) var(--ease);
}
a:hover {
    color: var(--brand-700);
}

::selection {
    background: var(--brand-500);
    color: #fff;
}

/* Section rhythm helper */
section, .section {
    scroll-margin-top: 90px;
}

/* --------------------------------------------------------------------------
   Buttons — modern, consistent, accessible
   -------------------------------------------------------------------------- */
.btn {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: .01em;
    border-radius: var(--radius-pill);
    padding: .7rem 1.5rem;
    line-height: 1.2;
    transition: transform var(--speed) var(--ease),
                box-shadow var(--speed) var(--ease),
                background-color var(--speed) var(--ease),
                color var(--speed) var(--ease),
                border-color var(--speed) var(--ease);
    position: relative;
    overflow: hidden;
}
.btn:active {
    transform: translateY(1px);
}
.btn:focus,
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(22, 103, 185, .28);
}

/* Primary brand button */
.btn-primary,
.btn-head,
.apply-button,
.see-more-btn,
.show_more_less,
#toggle_more_less {
    background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-700) 100%);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-brand);
}
.btn-primary:hover,
.btn-head:hover,
.apply-button:hover,
.see-more-btn:hover,
.show_more_less:hover,
#toggle_more_less:hover {
    background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-800) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(22, 103, 185, .40);
}

/* Light / ghost button used in the navbar */
.btn-light {
    background: #fff;
    color: var(--brand-700) !important;
    border: 2px solid transparent;
    box-shadow: var(--shadow-md);
}
.btn-light:hover {
    background: var(--brand-50);
    color: var(--brand-800) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Outline button */
.btn-outline-primary {
    color: var(--brand-700);
    border: 2px solid var(--brand-500);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--brand-500);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand);
}

/* Secondary / neutral */
.btn-secondary {
    background: var(--ink-900);
    color: #fff;
    border: none;
}
.btn-secondary:hover {
    background: var(--brand-900);
    color: #fff;
    transform: translateY(-2px);
}

/* Danger (back-to-top uses bg-danger) */
.bg-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #b52c42 100%) !important;
    color: #fff !important;
    box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   Navbar — modern glassy brand bar
   -------------------------------------------------------------------------- */
.navbar {
    background: linear-gradient(120deg,
        var(--brand-800) 0%,
        var(--brand-700) 35%,
        var(--brand-600) 70%,
        var(--brand-500) 100%) !important;
    box-shadow: 0 2px 18px rgba(8, 44, 80, .28);
    position: relative;
    z-index: 1050;
}

/* .navbar-brand {
    display: inline-flex;
    align-items: center;
    padding: 12px 0;
} */
.navbar-brand img {
    height: 46px;
    width: auto;
    /* filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); */
    transition: transform var(--speed) var(--ease);
}
.navbar-brand:hover img {
    transform: scale(1.04);
}

.navbar-nav {
    align-items: center;
}
.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 700;
    font-size: .95rem;
    position: relative;
    padding: .55rem .85rem;
    border-radius: var(--radius-pill);
    transition: background-color var(--speed) var(--ease),
                color var(--speed) var(--ease);
}
.navbar-nav .nav-link-label {
    display: inline-flex;
    align-items: center;
    padding: 0;
}
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--gold-400);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width var(--speed) var(--ease);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, .14) !important;
    color: #fff !important;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

/* Navbar CTA */
.navbar .btn-head,
.navbar .mobile-apply-btn .btn {
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
    color: var(--ink-900) !important;
    border: none;
    box-shadow: 0 8px 20px rgba(212, 175, 55, .35);
    font-weight: 800;
}
.navbar .btn-head:hover,
.navbar .mobile-apply-btn .btn:hover {
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
    color: var(--ink-900) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(212, 175, 55, .45);
}

/* Toggler */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, .5) !important;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .10);
    box-shadow: none !important;
    transition: background-color var(--speed) var(--ease);
}
.navbar-toggler:hover {
    background: rgba(255, 255, 255, .20);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile nav panel */
@media (max-width: 767.98px) {
    .navbar {
        background: linear-gradient(120deg, var(--brand-800) 0%, var(--brand-700) 60%, var(--brand-600) 100%) !important;
    }
    .navbar-nav {
        background: rgba(8, 44, 80, .35);
        border-top: 1px solid rgba(255, 255, 255, .18);
        padding: 12px 10px 16px !important;
        border-radius: 0 0 var(--radius) var(--radius);
    }
    .navbar-nav .nav-link {
        display: flex;
        width: calc(100% - 16px);
        margin: 3px 8px;
        padding: .55rem .85rem !important;
        border-radius: var(--radius-sm);
        font-size: 1rem;
    }
    .navbar-nav .nav-link::after {
        display: none;
    }
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: rgba(255, 255, 255, .16) !important;
    }
    .mobile-apply-btn {
        display: block !important;
        position: absolute;
        left: 55%;
        top: 14px;
        transform: translateX(-50%);
        z-index: 1000;
    }
    .mobile-apply-btn .btn {
        padding: .5rem 1.2rem;
        font-size: .9rem;
    }
}

/* --------------------------------------------------------------------------
   Hero / banner
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
}
.hero .banner,
.hero .banner img,
.hero .banner video,
.banner img,
.banner video {
    width: 100%;
    height: auto;
    min-height: 240px;
    max-height: 560px;
    object-fit: cover;
    display: block;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(8, 44, 80, .72) 0%,
        rgba(8, 44, 80, .45) 45%,
        rgba(8, 44, 80, .10) 100%);
    pointer-events: none;
}
@media (max-width: 768px) {
    .hero::after {
        background: linear-gradient(180deg,
            rgba(8, 44, 80, .35) 0%,
            rgba(8, 44, 80, .78) 100%);
    }
}

/* Hero content block */
.banner-content-left,
.main-heading {
    position: absolute;
    z-index: 10;
    color: #fff;
}
.banner-content-left {
    top: 50%;
    left: 4%;
    transform: translateY(-50%);
    max-width: 620px;
    padding: 0 16px;
}
.banner-content-left h1,
.main-heading h1 {
    color: #fff;
    font-weight: 800;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
    margin-bottom: 14px;
}
.banner-content-left p {
    color: rgba(255, 255, 255, .92);
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.6;
    margin-bottom: 22px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
}
.banner-content-left a,
.main-heading a {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
    color: var(--ink-900);
    font-weight: 800;
    letter-spacing: .02em;
    padding: .85rem 1.9rem;
    font-size: 1.05rem;
    border-radius: var(--radius-pill);
    border: none;
    box-shadow: 0 12px 28px rgba(212, 175, 55, .40);
    text-decoration: none;
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.banner-content-left a:hover,
.main-heading a:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(212, 175, 55, .50);
    color: var(--ink-900);
}
@media (max-width: 768px) {
    .banner-content-left {
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        width: 100%;
        max-width: 520px;
    }
    .banner-content-left p {
        font-size: 15px;
    }
    .banner-content-left a,
    .main-heading a {
        padding: .7rem 1.5rem;
        font-size: 1rem;
    }
}

/* --------------------------------------------------------------------------
   Cards, grids & content panels
   -------------------------------------------------------------------------- */
.visa-flow-card,
.country-grid .li_cls li,
.card {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform var(--speed) var(--ease),
                box-shadow var(--speed) var(--ease),
                border-color var(--speed) var(--ease);
}
.visa-flow-card:hover,
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--line-strong);
}
.visa-flow-card h3 {
    color: var(--ink-900);
}
.visa-flow-badge {
    background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-700) 100%);
    color: #fff;
    box-shadow: var(--shadow-brand);
}
.visa-flow-card .visa-flow-cta {
    background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-700) 100%);
    color: #fff;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-brand);
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.visa-flow-card .visa-flow-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(22, 103, 185, .40);
    color: #fff;
}

/* Country grid items */
.country-grid .li_cls li {
    background: linear-gradient(145deg, #fff 0%, var(--surface-soft) 100%);
    border: 1px solid rgba(22, 103, 185, .12);
    border-radius: var(--radius-sm);
}
.country-grid .li_cls li a {
    color: var(--brand-600);
    font-weight: 600;
}
.country-grid .li_cls li a:hover {
    color: var(--brand-800);
}

/* Generic content container polish */
main .container,
.container.count {
    background: var(--surface);
}

/* --------------------------------------------------------------------------
   Forms — modern inputs
   -------------------------------------------------------------------------- */
.form-control,
.form-control:focus {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--line-strong);
    padding: .65rem .9rem;
    font-size: .98rem;
    transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.form-control:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(22, 103, 185, .15);
}
.form-label,
label {
    color: var(--ink-700);
    font-weight: 700;
    font-size: .92rem;
}
.input-group-text {
    background: var(--surface-mist);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink-600);
}

/* --------------------------------------------------------------------------
   Accordion
   -------------------------------------------------------------------------- */
.accordion_t {
    background: var(--surface);
    color: var(--ink-700);
    font-weight: 700;
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.accordion_t:hover,
.accordion_t.active_t {
    background: var(--surface-soft);
    color: var(--brand-700);
}
.accordion_t:after {
    color: var(--brand-500);
}

/* --------------------------------------------------------------------------
   Footer — modern brand footer
   -------------------------------------------------------------------------- */
.footer {
    background: linear-gradient(135deg,
        var(--brand-900) 0%,
        var(--brand-800) 45%,
        var(--brand-700) 100%) !important;
    color: #fff;
    position: relative;
    padding-top: 40px;
}
.footer .wave .wave-path {
    fill: var(--surface);
}
.footer-links-row {
    row-gap: 2rem;
    margin-top: 24px;
}
.footer-links-stack a {
    color: rgba(255, 255, 255, .82);
    font-weight: 600;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    padding: 4px 0;
    transition: color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.footer-links-stack a:hover {
    color: var(--gold-400);
    transform: translateX(3px);
}
.footer-links-stack a i {
    color: var(--gold-500);
    transition: color var(--speed) var(--ease);
}
.footer .text-white {
    font-weight: 600;
}

/* Footer bottom bar */
.footer-bottom-bar {
    background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-800) 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer-bottom-bar a {
    color: rgba(255, 255, 255, .85);
    font-weight: 600;
    transition: color var(--speed) var(--ease);
}
.footer-bottom-bar a:hover {
    color: var(--gold-400);
}

/* Back-to-top */
#up {
    background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-700) 100%) !important;
    color: #fff !important;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-pill);
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
#up:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Floating apply button */
.apply_btn_fix {
    background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-700) 100%);
    color: #fff;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-lg);
    font-weight: 800;
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.apply_btn_fix:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(22, 103, 185, .45);
    color: #fff;
}

/* Cookie bar */
#cookie_div_bar {
    background: rgba(15, 46, 80, .96);
    backdrop-filter: blur(6px);
    color: #fff;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .25);
}
.cookie_action_btn {
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
    color: var(--ink-900);
    font-weight: 800;
    border-radius: var(--radius-pill);
    padding: 6px 16px;
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.cookie_action_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(212, 175, 55, .40);
}

/* --------------------------------------------------------------------------
   Why-choose-us & three-steps shared sections
   -------------------------------------------------------------------------- */
.red-box {
    background: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-600) 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.red-box h2 {
    color: #fff;
}
.red-box p {
    color: rgba(255, 255, 255, .85);
}
.icon-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.icon-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.icon-box .icon {
    font-size: 2.6rem;
}
.icon-box .icon-title {
    color: var(--ink-900);
    font-weight: 800;
}
.icon-box .arrow {
    color: var(--brand-500);
}

.process-step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.process-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.process-step::before {
    background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-700) 100%);
    box-shadow: var(--shadow-brand);
    width: 34px;
    height: 34px;
    font-size: 1rem;
}
.process-step h3 {
    color: var(--ink-900);
}

/* --------------------------------------------------------------------------
   Misc polish
   -------------------------------------------------------------------------- */
.wrapped-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* Breadcrumb */
.breadcrumb {
    background: var(--surface-soft);
    border-radius: var(--radius-sm);
    padding: .6rem 1rem;
}
.breadcrumb-item a {
    color: var(--brand-600);
    font-weight: 600;
}
.breadcrumb-item.active {
    color: var(--ink-500);
}

/* Tables */
.table {
    color: var(--ink-700);
}
.table thead th {
    background: var(--brand-50);
    color: var(--ink-900);
    font-weight: 800;
    border-bottom: 2px solid var(--brand-200);
}
.table tbody tr {
    transition: background-color var(--speed) var(--ease);
}
.table tbody tr:hover {
    background: var(--surface-soft);
}

/* Badges */
.badge {
    font-weight: 700;
    border-radius: var(--radius-pill);
}

/* Links inside content that use default blue */
a {
    color: var(--brand-600);
}

/* Focus visibility for keyboard users */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(22, 103, 185, .5);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
