* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e3a8a;
    --deep-navy: #0f172a;
    --light-gold: #f0e8d8;
    --accent-gold: #d4af37;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --dark-gray: #64748b;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--deep-navy);
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '✈';
    font-size: 1.8rem;
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-auth button,
.nav-auth-mobile button {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.login-btn {
    background: transparent;
    color: var(--white);
    border: 1.5px solid var(--white);
}

.login-btn:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.register-btn {
    background: linear-gradient(135deg, var(--accent-gold), #e6b800);
    color: var(--deep-navy);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-auth-mobile {
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 58, 138, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), #e6b800);
    color: var(--deep-navy);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1.5px solid var(--white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating-cards {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: var(--deep-navy);
    font-weight: 600;
    font-size: 0.95rem;
    animation: fadeInUp 0.8s ease-out forwards;
}

.float-card-1 { top: 10%; left: -60px; animation-delay: 0.1s; }
.float-card-2 { top: 35%; right: -60px; animation-delay: 0.3s; }
.float-card-3 { bottom: 10%; left: -60px; animation-delay: 0.2s; }

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

/* Tracking Section */
.tracking-section {
    padding: 4rem 2rem;
    background: var(--light-gray);
}

.tracking-container {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--deep-navy);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 3rem;
}

.tracking-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.tracking-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.tracking-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tracking-form input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.tracking-form input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.tracking-form button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-blue), #0f172a);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.tracking-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

.tracking-result {
    display: none;
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-gold);
}

.tracking-result.show {
    display: block;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tracking-header {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tracking-info {
    font-size: 0.95rem;
}

.tracking-info-label {
    color: var(--dark-gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.tracking-info-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--deep-navy);
}

/* Current status — the one status block the public tracking page shows */
.tracking-current {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
}

.tracking-current.is-hidden,
.tracking-current-desc.is-hidden,
.tracking-current-reason.is-hidden {
    display: none;
}

.tracking-current-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.tracking-current-badge {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: #e2e8f0;
    color: var(--deep-navy);
}

.tracking-current-badge.tint-success { background: #dcfce7; color: #166534; }
.tracking-current-badge.tint-info    { background: #dbeafe; color: #1e40af; }
.tracking-current-badge.tint-warning { background: #fef3c7; color: #92400e; }
.tracking-current-badge.tint-danger  { background: #fee2e2; color: #991b1b; }

.tracking-current-time {
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.tracking-current-desc {
    margin: 0.8rem 0 0;
    font-size: 0.95rem;
    color: var(--deep-navy);
}

/* The explanation an admin gave for a halted shipment. */
.tracking-current-reason {
    margin-top: 0.9rem;
    padding: 0.85rem 1rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    font-size: 0.92rem;
    color: #7c2d12;
}

.tracking-current-reason strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Shipment route map */
.tracking-map-wrap {
    margin-top: 2rem;
}

.tracking-map-wrap.is-hidden {
    display: none;
}

.tracking-map-title {
    margin: 0 0 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--dark-gray);
}

.tracking-map {
    height: 340px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    /* Leaflet panes stack above the sticky nav without this. */
    z-index: 0;
}

.tracking-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.85rem;
    font-size: 0.82rem;
    color: var(--dark-gray);
}

.tracking-map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--white);
}

.legend-origin { background: var(--primary-blue); }
.legend-scan { background: var(--dark-gray); }
.legend-current { background: var(--accent-gold); }
.legend-destination { background: var(--deep-navy); }

.tracking-map-fallback {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

@media (max-width: 600px) {
    .tracking-map {
        height: 260px;
    }
}

.tracking-timeline {
    margin-top: 2rem;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInLeft 0.5s ease-out forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-dot {
    width: 24px;
    height: 24px;
    background: var(--accent-gold);
    border: 3px solid var(--primary-blue);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.timeline-content {
    flex: 1;
}

.timeline-status {
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 0.25rem;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* Services Section */
.services {
    padding: 5rem 2rem;
    background: var(--white);
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.15);
    border-color: var(--accent-gold);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    height: 70px;
    display: flex;
    align-items: center;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--deep-navy);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    flex: 1;
    line-height: 1.6;
}

.service-card .btn-learn {
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), #0f172a);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
}

.service-card .btn-learn:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

/* About Section */
.about {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--deep-navy), var(--primary-blue));
    color: var(--white);
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: #cbd5e1;
    font-weight: 600;
}

.about-image {
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

/* Why Choose Us */
.why-us {
    padding: 5rem 2rem;
    background: var(--light-gray);
}

.why-us-container {
    max-width: 1400px;
    margin: 0 auto;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.why-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.why-card h3 {
    font-size: 1.2rem;
    color: var(--deep-navy);
    margin-bottom: 1rem;
    font-weight: 700;
}

.why-card p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: 5rem 2rem;
    background: var(--white);
}

.how-it-works-container {
    max-width: 1200px;
    margin: 0 auto;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.how-it-works-grid::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold), var(--primary-blue));
    display: none;
}

@media (min-width: 1024px) {
    .how-it-works-grid::before {
        display: block;
    }
}

.step-card {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-gold), #e6b800);
    color: var(--deep-navy);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.step-card h3 {
    font-size: 1.2rem;
    color: var(--deep-navy);
    margin-bottom: 1rem;
    font-weight: 700;
}

.step-card p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Team Section */
.team {
    padding: 5rem 2rem;
    background: var(--light-gray);
}

.team-container {
    max-width: 1400px;
    margin: 0 auto;
}

.team-image {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

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

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.team-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.team-photo {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-gold));
    overflow: hidden;
}

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

.team-info {
    padding: 2rem 1.5rem;
    text-align: center;
}

.team-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 0.5rem;
}

