/* Deployment-Specific CSS Fixes for Hostinger */
/* Add this as backup CSS to ensure proper styling */

/* CRITICAL ALIGNMENT FIXES */
.case-studies-cta,
.why-choose-cta {
    text-align: center !important;
    margin: 80px auto 0 !important;
    max-width: 900px !important;
    display: block !important;
    padding: 60px 40px !important;
}

.calendar-content {
    text-align: center !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.booking-options {
    text-align: center !important;
    max-width: 700px !important;
    margin: 0 auto !important;
}

.contact-form {
    text-align: left !important;
    max-width: 100% !important;
}

/* ORIGINAL SECTION SPACING */
.case-studies {
    padding: 80px 0 60px !important;
}

.services {
    padding: 80px 0 60px !important;
}

.calendar-section {
    padding: 80px 0 60px !important;
}

.hero {
    padding: 120px 0 100px !important;
}

.solution-section {
    padding: 80px 0 !important;
}

/* ADDITIONAL COMPACT SPACING */
.section-header {
    margin-bottom: 40px !important;
}

.hero-buttons {
    margin-bottom: 2rem !important;
}

.hero-stats {
    margin-top: 2rem !important;
}

.services-grid {
    margin: 50px auto 0 !important;
}

/* ORIGINAL HERO DESIGN RESTORED */
.hero-stats {
    display: flex !important;
    gap: 2rem !important;
    margin-top: 3rem !important;
}

.hero-stats .stat {
    text-align: left !important;
    padding: 1.5rem !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border-radius: 1rem !important;
    border-left: 4px solid var(--primary-color) !important;
    backdrop-filter: blur(10px) !important;
    min-width: 140px !important;
}

.hero-stats .stat h3 {
    font-size: 1.5rem !important;
    color: var(--primary-color) !important;
    margin-bottom: 0.5rem !important;
}

.hero-stats .stat p {
    font-size: 0.875rem !important;
    color: var(--text-light) !important;
    margin-bottom: 0 !important;
}

/* ORIGINAL DESKTOP SPACING */
@media (min-width: 769px) {
    .hero, .services, .case-studies, .calendar-section {
        padding: 120px 0 100px !important;
    }
    
    .solution-section {
        padding: 80px 0 !important;
    }
    
    .section-header {
        margin-bottom: 80px !important;
    }
    
    .case-studies-cta, .why-choose-cta {
        margin: 80px auto 0 !important;
        padding: 60px 40px !important;
    }
}

/* ENHANCED FORM STYLING AND ALIGNMENT */
.form-group {
    margin-bottom: 24px !important;
    display: flex !important;
    flex-direction: column !important;
}

.form-group label {
    display: block !important;
    margin-bottom: 10px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    text-align: left !important;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100% !important;
    padding: 18px 20px !important;
    border: 2px solid #e9ecef !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
    min-height: 56px !important;
    display: block !important;
    background: #fafbfc !important;
}

/* CRITICAL FORM ROW LAYOUT FIX */
.form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
    margin-bottom: 24px !important;
    align-items: end !important;
    width: 100% !important;
}

/* Force specific form rows to be grid */
form .form-row:nth-of-type(1),
form .form-row:nth-of-type(2) {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
}

/* Ensure grid layout takes precedence */
.contact-form .form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
    margin-bottom: 24px !important;
    width: 100% !important;
}

/* Specific targeting for deployment issues */
.booking-options .form-row,
#form-tab .form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
}

.btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 16px 32px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    border: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    color: white !important;
}

/* CONTAINER FIXES */
.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* SERVICES GRID 2X2 LAYOUT FIX */
.services-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    grid-template-areas: 
        "card1 card2"
        "card3 card4" !important;
    gap: 32px !important;
    max-width: 900px !important;
    margin: 60px auto 0 !important;
    align-items: stretch !important;
}

.service-card:nth-child(1) { grid-area: card1 !important; }
.service-card:nth-child(2) { grid-area: card2 !important; }
.service-card:nth-child(3) { grid-area: card3 !important; }
.service-card:nth-child(4) { grid-area: card4 !important; }

.service-card {
    width: 100% !important;
    min-height: 320px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

/* BOOKING TABS STYLING FIX */
.booking-tabs {
    display: flex !important;
    margin-bottom: 32px !important;
    background: white !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.12) !important;
    border: 1px solid rgba(0, 123, 255, 0.1) !important;
    max-width: 400px !important;
    margin: 0 auto 32px !important;
}

.tab-btn {
    flex: 1 !important;
    padding: 20px 24px !important;
    background: transparent !important;
    border: none !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #6c757d !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 14px !important;
    margin: 4px !important;
    position: relative !important;
    font-family: 'Inter', sans-serif !important;
}

