/* CSS Variables for Corporate Theme */
:root {
    /* Color Palette */
    --clr-blue-dark: #003366; /* Classic Corporate Navy */
    --clr-blue-darker: #001a33;
    --clr-blue-light: #f0f7ff;
    --clr-orange: #ff6600; /* Strict Corporate Orange */
    --clr-orange-hover: #cc5200;
    --clr-white: #ffffff;
    --clr-gray-100: #f8f9fa;
    --clr-gray-200: #e9ecef;
    --clr-gray-400: #ced4da;
    --clr-text-main: #333333;
    --clr-text-light: #6c757d;
    
    /* Typography */
    --font-sans: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Roboto', 'Open Sans', sans-serif;
    
    /* Spacing & Utilities */
    --transition: all 0.2s ease-in-out;
    --radius-md: 4px; /* Harder corners for corporate look */
    --radius-lg: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 15px rgba(0,0,0,0.1);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--clr-text-main);
    line-height: 1.6;
    background-color: var(--clr-white);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--clr-blue-dark);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1140px; /* Standard bootstrap width */
    margin: 0 auto;
    padding: 0 15px;
}

.text-orange {
    color: var(--clr-orange);
}

.bg-light {
    background-color: var(--clr-gray-100);
}

.section {
    padding: 4rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    border: none;
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--clr-orange);
    color: var(--clr-white);
}

.btn-primary:hover {
    background-color: var(--clr-orange-hover);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--clr-blue-dark);
    color: var(--clr-blue-dark);
}

.btn-outline:hover {
    background-color: var(--clr-blue-dark);
    color: var(--clr-white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    padding: 1rem;
}

.btn-link {
    color: var(--clr-orange);
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
    text-transform: none;
}

.btn-link:hover {
    color: var(--clr-blue-dark);
    text-decoration: underline;
}

/* Navbar & Header Polish */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--clr-white);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.08); /* Nicer shadow */
    transition: var(--transition);
    border-top: none;
}

.top-bar {
    background: linear-gradient(90deg, #001a33 0%, #003366 100%) !important;
}

.nav-links a {
    font-weight: 600;
    color: #1e293b;
    padding: 0 15px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: #e31e24;
    transform: translateY(-1px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 25px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: #e31e24;
    transform: scaleX(0);
    transition: transform 0.3s;
}

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

/* Vibrant CTA Button */
.open-modal {
    background: #e31e24 !important;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(227, 30, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(227, 30, 36, 0); }
}

/* Mega Menu Styles */
.mega-menu {
    display: flex;
    align-items: center;
}

.menu-item {
    position: relative;
    height: 100%;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 600px;
    background: var(--clr-white);
    border: 1px solid var(--clr-gray-200);
    border-top: 3px solid var(--clr-orange);
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
    z-index: 100;
}

.menu-item.has-dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.dropdown-column h4 {
    color: var(--clr-blue-dark);
    font-size: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--clr-gray-200);
    padding-bottom: 0.5rem;
    text-transform: uppercase;
}

.dropdown-column a {
    display: block;
    color: var(--clr-text-main);
    padding: 0.5rem 0;
    font-size: 0.95rem;
    transition: color 0.2s;
    height: auto;
    font-weight: 400;
}

.dropdown-column a:hover {
    color: var(--clr-orange);
    padding-left: 5px;
    background: transparent;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0 60px 0;
    background: var(--clr-blue-dark);
    color: var(--clr-white);
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    color: var(--clr-white);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--clr-gray-200);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Flat Search Widget */
.search-widget {
    background: var(--clr-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: inline-block;
    width: 100%;
    max-width: 900px;
}

.flex-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.flex-form select, .flex-form input {
    background: var(--clr-white);
    border: 1px solid var(--clr-gray-400);
    color: var(--clr-text-main);
    font-size: 1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    flex: 1;
}

.flex-form select:focus, .flex-form input:focus {
    outline: none;
    border-color: var(--clr-orange);
}

/* Service Boxes */
.service-box {
    background: var(--clr-white);
    padding: 2rem;
    border: 1px solid var(--clr-gray-200);
    text-align: center;
    transition: var(--transition);
}

.service-box:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--clr-orange);
}

/* Country Grid */
.country-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.country-card {
    background: var(--clr-white);
    border: 1px solid var(--clr-gray-200);
    transition: var(--transition);
}

.country-card:hover {
    box-shadow: var(--shadow-md);
}

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.country-card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-content h3 a {
    color: var(--clr-blue-dark);
}

.card-content h3 a:hover {
    color: var(--clr-orange);
}

/* Footer */
.footer {
    background: var(--clr-blue-dark);
    padding: 3rem 0;
    color: var(--clr-gray-400);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .flex-form {
        flex-direction: column;
    }
    
    .flex-form select, .flex-form input, .flex-form .btn {
        width: 100%;
    }
    
    .nav-links, .cta-btn-mobile {
        display: none !important;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
/* ELT Multi-Step Modal Styles */
.steps-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.step-dot {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: rgba(255,255,255,0.5);
}

.step-dot.active {
    background: #ff6600;
    border-color: #ff6600;
    color: white;
}

.step-line {
    height: 2px;
    background: rgba(255,255,255,0.2);
    width: 40px;
}

.program-btn, .country-btn {
    background: white;
    color: #003366;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.program-btn input, .country-btn input {
    display: none;
}

.program-btn:has(input:checked), .country-btn:has(input:checked) {
    background: #ff6600;
    color: white;
}

.program-btn:hover, .country-btn:hover {
    background: #f0f7ff;
}

.form-step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbar for Modal Sidebar */
.modal-cities-side div::-webkit-scrollbar {
    width: 4px;
}
.modal-cities-side div::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}
.modal-cities-side div::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
}

/* Apple Glass & Advanced Form Styles */
.apple-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.apple-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.apple-modal {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    padding: 3rem 2rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-modal-overlay.active .apple-modal {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    background: #f1f1f2;
    border: none;
    width: 30px; height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #1d1d1f;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}

.close-modal:hover {
    background: #e5e5ea;
}

.advanced-form .form-group {
    margin-bottom: 1.2rem;
}

.advanced-form input, .advanced-form select {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    background: rgba(255,255,255,0.9);
    font-size: 1rem;
    color: #1d1d1f;
    font-family: inherit;
    transition: all 0.2s ease;
}

.advanced-form input:focus, .advanced-form select:focus {
    outline: none;
    border-color: #0071e3; /* Apple Blue */
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.btn-primary {
    background-color: #0071e3; /* Apple Blue for Primary Buttons */
    color: white;
    border: none;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #0077ed;
    transform: scale(1.02);
}
