body {
    margin: 0;
    min-height: 100vh;
}

.banner {
    position: relative;
    margin-top: 30px;
    width: 100%;
    height: 100dvh; /* keep it fullscreen */
    overflow: hidden;
}

.banner::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px; /* adjust for fade length */
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #ffffff 100%);
    z-index: 2;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.banner-text {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    text-align: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}


.banner-text.visible {
    opacity: 1;
}

.banner-text h2 {
    font-size: 80px; /* Adjust font size for the paragraph */
    margin-bottom: 50px;
}



.banner-button-container {
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    text-align: center;
    gap: 10px;
}

.banner-button-container a {
    background-color: #ffffff; /* Dark button background */
    color: rgb(0, 0, 0);
    padding: 5px 50px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px; 
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease-in-out;
    top: 80%;
}

.banner-button-container a:hover {
    background-color: #d0cfcf; /* Change button color on hover */
}


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

.section {
    position: relative; /* Ensures that children elements can be positioned relative to this container */
}

.section img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.section img:hover {
    transform: scale(1.05);
}

.image-container {
    position: relative;
    overflow: hidden;
}


.image-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; /* adjust this value to make the fade longer or shorter */
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #ffffff 100%);
    z-index: 1;
}


.button-container {
    position: absolute; /* Positions the button-container within the section */
    top: 80%; /* Adjusts the distance from the top of the container */
    right: 10px; /* Adjusts the distance from the right side */
    z-index: 10; /* Ensure it's above the image */
}


.section-content {
    padding: 10px;
    text-align: center;
    margin-top: 10px; /* Adds space between image and description */
}

.section-content p {
    font-size: 16px;
    font-weight: 400;
    margin: 10px 0;
}

.section-link {
    text-decoration: none; /* Removes underline */
    color: inherit; /* Inherit color from the parent */
}

.section-link h4,
.section-link p {
    color: inherit; /* Or whatever color you prefer */
}

.section-link:hover {
    color: #2bbc3c; /* Change to your desired color */
}

.image-container {
    position: relative;
}

.overlay-image {
    position: absolute;
    top: 20px;
    right: 20px;
    transform: scale(0.1); /* Adjusts the size */
    transform-origin: top right;
    filter: brightness(0) invert(1); /* Turns the image white */
}


/* General layout for the form section */
.quote-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 60px 20px;
    max-width: 1800px;
    margin: auto;
    margin-top: 100px;
}

.quote-info {
    flex: 1;
    margin-right: 20px;
}

.quote-form-container {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.quote-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Styling headers and text */
.quote-section h1 {
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #333;
}

.quote-section p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #555;
}

/* Form row styling */
.quote-form-row {
    display: flex;
    justify-content: space-between;
}

.quote-form-group {
    flex: 1;
    margin-right: 10px;
}

.quote-form-group:last-child {
    margin-right: 0;
}

/* Labels and inputs */
.quote-form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.quote-form-container input,
.quote-form-container select,
.quote-form-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Specific styling for Number of Windows */
#num_windows {
    height: 50px !important;
    border-radius: 5px;
}

/* Button styling */
.quote-form-container button {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.quote-form-container button:hover {
    background-color: #555;
}


@media (max-width: 768px) {

    .button-container a {
        font-size: 1em; /* Adjust button size for smaller screens */
        padding: 12px 25px; /* Adjust padding for smaller screens */
    }

    .banner-button-container {
        position: absolute;
        top: 85%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 20;
    }

    .banner-text {
        position: absolute; /* Place the text absolutely on the banner */
        font-size: 30px; /* Reduce text size for smaller screens */
        pointer-events: none; /* Allow clicks to pass through */
    }

    .banner-text h2 {
        font-size: 40px; /* Adjust font size for the paragraph */
        margin-bottom: 20px;
    }
    
    .banner-text h3 {
        font-size: 15px; /* Adjust font size for the paragraph */
    }

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

    .section img {
        height: 350px;
    }

        /* Remove link styling inside .section-link */
    .section-link {
        text-decoration: none; /* Removes underline */
        color: inherit; /* Inherit color from the parent */
    }

    /* Ensure the text inside .section-content is black or your preferred color */
    .section-link h4,
    .section-link p {
        color: inherit; /* Or whatever color you prefer */
    }

    h4 {
        margin-top: 10px;
        margin-bottom: 5px;
    }


    .quote-section {
        flex-direction: column; /* Stack the quote section content vertically */
        align-items: center;
        padding: 20px;
    }

    .quote-form-container {
        width: 100%; /* Ensure form takes full width on mobile */
        padding: 15px;
    }

    .quote-form-row {
        flex-direction: column; /* Stack the form fields vertically */
        align-items: stretch; /* Ensure fields take full width */
    }

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

    .quote-form-container input,
    .quote-form-container select,
    .quote-form-container textarea {
        width: 100%; /* Ensure inputs are full width */
    }

    .quote-button-container {
        width: 100%; /* Ensure button takes full width */
        text-align: center; /* Center align button */
    }
}