/* Initial hidden state */
body {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Shown state once main.js finishes */
body.loaded {
    opacity: 1;
}

/* Ensure the header and menu are never blocked */
.header-bottom {
    position: relative;
    z-index: 9999 !important;
}

.nav {
    z-index: 9998 !important;
}
/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --brand-red: #E01839;
    --brand-navy: #24265D;
    --brand-navy-dark: #161842;
    --brand-gradient: linear-gradient(135deg, #E01839 0%, #ff4b6b 100%);
    --white: #ffffff;
    --off-white: #f8fafc;
    --light-gray: #eef2f6;
    --border-color: #e2e8f0;
    --text-main: #334155;
    --text-muted: #64748b;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 15px rgba(224, 24, 57, 0.3);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --container-width: 1300px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    overflow-x: hidden;
    color: var(--text-main);
    background-color: var(--off-white);
    font-size: 0;
    line-height: 0;
    width: 100%;
}

body > * {
    font-size: 1rem;
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 25px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

section {
    padding: 80px 0;
}

/* =========================================
   2. HEADER & NAV
   ========================================= */
.header {
    display: block;
    width: 100%;
    z-index: 1000;
    position: relative; /* Added for stacking context */
}

.header-top {
    margin-top: 0 !important;
    background: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.header-top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.header-top img {
    max-height: 48px;
    width: auto;
}

.header-bottom {
    background: rgba(36, 38, 93, 0.95);
    backdrop-filter: blur(12px);
    width: 100%;
    z-index: 999;
    transition: 0.4s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-bottom.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
    animation: slideDown 0.4s ease;
    background: rgba(22, 24, 66, 0.98);
}

.header-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.nav {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 5px;
}

.nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 6px;
    transition: var(--transition);
    letter-spacing: 0.5px;
    position: relative;
    white-space: nowrap;
}

.nav a:hover, .nav a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--brand-red);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav a:hover::after, .nav a.active::after {
    width: 80%;
}

.nav a.quote-btn-nav {
    background-color: var(--brand-red);
    color: #fff !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    margin-inline-start: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(224, 24, 57, 0.2);
    border: 2px solid transparent;
}

.nav a.quote-btn-nav::after {
    display: none;
}

.nav a.quote-btn-nav:hover {
    background-color: #fff;
    color: var(--brand-red) !important;
    border-color: var(--brand-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(224, 24, 57, 0.3);
}

.nav a.quote-btn-nav.active {
    background-color: var(--brand-navy);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    transform: translateY(0);
    border-color: var(--brand-navy);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Lang Switcher */
.custom-lang-switcher {
    position: relative;
    margin-inline-end: 15px;
    z-index: 1002;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    font-family: inherit;
    white-space: nowrap;
}

.lang-btn:hover, .custom-lang-switcher:hover .lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
}

.lang-btn .flag-icon {
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

.lang-btn i {
    font-size: 0.7rem;
    opacity: 0.8;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    left: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 2000;
    overflow: hidden;
}

.custom-lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--brand-navy);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: #f8fafc;
    color: var(--brand-red);
    padding-left: 20px;
}

/* =========================================
   3. HERO & ANIMATIONS
   ========================================= */
.hero {
    position: relative;
    min-height: 85dvh;
    display: flex;
    align-items: center;
    background-color: var(--brand-navy);
    background-image: url('/images/hero-bg.svg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    overflow: hidden;
    padding-top: 75px;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(85deg, rgba(22, 24, 66, 0.98) 0%, rgba(36, 38, 93, 0.9) 60%, rgba(224, 24, 57, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 35px;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    text-wrap: balance;
}

.hero-rotator-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 50px;
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-left: 4px solid var(--brand-red);
    backdrop-filter: blur(10px);
    border-radius: 0 16px 16px 0;
    max-width: 750px;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-text-rotator {
    flex: 1;
    position: relative;
    transition: height 0.3s ease-out;
}

.hero-text-rotator p {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
    padding-bottom: 25px;
    pointer-events: none;
    color: rgba(255,255,255,0.95);
}

.hero-text-rotator p.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    pointer-events: auto;
}

.rotator-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.rotator-progress span {
    display: block;
    height: 100%;
    background: var(--brand-red);
    width: 0%;
}

.rotator-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.rotator-btn:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
}

.rotator-btn::before {
    content: '';
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--white);
    border-right: 2px solid var(--white);
}

.rotator-btn.up::before {
    transform: rotate(-45deg);
    margin-top: 4px;
}

.rotator-btn.down::before {
    transform: rotate(135deg);
    margin-bottom: 4px;
}

.page-hero {
    background-color: var(--brand-navy);
    color: #fff;
    padding: 160px 0 60px;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

@keyframes heroProgress {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* =========================================
   4. GENERAL SECTIONS & GRIDS
   ========================================= */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--brand-navy);
}

.section-title p {
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.services-grid, .features-grid, .partners-grid, .location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card, .feature-card, .partner-card, .info-card {
    background: var(--white);
    padding: 35px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card:hover, .feature-card:hover, .partner-card:hover, .info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--brand-red);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: auto;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3, .card-header h3, .partner-info h3, .card-body h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
    color: var(--brand-navy);
    font-weight: 700;
}

.service-card ul {
    margin-top: 15px;
}

.service-card li {
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
}

.service-card li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--brand-red);
    position: absolute;
    left: 0;
    top: 4px;
    font-size: 0.8rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.card-header img.service-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.feature-card:hover img.service-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Partners Specific */
