/**
 * Enterprise Demo Page Styles
 * Modern, performance-friendly styles for the demo request page
 */

/* Page Layout Overrides */
body.page-template-page-enterprise-demo {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.page-template-page-enterprise-demo #qodef-page-wrapper {
    padding-top: 0 !important;
}

body.page-template-page-enterprise-demo #qodef-page-outer {
    margin-top: 0 !important;
}

body.page-template-page-enterprise-demo #qodef-page-inner {
    padding-top: 0 !important;
}

body.page-template-page-enterprise-demo .qodef-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.page-template-page-enterprise-demo header,
body.page-template-page-enterprise-demo .qodef-header-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
}

/* Main Wrapper */
.ss-demo-wrapper {
    position: relative;
    min-height: 100vh;
    background: #000;
    overflow: hidden;
    margin-top: 0;
    padding-top: 100px;
}

#starCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cosmic-dust {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 20, 0.4) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Hero Section */
.ss-demo-hero {
    position: relative;
    z-index: 10;
    padding: 0px;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    /* padding-top: 120px; */
    margin-top: 0;
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Title */
.demo-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3rem;
    line-height: 1.2;
}

.demo-title .gradient-text {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Logo Carousel */
.logo-carousel-container {
    margin: 3rem 0;
    overflow: hidden;
    position: relative;
    max-width: 600px;
}

.carousel-track {
    display: flex;
    animation: scroll-infinite 60s linear infinite;
    gap: 0;
    align-items: center;
    width: max-content;
}

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

.logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.logo-item:hover {
    transform: scale(1.05);
}

.logo-item img {
    height: 150px;
    width: auto;
    max-width: 450px;
    object-fit: contain;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.logo-item:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* Hero Content */
.tagline {
    color: #6366f1;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-subtitle h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.demo-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Value Props */
.value-props {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.value-item:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: translateX(5px);
}

.value-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.value-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.value-content strong {
    color: #fff;
    font-size: 1.125rem;
}

.value-content span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Testimonial */
.testimonial-quote {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    position: relative;
}

.testimonial-quote blockquote {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.5;
    position: relative;
}

.testimonial-quote blockquote::before {
    /* content: '"'; */
    /* position: absolute; */
    /* left: -20px;
    top: -10px;
    font-size: 4rem; */
    color: #f4f4f4;
    /* opacity: 0.3; */
    /* font-family: Georgia, serif; */
}

.testimonial-quote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.testimonial-quote cite strong {
    color: #6366f1;
    font-weight: 600;
}

/* Form Container */
.demo-form-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Form Header */
.form-header {
    text-align: left;
    margin-bottom: 2rem;
}

.form-header h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Form Fields */
.demo-form .form-field {
    margin-bottom: 1.5rem;
}

.demo-form input,
.demo-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin: 0;
}

.demo-form input::placeholder,
.demo-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.demo-form input:focus,
.demo-form textarea:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    color: white;
}

.demo-form textarea {
    resize: vertical;
    min-height: 100px;
}

.demo-form select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.demo-form select:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.demo-form select option {
    background: #1a1a2e;
    color: #fff;
}

/* Submit Button */
.btn-demo-submit {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-demo-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
}

.btn-demo-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-demo-submit.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.btn-demo-submit:hover .arrow-icon {
    transform: translateX(3px);
}

/* Form Footer */
.form-footer {
    text-align: left;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.urgency-text {
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.guarantee {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Footer Styles */
body.page-template-page-enterprise-demo footer {
    position: relative;
    z-index: 20;
    background: #000;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    margin-top: 0;
}

body.page-template-page-enterprise-demo .qodef-page-footer {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

body.page-template-page-enterprise-demo .qodef-page-footer,
body.page-template-page-enterprise-demo .qodef-page-footer p,
body.page-template-page-enterprise-demo .qodef-page-footer a,
body.page-template-page-enterprise-demo .qodef-page-footer .widget-title {
    color: rgba(255, 255, 255, 0.8);
}

body.page-template-page-enterprise-demo .qodef-page-footer a:hover {
    color: #6366f1;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .demo-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .demo-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
    }
    
    .ss-demo-wrapper {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .ss-demo-hero {
        padding: 0;
        padding-bottom: 60px;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    } 

    .demo-content {
        display: block;
        padding: 0;
        gap: 0;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    
    .demo-left,
    .demo-right {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .demo-title {
        font-size: 2rem;
        padding: 0 20px;
    }
    
    .hero-subtitle {
        padding: 0 20px;
    }
    
    .hero-subtitle h2 {
        font-size: 1.75rem;
    }
    
    body.page-template-page-enterprise-demo .demo-form-container {
        padding: 1rem !important;
        margin: 0 15px 2rem 15px !important;
        box-sizing: border-box !important;
        width: auto !important;
        max-width: calc(100vw - 30px) !important;
        overflow: hidden !important;
    }
    
    body.page-template-page-enterprise-demo .demo-form {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    body.page-template-page-enterprise-demo .demo-form .form-field {
        margin-bottom: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    body.page-template-page-enterprise-demo .demo-form input[type="text"],
    body.page-template-page-enterprise-demo .demo-form input[type="email"],
    body.page-template-page-enterprise-demo .demo-form input[type="tel"],
    body.page-template-page-enterprise-demo .demo-form select,
    body.page-template-page-enterprise-demo .demo-form textarea {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 0.75rem !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
        margin: 0 !important;
        -webkit-appearance: none;
        appearance: none;
        border-radius: 12px !important;
        display: block !important;
    }
    
    .btn-demo-submit {
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
    }
    
    .logo-carousel-container {
        margin: 2rem 0;
        padding: 0 20px;
    }
    
    .carousel-track {
        animation-duration: 20s;
    }
    
    .logo-item img {
        height: 100px;
    }
    
    .value-props {
        gap: 1rem;
        padding: 0 20px;
    }
    
    .value-item {
        padding: 1rem;
        width: auto;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .testimonial-quote {
        margin: 3rem 20px 2rem 20px;
    }
    
    .testimonial-quote blockquote::before {
        left: -10px;
        font-size: 3rem;
    }
}

/* Extra small devices (phones under 430px) */
@media (max-width: 430px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .ss-demo-wrapper {
        padding-top: 80px;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .ss-demo-hero {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .ss-demo-hero .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .demo-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .demo-left,
    .demo-right {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .demo-title {
        font-size: 1.75rem !important;
        padding: 0 15px !important;
        word-wrap: break-word !important;
    }
    
    .hero-subtitle {
        padding: 0 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-subtitle h2 {
        font-size: 1.5rem !important;
        word-wrap: break-word !important;
    }
    
    .demo-subtext {
        font-size: 1rem !important;
        word-wrap: break-word !important;
    }
    
    body.page-template-page-enterprise-demo .demo-form-container {
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        padding: 0.75rem !important;
        margin: 0 10px 2rem 10px !important;
        box-sizing: border-box !important;
    }
    
    .logo-carousel-container {
        padding: 0 10px !important;
    }
    
    .logo-item img {
        height: 80px !important;
    }
    
    .value-props {
        padding: 0 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .value-item {
        padding: 0.75rem !important;
        flex-direction: column !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .value-content {
        width: 100% !important;
        word-wrap: break-word !important;
    }
    
    .value-content strong {
        font-size: 1rem !important;
    }
    
    .value-content span {
        font-size: 0.8rem !important;
    }
    
    .value-icon {
        margin-bottom: 0.5rem !important;
        font-size: 1.5rem !important;
    }
    
    .testimonial-quote {
        margin: 2rem 15px !important;
        padding: 1rem !important;
        width: calc(100% - 30px) !important;
        box-sizing: border-box !important;
    }
    
    .testimonial-quote blockquote {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
    }
    
    .testimonial-quote cite {
        font-size: 0.8rem !important;
    }
    
    .testimonial-quote blockquote::before {
        display: none !important;
    }
    
    body.page-template-page-enterprise-demo .demo-form input[type="text"],
    body.page-template-page-enterprise-demo .demo-form input[type="email"],
    body.page-template-page-enterprise-demo .demo-form input[type="tel"],
    body.page-template-page-enterprise-demo .demo-form select,
    body.page-template-page-enterprise-demo .demo-form textarea {
        padding: 0.6rem !important;
        font-size: 16px !important;
    }
    
    .btn-demo-submit {
        padding: 1rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
    
    .form-header h3 {
        font-size: 1.25rem !important;
    }
    
    .form-header p {
        font-size: 0.8rem !important;
    }
    
    .form-footer {
        width: 100% !important;
        padding: 0 !important;
    }
    
    .urgency-text,
    .guarantee {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
    }
}

