/* Flying Plane Animation with Text Reveal */
/* Force flying plane size */
#flying-plane img {
    width: 130px !important;
    height: 250px !important;
    max-width: none !important;
    max-height: none !important;
}

/* Mobile Responsive Fixes for Banner */
@media (max-width: 767px) {
    .banner {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .banner .module-section {
        min-height: 85vh !important;
        padding: 25px 30px 60px !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
        padding-top: 25px !important;
    }

    /* Remove off-white/light background overlay */
    .banner .module-section::before {
        display: none !important;
    }

    /* Ensure background image is visible and not lightened */
    .banner .module-section {
        background-color: transparent !important;
    }
    
    .banner .container {
        position: relative;
        z-index: 2;
    }
    
    .banner .ld-fancy-heading {
        position: relative;
        z-index: 3;
        margin-top: 6vh !important; /* Moved down a little more */
    }
    
    /* Move container content - adjusted for better positioning */
    .banner .row.items-center {
        align-items: flex-start !important;
        padding-top: 0 !important; /* Removed padding to allow natural positioning */
    }
    
    .banner .ld-fancy-heading h1 {
        font-size: 42px !important;
        line-height: 1.2 !important;
        margin-bottom: 30px !important;
        font-weight: 700 !important;
        color: #000000 !important;
        text-shadow: none !important;
        letter-spacing: -0.5px !important;
    }
    
    .banner .ld-fancy-heading p {
        font-size: 18px !important;
        line-height: 1.7 !important;
        margin-bottom: 45px !important;
        color: #000000 !important;
        text-shadow: none !important;
        font-weight: 400 !important;
        max-width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .banner .lqd-adv-txt-fig {
        max-width: 100% !important;
        height: auto !important;
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)) !important;
    }
    
    .banner .lqd-adv-txt-fig[width="300"] {
        width: 240px !important;
        height: auto !important;
        margin-bottom: 20px !important;
    }
    
    .banner .lqd-adv-txt-fig[width="100"] {
        width: 70px !important;
        height: auto !important;
    }
    
    .banner .mt-60 {
        margin-top: 40px !important;
    }

    .banner .fan-image-mobile {
        display: none !important;
    }
    
    .banner a.btn-book-demo,
    .banner a[data-lity="#contact-modal"] {
        z-index: 100 !important;
        position: relative !important;
        pointer-events: auto !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1) !important;
        touch-action: manipulation !important;
        padding: 18px 36px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        border-radius: 50px !important;
        box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4), 0 4px 10px rgba(0,0,0,0.2) !important;
        transition: all 0.3s ease !important;
        background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
        color: #ffffff !important;
        border: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
    }

    .banner a.btn-book-demo:hover,
    .banner a[data-lity="#contact-modal"]:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 12px 28px rgba(139, 92, 246, 0.5), 0 6px 15px rgba(0,0,0,0.3) !important;
    }

    .banner a.btn-book-demo:active,
    .banner a[data-lity="#contact-modal"]:active {
        transform: translateY(0) !important;
    }
    
    .banner .link-badge {
        padding: 0 !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        display: inline-block !important;
    }

    .banner a.btn-book-demo {
        background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
        color: #ffffff !important;
        border: none !important;
        padding: 18px 36px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        border-radius: 50px !important;
        box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4), 0 4px 10px rgba(0,0,0,0.2) !important;
        transition: all 0.3s ease !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .banner .module-shape-1,
    .banner .module-shape-2,
    .banner .module-shape-3,
    .banner .module-shape-4 {
        display: none !important;
    }
    
    .banner #flying-plane {
        display: block !important;
    }
    
    .banner #flying-plane img {
        width: 100px !important;
        height: 100px !important;
        max-width: 100px !important;
    }

    /* Ensure plane container stays within bounds */
    .banner .min-h-200 {
        position: relative !important;
        overflow: visible !important;
    }
    
    .banner .min-h-200 {
        min-height: 250px !important;
    }
}