.partners-section {
    padding: 80px 0;
    background-color: #fff;
}

.partner-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-logo {
    height: 100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.partner-logo img {
    max-height: 80px;
    max-width: 180px;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo img {
    filter: grayscale(0%);
    opacity: 1;
}

.become-partner {
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.become-partner h3 {
    font-size: 1.5rem;
    color: var(--brand-navy);
    margin-bottom: 10px;
}

/* =========================================
   5. PAGE SPECIFIC (Tracking, Forms, etc)
   ========================================= */

/* Quote/Wizard */
.quote-page .container {
    padding-top: 140px;
    padding-bottom: 80px;
}

.wizard-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 50px rgba(36, 38, 93, 0.12);
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.8);
}

.wizard-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.wizard-progress .step {
    text-align: center;
    position: relative;
    z-index: 2;
    opacity: 0.4;
    transition: 0.4s ease;
}

.wizard-progress .step.active {
    opacity: 1;
    color: var(--brand-navy);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.2rem;
    transition: 0.3s ease;
    color: var(--text-muted);
}

.step.active .step-icon {
    background: var(--brand-red);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.wizard-progress .line {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    margin: 0 15px;
    position: relative;
    top: -15px;
    z-index: 1;
    border-radius: 10px;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-grid.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

.input-group {
    margin-bottom: 25px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--brand-navy);
}

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: #fdfdfd;
    font-family: inherit;
    color: var(--text-main);
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    border-color: var(--brand-red);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(224, 24, 57, 0.1);
}

.custom-select-wrapper {
    position: relative;
    width: 130px;
    margin-right: 10px;
}

.custom-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    background: #fff;
    border: 1px solid var(--border-color);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    margin-top: 5px;
}

.custom-options.open {
    display: block;
}

.custom-option {
    padding: 12px 16px;
    font-size: 0.95rem;
    cursor: pointer;
    border-bottom: 1px solid #f8fafc;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
}

.custom-option:hover {
    background-color: #f0fdf4;
    color: var(--brand-navy);
}

