/* Contact Page Styles */

body {
    overflow: hidden !important;
    height: 100dvh;
    background-color: #0e1012;
}

/* Contact Container */
.contact-container {
    position: relative;
    width: 100%;
    height: 100dvh;
    display: flex;
}

/* Video Section - Left Side */
.video-section-contact {
    position: fixed;
    left: 0;
    top: 0;
    width: 500px;
    height: 100dvh;
    overflow: hidden;
}

.contact-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Scrolling Banner */
.scrolling-banner {
    position: fixed;
    top: 25%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
    padding: 30px 0;
}

.banner-content {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 10s linear infinite;
}

.banner-text {
    font-family: 'Gotham Condensed', 'Gotham', sans-serif;
    font-weight: 950;
    font-stretch: ultra-condensed;
    font-size: 80px;
    color: white;
    margin: 0 40px;
    letter-spacing: 8px;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Contact Form Holder */
.contact-form-holder {
    position: fixed;
    bottom: 6rem;
    left: 500px;
    right: 38px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-page-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
}

.contact-page-form .form-row {
    display: flex;
    gap: 1rem;
}

.contact-page-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-page-form label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.contact-page-form input,
.contact-page-form textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: white;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-page-form input:focus,
.contact-page-form textarea:focus {
    border-bottom-color: #ff8000;
}

.contact-page-form textarea {
    resize: none;
    min-height: 80px;
}

.contact-page-cta {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: white;
    background: transparent;
    border: 1px solid white;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: 1rem;
}

.contact-page-cta:hover {
    background: white;
    color: #0a0a0a;
}

.contact-page-cta:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading spinner */
.contact-page-cta .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.contact-page-cta .btn-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Form Validation Styles
   ======================================== */

/* Error line under fields */
.field-error-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ef4444;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* Error message text */
.field-error-message {
    display: block;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Form group needs relative positioning */
.contact-page-form .form-group {
    position: relative;
}

/* Show error state */
.form-group.has-error .field-error-line {
    transform: scaleX(1);
}

.form-group.has-error .field-error-message {
    opacity: 1;
    transform: translateY(0);
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-bottom-color: #ef4444 !important;
}

/* Global error message */
.form-error-global {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
}

.form-error-global.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Success Overlay
   ======================================== */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.success-overlay.show {
    opacity: 1;
    visibility: visible;
}

.success-card {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s ease;
    max-width: 400px;
    width: 90%;
}

.success-overlay.show .success-card {
    transform: scale(1) translateY(0);
}

.success-icon {
    margin-bottom: 1.5rem;
}

.success-icon svg {
    animation: successPop 0.5s ease 0.2s both;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon svg circle {
    stroke-dasharray: 70;
    stroke-dashoffset: 70;
    animation: drawCircle 0.6s ease 0.3s forwards;
}

@keyframes drawCircle {
    to { stroke-dashoffset: 0; }
}

.success-icon svg path {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: drawCheck 0.3s ease 0.7s forwards;
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

.success-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.success-message {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Smaller screens */
@media (max-height: 800px) {
    .scrolling-banner {
        top: 20%;
    }

    .banner-text {
        font-size: 60px;
    }

    .contact-form-holder {
        bottom: 3rem;
    }
}

@media (max-height: 650px) {
    .scrolling-banner {
        top: 15%;
    }

    .banner-text {
        font-size: 50px;
    }

    .contact-form-holder {
        bottom: 2rem;
    }

    .contact-page-form {
        gap: 0.5rem;
    }

    .contact-page-form textarea {
        min-height: 50px;
    }
}

/* Tablet Styles - 1024px (uses mobile layout with proportionally larger sizes) */
@media (max-width: 1024px) {
    /* Video becomes full-screen background */
    .video-section-contact {
        width: 100%;
        height: 100dvh;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 1;
    }

    .contact-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Add dark overlay for better form readability */
    .video-section-contact::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom,
            rgba(14, 16, 18, 0.4) 0%,
            rgba(14, 16, 18, 0.7) 50%,
            rgba(14, 16, 18, 0.9) 100%);
        z-index: 2;
    }

    /* Scrolling banner - Tablet sizing */
    .scrolling-banner {
        top: 22%;
        padding: 25px 0;
        z-index: 15;
    }

    .banner-text {
        font-size: 70px;
        margin: 0 35px;
        letter-spacing: 6px;
    }

    /* Form holder - positioned over video */
    .contact-form-holder {
        left: 40px;
        right: 40px;
        bottom: 5rem;
        z-index: 20;
    }

    .contact-page-form {
        max-width: 550px;
        margin: 0 auto;
    }

    .contact-page-form label {
        font-size: 12px;
    }

    .contact-page-form input,
    .contact-page-form textarea {
        font-size: 15px;
        padding: 0.875rem 0;
    }

    .contact-page-form textarea {
        min-height: 90px;
    }

    .contact-page-cta {
        font-size: 13px;
        padding: 1.125rem 2.25rem;
    }
}

/* Mobile Styles - 768px */
@media (max-width: 768px) {
    .video-section-contact {
        width: 100%;
        height: 100dvh;
    }

    .scrolling-banner {
        top: 20%;
        padding: 20px 0;
    }

    .banner-text {
        font-size: 60px;
        margin: 0 30px;
        letter-spacing: 5px;
    }

    .contact-form-holder {
        left: 20px;
        right: 20px;
        bottom: 3rem;
    }

    .contact-page-form {
        max-width: 100%;
    }

    .contact-page-form label {
        font-size: 11px;
    }

    .contact-page-form input,
    .contact-page-form textarea {
        font-size: 14px;
        padding: 0.75rem 0;
    }

    .contact-page-form textarea {
        min-height: 70px;
    }

    .contact-page-cta {
        font-size: 12px;
        padding: 1rem 2rem;
    }
}

/* Small Mobile - 480px */
@media (max-width: 480px) {
    .scrolling-banner {
        top: 18%;
        padding: 15px 0;
    }

    .banner-text {
        font-size: 48px;
        margin: 0 20px;
        letter-spacing: 4px;
    }

    .contact-form-holder {
        left: 12px;
        right: 12px;
        bottom: 2rem;
    }

    .contact-page-form label {
        font-size: 10px;
    }

    .contact-page-form input,
    .contact-page-form textarea {
        font-size: 13px;
        padding: 0.625rem 0;
    }

    .contact-page-form textarea {
        min-height: 60px;
    }

    .contact-page-cta {
        font-size: 11px;
        padding: 0.875rem 1.75rem;
    }
}

/* ========================================
   GSAP Animation Initial States
   ======================================== */

/* Elements that will be animated - start invisible */
.video-section-contact,
.scrolling-banner,
.contact-form-holder,
.contact-page-form .form-group,
.contact-page-cta {
    opacity: 0;
}

/* Smooth GPU-accelerated animations */
.video-section-contact,
.scrolling-banner,
.contact-form-holder {
    will-change: transform, opacity;
}

/* ========================================
   Form Notifications
   ======================================== */
.form-notification {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}

.form-notification.success {
    background-color: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.form-notification.error {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.form-notification .notification-message {
    flex: 1;
}

.form-notification .notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    padding: 0;
    line-height: 1;
}

.form-notification .notification-close:hover {
    opacity: 1;
}

.form-notification.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

