/* Custom Mobile Header Fix */

/* These styles apply to all screen sizes */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.menu-wrapper {
    display: flex;
    align-items: center;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .header-container {
        padding: 10px 15px;
    }
    
    .mobile-menu-btn {
        display: block;
        font-size: 24px;
        background: transparent;
        border: none;
        padding: 5px;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 20px;
        display: none;
        flex-direction: column;
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
    }
}

/* Responsive and Scrollable Form Styles */
.contact-form-container {
    max-height: 80vh; /* Limit the height to 80% of the viewport height */
    overflow-y: auto; /* Enable vertical scrolling if content exceeds max-height */
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #fff;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .contact-form-container {
        width: 100%;
        height: 100vh;
        max-height: none;
        margin: 0;
        border-radius: 0;
        padding: 15px;
    }

    .contact-form-wrapper .form-content {
        display: flex;
        flex-direction: column;
    }

    /* Reset form row styles for mobile */
    .contact-form .form-row {
        display: block;
        margin: 0;
        padding: 0;
    }

    /* Make each form group take full width */
    .contact-form .form-row .form-group {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
        float: none;
    }

    /* Ensure inputs take full width */
    .contact-form input[type="tel"],
    .contact-form input[type="email"] {
        width: 100%;
        margin-bottom: 15px;
    }

    /* Add spacing between form groups */
    .contact-form .form-group {
        margin-bottom: 15px;
    }
}

/* Fixed Submit Button for Web Version */
.contact-form-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-form-wrapper .form-content {
    flex: 1;
    overflow-y: auto; /* Make the form content scrollable */
}

.contact-form-wrapper .submit-button {
    position: sticky;
    bottom: 0;
    width: 100%;
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    text-align: center;
    z-index: 10; /* Ensure the button stays on top */
}

/* Mobile Form Submit Button Fix */
@media (max-width: 768px) {
    .contact-form {
        padding-bottom: 70px; /* Add padding to ensure content doesn't hide behind the button */
    }
    
    .submit-btn {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90% !important;
        max-width: 300px;
        z-index: 1001 !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        margin: 0 auto !important;
        background-color: #ED7419 !important; /* EKA orange color */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    }
    
    .contact-form-container {
        padding-bottom: 80px; /* Extra space for the fixed button */
    }
}

/* Logo link styles */
.logo-wrapper a {
    display: inline-block;
    text-decoration: none;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

.logo-wrapper a:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.logo-wrapper a:focus {
    outline: none;
}

.logo-wrapper a img {
    display: block;
} 