.search-container {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.search-box {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
}

.search-box:focus {
    border-color: var(--brand-red);
}

.input-group.autocomplete {
    position: relative;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.autocomplete-items div:hover {
    background-color: #e9e9e9;
    color: var(--brand-red);
}

.phone-group {
    display: flex;
    gap: 10px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.checkbox-group input {
    width: 20px;
    height: 20px;
    accent-color: var(--brand-red);
}

.checkbox-group label {
    margin: 0;
    font-weight: 600;
    cursor: pointer;
}

.mode-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;

}

.mode-option {
    flex: 1 0 auto; 
    cursor: pointer;
    min-width: max-content;

}

    .mode-option input {
        display: none;
    }

.mode-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 30px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-weight: 700;
    transition: 0.3s;
    color: var(--text-muted);
    background: #fff;
    box-shadow: var(--shadow-sm);
    height: 100%; 
    width: 100%;
    white-space: nowrap;
}

.mode-option input:checked + .mode-box {
    border-color: var(--brand-red);
    background: #fff5f7;
    color: var(--brand-red);
    box-shadow: var(--shadow-glow);
}

.mode-error .mode-box {
    border-color: #E01839;
    background: #fff5f7;
    animation: slideDown 0.3s ease;
}

.cargo-item {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
}

.cargo-item .remove-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #ef4444;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    font-size: 1rem;
    padding: 8px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.add-item-btn {
    width: 100%;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    color: var(--text-muted);
    padding: 16px;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
}

.add-item-btn:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
    background: #fff5f7;
}

.grand-totals {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid #7dd3fc;
}

.grand-totals h4 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #075985;
    text-align: center;
    text-transform: uppercase;
    font-weight: 800;
}

.totals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    text-align: center;
}

.totals-grid div {
    background: rgba(255,255,255,0.7);
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    color: #0c4a6e;
    font-size: 0.95rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.form-actions.right {
    justify-content: flex-end;
}

/* Tracking Page */
.track-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 120px 0 100px;
    min-height: 70vh;
}

.tracking-search-container {
    max-width: 800px;
    margin: 0 auto;
}

.track-form-box {
    width: 100%;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.track-label {
    display: block;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--brand-navy);
    font-size: 1.1rem;
}

.input-group-track {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.input-group-track input {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    font-weight: 600;
    color: var(--brand-navy);
    min-width: 0; 
}

.input-group-track input:focus {
    border-color: var(--brand-red);
}

.btn-track {
    padding: 0 25px;
    font-size: 1.2rem;
    border-radius: 8px;
    background: var(--brand-navy);
    color: white;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.airline-list-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
    background: #fff;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    margin: 0;
    margin-top: 5px;
    width: 100%;
}

.airline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.airline-list li {
    border-bottom: 1px solid #f9f9f9;
}

.airline-list li:last-child {
    border-bottom: none;
}

.airline-list li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: 0.2s;
}

.airline-list li a:hover {
    background-color: #fff5f7;
    color: var(--brand-red);
    padding-left: 25px;
}

.airline-code {
    font-weight: 800;
    color: var(--brand-red);
    background: rgba(224, 24, 57, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    margin-right: 15px;
    display: inline-block;
    min-width: 50px;
    text-align: center;
    font-size: 0.9rem;
}

.airline-list-wrapper::-webkit-scrollbar {
    width: 8px;
}

.airline-list-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 8px 8px 0;
}

.airline-list-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.airline-list-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Visit & Contact Cards */
.visit-section {
    padding: 140px 0 100px;
    background-color: #f8fafc;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px;
    margin-top: 50px;
}

.info-card {
    background: #fff;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    border: 1px solid #edf2f7;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.head-office-card {
    border: 2px solid var(--brand-red);
    background: linear-gradient(to bottom right, #fff, #fff5f6);
}

.head-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--brand-red);
    color: white;
    padding: 8px 20px;
    border-bottom-right-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 2;
}

.card-body {
    padding: 40px 30px 20px 30px;
}

.card-body h3 {
    color: var(--brand-navy);
    font-size: 1.35rem;
    margin-bottom: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-body h3 i {
    color: var(--brand-red);
}

.card-body p {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
}

.card-body p i {
    color: var(--brand-red);
    width: 18px;
    margin-top: 4px;
    flex-shrink: 0;
}

.card-footer {
    padding: 0 30px 30px 30px;
    margin-top: auto;
}

.btn-map {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--brand-navy);
    color: white;
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
    width: 100%;
}

