/* Contact Page Styles */
.contact-page {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: #ff0000;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hero Section */
.contact-hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%), 
                url('../images/contact/contact-hero-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.contact-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.contact-hero h1 .highlight {
    color: #e8b639;
    position: relative;
    display: inline-block;
}

.contact-hero h1 .highlight:after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(232, 182, 57, 0.3);
    z-index: -1;
    border-radius: 3px;
}

.contact-hero .subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 700px;
    margin: 0 auto 50px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 60px auto 40px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 25px 35px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: #e8b639;
    line-height: 1;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.cta-button {
    display: inline-block;
    background: #e8b639;
    color: #1a1a1a;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    background: transparent;
    color: #e8b639;
    border-color: #e8b639;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-stats {
        gap: 15px;
        margin: 40px auto 30px;
    }
    
    .stat-item {
        padding: 20px 25px;
        min-width: 120px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
}

/* Glassmorphism Effect */
.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}


/* Contact Info Section */
.contact-info-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.icon-circle {
    width: 70px;
    height: 70px;
    background: #ff0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover .icon-circle {
    transform: rotate(15deg) scale(1.1);
    background: #d40000;
}

.info-card h3 {
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    color: #222;
}

.info-card p {
    margin-bottom: 20px;
    color: #555;
}

.info-card address {
    font-style: normal;
    margin-bottom: 20px;
    color: #555;
}

.map-link,
.call-link,
.email-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff0000;
    font-weight: 500;
    transition: color 0.3s ease;
}

.map-link:hover,
.call-link:hover,
.email-link:hover {
    color: #d40000;
    text-decoration: none;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #222;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #ff0000;
    margin: 15px auto 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.team-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-cta {
    background: white;
    color: #ff0000;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.team-cta:hover {
    background: #222;
    color: white;
    text-decoration: none;
}

.team-card h3 {
    margin: 20px 0 5px;
    font-family: 'Playfair Display', serif;
    color: #222;
}

.team-card p {
    color: #777;
    margin-bottom: 15px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 0 25px;
}

.team-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: #ff0000;
    color: white;
    transform: translateY(-3px);
}

/* Map Section */
.map-section {
    padding: 0 0 80px;
}

.map-container {
    position: relative;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-overlay h3 {
    margin-bottom: 15px;
    color: #222;
}

.btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff0000;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-directions:hover {
    background: #d40000;
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .contact-hero h1 {
        font-size: 2.8rem;
    }
    
    .modern-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.floating-label {
        grid-column: span 1;
    }
    
    .form-group:nth-child(3),
    .form-group:nth-child(5),
    .form-group:nth-child(6) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 100px 0 60px;
    }
    
    .contact-hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .map-container {
        height: 400px;
    }
    
    .map-overlay {
        max-width: 100%;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }
}

@media (max-width: 576px) {
    .contact-hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibility Focus Styles */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #ff0000;
    outline-offset: 2px;
}