@media (max-width: 480px) {
    .banner .module-section {
        min-height: 80vh !important;
        padding: 20px 25px 50px !important;
        padding-top: 20px !important;
    }
    
    .banner .ld-fancy-heading h1 {
        font-size: 36px !important;
        line-height: 1.15 !important;
        margin-bottom: 25px !important;
        letter-spacing: -0.3px !important;
    }

    .banner .ld-fancy-heading p {
        font-size: 16px !important;
        line-height: 1.6 !important;
        margin-bottom: 40px !important;
        max-width: 95% !important;
    }
    
    .banner .lqd-adv-txt-fig[width="300"] {
        width: 200px !important;
    }
    
    .banner a.btn-book-demo,
    .banner a[data-lity="#contact-modal"] {
        font-size: 15px !important;
        padding: 16px 32px !important;
    }
    
    .banner .link-badge {
        font-size: 15px !important;
    }
    
    .banner #flying-plane {
        width: 80px !important;
        height: 80px !important;
    }
    
    .banner #flying-plane img {
        width: 80px !important;
        height: 80px !important;
    }
    
    .banner .min-h-200 {
        min-height: 220px !important;
    }
}

/* Ensure lity modal works on mobile */
.lity-modal {
    z-index: 9999 !important;
}

/* Fix touch events for mobile */
a[data-lity] {
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    touch-action: manipulation;
    cursor: pointer;
}

/* Contact Modal Mobile Fixes */
@media (max-width: 767px) {
    #contact-modal .lqd-modal-content {
        padding: 20px 15px !important;
        min-height: 100vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    #contact-modal .container {
        padding: 0 !important;
        min-height: auto !important;
    }
    
    #contact-modal .w-55percent,
    #contact-modal .w-45percent {
        width: 100% !important;
        padding: 0 !important;
    }
    
    #contact-modal .module-content {
        padding: 20px 15px !important;
        padding-right: 15px !important;
        padding-left: 15px !important;
    }
    
    #contact-modal .ld-fancy-heading h2 {
        font-size: 32px !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }
    
    #contact-modal .ld-fancy-heading p {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }
    
    #contact-modal .module-info {
        flex-direction: column !important;
        gap: 20px !important;
        margin-top: 20px !important;
    }
    
    #contact-modal .module-info > div {
        width: 100% !important;
        padding-left: 0 !important;
    }
    
    #contact-modal .module-form {
        padding: 20px 15px !important;
        margin-top: 20px !important;
    }
    
    #contact-modal .lqd-contact-form {
        padding: 20px 15px !important;
    }
    
    #contact-modal .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    #contact-modal .col {
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-bottom: 15px !important;
    }
    
    #contact-modal .col-12,
    #contact-modal .col-md-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    #contact-modal .module-form-inner {
        background: white !important;
        border-radius: 12px !important;
        padding: 30px 20px !important;
    }
    
    #contact-modal .row {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: wrap !important;
    }
    
    #contact-modal input[type="text"],
    #contact-modal input[type="email"],
    #contact-modal textarea {
        font-size: 16px !important;
        padding: 12px 15px !important;
        width: 100% !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        border-radius: 4px !important;
    }
    
    #contact-modal textarea {
        min-height: 120px !important;
        resize: vertical !important;
    }
    
    #contact-modal input[type="submit"] {
        width: 100% !important;
        padding: 15px 20px !important;
        font-size: 14px !important;
        margin-top: 10px !important;
    }
    
    #contact-modal .spacer {
        display: none !important;
    }
}

@media (max-width: 480px) {
    #contact-modal .ld-fancy-heading h2 {
        font-size: 28px !important;
    }
    
    #contact-modal .module-content {
        padding: 15px 10px !important;
    }
    
    #contact-modal .module-form {
        padding: 15px 10px !important;
    }
    
    #contact-modal .lqd-contact-form {
        padding: 15px 10px !important;
    }
}

/* Form Validation Error Styles */
.field-error input,
.field-error textarea {
    border-color: #ef4444 !important;
    border-width: 2px !important;
}