.btn-map:hover {
    background: var(--brand-red);
    color: white;
    transform: translateY(-2px);
}

.contact-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 50px rgba(36, 38, 93, 0.12);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.8);
}

.contact-info-box {
    background: var(--brand-navy);
    color: var(--white);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item i {
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--brand-red);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #e2e8f0;
}

.info-item p {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.contact-form-box {
    padding: 40px;
}

/* Footer & Popups */
.footer {
    background-color: var(--brand-navy-dark);
    padding: 60px 0;
    border-top: 4px solid var(--brand-red);
    margin-top: auto;
    color: #94a3b8;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-icons a:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    transform: translateY(-5px);
}

#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(22, 24, 66, 0.7);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

#status-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    z-index: 2001;
    display: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 380px;
}

#popup-overlay.active, #status-popup.active {
    display: block;
    opacity: 1;
}

#status-popup.active {
    transform: translate(-50%, -50%) scale(1);
}

#status-popup.success {
    border-top: 6px solid #10b981;
}

#status-popup.error {
    border-top: 6px solid #ef4444;
}

#status-popup span {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--brand-navy);
    font-weight: 700;
}

#status-popup button {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    padding: 10px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

#status-popup button:hover {
    background: var(--brand-navy);
    color: var(--white);
}

.btn {
    padding: 16px 35px;
 border-radius: 8px;
 font-weight: 700;
 cursor: pointer;
 border: none;
 transition: 0.3s;
 font-size: 1rem;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 white-space: nowrap; 
 width: auto;
 min-width: max-content; 

 gap: 10px;
 text-decoration: none;
 text-transform: uppercase;
 letter-spacing: 0.5px;
 background: var(--brand-gradient);
 color: var(--white);
 box-shadow: 0 8px 20px rgba(224, 24, 57, 0.2);
}