.team-position {
    font-size: 0.95rem;
    color: var(--accent-gold);
    font-weight: 600;
}

/* Testimonials */
.testimonials {
    padding: 5rem 2rem;
    background: var(--white);
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-gold);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 0.25rem;
}

.author-rating {
    color: var(--accent-gold);
    font-size: 0.95rem;
}

/* CTA Section */
.cta {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--deep-navy), var(--primary-blue));
    color: var(--white);
    text-align: center;
}

.cta-container {
    max-width: 900px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta p {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background: var(--light-gray);
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form-container h3 {
    font-size: 1.8rem;
    color: var(--deep-navy);
    margin-bottom: 2rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--deep-navy);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    padding: 0;
    border: none;
    accent-color: var(--primary-blue);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
    font-size: 1.3rem;
    color: var(--deep-navy);
    margin-bottom: 2rem;
    font-weight: 700;
}

.contact-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-label {
    color: var(--dark-gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.contact-value {
    color: var(--deep-navy);
    font-weight: 600;
    font-size: 1.05rem;
}

.contact-value a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

.contact-value a:hover {
    color: var(--accent-gold);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: var(--deep-navy);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-brand::before {
    content: '✈';
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.footer-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-bottom {
    text-align: center;
    color: #cbd5e1;
    font-size: 0.95rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-gold), #e6b800);
    color: var(--deep-navy);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
}

.back-to-top.show {
    display: flex;
}

/* Chat Button */
.chat-btn {
    position: fixed;
    bottom: 2rem;
    right: 7rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--deep-navy));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--deep-navy);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-gray);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--deep-navy);
    transform: rotate(90deg);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 10001;
    animation: slideInUp 0.4s ease-out;
}

.toast.show {
    display: block;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .nav-auth {
        display: none;
    }

    .nav-auth-mobile {
        display: flex;
        gap: 1rem;
        margin-top: 0.5rem;
        width: 100%;
    }

    .nav-auth-mobile button {
        flex: 1;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-image {
        height: 300px;
        order: -1;
    }

    .float-card {
        display: none;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 350px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .tracking-form {
        flex-direction: column;
    }

    .tracking-form button {
        width: 100%;
    }

    .tracking-header {
        grid-template-columns: 1fr;
    }

    .chat-btn {
        bottom: 6rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .services-grid,
    .why-us-grid,
    .team-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 1.5rem;
    }
}

/* Form validation states (server-side errors) */
.field-error {
    display: block;
    margin-top: 0.4rem;
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 500;
}

input.has-error,
textarea.has-error {
    border-color: #dc2626 !important;
}

input.has-error:focus,
textarea.has-error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.tracking-form button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

button[type="submit"]:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Authenticated nav greeting */
.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    font-size: 0.95rem;
}

.nav-user strong {
    color: var(--accent-gold);
}

/* Cargo contents on the public tracking result. */
.tracking-items {
    margin-top: 2rem;
}

.tracking-items.is-hidden {
    display: none;
}

.tracking-items-title {
    margin: 0 0 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--dark-gray);
}

.tracking-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.tracking-items-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.85rem;
    padding: 0.8rem 1rem;
    background: var(--white);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px;
}

.tracking-item-name {
    font-weight: 600;
    color: var(--deep-navy);
}

.tracking-item-meta {
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.tracking-item-desc {
    flex: 1 1 100%;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

/* ---------- Contact section: tightened layout ----------
   Overrides the generous defaults above so "Get In Touch" reads as a compact
   card rather than a full-page form. Declared after the originals so these win
   without editing the shared .form-group rules other pages rely on. */

.contact {
    padding: 3.5rem 2rem;
}

.contact-container {
    max-width: 1100px;
    grid-template-columns: 1.6fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-form-container {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-form-container h3 {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.contact-form-intro {
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    color: var(--dark-gray);
}

/* Two short fields per row. */
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

.contact .form-group {
    margin-bottom: 1rem;
}

.contact .form-group label {
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.contact .form-group input,
.contact .form-group textarea {
    padding: 0.65rem 0.8rem;
    border-width: 1.5px;
    font-size: 0.92rem;
}

.contact .form-group textarea {
    min-height: 0;
}

.contact-submit {
    width: auto;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
}

/* The details panel matches the form's tighter rhythm. */
.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    font-size: 1.15rem;
    margin-bottom: 1.35rem;
}

.contact-item {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
}

.contact-label {
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .contact {
        padding: 2.5rem 1.25rem;
    }

    /* Side-by-side fields stack on narrow screens. */
    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .contact-submit {
        width: 100%;
    }
}
