/* Slider Container */
.slider-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 70px); /* Full height minus header */
    overflow: hidden;
}

/* Individual Slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 3s ease;
    z-index: 1;
}

.slide.active:first-child {
  transition: none; /* No transition for first slider */
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Slide Background */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.1);
    transition: transform 3s ease;
}

.slide.active .slide-bg {
    transform: scale(1);
}

/* Slide Content */
.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
}

.slide-content p {
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 1s, transform 1s ease 1s;
}

.slide.active .slide-content h2,
.slide.active .slide-content p {
    opacity: 1;
    transform: translateY(0);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 4;
    transform: translateY(-50%);
}

.prev-btn, .next-btn {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Slider Dots - Moved below the form */
.slider-dots {
    position: absolute;
    bottom: 20px; /* Position at the bottom of the page */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 4;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

/* Enquiry Form Container - Modified to be higher up with white background */
.enquiry-form-container {
    position: absolute;
    bottom: 60px; /* Moved up from bottom */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.9); /* White with transparency */
    padding: 20px;
    z-index: 5;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Close button for mobile form */
.close-form-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    color: #555;
    cursor: pointer;
    display: none; /* Hidden by default, shown on mobile */
}

.enquiry-form-wrapper {
    width: 100%;
}

/* Enquiry Form */
.enquiry-form {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 150px;
    margin: 0 10px;
}

.form-group label {
    display: block;
    color: #333; /* Changed to dark color for white background */
    margin-bottom: 5px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 4px;
    font-size: 14px;
}

.check-availability-btn {
    background-color: #9b8c4a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s;
    margin: 0 10px;
    height: 42px;
}

.check-availability-btn:hover {
    background-color: #8a7c3a;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .form-group {
        flex: 1 0 calc(33.333% - 20px);
        margin-bottom: 10px;
    }
    
    .check-availability-btn {
        flex: 1 0 calc(33.333% - 20px);
        margin-bottom: 10px;
    }
    
    .enquiry-form-container {
        bottom: 80px;
    }
}

@media screen and (max-width: 768px) {
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .form-group {
        flex: 1 0 calc(50% - 20px);
    }
    
    .check-availability-btn {
        flex: 1 0 calc(50% - 20px);
    }
    
    .enquiry-form-container {
        bottom: 100px;
    }
}

/* Mobile styles - Hide form by default */
@media screen and (max-width: 576px) {
    .enquiry-form-container {
        opacity: 0;
        visibility: hidden;
        bottom: 50%;
        transform: translate(-50%, 50%);
        width: 90%;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .enquiry-form-container.show-mobile {
        opacity: 1;
        visibility: visible;
    }
    
    .close-form-btn {
        display: block;
    }
    
    .form-group {
        flex: 1 0 calc(100% - 20px);
    }
    
    .check-availability-btn {
        flex: 1 0 calc(100% - 20px);
    }
    
    .slider-dots {
        bottom: 30px;
    }
}