.btn:hover {
    background: linear-gradient(135deg, #c01431 0%, #e01839 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(224, 24, 57, 0.35);
    color: var(--white);
}

.prev-btn {
    background: #fff;
    color: var(--text-main);
    border: 1px solid #cbd5e1;
    box-shadow: none;
}

.prev-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

/* =========================================
   6. RESPONSIVE QUERIES
   ========================================= */

@media (max-width: 1200px) {
    .nav a {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .nav {
        gap: 2px;
    }

    .nav a.quote-btn-nav {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        margin-inline-start: 5px;
    }
}

@media (max-width: 992px) {
    .header-top {
        text-align: center;
        padding-bottom: 1px;
    }

    .header-top-container {
        flex-direction: row;
        gap: 5px;
    }

    .header-bottom-container {
        padding: 0 20px;
        width: 100%;
    }

    .nav-right {
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: space-between;
        flex-direction: row-reverse;
    }

    .nav {
        display: none;
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        height: auto;
        max-height: calc(100vh - 90px);
        background: rgba(22, 24, 66, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 10px 0 20px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        z-index: 998;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    .hamburger {
        display: flex;
    }

    .nav a {
        width: 100%;
        height: auto;
        padding: 12px 30px;
        border-bottom: 1px solid rgba(255,255,255,0.03);
        font-size: 1rem;
        white-space: normal;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .nav a.active {
        background: rgba(255, 255, 255, 0.05);
        color: var(--brand-red);
        border-left: 4px solid var(--brand-red);
        padding-left: 26px;
    }

    .nav a::after {
        display: none;
    }

    .nav a.quote-btn-nav {
        margin: 15px 20px 5px 20px;
        width: calc(100% - 40px);
        height: 45px;
        border-radius: 8px;
        text-align: center;
        justify-content: center;
        background-color: var(--brand-red);
        color: white !important;
        border: none;
        font-weight: 700;
        box-shadow: 0 4px 10px rgba(224, 24, 57, 0.3);
    }

    .lang-dropdown {
        right: 0;
        left: auto;
        min-width: 130px;
    }

    [dir="rtl"] .lang-dropdown {
        right: auto;
        left: 0;
    }

    .wizard-container {
        padding: 25px 15px;
    }

    .form-grid, .form-grid.three-col, .mode-selector, .totals-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-rotator-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-left: none;
        border-right: none;
        border-top: 4px solid var(--brand-red);
        border-radius: 0 0 16px 16px;
        padding: 20px;
        margin-top: 20px;
    }

    [dir="rtl"] .hero-rotator-wrapper {
        border-right: none;
        border-top: 4px solid var(--brand-red);
        border-radius: 0 0 16px 16px;
    }
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info-box {
        padding: 30px;
    }

    .contact-form-box {
        padding: 30px;
    }

    /* Track Page Fix */
    .track-page {
        padding-top: 40px !important;
        padding-bottom: 60px !important;
    }

    .track-form-box {
        padding: 20px;
    }

    .input-group-track input {
        font-size: 1rem;
        padding: 12px 15px;
    }
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */

@media (max-width: 576px) {
    /* 1. GLOBAL TEXT FIXES */
    html, body, h1, h2, h3, p, a, span, div {
        overflow-wrap: break-word !important; 
        word-wrap: break-word !important; 
        word-break: break-word !important; 
        max-width: 100%; 
    }

    /* 2. HEADER SIZING */
    .section-title h2 {
        font-size: 1.75rem; 
        line-height: 1.3;
        padding: 0 10px; 
    }

    .hero h1 {
        font-size: 2rem; 
        line-height: 1.2;
    }

    /* 3. CONTAINER PADDING */
    .container {
        padding: 0 20px; 
    }

    /* 4. TRACKING PAGE SPECIFIC */
    .track-page {
        padding-top: 40px !important;
        padding-bottom: 60px !important;
    }

    .tracking-search-container {
        width: 100%; 
    }

    .input-group-track {
        flex-direction: column; 
        gap: 10px;
    }

    /* Optional: If you prefer the button next to input, keep row but adjust size */
    .input-group-track {
        flex-direction: row;
    }

    .input-group-track input {
        min-width: 0; 
        width: 100%;
        font-size: 1rem;
    }
}

/* =========================================
   7. RTL SUPPORT
   ========================================= */

[dir="rtl"] body {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .input-group label, [dir="rtl"] .input-group input, [dir="rtl"] .input-group select, [dir="rtl"] .input-group textarea {
    text-align: right;
}

[dir="rtl"] .form-actions {
    flex-direction: row;
}

[dir="rtl"] .btn .fa-arrow-right {
    transform: rotate(180deg);
    margin-right: 10px;
    margin-left: 0;
}

[dir="rtl"] .btn .fa-arrow-left {
    transform: rotate(180deg);
    margin-left: 10px;
    margin-right: 0;
}

[dir="rtl"] .cargo-item .remove-btn {
    right: auto;
    left: 20px;
}

[dir="rtl"] .hero-rotator-wrapper {
    border-left: none;
    border-right: 4px solid var(--brand-red);
    border-radius: 16px 0 0 16px;
}

[dir="rtl"] .service-card li {
    padding-left: 0;
    padding-right: 25px;
}

[dir="rtl"] .service-card li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] #language-select {
    padding: 8px 14px 8px 32px;
    background-position: left 8px center;
}

[dir="rtl"] .phone-group select {
    border-radius: 0 6px 6px 0;
    border-left: none;
}

[dir="rtl"] .phone-group input {
    border-radius: 6px 0 0 6px;
}

[dir="rtl"] .wizard-progress {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav a::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

[dir="rtl"] .head-badge {
    left: auto;
    right: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 20px;
}

[dir="rtl"] .custom-select-wrapper {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .custom-options {
    left: auto;
    right: 0;
}

[dir="rtl"] .custom-select i {
    margin-left: 0;
    margin-right: 5px;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .lang-option:hover {
    padding-left: 15px;
    padding-right: 20px;
}

[dir="rtl"] .airline-list li a:hover {
    padding-left: 20px;
    padding-right: 25px;
}

[dir="rtl"] .airline-code {
    margin-right: 0;
    margin-left: 15px;
}

