/* Lead Hero Section Styles based on uploaded design */

.new-lead-hero {
    background-color: #121215;
    background-image: radial-gradient(circle at 10% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(255, 127, 80, 0.05) 0%, transparent 40%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 20px 40px; /* Reduced padding */
    font-family: 'Inter', sans-serif;
    color: white;
}

#hero3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

.lead-hero-container {
    max-width: 1200px; /* Reduced max-width slightly */
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px; /* Reduced gap between left and right */
    position: relative;
    z-index: 2;
}

/* Left Content */
.lead-hero-content {
    flex: 1;
    max-width: 600px;
}

.trust-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 0.75rem;
    color: #e0e0e0;
    margin-bottom: 20px; /* Reduced */
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #8b5cf6;
    border-radius: 50%;
    box-shadow: 0 0 10px #8b5cf6;
}

.lead-hero-title {
    font-size: 3.2rem; /* Reduced from 4rem */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px; /* Reduced */
    letter-spacing: -1px;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #a855f7 0%, #d8b4fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-orange {
    background: linear-gradient(135deg, #f97316 0%, #fdba74 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-white {
    color: white;
}

.lead-hero-subtitle {
    font-size: 1rem; /* Reduced */
    color: #cbd5e1;
    margin-bottom: 25px; /* Reduced */
    line-height: 1.5;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Reduced */
    margin-bottom: 30px; /* Reduced */
}

.svc-tag {
    padding: 6px 12px; /* Reduced */
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.75rem; /* Reduced */
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.svc-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.lead-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Reduced */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px; /* Reduced */
}

.lead-stat h3 {
    font-size: 1.6rem; /* Reduced */
    font-weight: 700;
    margin-bottom: 2px;
    color: white;
}

.lead-stat p {
    font-size: 0.65rem; /* Reduced */
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Right Form Card */
.lead-hero-form-wrapper {
    flex: 0 0 400px; /* Reduced from 450px */
}

.lead-form-card {
    background: #ffffff;
    border-radius: 20px; /* Reduced */
    padding: 30px 25px; /* Reduced from 40px 35px */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: #1e293b;
}

.lead-form-card h2 {
    font-size: 1.5rem; /* Reduced */
    font-weight: 700;
    margin-bottom: 10px; /* Reduced */
    line-height: 1.2;
    color: #0f172a;
}

.form-subtext {
    font-size: 0.85rem; /* Reduced */
    color: #64748b;
    margin-bottom: 20px; /* Reduced */
}

.form-row {
    display: flex;
    gap: 12px; /* Reduced */
    margin-bottom: 15px; /* Reduced */
}

.form-group {
    flex: 1;
    margin-bottom: 15px; /* Reduced */
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.65rem; /* Reduced */
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px; /* Reduced */
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.85rem; /* Reduced */
    color: #334155;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #8b5cf6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.phone-input-group {
    display: flex;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.phone-input-group:focus-within {
    border-color: #8b5cf6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.country-code {
    padding: 10px 12px;
    color: #64748b;
    font-weight: 600;
    background: #f1f5f9;
    border-right: 1px solid #e2e8f0;
    font-size: 0.85rem;
}

.phone-input-group input {
    border: none;
    background: transparent;
}

.phone-input-group input:focus {
    box-shadow: none;
}

.lead-submit-btn {
    width: 100%;
    padding: 14px; /* Reduced */
    background: linear-gradient(to right, #8b5cf6, #f97316);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem; /* Reduced */
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
    box-shadow: 0 8px 15px rgba(139, 92, 246, 0.2);
}

.lead-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(139, 92, 246, 0.3);
}

.form-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 15px 0; /* Reduced */
    color: #cbd5e1;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.form-divider span {
    padding: 0 10px;
    font-size: 0.8rem;
}

.form-alt-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px; /* Reduced */
}

.alt-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px; /* Reduced */
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.8rem; /* Reduced */
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: all 0.3s ease;
}

.alt-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.form-disclaimer {
    text-align: center;
    font-size: 0.7rem;
    color: #94a3b8;
    margin: 0;
}

