/* ── Brand Variables ── */
:root {
    --brand-primary: #f80113;
    --brand-secondary: #002b69;
    --brand-primary-light: rgba(248, 1, 19, 0.07);
    --brand-secondary-light: rgba(2, 46, 110, 0.07);
}

/* ── Brand Utility Classes ── */
.bg-brand-primary {
    background-color: #f80113 !important;
}

.bg-brand-secondary {
    background-color: #002b69 !important;
}

.text-brand-primary {
    color: #f80113 !important;
}

.text-brand-secondary {
    color: #002b69 !important;
}

.bg-brand-primary-light {
    background-color: rgba(248, 1, 19, 0.07) !important;
}

.bg-brand-secondary-light {
    background-color: rgba(2, 46, 110, 0.07) !important;
}

.border-brand-primary {
    border-color: #f80113 !important;
}

.border-brand-secondary {
    border-color: #002b69 !important;
}

/* ── Brand Buttons ── */
.btn-brand-primary {
    background-color: #f80113;
    border-color: #f80113;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
}

.btn-brand-primary:hover,
.btn-brand-primary:focus,
.btn-brand-primary:active {
    background-color: #d0000f;
    border-color: #d0000f;
    color: #fff;
}

.btn-brand-primary:disabled {
    background-color: #f80113 !important;
    border-color: #f80113 !important;
    color: #fff !important;
    opacity: 0.5 !important;
}

.btn-brand-secondary {
    background-color: #002b69;
    border-color: #002b69;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
}

.btn-brand-secondary:hover,
.btn-brand-secondary:focus,
.btn-brand-secondary:active {
    background-color: #011f4d;
    border-color: #011f4d;
    color: #fff;
}

.btn-outline-brand-secondary {
    color: #002b69;
    border: 2px solid #002b69;
    background: transparent;
    font-weight: 600;
    border-radius: 4px;
}

.btn-outline-brand-secondary:hover,
.btn-outline-brand-secondary:focus {
    background-color: #002b69;
    border-color: #002b69;
    color: #fff;
}

/* ── Navbar (Bootstrap fallback — new design uses site-nav-link classes) ── */
.navbar-brand-title {
    color: #002b69;
    font-weight: 900;
    font-size: 1rem;
    line-height: 1.1;
}

.navbar-brand-sub {
    color: #f80113;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(248, 1, 19, 0.25);
}

/* ── Inline field validation ── */
.field-error {
    font-size: 0.8rem;
    font-weight: 500;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, .15);
}

/* Select2 invalid state */
select.is-invalid+.select2-container .select2-selection--single,
select.is-invalid+.select2-container .select2-selection--multiple {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, .15) !important;
}

/* ── Dropdown ── */
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(2, 46, 110, 0.07);
    color: #002b69;
}

.dropdown-item.active {
    background-color: #002b69;
    color: #fff;
}

/* ── Scroll-reveal animation ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ── Hero entrance ── */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-animate {
    animation: heroFadeUp 0.8s ease forwards;
}

.hero-animate-delay {
    opacity: 0;
    animation: heroFadeUp 0.8s ease 0.25s forwards;
}

.hero-animate-delay-2 {
    opacity: 0;
    animation: heroFadeUp 0.8s ease 0.45s forwards;
}

/* ── Float badge ── */
@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }
}

.float-badge {
    animation: floatBadge 3s ease-in-out infinite;
}

/* ── Card hover lift ── */
.card-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(2, 46, 110, 0.14) !important;
}

/* ── Hero visa type tile hover ── */
.visa-type-tile:hover {
    background: rgba(248, 1, 19, 0.14) !important;
    border-color: rgba(248, 1, 19, 0.4) !important;
}

/* ── FAQ icon ── */
.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.rotated {
    transform: rotate(180deg);
}

/* ── Step line ── */
.step-line {
    position: relative;
}

