/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
}

/* Hero Section */
.hero {
    background: url(../img/banner1.jfif);
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    text-align: center;
    color: white;
    padding: 60px 20px;
}

.hero h1 {
    margin: 0;
    font-size: 3rem;
}

.hero p {
    margin-top: 10px;
    font-size: 1.2rem;
}

/* Contact Information Section */
.contact-info {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 40px 20px;
    background-color: #fff;
}

.info-box {
    text-align: center;
    width: 22%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Add smooth transition for transform and box-shadow */
}

/* Hover effect for floating up */
.info-box:hover {
    transform: translateY(-10px);
    /* Move the box upwards */
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    /* Add a shadow to enhance the effect */
}

.info-box i {
    font-size: 28px;
    color: #007bff;
    margin-bottom: 10px;
}

.info-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.info-box p {
    font-size: 1rem;
    color: #666;
}

.info-box ul {
    list-style: none;
    padding: 0;
    font-size: 1rem;
    color: #333;
}

/* Layout for map and form */
.container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 0 40px;
    border-radius: 10px;
    max-width: 1536px;
    margin: auto;
}

.map-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 60%;
    /* Map section width */
}

.form-section {
    width: 40%;
    /* Form section width */
    position: relative;
    /* Position for overlay */
}

/* Google Maps Iframe */
iframe {
    border: none;
    border-radius: 10px;
    width: 100%;
    height: 500px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Form Styling */
#contactusForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#email {
    background-color: lightgrey;
}

.cufInput {
    width: 100%;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    color: #555;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.cufInput:focus {
    border-color: #3180ff;
    outline: none;
    box-shadow: 0 0 8px rgba(49, 128, 255, 0.2);
}

#message {
    resize: none;
    height: 150px;
}

/* Button Styling */
#cfBtn,
#mapsBtn {
    background-color: #3180ff;
    color: white;
    padding: 15px 20px;
    border: none;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#cfBtn:hover,
#mapsBtn:hover {
    background-color: #2a68cc;
    transform: translateY(-2px);
}

#cfBtn:active,
#mapsBtn:active {
    background-color: #20549f;
    transform: translateY(0);
}

#cfBtn {
    margin-bottom: 20px;
}

#mapsBtn {
    margin-bottom: 20px;
}

/* Overlay for users not logged in */
.overlay {
    display: none;
    /* Initially hidden */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 97%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Semi-transparent black background */
    color: white;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    z-index: 2;
    /* Ensure the overlay is above the form */
}

.overlay-content {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
}

.overlay p {
    font-size: 18px;
    margin-bottom: 20px;
}

.overlay button {
    background-color: #3180ff;
    color: white;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.overlay button:hover {
    background-color: #2a68cc;
}

@media (max-width: 480px) {


    /* Hero Section */
    .hero {
        padding: 30px 10px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Contact Information Section */
    .contact-info {
        flex-direction: column;
        gap: 20px;
        padding: 20px 10px;
    }

    .info-box {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .info-box i {
        font-size: 24px;
    }

    .info-box h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .info-box p {
        font-size: 0.9rem;
    }

    .info-box ul {
        font-size: 0.9rem;
    }

    /* Container Layout */
    .container {
        flex-direction: column;
        gap: 20px;
        padding: 20px 10px;
    }

    .map-section,
    .form-section {
        width: 100%;
    }

    /* Google Maps Iframe */
    iframe {
        height: 250px;
    }


    .cufInput {
        font-size: 14px;
        padding: 10px;
    }

    #message {
        height: 100px;
    }

    #cfBtn {
        padding: 12px;
        font-size: 14px;
    }

    /* Overlay */
    .overlay-content {
        width: 90%;
        font-size: 14px;
    }

    .overlay button {
        padding: 10px 20px;
        font-size: 14px;
    }
}