.form-disclaimer a {
    color: #8b5cf6;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .new-lead-hero {
        min-height: auto;
        padding-top: 120px;
    }
    .lead-hero-container {
        flex-direction: column;
        gap: 40px;
    }
    .lead-hero-content {
        max-width: 100%;
        text-align: center;
    }
    .lead-hero-stats {
        justify-content: center;
    }
    .service-tags {
        justify-content: center;
    }
    .lead-hero-form-wrapper {
        flex: 1;
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .lead-hero-title {
        font-size: 2.4rem;
    }
    .lead-form-card {
        padding: 25px 20px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-alt-actions {
        flex-direction: column;
    }
}

/* =========================================================
   Live Preview 3D Device UI Elements
   ========================================================= */
.hero-3d-devices-wrapper {
    position: relative;
    width: 450px;
    height: 500px;
    perspective: 1200px; /* Enhanced 3D depth */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 1. Floating Laptop Layer (Back) */
.device-laptop {
    position: absolute;
    top: 20px;
    right: 0;
    width: 450px;
    height: 280px;
    background: #0f172a;
    border-radius: 12px 12px 0 0;
    border: 5px solid #334155;
    border-bottom: none;
    transform: rotateY(-15deg) rotateX(8deg) translateZ(-80px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.8), 0 0 40px rgba(139, 92, 246, 0.4);
    animation: floatLaptop 6s ease-in-out infinite;
    overflow: visible; /* To allow base to stick out */
}

@keyframes floatLaptop {
    0% { transform: rotateY(-15deg) rotateX(8deg) translateZ(-80px) translateY(0px); }
    50% { transform: rotateY(-15deg) rotateX(8deg) translateZ(-80px) translateY(-10px); }
    100% { transform: rotateY(-15deg) rotateX(8deg) translateZ(-80px) translateY(0px); }
}

.device-laptop::after {
    /* Laptop Base Lip */
    content: '';
    position: absolute;
    bottom: -15px;
    left: -5%;
    width: 110%;
    height: 15px;
    background: linear-gradient(180deg, #475569 0%, #1e293b 100%);
    border-radius: 0 0 15px 15px;
}

.laptop-screen {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
}

.laptop-screen img {
    width: 100%;
    height: auto;
    object-position: top;
    animation: scrollPreview 12s infinite alternate linear;
}

@keyframes scrollPreview {
    0% { transform: translateY(0); }
    100% { transform: translateY(calc(-100% + 280px)); } /* Scroll down the image length */
}

/* 2. Phone Layer (Front) */
.device-phone {
    position: absolute;
    bottom: -20px;
    left: -40px;
    width: 250px; /* Thinner for phone */
    height: 480px;
    background: rgba(15, 23, 42, 0.3); /* Glass base */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 35px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    transform: rotateY(15deg) translateZ(80px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.8), -15px 15px 30px rgba(139, 92, 246, 0.3);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    animation: floatPhone 7s ease-in-out infinite;
}

@keyframes floatPhone {
    0% { transform: rotateY(15deg) translateZ(80px) translateY(0px); }
    50% { transform: rotateY(15deg) translateZ(80px) translateY(-15px); }
    100% { transform: rotateY(15deg) translateZ(80px) translateY(0px); }
}

.device-phone:hover {
    transform: rotateY(0deg) translateZ(120px) scale(1.05); /* Zoom and straighten on hover! */
    animation-play-state: paused;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: #000;
    border-radius: 0 0 12px 12px;
    z-index: 100;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Inner screen color */
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    border: 1px solid #333;
}

/* 3. Form Card overrides specifically for the Phone Screen */
.phone-form-card {
    background: transparent !important;
    padding: 30px 15px 15px !important; /* Space for notch */
    box-shadow: none !important;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff !important;
}

.phone-form-card h2 {
    font-size: 1.1rem !important;
    color: #fff !important;
    margin-bottom: 5px !important;
}

.phone-form-card .form-subtext {
    font-size: 0.75rem !important;
    margin-bottom: 20px !important;
    color: #cbd5e1 !important;
}

.phone-form-card .form-group {
    margin-bottom: 12px !important;
}

.phone-form-card label {
    font-size: 0.65rem !important;
    color: #e2e8f0 !important;
}

.phone-form-card input {
    padding: 10px 12px !important;
    font-size: 0.8rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

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

.phone-form-card .lead-submit-btn {
    padding: 12px !important;
    font-size: 0.85rem !important;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.phone-input-group {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}

.phone-input-group .country-code {
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
    border-right: 1px solid rgba(255,255,255,0.2) !important;
}

/* Responsiveness overrides for the 3D Setup */
@media (max-width: 1024px) {
    .hero-3d-devices-wrapper {
        margin: 40px auto;
        transform: scale(0.9);
    }
    .device-laptop {
        width: 400px;
    }
}

@media (max-width: 768px) {
    .hero-3d-devices-wrapper {
        transform: scale(0.8);
        width: 100%;
        height: 550px;
    }
    .device-laptop {
        top: 0;
        left: 50%;
        transform: translateX(-50%) rotateY(0deg) rotateX(15deg) translateZ(-100px);
    }
    /* Disable animation on mobile laptop */
    .device-laptop {
        animation: none;
    }
    .device-phone {
        left: 50%;
        bottom: 0;
        transform: translateX(-50%) rotateY(0deg) translateZ(50px);
    }
    .device-phone:hover {
        transform: translateX(-50%) rotateY(0deg) translateZ(50px);
    }
    @keyframes floatPhone {
        0% { transform: translateX(-50%) rotateY(0deg) translateZ(50px) translateY(0); }
        50% { transform: translateX(-50%) rotateY(0deg) translateZ(50px) translateY(-10px); }
        100% { transform: translateX(-50%) rotateY(0deg) translateZ(50px) translateY(0); }
    }
}
