﻿/* -------- Cinematic Section -------- */
.cinematic-contact {
    position: relative;
    min-height: 100vh;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    font-family: 'Inter', sans-serif;
    color: #fff;
    top: 40px;
}

/* Animated floating background */
.cinematic-bg {
    position: absolute;
    inset: 0;
    background: url('https://allstitchesrepair.com/img/IMG_0425.png') center/cover no-repeat;
    filter: brightness(0.3) blur(3px);
    z-index: 0;
}



.cinematic-overlay {
    position: relative;
    z-index: 1;
    max-width: 960px;
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px) saturate(150%);
    border-radius: 30px;
    padding: 50px 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }

    from {
        opacity: 0;
        transform: translateY(40px);
    }
}

.cinematic-header {
    text-align: center;
    margin-bottom: 40px;
}

.cinematic-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    text-shadow: 0 3px 20px rgba(0,0,0,0.6);
}

.cinematic-subtitle {
    font-size: 1.3rem;
    color: #cbd5e1;
    font-weight: 500;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* --- Two-Column Layout for Body --- */
.cinematic-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

/* --- Info Column Styling --- */
.cinematic-info {
    color: #e2e8f0;
    line-height: 1.6;
    padding: 10px 0;
}

    .cinematic-info h3 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #00E5FF;
        margin-bottom: 15px;
        text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    }

    .cinematic-info h4 {
        font-size: 1.1rem;
        font-weight: 600;
        margin-top: 20px;
        margin-bottom: 8px;
        color: #fff;
    }

    .cinematic-info ul {
        list-style: disc;
        margin-left: 20px;
        padding-left: 0;
        font-weight: 500;
        color: #a0aec0;
    }

    .cinematic-info li {
        margin-bottom: 4px;
    }

.coverage-note {
    font-style: italic;
    font-size: 0.95rem;
    margin-top: 15px;
    color: #00E5FF;
}

.contact-action {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

    .contact-action h5 {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 10px;
    }

.phone-link {
    color: #00E5FF;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

    .phone-link:hover {
        color: #fff;
        text-shadow: 0 0 5px #00E5FF;
    }

/* --- Form Styling --- */
.cinematic-form {
    display: flex;
    flex-direction: column;
    /* Gap for spacing between rows (e.g., Row 1 and Row 2) */
    gap: 25px;
}

/* FIX 1: Ensure the input group is a proper flow container */
.input-group {
    /* Set to static for flow-based errors */
    position: static;
    width: 100%;
    /* *** FIX FOR OVERLAP *** */
    /* Add padding to ensure the grid item takes up sufficient vertical space */
    padding-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Gap for spacing between the two columns (e.g., Name and Phone) */
    gap: 25px;
}

.cinematic-form input,
.cinematic-form select,
.cinematic-form textarea {
    padding: 16px 8px;
    border-radius: 16px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
    width: 100%;
}

    .cinematic-form input:focus,
    .cinematic-form textarea:focus,
    .cinematic-form select:focus {
        box-shadow: 0 0 12px rgba(124, 92, 255, 0.6);
        background: rgba(255,255,255,0.1);
    }

    .cinematic-form input::placeholder,
    .cinematic-form textarea::placeholder {
        color: #94a3b8;
    }

.cinematic-form select {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
}

/* FIX 2: Error Message Positioning (Flow-based) */
.fr-error-message {
    /* Set to static position to flow after the input */
    position: fixed;
    display: block; /* Takes its own line */

    margin-top: 5px;
    margin-bottom: -10px; /* Reduces space to the next field slightly */
    padding-left: 18px;
    color: #ff6347; /* Tomato Red */
    font-size: 0.85rem;
    z-index: 10;
    width: 100%;
    white-space: normal;
}

@media (max-width: 992px) {
    .cinematic-body {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .cinematic-form input,
    .cinematic-form select,
    .cinematic-form textarea {
        margin-left:-7px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }

    .cinematic-title {
        font-size: 2.4rem;
    }

    .cinematic-overlay {
        padding: 30px 20px;
    }

    .cinematic-info {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px;
    }

    .contact-action {
        border-top: none;
        margin-top: 15px;
        padding-top: 0;
    }
    /* FORM FIRST on mobile */
    .cinematic-form {
        order: 1;
       
    }

    /* TEXT SECOND on mobile */
    .cinematic-info {
        order: 2;
        transform: none;
        clip-path: none;
        text-align: center;
        min-height: 400px;
    }

}


.cinematic-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.cinematic-streaks {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
@media(prefers-reduced-motion:reduce) {
    .cinematic-bg {
        animation: none !important;
        transform: scale(1.05) translateY(0) !important
    }

    .cinematic-overlay {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important
    }
}

@media(min-width:900px) {

    .cinematic-bg {
        animation: floatBG 20s ease-in-out infinite alternate;
    }


    @keyframes floatBG {
        0% {
            transform: scale(1.05) translateY(0px);
        }

        50% {
            transform: scale(1.1) translateY(-15px);
        }

        100% {
            transform: scale(1.05) translateY(0px);
        }
    }
 
}


@media (max-width: 900px) { /* 1. Disable expensive background animation */

    .cinematic-bg {
        animation: none !important ; /* Ensure it's static and not scaled up */
        transform: scale(1) translateY(0); /* Use a lower filter for even better performance */
        filter: brightness(0.2) blur(1px);
    }
    /* 2. Disable expensive backdrop filter on the main container */

  
    .cinematic-overlay {
        animation: none !important ;
        opacity: 1;
        transform: none !important ;
    }

    .cinematic-particles,
    .cinematic-streaks {
        display: none !important;
    }

}
