body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

header {
    text-align: center;
    margin: 20px 0;
}

header .logo img {
    max-width: 200px;
}

/* Header Image section */
.header-image {
    background: url('header-image.jpg') no-repeat center center/cover;
    height: 400px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Overlay section */
.header-image .overlay {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Navigation menu */
.header-image nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: nowrap; /* Prevent wrapping of buttons */
}

/* Navigation menu item */
.header-image nav ul li {
    display: inline-block;
}

/* Navigation button styles */
.header-image nav ul li a {
    display: block;
    text-align: center;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.8);
    color: black;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.3s;
    min-width: 100px; /* Reduced min-width for flexibility */
    max-width: 100%; /* Ensure buttons scale down */
}

/* Hover effect */
.header-image nav ul li a:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

/* Introduction text box */
.header-image .intro-text {
    margin-top: 20px;
    text-align: center;
    color: white;
    font-size: 1.2rem;
    padding: 10px 20px;
    background-color: transparent;
    border-radius: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Services section */
.services {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.05); /* A subtle black overlay with opacity */
    border-radius: 10px; /* Rounded corners */
    max-width: 800px; /* Limit the width */
    margin: 20px auto; /* Center it on the page */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: subtle shadow */
}

.services h2 {
    font-size: 2rem;
    color: black;
    margin-bottom: 15px;
}

.services ul {
    list-style-type: none; /* Remove the dots (bullet points) */
    padding-left: 0; /* Remove any left padding */
    margin: 0;
    text-align: center; /* Center align the list items */
    color: black; /* Keep text color black */
    font-size: 1.2rem; /* Make the text a bit larger for readability */
}

.services ul li {
    margin-bottom: 10px; /* Adds spacing between service sentences */
}

/* Optional: Adjust the services section for mobile view */
@media (max-width: 768px) {
    .services {
        padding: 15px;
        margin: 20px;
    }

    .services h2 {
        font-size: 1.5rem;
    }

    .services ul li {
        font-size: 1rem; /* Adjust font size for smaller screens */
    }
}

/* Carousel Section */
.carousel {
    position: relative;
    overflow: hidden;
    width: calc(100% - 100px); /* Full width minus 50px padding on both sides */
    margin: 0 auto; /* Center the carousel */
    padding: 0;
}

.carousel-images {
    display: flex;
    transition: transform 1s ease;
}

.carousel-item {
    flex: 0 0 calc(100% / 4); /* Show 4 items at a time */
    position: relative;
    height: 350px; /* Set a fixed height for all carousel items */
    padding: 5px; /* Add spacing between carousel items */
    box-sizing: border-box; /* Ensure padding doesn't affect item size */
}

.carousel-item img {
    width: 100%; /* Make the image fill the container horizontally */
    height: 100%; /* Make the image fill the container vertically */
    object-fit: cover; /* Crop the image to fit the container while preserving aspect ratio */
    display: block;
    border-radius: 15px; /* Add rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow for depth */
    background-color: #f4f4f4; /* Optional: Add a background color for better contrast */
}

.carousel-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1;
}

.carousel-control.prev {
    left: 0;
}

.carousel-control.next {
    right: 0;
}

/* Request Form Section */
.request-form h2 {
    margin-top: 50px;
    text-align: center;
}

.request-form form {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between each element in the form */
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Include padding in width calculations */
}

.form-row {
    display: flex;
    gap: 20px; /* Space between input boxes in a row */
    flex-wrap: wrap; /* Ensure inputs wrap to a new row if needed */
    width: 100%; /* Make the row take the full form width */
}


.form-row .input-wrapper {
    flex: 1; /* Make each input take equal space */
    min-width: 300px; /* Minimum width to prevent shrinking too much */
}

.request-form label {
    display: block;
    margin-bottom: 5px;
}

.request-form input,
.request-form textarea {
    width: 100%; /* Ensure input spans the width of the wrapper */
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin: 0; /* Remove any margin that might push elements together */
    box-sizing: border-box; /* Include padding in width calculation */
}

.request-form textarea {
    min-height: 100px;
}

.request-form button {
    padding: 15px;
    background-color: green;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}

.request-form button:hover {
    background-color: #28a745;
}

/* Footer */
footer {
    background-color: #f4f4f4;
    margin-top: 50px;
    padding: 20px;
    text-align: center;
}

footer .contact-info a {
    color: blue;
    text-decoration: none;
}

.footer-note {
    margin-top: 10px;
    font-size: 12px;
    color: #929292;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel {
        width: calc(100% - 40px); /* Adjust spacing for smaller screens */
    }

    .carousel-item {
        flex: 0 0 calc(100% / 2); /* Show 2 items at a time */
        position: relative;
        height: 300px; /* Reduced the height for medium screens */
    }

    .header-image nav ul {
        gap: 10px; /* Adjust spacing between buttons */
    }

    .header-image nav ul li a {
        min-width: 80px; /* Further reduce button width on medium screens */
    }
}

@media (max-width: 480px) {
    /* No changes to header-image */
    .header-image {
        height: 400px; /* Keep the header height as it is for mobile */
    }

    .carousel-item {
        flex: 0 0 100%; /* Show one item at a time */
        height: 250px; /* Reduced the height for mobile devices */
    }

    .header-image nav ul {
        margin-top: 15px; /* Adjust spacing for buttons on mobile */
    }

    .header-image nav ul li a {
        padding: 10px 12px; /* Adjust padding for mobile */
        font-size: 0.9rem; /* Reduce font size for smaller screens */
    }
}

.carousel-header {
    text-align: center;
    margin-top: 30px; /* Add some space above the header */
    margin-bottom: 20px; /* Add some space below the header */
}

/* Adjust the header styling for smaller devices */
@media (max-width: 480px) {
    .carousel-header {
        font-size: 1.5rem; /* Reduce font size for mobile screens */
        margin-top: 20px; /* Reduce space above the header */
        margin-bottom: 10px; /* Reduce space below the header */
    }
}

/* Styling for the result message */
.result-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    max-width: 90%;
    z-index: 1000; /* Ensure it is above all other content */
    display: none; /* Hidden by default */
}

/* Success message (green background) */
.result-message.success {
    background-color: #d4edda;
    color: #155724;
}

/* Error message (red background) */
.result-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Fade-in effect */
.result-message.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}