.tab-btn:hover {
    background: rgba(0, 123, 255, 0.08) !important;
    color: #007bff !important;
}

.tab-btn.active {
    background: #007bff !important;
    color: white !important;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.25) !important;
    transform: translateY(-1px) !important;
}

/* FORM BUTTON SPACING FIX */
/* TAB CONTENT FUNCTIONALITY FIX */
.tab-content {
    display: none !important;
}

.tab-content.active {
    display: block !important;
}

/* ENHANCED BUTTON STYLING */
.contact-form .btn {
    width: 100% !important;
    margin-top: 40px !important;
    justify-content: center !important;
    padding: 20px 36px !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.35) !important;
    border: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
}

.contact-form .btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 18px 45px rgba(0, 123, 255, 0.45) !important;
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%) !important;
}



/* MOBILE RESPONSIVE FIXES */
@media (max-width: 768px) {

    
    /* Mobile Services Section - FLEXBOX OVERRIDE */
    .services-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 20px !important;
        margin: 40px auto 0 !important;
        max-width: 100% !important;
        padding: 0 20px !important;
        grid-template-areas: none !important;
        grid-template-rows: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .service-card {
        padding: 24px 20px !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
        border: 1px solid #e9ecef !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-height: auto !important;
        grid-area: none !important;
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        margin: 0 0 20px 0 !important;
        position: relative !important;
        overflow: hidden !important;
        float: none !important;
        clear: both !important;
    }
    
    .service-card:nth-child(1), 
    .service-card:nth-child(2), 
    .service-card:nth-child(3), 
    .service-card:nth-child(4) {
        grid-area: none !important;
        float: none !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 20px !important;
        position: relative !important;
    }
    
    .service-card h3 {
        font-size: 18px !important;
        font-weight: 600 !important;
        margin-bottom: 12px !important;
        color: #333 !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .service-card p {
        font-size: 14px !important;
        color: #666 !important;
        line-height: 1.5 !important;
        margin: 0 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .service-icon {
        width: 60px !important;
        height: 60px !important;
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto 16px !important;
        flex-shrink: 0 !important;
        box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3) !important;
    }
    
    .service-icon i {
        font-size: 24px !important;
        color: white !important;
        text-align: center !important;
    }
    
    .service-card:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
    }
    
    /* Mobile Section Adjustments */
    .benefits, .services {
        padding: 60px 0 !important;
    }
    
    .benefits h2, .services h2 {
        font-size: 28px !important;
        text-align: center !important;
        margin-bottom: 40px !important;
        color: #333 !important;
        line-height: 1.3 !important;
        padding: 0 20px !important;
    }
    

    
    /* Container adjustments for mobile */
    .container {
        max-width: 100% !important;
        padding: 0 20px !important;
        margin: 0 auto !important;
    }
    
    /* Form adjustments for mobile */
    .form-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        grid-template-columns: none !important;
    }
    
    .booking-tabs {
        flex-direction: column !important;
        max-width: 100% !important;
        margin: 0 0 32px !important;
    }
    
    .tab-btn {
        margin: 2px 4px !important;
        padding: 16px 20px !important;
    }
    
    /* CTA section mobile adjustments */
    .case-studies-cta,
    .why-choose-cta {
        padding: 40px 20px !important;
        margin: 60px auto 0 !important;
    }
    
    .calendar-content {
        padding: 0 !important;
    }
    
    /* Case Studies Mobile */
    .case-study-card {
        margin-bottom: 30px !important;
        padding: 24px 20px !important;
        border-radius: 12px !important;
    }
    
    .case-study-card h3 {
        font-size: 20px !important;
        margin-bottom: 16px !important;
        line-height: 1.4 !important;
    }
    
    .case-study-card p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 16px !important;
    }
    
    .case-study-metrics {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 20px !important;
    }
    
    .metric {
        padding: 12px 16px !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        text-align: center !important;
    }
    
    /* Hero Section Mobile */
    .hero-title {
        font-size: 32px !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
        padding: 0 !important;
    }
    
    .hero-description {
        font-size: 16px !important;
        line-height: 1.6 !important;
        margin-bottom: 30px !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
    }
    
    .hero-buttons .btn {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        padding: 16px 24px !important;
        font-size: 16px !important;
    }
    
    /* Navigation Mobile */
    .nav-logo .logo-text {
        font-size: 18px !important;
    }
    
    .nav-toggle {
        display: flex !important;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 40px 0 30px !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center !important;
    }
    
    /* Calendly Integration Mobile */
    .calendly-inline-widget {
        min-width: 100% !important;
        height: 600px !important;
    }
    
    
}