/* ===== Split Layout ===== */
.split-layout {
    display: flex;
    height: 100vh;
}

.carousel-container,
.form-container {
    flex: 1 1 50%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    overflow: hidden;
}

/* ===== Carousel Styles ===== */
.carousel {
    width: 100%;
    height: 100%;
    background-color: #111;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* ===== Hover Effect ===== */
.carousel-slide img:hover {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* ===== Form Container ===== */
.form-container {
    background-color: #111;
    padding: 2rem 2rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form-section {
    width: 100%;
    max-width: 600px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.contact-form-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
    flex-shrink: 0;
}

.contact-form {
    background: #111;
    color: #fff;
    border-radius: 8px;
    padding: 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: calc(100% - 70px);
    box-sizing: border-box;
    overflow: hidden;
    flex-grow: 1;
    justify-content: space-between;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.form-group label {
    font-weight: 700;
    margin-bottom: 5px;
    color: #ddd;
}

.form-group label span {
    color: #e55353;
    margin-left: 2px;
}

.form-group input,
.form-group textarea {
    padding: 8px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: #222;
    color: #fff;
    transition: background-color 0.3s ease, outline-color 0.3s ease;
    flex-shrink: 0;
}

.form-group textarea {
    resize: none;
    height: 100px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid #a6a6a6;
    background-color: #1a1a1a;
    outline-offset: 2px;
}

.submit-btn {
    align-self: center;
}

/* ===== Responsive Mobile ===== */
@media (max-width: 768px) {
    .split-layout {
        flex-direction: column;
        height: auto;
    }

    .carousel-container,
    .form-container {
        flex: none;
        width: 100%;
        height: auto;
    }

    .carousel {
        height: 300px;
    }

    .contact-form-section {
        max-width: 100%;
        height: auto;
    }

    .contact-form {
        height: auto;
    }
}