/* ── Section label ── */
.section-label {
    color: #f80113;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

/* ── Stats number ── */
.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

/* ── Yii2 form validation ── */
.field-error input,
.field-error textarea,
.field-error select {
    border-color: #f80113 !important;
}

.help-block-error {
    color: #f80113;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.has-error .help-block {
    color: #f80113;
    font-size: 0.8rem;
}

/* ── Yii2 utilities ── */
.not-set {
    color: #f80113;
    font-style: italic;
}

.hint-block {
    display: block;
    margin-top: 0.3rem;
    color: #6c757d;
    font-size: 0.8rem;
}

.error-summary {
    color: #a80010;
    background: rgba(248, 1, 19, 0.07);
    border-left: 3px solid rgba(248, 1, 19, 0.4);
    padding: 10px 20px;
    margin: 0 0 15px 0;
    border-radius: 0.25rem;
}

/* ── Login page ── */
.login-brand-panel {
    background: linear-gradient(135deg, #002b69 0%, #033580 100%);
}

.login-btn {
    background-color: #f80113;
    border-color: #f80113;
    border-radius: 4px;
}

.login-btn:hover {
    background-color: #d0000f;
    border-color: #d0000f;
}

.login-split-card {
    width: 100%;
    max-width: 820px;
    border-radius: 16px;
}

.login-brand-title {
    font-size: 2.5rem;
}

.login-mobile-logo {
    max-height: 36px;
}

/* ── Footer links ── */
.footer-link:hover {
    color: #f80113 !important;
}

.social-icon:hover {
    color: #002b69 !important;
}

.footer-col-heading {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
}

.footer-logo-box {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f80113 0%, #d0000f 100%);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-logo-m {
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
    line-height: 1;
}

/* ── Icons ── */
.icon-sm {
    width: 18px;
    height: 18px;
}

.icon-lg {
    width: 20px;
    height: 20px;
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.site-navbar {
    background: #fff;
    border-bottom: 1px solid rgba(2, 46, 110, 0.1);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 16px rgba(2, 46, 110, 0.07);
}

.navbar-logo {
    height: 44px;
    width: auto;
}

.site-nav-link {
    padding: 0.45rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}

.site-nav-link:hover {
    background: rgba(2, 46, 110, 0.07);
    color: #002b69;
}

.site-nav-link.active {
    background: rgba(2, 46, 110, 0.1);
    color: #002b69;
}

.nav-track-wrap {
    position: relative;
}

.nav-track-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    background: transparent;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}

.nav-track-btn:hover {
    background: rgba(2, 46, 110, 0.07);
    color: #002b69;
}

.nav-track-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.nav-track-arrow.open {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid rgba(2, 46, 110, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(2, 46, 110, 0.12);
    padding: 6px;
    z-index: 200;
}

.nav-dropdown-menu.open {
    display: block;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 4px;
    text-decoration: none;
    color: #374151;
    transition: background 0.15s;
}

.nav-dropdown-item:hover {
    background: rgba(2, 46, 110, 0.05);
}

.nav-cta-mdac {
    padding: 0.45rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #002b69;
    border: 2px solid rgba(2, 46, 110, 0.25);
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.18s, border-color 0.18s;
    white-space: nowrap;
}

.nav-cta-mdac:hover {
    background: rgba(2, 46, 110, 0.07);
    border-color: #002b69;
    color: #002b69;
}

.nav-cta-visa {
    padding: 0.45rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    background: #f80113;
    border: 2px solid #f80113;
    border-radius: 4px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.18s;
    white-space: nowrap;
}

.nav-cta-visa:hover {
    background: #d0000f;
    border-color: #d0000f;
    color: #fff;
}

/* ── Mobile Drawer ── */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 90vw);
    background: #fff;
    z-index: 1050;
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.hidden {
    display: none;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: color 0.15s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #002b69;
}

.mobile-sub-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 0.5rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: color 0.15s;
}

.mobile-sub-link:hover {
    color: #002b69;
}

/* ══════════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════════ */
.page-header-section {
    background: linear-gradient(135deg, #002b69 0%, #033580 100%);
    padding: 2.5rem 0 2rem;
    color: #fff;
}

.page-header-section .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.page-header-section .breadcrumb-item a:hover {
    color: #fff;
}

.page-header-section .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.55);
}

.page-header-section .breadcrumb-divider {
    color: rgba(255, 255, 255, 0.4);
}

.page-header-section .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

.page-header-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: #fff;
    margin: 0;
}

/* ══════════════════════════════════════════
   FORM CARD
══════════════════════════════════════════ */
.form-card {
    background: #fff;
    border: 1px solid rgba(2, 46, 110, 0.1);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(2, 46, 110, 0.06);
}

.form-card-header {
    background: rgba(2, 46, 110, 0.04);
    border-bottom: 1px solid rgba(2, 46, 110, 0.08);
    padding: 1rem 1.25rem;
}

