/* Base Styles */

#banner {
    position: relative;
    display: flex;
    background-size: cover;      
    background-position: center center; 
    background-repeat: no-repeat; 
    width: 100vw; /* full viewport width */
    max-width: 100%; /* prevent overflow */
    height: 80vh;               
    overflow: hidden;    
    align-items: center;    
    margin-bottom: 70px; 
}

#banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45); /* Dark overlay */
    z-index: 1;
}

.bannerText {
    position: relative;
    left: 15%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 50%;
    z-index: 2; /* above overlay */
}

.bannerText h1 {
    font-weight: bolder;
    font-size: 4rem;
    width: 90%;
    color: white;
}

.bannerText h3 {
    font-weight: 500;
    font-size: 1.25rem;
    width: 90%;
    color: white;
}

#banner button {
    background-color: white;
    font-size: 1.15em;
    padding: 15px 15px;
    width: fit-content;
    border-radius: 15px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, color 0.2s;
}

#banner button:hover {
    background-color: black;
    color: white;
}

svg {
    width: 35px;
    height: 35px;
    color: red;
}

#qualities {
    display: inline-grid;
    grid-template-columns: auto auto;
    column-gap: 10px;
    width: fit-content;
    margin-bottom: 50px;
}

#qualities div {
    width: 300px;
    display: flex;
    flex-direction: column;
}

#qualities h1 {
    font-weight: bold;
    color: rgb(40, 64, 83);
    display: initial;
    font-size: 1.5em;
    margin-bottom: 10px;
}

#qualities p {
    color: rgb(183, 183, 183);
    display: initial;
}

/* Booking form */

#bookingForm {
    display: inline-flex;
    z-index: 1;
    position: relative;
    top: -200px;
    flex-direction: column;
    background: white;
    padding: 30px 10px;
    width: 500px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 75px;
}

#bookingForm h1 {
    font-size: 2.25em;
    font-weight: bold;
    margin-bottom: 10px;
}

#bookingForm p {
    font-size: 1.25em;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.2;
}

/* Remove borders on inputs and textarea */
#bookingForm input[type="text"],
#bookingForm input[type="tel"],
#bookingForm textarea {
    width: 90%;
    margin: auto;
    padding: 10px;
    margin-bottom: 10px;
    background-color: rgba(244, 244, 244, 1);
    border-radius: 5px;
    font-size: 18px;
    border: none;  /* Removed border */
    resize: vertical;
    outline-offset: 2px;
}

#bookingForm input[type="text"]:focus,
#bookingForm input[type="tel"]:focus,
#bookingForm textarea:focus {
    outline: 2px solid #000;
}

#bookingForm button {
    width: 100%;
    padding: 10px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

#bookingForm button:hover {
    background-color: #444;
}

/* Service Section */

.service {
    width: 80vw;
    padding: 50px;
    margin: auto;
    margin-bottom: 75px;
    height: fit-content;
    display: flex;
    flex-direction: row;
    background-color: rgb(245, 245, 245);
    border-radius: 15px;
    gap: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.service p {
    text-indent: 20px;
    line-height: 2;
    width: 100%;
}

.service div {
    display: flex;
    flex-direction: column;
    width: 40%;
    min-width: 280px;
}

.service ul {
    position: relative;
    text-indent: 0;
    margin-left: 50px;
    margin-bottom: 30px;
}

li {
    text-indent: -5px; /* Moves text closer to the bullet */
}

.service a {
    padding: 15px 50px;
    background-color: black;
    color: white;
    border-radius: 12px;
    font-weight: bold;
    width: fit-content;
    margin-top: 20px;
    font-size: 1em;
    text-decoration: none;
    transition: background-color 0.3s;
}

.service a:hover {
    background-color: #272727;
}

.service img {
    width: 40%;
    max-height: 500px;
    object-fit: cover;
    margin: auto;
    border-radius: 15px;
    flex-shrink: 0;
}

/* Question Section */

#question * {
    color: white;
}

#question {
    background-color: black;
    padding: 50px 50px 80px 50px;
    border-radius: 20px;
    margin: auto;
    width: 65vw;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 30px;
}

#question div {
    position: relative;
    float: right;
    width: 50%;
    height: fit-content;
    align-self: center;
    min-width: 280px;
}

#question div h1 {
    font-size: 2.25em;
    margin-bottom: 20px;
}

#question div p {
    line-height: 2;
    margin-bottom: 60px;
}

#question a {
    background-color: white;
    color: black;
    border-radius: 15px;
    padding: 20px 50px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

#question a:hover {
    background-color: rgb(224, 224, 224);
}

/* Add border-radius back to the #question img */
#question img {
    border-radius: 100%;
    height: 300px;
    object-fit: cover;
}

/* Responsive Adjustments */

@media (max-width: 1400px) {
    .bannerText {
        left: 10%;
        width: 60%;
    }

    .bannerText h1 {
        font-size: 3rem;
    }

    .bannerText h3 {
        font-size: 1.1rem;
    }

    #qualities div {
        width: 250px;
    }

    #bookingForm {
        width: 450px;
        top: -160px;
        padding: 25px 10px;
    }

    .service {
        width: 90vw;
        padding: 40px;
        gap: 20px;
    }

    .service div {
        width: 45%;
    }

    .service img {
        width: 45%;
        max-height: 400px;
    }

    #question {
        width: 75vw;
        padding: 40px 40px 60px 40px;
    }

    #question div {
        width: 45%;
        min-width: 240px;
    }
}

@media (max-width: 1100px) {
    .bannerText {
        left: 7%;
        width: 70%;
    }

    .bannerText h1 {
        font-size: 2.2rem;
    }

    .bannerText h3 {
        font-size: 1rem;
    }

    #qualities div {
        width: 220px;
    }

    #bookingForm {
        width: 400px;
        top: -140px;
        padding: 20px 10px;
    }

    .service {
        flex-direction: column;
        padding: 30px 20px;
        width: 90vw;
    }

    .service div, .service img {
        width: 100%;
        max-height: none;
    }

    #question {
        width: 85vw;
        padding: 30px 30px 50px 30px;
        flex-direction: column;
    }

    #question div {
        width: 100%;
        min-width: auto;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    #banner {
        height: 50vh;
    }

    .bannerText {
        left: 5%;
        width: 90%;
    }

    .bannerText h1 {
        font-size: 1.75rem;
    }

    .bannerText h3 {
        font-size: 0.9rem;
    }

    #qualities {
        grid-template-columns: 1fr;
        width: 90%;
    }

    #qualities div {
        width: 100%;
    }

    #bookingForm {
        width: 90vw;
        top: -100px;
        padding: 20px;
    }

    .service {
        width: 100vw;
        padding: 20px;
        flex-direction: column;
    }

    .service div, .service img {
        width: 100%;
        max-height: none;
    }

    #question {
        width: 95vw;
        padding: 20px;
        flex-direction: column;
    }

    #question div {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    #banner {
        height: 40vh;
    }

    .bannerText h1 {
        font-size: 1.4rem;
    }

    .bannerText h3 {
        font-size: 0.8rem;
    }

    #bookingForm {
        top: -80px;
        padding: 15px;
    }

    #bookingForm h1 {
        font-size: 1.8em;
    }

    #bookingForm p {
        font-size: 1em;
    }

    #question div h1 {
        font-size: 1.5em;
    }
}