/* Visually Hidden for Screen Readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* Error/Success Messages */
.form-error-container {
    margin-bottom: 30px;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-danger {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.2);
    color: #d40000;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #28a745;
}
/* Form Styles */
    .contact-form-section {
        padding: 80px 0;
        background-color: #f9f9f9;
    }
    
    .africa-contact-form {
        max-width: 1000px;
        margin: 0 auto;
        background: white;
        padding: 40px;
        border-radius: 10px;
        box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    }
    
    .africa-contact-form h2 {
        font-family: 'Playfair Display', serif;
        font-size: 2.2rem;
        color: #1a1a1a;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .form-description {
        text-align: center;
        color: #666;
        margin-bottom: 40px;
        font-size: 1.1rem;
    }
    
    .form-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group.full-width {
        grid-column: span 2;
    }
    
    .africa-contact-form label {
        display: block;
        margin-bottom: 8px;
        font-weight: 555;
        color: #333;
    }
    .africa-contact-form input[type="text"],
    .africa-contact-form input[type="email"],
    .africa-contact-form input[type="tel"],
    .africa-contact-form select,
    .africa-contact-form textarea {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 1rem;
        transition: all 0.3s ease;
    }
    
    .africa-contact-form input:focus,
    .africa-contact-form select:focus,
    .africa-contact-form textarea:focus {
        border-color: #e8b639;
        outline: none;
        box-shadow: 0 0 0 3px rgba(232, 182, 57, 0.2);
    }
    
    .africa-contact-form textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    .travelers-options {
        display: flex;
        gap: 20px;
    }
    
    .traveler-option {
        display: flex;
        align-items: center;
    }
    
    .traveler-option input {
        margin-right: 8px;
    }
    
    .checkbox-group {
        display: flex;
        align-items: center;
    }
    
    .checkbox-group input {
        margin-right: 10px;
    }
    
    .submit-btn {
        background: #ff0000;
        color: #1a1a1a;
        border: none;
        padding: 16px 40px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 50px;
        cursor: pointer;
        display: block;
        margin: 30px auto 0;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .submit-btn:hover {
        background: #ff0000;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(232, 182, 57, 0.3);
    }
    
    /* Responsive adjustments */
    @media (max-width: 768px) {
        .form-grid {
            grid-template-columns: 1fr;
        }
        
        .form-group.full-width {
            grid-column: span 1;
        }
        
        .travelers-options {
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .africa-contact-form {
            padding: 30px 20px;
        }
    }
    /* Hero Section - Updated with Mobile Fix */
/* ===== Hero Section - No Gap Fix ===== */
.contact-hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%), 
                url('../images/contact/contact-hero-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Fix for topbar overlap (mobile & desktop) */
.contact-hero::before {
    content: '';
    display: block;
    height: var(--header-height, 80px); /* Matches header height */
    margin-top: calc(-1 * var(--header-height, 80px)); /* Pulls content up */
    visibility: hidden;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    :root {
        --header-height: 60px; /* Mobile header height */
    }
    
    .contact-hero {
        padding: 60px 0 40px;
        min-height: calc(100vh - var(--header-height));
    }
}
/* SafariX Contact Form Styles */
:root {
    --primary-color: #ff0000; /* Red as default, change as needed */
    --primary-hover: #cc0000;
    --text-color: #333;
    --heading-color: #2c3e50;
    --description-color: #7f8c8d;
    --border-color: #ddd;
    --input-bg: #f9f9f9;
    --focus-glow: rgba(255, 0, 0, 0.1);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --form-bg: #ffffff;
    --form-radius: 10px;
}

.safarix-contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--form-bg);
    border-radius: var(--form-radius);
    box-shadow: var(--shadow);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
}

.safarix-contact-form h2 {
    color: var(--heading-color);
    margin-bottom: 15px;
    font-size: 28px;
    text-align: center;
}

.safarix-form-description {
    text-align: center;
    color: var(--description-color);
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
}

.safarix-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.safarix-form-group {
    margin-bottom: 20px;
}

.safarix-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--heading-color);
    font-size: 14px;
}

.safarix-form-group input[type="text"],
.safarix-form-group input[type="email"],
.safarix-form-group input[type="tel"],
.safarix-form-group select,
.safarix-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    background-color: var(--input-bg);
}

.safarix-form-group input[type="text"]:focus,
.safarix-form-group input[type="email"]:focus,
.safarix-form-group input[type="tel"]:focus,
.safarix-form-group select:focus,
.safarix-form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px var(--focus-glow);
}

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

.safarix-full-width {
    grid-column: 1 / -1;
}

.safarix-travelers-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.safarix-traveler-option {
    display: flex;
    align-items: center;
}

.safarix-traveler-option input[type="radio"] {
    margin-right: 8px;
    accent-color: var(--primary-color);
}

.safarix-checkbox-group {
    display: flex;
    align-items: center;
}

.safarix-checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    accent-color: var(--primary-color);
}

.safarix-checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.safarix-submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.safarix-submit-btn:hover {
    background-color: var(--primary-hover);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .safarix-form-grid {
        grid-template-columns: 1fr;
    }
    
    .safarix-contact-form {
        padding: 20px;
    }
}