/**
 * GSAP Slide-Up Animation Styles
 * Simple CSS for slide-up animations
 */

/* ------------------------------------------------------
   Page Transition Overlay
   ------------------------------------------------------ */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0B0B0B;
    z-index: 9999;
    pointer-events: none;
    transform-origin: top;
    will-change: transform;
    /* Initial state: visible (wird per JS ausgeblendet) */
    transform: scaleY(1);
}

/* Loading Bar - Top Edge */
.page-transition-loader-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #E5041F;
    transform-origin: left;
    transform: scaleX(0);
}

/* Loading Text - Center */
.page-transition-loader-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .page-transition-overlay {
        display: none !important;
    }
}

/* Initial state for slide-up elements */
.slide-up {
    opacity: 0;
    transform: translateY(50px);
    filter: blur(10px);
}

/* Initial state for fade-in elements */
.fade-in {
    opacity: 0;
}

/* Performance optimizations */
.slide-up,
.fade-in {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity, filter;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .slide-up,
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* Minimal styles for video modal */
#video-modal-root .video-modal { display: none; }
#video-modal-root .video-modal:not(.hidden) { display: block; }

/* Hide scrollbar for horizontal scroll sliders */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

/* ------------------------------------------------------
   Contact Form 7 – Theme Styles
   ------------------------------------------------------ */
.wpcf7 form { display: block; }
.wpcf7 form p { margin: 0 0 1.5rem 0; }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-bottom: 0; }

/* Labels - Number Style */
.wpcf7 label { 
    display: block; 
    font-size: .75rem; 
    font-weight: 400; 
    color: #000000; 
    margin-bottom: .5rem;
    font-family: 'Courier New', monospace;
    text-transform: none;
    letter-spacing: 0;
}

/* Input Fields - Animated Design */
.wpcf7 .wpcf7-form-control:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #e5e7eb;
    padding: 1rem 0;
    color: #111827;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    border-radius: 0;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    position: relative;
}

/* Input Focus Animation */
.wpcf7 .wpcf7-form-control:focus { 
    outline: none; 
    border-bottom-color: #E5041F; 
    background-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(229, 4, 31, 0.1);
}

/* Input Hover Animation */
.wpcf7 .wpcf7-form-control:hover:not(:focus) {
    border-bottom-color: #d1d5db;
    transform: translateY(-1px);
}

/* Placeholder Animation */
.wpcf7 .wpcf7-form-control::placeholder { 
    color: #9ca3af; 
    font-style: normal;
    opacity: 0.7;
    transition: opacity .3s ease;
}

.wpcf7 .wpcf7-form-control:focus::placeholder {
    opacity: 0.4;
}

/* Textarea - Animated Design */
.wpcf7 textarea.wpcf7-form-control { 
    min-height: 100px; 
    resize: vertical; 
    font-family: inherit;
    border-bottom: 2px solid #e5e7eb;
    background-color: transparent;
    padding: 1rem 0;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wpcf7 textarea.wpcf7-form-control:focus {
    outline: none;
    border-bottom-color: #E5041F;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(229, 4, 31, 0.1);
}

.wpcf7 textarea.wpcf7-form-control:hover:not(:focus) {
    border-bottom-color: #d1d5db;
    transform: translateY(-1px);
}

/* Select - Animated Design */
.wpcf7 select.wpcf7-form-control {
    appearance: none; 
    -webkit-appearance: none; 
    -moz-appearance: none;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #e5e7eb;
    padding: 1rem 0;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3e%3cpath d='M7 7l3-3 3 3m0 6l-3 3-3-3' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    background-repeat: no-repeat; 
    background-position: right 0 center; 
    background-size: 1.25em 1.25em;
    cursor: pointer;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wpcf7 select.wpcf7-form-control:focus {
    outline: none;
    border-bottom-color: #E5041F;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(229, 4, 31, 0.1);
}

.wpcf7 select.wpcf7-form-control:hover:not(:focus) {
    border-bottom-color: #d1d5db;
    transform: translateY(-1px);
}

/* Validation - Modern Design */
.wpcf7 .wpcf7-not-valid { 
    border-bottom-color: #E5041F !important; 
    box-shadow: 0 2px 0 0 #E5041F !important; 
}
.wpcf7 .wpcf7-not-valid-tip { 
    color: #E5041F; 
    font-size: .875rem; 
    margin-top: .5rem; 
    font-weight: 500;
}
.wpcf7 .wpcf7-response-output { 
    margin: 1.5rem 0 0; 
    padding: 1rem 1.25rem; 
    border-width: 2px; 
    border-style: solid; 
    border-radius: 0; 
    font-weight: 500;
}
.wpcf7 .wpcf7-mail-sent-ok { 
    border-color: #10b981; 
    background-color: rgba(16,185,129,.05); 
    color: #065f46; 
}
.wpcf7 .wpcf7-validation-errors, 
.wpcf7 .wpcf7-acceptance-missing { 
    border-color: #E5041F; 
    background-color: rgba(229,4,31,.05); 
    color: #7f1d1d; 
}

/* Submit Button - Red Filled Style */
.wpcf7 input[type="submit"],
.wpcf7 input.wpcf7-submit,
.wpcf7 input.wpf7-submit,
.wpcf7 .submit,
.wpcf7 button.submit {
    display: inline-flex !important; 
    align-items: center;
    justify-content: center;
    margin-top: 2rem; 
    padding: 1rem 2rem !important; 
    border: none !important; 
    color: #ffffff !important; 
    background-color: #E5041F !important;
    font-size: 1rem; 
    font-weight: 600;
    line-height: 1.5; 
    cursor: pointer; 
    position: relative;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
    max-width: 320px;
    min-height: 3.5rem;
    border-radius: 0;
}

/* Hover Effects */
.wpcf7 input[type="submit"]:hover,
.wpcf7 input.wpcf7-submit:hover,
.wpcf7 input.wpf7-submit:hover,
.wpcf7 .submit:hover,
.wpcf7 button.submit:hover { 
    background-color: #c41e3a !important; 
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 4, 31, 0.25);
}

/* Active State */
.wpcf7 input[type="submit"]:active,
.wpcf7 input.wpcf7-submit:active,
.wpcf7 input.wpf7-submit:active,
.wpcf7 .submit:active,
.wpcf7 button.submit:active { 
    transform: translateY(0); 
    box-shadow: 0 2px 4px rgba(229, 4, 31, 0.2);
}

/* Disabled State */
.wpcf7 input[type="submit"]:disabled,
.wpcf7 input.wpcf7-submit:disabled,
.wpcf7 input.wpf7-submit:disabled,
.wpcf7 .submit:disabled,
.wpcf7 button.submit:disabled { 
    opacity: .6; 
    cursor: not-allowed; 
    transform: none !important;
    box-shadow: none !important;
}

/* Clean up spacing */
.wpcf7 form .wpcf7-form-control-wrap + br { display: none; }

/* Digital Casting Image Animation */
.digital-casting-image {
    opacity: 0;
    transform: scale(0.8);
    will-change: opacity, transform;
}

/* CTA Image Section Animation */
.cta-image-section {
    opacity: 1;
    transform: scale(0.3);
    will-change: transform;
    overflow: hidden;
}

/* CTA Image Section - Image should not scale with container */
.cta-image-section .absolute img {
    transform: scale(3.33); /* Inverse scale to maintain original size */
    transform-origin: center;
}

/* Statement Container Animation */
.statement-container {
    opacity: 0;
    transform: scale(0.8);
    will-change: opacity, transform;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .digital-casting-image,
    .cta-image-section,
    .statement-container {
        opacity: 1;
        transform: scale(1);
    }
}
