/* 
 * Mobile-First Responsive Overrides for Ayurveda Theme
 * Ensures perfect alignment and responsive design
 */

/* Emergency Contact Section - Fixed Layout */
.emergency-contact {
    margin-top: 1.5rem;
}

.emergency-card {
    display: flex;
    align-items: center;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.emergency-card:hover {
    background: rgba(220, 53, 69, 0.15);
    transform: translateY(-2px);
}

.emergency-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.emergency-content h5 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.emergency-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    margin: 0 0 0.5rem 0;
}

.emergency-btn {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    background: rgba(220, 53, 69, 0.8);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.emergency-btn:hover {
    background: rgba(220, 53, 69, 1);
    color: white;
}

/* Three Doshas Section - Enhanced Responsive Design */
.ayurvedic-principles {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.dosha-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dosha-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.dosha-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--dosha-color, #2c5f2d), var(--dosha-color-light, #4a7c59));
    color: white;
    position: relative;
    overflow: hidden;
}

.dosha-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.dosha-card:hover .dosha-icon::before {
    left: 100%;
}

.dosha-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2d3748;
    text-align: center;
}

.dosha-subtitle {
    font-size: 0.9rem;
    color: #718096;
    text-align: center;
    margin-bottom: 1.5rem;
}

.dosha-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.dosha-characteristics {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dosha-characteristics li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #4a5568;
}

.dosha-characteristics li:last-child {
    border-bottom: none;
}

.dosha-characteristics li::before {
    content: '•';
    color: var(--dosha-color, #2c5f2d);
    margin-right: 0.75rem;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Responsive Design for Doshas */
@media (max-width: 991.98px) {
    .dosha-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .dosha-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .dosha-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .ayurvedic-principles {
        padding: 2rem 0;
    }
    
    .dosha-card {
        padding: 1rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .dosha-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .dosha-title {
        font-size: 1.1rem;
    }
    
    .dosha-characteristics li {
        justify-content: center;
        text-align: center;
    }
}

/* Stats Section Improvements */
.quick-stats-section .stat-card {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-stats-section .stat-content {
    text-align: center;
    width: 100%;
}

.quick-stats-section .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    display: block;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .quick-stats-section .stat-card {
        min-height: 150px;
        margin-bottom: 1rem;
    }
    
    .quick-stats-section .stat-number {
        font-size: 2rem;
    }
    
    .quick-stats-section .stat-icon-wrapper .stat-icon-bg {
        width: 60px !important;
        height: 60px !important;
    }
}

/* Treatment Process Section */
.treatment-process {
    background: linear-gradient(135deg, #2c5f2d 0%, #4a7c59 100%);
    color: white;
    padding: 4rem 0;
}

.process-step {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.process-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.process-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.process-description {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Responsive Treatment Process */
@media (max-width: 768px) {
    .treatment-process {
        padding: 2rem 0;
    }
    
    .process-step {
        padding: 1rem 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Achievement Badges Responsive */
.achievements-banner .achievement-badge {
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.achievements-banner .achievement-badge:hover {
    transform: translateY(-4px);
}

.achievements-banner .badge-icon {
    margin-bottom: 0.5rem;
}

.achievements-banner .badge-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.achievements-banner .badge-desc {
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .achievements-banner {
        margin-top: 2rem !important;
    }
    
    .achievements-banner .achievements-container {
        padding: 1.5rem !important;
    }
    
    .achievements-banner .achievement-badge {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .achievements-banner .badge-icon i {
        font-size: 1.5rem !important;
    }
}

/* Fix for NaN Values - Ensure proper number formatting */
.stat-number[data-target=""] {
    display: none;
}

.stat-number:empty::before {
    content: "0";
}

/* Loading state for stats */
.stat-number.loading {
    opacity: 0.5;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Enhanced Form Styling */
.hero-form {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.hero-form .form-title {
    color: #2d3748;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

.hero-form .form-control {
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.hero-form .form-control:focus {
    border-color: #2c5f2d;
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

.hero-form-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.875rem 1rem;
    transition: all 0.3s ease;
}

.hero-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

/* Mobile Form Adjustments */
@media (max-width: 768px) {
    .hero-form {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .hero-form .form-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .hero-form .form-control {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .hero-form-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Print-friendly styles */
@media print {
    .floating-elements,
    .emergency-contact,
    .hero-actions,
    .whatsapp-float {
        display: none !important;
    }
    
    .hero-banner-section {
        height: auto !important;
        min-height: auto !important;
    }
    
    .stat-card {
        break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .dosha-card {
        border: 2px solid #000;
    }
    
    .stat-card {
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}