.form-card-header h5 {
    color: #002b69;
    font-weight: 700;
    font-size: 0.95rem;
}

.form-card-body {
    padding: 1.5rem 1.25rem;
}

/* ══════════════════════════════════════════
   STEP INDICATOR
══════════════════════════════════════════ */
.step-indicator {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0 8px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    min-width: 68px;
    max-width: 90px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e5e7eb;
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
    position: relative;
    z-index: 1;
}

.step.active .step-circle {
    background: #f80113;
    border-color: #f80113;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(248, 1, 19, 0.15);
}

.step.completed .step-circle {
    background: #002b69;
    border-color: #002b69;
    color: #fff;
}

.step-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #9ca3af;
    margin-top: 7px;
    text-align: center;
    line-height: 1.3;
    max-width: 88px;
}

.step.active .step-label {
    color: #f80113;
    font-weight: 700;
}

.step.completed .step-label {
    color: #002b69;
}

.step-line {
    flex: 1 1 0;
    height: 2px;
    background: #e5e7eb;
    margin-top: 19px;
    align-self: flex-start;
    min-width: 16px;
    max-width: 100px;
}

.step-line.completed {
    background: #002b69;
}

/* ══════════════════════════════════════════
   REFERENCE BANNER
══════════════════════════════════════════ */
.ref-banner {
    display: inline-block;
    background: rgba(2, 46, 110, 0.07);
    border: 1px solid rgba(2, 46, 110, 0.15);
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-size: 0.92rem;
    color: #002b69;
    font-weight: 500;
}

.ref-banner strong {
    color: #f80113;
    font-size: 1rem;
}

/* ══════════════════════════════════════════
   CONFIRM CARD
══════════════════════════════════════════ */
.confirm-card {
    background: #fff;
    border: 1px solid rgba(2, 46, 110, 0.1);
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 24px rgba(2, 46, 110, 0.08);
}

.confirm-icon {
    width: 80px;
    height: 80px;
    background: rgba(25, 135, 84, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2.5rem;
    color: #198754;
}

/* ══════════════════════════════════════════
   REVIEW TABLE
══════════════════════════════════════════ */
.review-table {
    width: 100%;
}

.review-table th {
    width: 20%;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.5rem 0.75rem;
    vertical-align: top;
    border-bottom: 1px solid rgba(2, 46, 110, 0.07);
    white-space: nowrap;
}

.review-table td {
    width: 30%;
    font-size: 0.875rem;
    color: #111827;
    padding: 0.5rem 0.75rem;
    vertical-align: top;
    border-bottom: 1px solid rgba(2, 46, 110, 0.07);
}

.review-table tr:last-child th,
.review-table tr:last-child td {
    border-bottom: none;
}

.review-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

/* ══════════════════════════════════════════
   MDAC / SECTION STYLES
══════════════════════════════════════════ */
.section-number {
    width: 32px;
    height: 32px;
    background: #f80113;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.section-subheading {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #f3f4f6;
}

.declaration-box {
    background: rgba(2, 46, 110, 0.04);
    border: 1px solid rgba(2, 46, 110, 0.12);
    border-radius: 10px;
    padding: 1.25rem;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.7;
}

/* ── Document thumbnail ── */
.doc-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(2, 46, 110, 0.12);
}

/* ── Info list ── */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: #374151;
    display: flex;
    align-items: flex-start;
    gap: 0;
}

/* ── Confirmation steps ── */
.confirmation-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.confirmation-steps li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.confirmation-steps li:last-child {
    border-bottom: none;
}

/* ══════════════════════════════════════════
   NAVBAR JS BEHAVIOUR (dropdown toggle)
══════════════════════════════════════════ */
/* Handled via JS in header; CSS states already defined above */

/* ══════════════════════════════════════════
   RESPONSIVE TWEAKS
══════════════════════════════════════════ */
@media (max-width: 767px) {
    .confirm-card {
        padding: 2rem 1rem;
    }

    .form-card-body {
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 575px) {
    .step-indicator {
        justify-content: space-between;
        padding: 0 0 8px;
    }

    .step {
        min-width: 48px;
        max-width: 60px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .step.active .step-circle {
        box-shadow: 0 0 0 3px rgba(248, 1, 19, 0.15);
    }

    .step-label {
        font-size: 0.62rem;
        margin-top: 5px;
        max-width: 56px;
    }

    .step-line {
        margin-top: 15px;
        min-width: 8px;
    }
}