@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;    
    -ms-user-select: none;     
    user-select: none; 
}

:root {
    --white : #FFFFFF;
    --black : #000000;
    --background : #E8E8E8DE;
    --grey-light : #F5F5F5;
    --dark-strain : #171717;
    --dark-focus : #111111;
    --p-tag-shade : #666666;
    --grey-contrast : #EEEEEE;
    --grey-highlight : #4A4A4A;
    --shadow : #3B3B3B;
    --red : #FF4C4C;
    --red-hover: #FF1A1A;
    --green : #55CB60;
    --green-hover: #2E9533;
}

html {
    scroll-behavior: initial;
}

body {
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    background-color: #f8f9fa;
    margin-top: 10%;
}

.center {
    display: flex;
    justify-content: center;
}

.slider-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    overflow: hidden;
    margin-bottom: 10%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slider-card {
    display: flex;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background-color: #fff;
}

.image-div {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    background-image: url('placeholder-image.jpg');
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease-in-out;
}

.service-img:hover {
    transform: scale(1.05);
}

.slider-content {
    flex: 1;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slider-content h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.box-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.box i {
    font-size: 1.2rem;
    color: #4a4a4a;
}

.box p {
    font-size: 1rem;
    color: #666;
}

.slider-content > p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.book-now {
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background-color: black;
    border: 2px solid black;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.book-now:hover {
    background-color: #EEE;
    color: #000;
    transform: translateY(-2px);
    transition: all 0.5 ease;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.slider-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-button.prev {
    left: 20px;
}

.slider-button.next {
    right: 20px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Make form-container wider */
.form-container {
    background-color: var(--grey-light);
    width: 90%;
    max-width: 1000px;  /* Increased max-width to 1000px */
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative; /* Ensure close button is positioned inside form */
}

/* Flexbox layout for form-content */
.form-content {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.form-left, .form-right {
    width: 48%;
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
}

/* Position the close "X" button in the top-right corner */
.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-btn:hover {
    transform: scale(1.1);
    color: #ff0000;
}

/* slider responsiveness all sizes */


/* Large Screens (Desktops) */
@media screen and (min-width: 1200px) {
    .slider-container {
        width: 80%;
        max-width: 1400px;
    }

    .slider-content h1 {
        font-size: 3rem;
    }

    .slider-content > p {
        font-size: 1rem;
    }

}

/* Medium Screens (Laptops) */
@media screen and (max-width: 1199px) and (min-width: 992px) {
    .slider-container {
        width: 90%;
    }

    .slider-content h1 {
        font-size: 2.2rem;
    }

    .slider-content > p {
        font-size: 1rem;
    }

}

/* Tablets */
@media screen and (max-width: 991px) and (min-width: 768px) {
    .slider-container {
        width: 95%;
        height: 90vh;
    }

    .slider-card {
        flex-direction: column;
    }

    .image-div, .slider-content {
        width: 100%;
    }

    .slider-content {
        padding: 1.5rem 0;
    }

    .slider-content h1 {
        font-size: 2rem;
    }

    .book-now {
        align-self: center;
    }
}

/* Phones */
@media screen and (max-width: 767px) {
    .slider-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .slider-card {
        flex-direction: column;
        padding: 1rem;
    }

    .image-div {
        height: 40%;
    }

    .slider-content {
        padding: 1rem 0;
    }

    .slider-content h1 {
        font-size: 1.8rem;
    }

    .box-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .slider-content > p {
        font-size: 0.9rem;
    }

    .book-now {
        align-self: center;
        width: 100%;
    }

    .slider-button {
        width: 40px;
        height: 40px;
    }
    
    #services label,
    .form-group label {
        font-size: 1.1rem;
    }

    .time, .date {
        font-size: 1.1rem;
    }

    .form-group textarea, 
    .form-group input {
        font-size: 1.1rem;
    }

    #services label {
        font-size: 0.9rem;
    }


}

/* Small Phones */
@media screen and (max-width: 350px) {
    .slider-content h1 {
        font-size: 1.5rem;
    }

    .box-info {
        font-size: 0.8rem;
    }

    .slider-content > p {
        font-size: 0.8rem;
    }
}

/***********************************
*          FORM STYLING            *
*                                  *
***********************************/


/* Style for form fields */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.floating-label input,
.floating-label textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #000000;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.floating-label input:focus,
.floating-label textarea:focus,
.form-group select:focus {
    outline: none;
    border: 2px solid #000000;
    border-color: #333;
}

.floating-label label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 1rem;
    color: #aaa;
    transition: all 0.2s ease-in-out;
    pointer-events: none;
}

.floating-label input:focus + label,
.floating-label textarea:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: #333;
    background-color: white;
    padding: 0 0.25rem;
}

.form-group label {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 4px;
}

#services label {
    font-size: 1rem;
    margin-bottom: 6px;
    padding: 4px;
    border-radius: 5px;
}

#services label:hover {
    background: #e0e0e0;
}

#services input[type="checkbox"] {
    padding: 30px;
    margin-right: 10px;
    margin-bottom: 10px;
    accent-color: #007bff;
}

.time, .date {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.time:focus, .date:focus {
    border-color: #000000;
    box-shadow: 0 0 5px rgba(3, 11, 21, 0.5);
    outline: none;
}

.form-group textarea {
    resize: none;
    overflow-y: scroll;
    min-height: 100px;
    background: #f9f9f9;
}

/* Reposition Submit button at the bottom right */
.form-actions {
    display: flex;
    justify-content: flex-end;  /* Right align the submit button */
}

.button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn {
    padding: 10px 20px 10px 20px;
    cursor: pointer;
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    border-radius: 5px;
    font-weight: bold;
}

.submit-btn:hover {
    background-color: #EEE;
    color: #000000;
    transform: translateY(-2px);
    transition: all 0.5s ease;
}

input.invalid, textarea.invalid {
    border-color: red;
    background-color: #fdd;
}

input:focus.invalid, textarea:focus.invalid {
    border-color: darkred;
}



