.contact-form-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Video Background Styles */
.form-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.form-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Overlay Styles */
.form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Allows clicking through overlay */
}

.contact-form-section.has-video-bg {
    min-height: 600px;
    display: flex;
    align-items: center;
}

/* Ensure content stays above background */
.contact-form-section.has-video-bg .form-container,
.contact-form-section.has-image-bg .form-container {
    position: relative;
    z-index: 2;
}

.form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.form-left {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
}

.qr-code-wrapper {
    width: 30%;
    flex-shrink: 0;
}

.qr-code-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.qr-placeholder {
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

.form-left-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-title {
    font-size: 28px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 1px;
    font-family: 'Playfair Display', serif;
}

.form-title strong, .form-title b { font-weight: 700; }

.form-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.form-description .desc-sub {
    color: var(--main-color);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.form-description .desc-main {
    color: #ffffff;
    opacity: 0.8;
    margin: 0;
    font-weight: 300;
}

.scan-to-book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    padding: 14px 30px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ccb376;
    background: transparent;
    border: 1px solid rgba(204, 179, 118, 0.3);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}

.scan-to-book-btn:hover {
    border-color: #ccb376;
    box-shadow: 0 0 15px rgba(204, 179, 118, 0.1);
    transform: translateX(4px);
}

.form-right { width: 100%; }

/* ===== AOS Animation Styles ===== */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Accessibility - Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Performance optimization for video */
@media (prefers-reduced-motion: reduce) {
    .form-video {
        display: none;
    }
    .contact-form-section.has-video-bg {
        background-color: #1a1a1a; /* Fallback color */
    }
}

/* Responsive Design */
@media (max-width: 1100px) {
    .form-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px;
    }
    .form-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .scan-to-book-btn { align-self: center; }
}

@media (max-width: 768px) {
    .form-wrapper { padding: 20px; gap: 30px; }
    .form-title { font-size: 24px; }
    .qr-code-wrapper { width: 140px; height: 140px; }
}