.error-message {
    display: block;
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
}

/* Success Message Styles */
.form-success-message {
    display: none;
    text-align: center;
    padding: 60px 30px;
    background: white;
    border-radius: 12px;
}

.form-success-message.show {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    position: relative;
}

.success-icon-circle {
    width: 80px;
    height: 80px;
    border: 4px solid #10b981;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.success-icon-checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
    width: 20px;
    height: 40px;
    border-right: 4px solid #10b981;
    border-bottom: 4px solid #10b981;
}

.success-title {
    font-size: 28px;
    font-weight: bold;
    color: #10b981;
    margin-bottom: 15px;
    line-height: 1.3;
}

.success-text {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .form-success-message {
        padding: 40px 20px;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .success-icon-circle {
        width: 60px;
        height: 60px;
        border-width: 3px;
    }
    
    .success-icon-checkmark {
        width: 15px;
        height: 30px;
        border-width: 3px;
    }
    
    .success-title {
        font-size: 24px;
    }
    
    .success-text {
        font-size: 14px;
    }
}

/* Ensure modal is scrollable on mobile */
@media (max-width: 767px) {
    .lity-wrap {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .lity-modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        overflow-y: auto !important;
    }
}

/* Mobile Menu Book Demo Button */
.mobile-book-demo-btn {
    margin-top: 20px;
}

.mobile-book-demo-btn .btn-book-demo {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Carousel Logo Alignment - Only for Clients/Partners Carousel */
.clients .carousel-items .carousel-item,
.carousel-nav-shaped .carousel-items .carousel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.clients .carousel-items .carousel-item-inner,
.carousel-nav-shaped .carousel-items .carousel-item-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.clients .carousel-items .carousel-item-content,
.carousel-nav-shaped .carousel-items .carousel-item-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.clients .carousel-items .carousel-item-content img,
.carousel-nav-shaped .carousel-items .carousel-item-content img {
    object-fit: contain;
    max-width: 100%;
    max-height: 110px;
    width: auto;
    height: auto;
    vertical-align: middle;
    display: block;
}

/* Mobile - Reduce Gaps Between Elements */
@media (max-width: 767px) {
    /* Reduce section padding */
    .lqd-section {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    
    /* Reduce gaps in product cards */
    #solution .carousel-item {
        margin-bottom: 15px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    #solution .carousel-item-content {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    
    /* Reduce heading margins */
    .ld-fancy-heading h2,
    .ld-fancy-heading h3,
    .ld-fancy-heading h4 {
        margin-bottom: 15px !important;
    }
    
    .ld-fancy-heading p {
        margin-bottom: 15px !important;
    }
    
    /* Reduce iconbox gaps */
    .iconbox {
        margin-bottom: 20px !important;
    }
    
    /* Reduce module content padding */
    .module-content {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    
    /* Reduce gaps in vision section */
    #benefits .iconbox {
        margin-bottom: 15px !important;
    }
    
    /* Increase gap between title and text in Key Benefits */
    #benefits .ld-fancy-heading h2 {
        margin-bottom: 2em !important;
    }
    
    /* Reduce carousel item gaps */
    .carousel-items {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
    
    /* Reduce FAQ accordion gaps */
    .accordion-item {
        margin-bottom: 10px !important;
    }
    
    /* Reduce gaps in new ways to build section */
    #new-ways-to-build .module-iconbox {
        gap: 15px !important;
    }
    
    #new-ways-to-build .lqd-iconbox-scale {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
}

@media (max-width: 480px) {
    /* Even smaller gaps on small mobile */
    .lqd-section {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    
    #solution .carousel-item-content {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
    
    .ld-fancy-heading h2,
    .ld-fancy-heading h3,
    .ld-fancy-heading h4 {
        margin-bottom: 12px !important;
    }
    
    .ld-fancy-heading p {
        margin-bottom: 12px !important;
    }
    
    .iconbox {
        margin-bottom: 15px !important;
    }
    
    #new-ways-to-build .lqd-iconbox-scale {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}
