/* ==========================================
   OneZpay - Responsive Styles
   Mobile-First Responsive Design
   ========================================== */

/* ==========================================
   LAPTOP (992px - 1199px)
   ========================================== */
@media (max-width: 1199px) {
    :root {
        --text-6xl: 3.25rem;
        --text-5xl: 2.75rem;
    }

    .hero-container {
        gap: var(--space-8);
    }

    .features-grid {
        gap: var(--space-6);
    }

    .footer-grid {
        gap: var(--space-8);
    }
}

/* ==========================================
   TABLET (768px - 991px)
   ========================================== */
@media (max-width: 991px) {
    :root {
        --text-6xl: 2.75rem;
        --text-5xl: 2.25rem;
        --text-4xl: 2rem;
    }

    /* Navigation */
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Hero */
    .hero {
        padding-top: 100px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
        margin-right: 0;
        justify-content: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-phone {
        max-width: 280px;
    }

    .hero-phone-screen {
        height: 400px;
    }

    .hero-illustration {
        max-width: 100%;
    }

    .hero-illustration .floating-card {
        display: none;
    }

    .floating-card {
        display: none;
    }

    /* New Illustration Responsive - Tablet */
    .illustration-container {
        padding: var(--space-4);
    }

    .illustration-bg-circle {
        width: 280px;
        height: 280px;
    }

    .illustration-bg-circle-2 {
        width: 220px;
        height: 220px;
    }

    .illustration-main-img {
        max-width: 100%;
    }

    .success-badge-floating {
        right: -10px;
        bottom: 10%;
    }

    .success-badge-floating svg {
        width: 60px;
        height: 60px;
    }

    .floating-rupee {
        font-size: 1.5rem;
    }

    .floating-rupee-1 {
        font-size: 2rem;
    }

    .sparkle {
        font-size: 1.2rem;
    }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Steps */
    .steps-container {
        flex-direction: column;
        gap: var(--space-8);
    }

    .steps-container::before {
        display: none;
    }

    .step {
        max-width: 400px;
        margin: 0 auto;
    }

    /* Calculator */
    .calculator-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .calculator-content {
        margin-bottom: var(--space-8);
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        order: 2;
    }

    .contact-form {
        order: 1;
    }

    /* Grids */
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   LARGE MOBILE (576px - 767px)
   ========================================== */
@media (max-width: 767px) {
    :root {
        --text-6xl: 2.25rem;
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
        --container-padding: 1rem;
    }

    /* Section spacing */
    .section {
        padding: var(--space-12) 0;
    }

    .section-lg {
        padding: var(--space-16) 0;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 120px 0 var(--space-12);
    }

    .hero-badge {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-3);
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-description {
        font-size: var(--text-base);
    }

    .hero-cta {
        flex-direction: column;
        gap: var(--space-3);
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-6);
    }

    .hero-stat-number {
        font-size: var(--text-2xl);
    }

    /* New Illustration Responsive - Mobile */
    .illustration-container {
        padding: var(--space-2);
    }

    .illustration-bg-circle {
        width: 220px;
        height: 220px;
    }

    .illustration-bg-circle-2 {
        width: 180px;
        height: 180px;
    }

    .illustration-main-img {
        max-width: 100%;
    }

    .hero-illustration {
        max-width: 100%;
    }

    .success-badge-floating {
        display: none;
    }

    .floating-rupee {
        display: none;
    }

    .sparkle {
        font-size: 1rem;
    }

    .sparkle-3,
    .sparkle-4 {
        display: none;
    }

    /* Trust Section */
    .trust-container {
        flex-direction: column;
        gap: var(--space-6);
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: var(--space-6);
    }

    .feature-icon {
        width: 64px;
        height: 64px;
        font-size: var(--text-2xl);
    }

    /* Calculator */
    .calculator-card {
        padding: var(--space-6);
    }

    .calculator-results {
        padding: var(--space-4);
    }

    /* CTA */
    .cta-form {
        flex-direction: column;
    }

    .cta-input,
    .cta-form .btn {
        width: 100%;
    }

    /* FAQ */
    .faq-question {
        padding: var(--space-4);
        font-size: var(--text-base);
    }

    .faq-answer-content {
        padding: 0 var(--space-4) var(--space-4);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: var(--space-2);
    }

    /* Page Hero */
    .page-hero {
        padding: 120px 0 var(--space-10);
    }

    /* Buttons */
    .btn {
        padding: var(--space-3) var(--space-5);
    }

    .btn-lg {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-base);
    }

    /* Tables */
    .eligibility-table {
        font-size: var(--text-sm);
    }

    .eligibility-table th,
    .eligibility-table td {
        padding: var(--space-3);
    }

    /* Grids */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   SMALL MOBILE (< 576px)
   ========================================== */
@media (max-width: 575px) {
    :root {
        --text-6xl: 2rem;
        --text-5xl: 1.75rem;
        --text-4xl: 1.5rem;
        --text-3xl: 1.375rem;
        --text-2xl: 1.25rem;
    }

    /* Header */
    .header-container {
        padding: var(--space-3) var(--space-4);
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: var(--text-lg);
    }

    .logo-text {
        font-size: var(--text-lg);
    }

    /* Hero */
    .hero-phone {
        max-width: 240px;
    }

    .hero-phone-screen {
        height: 350px;
        padding: var(--space-6);
    }

    .hero-phone-logo {
        font-size: var(--text-2xl);
    }

    .coming-soon-badge {
        font-size: var(--text-xs);
    }

    /* Hero Illustration - Small Mobile */
    .hero-illustration {
        max-width: 100%;
    }

    .illustration-main-img {
        max-width: 100%;
    }

    /* Steps */
    .step-number {
        width: 80px;
        height: 80px;
        font-size: var(--text-2xl);
    }

    .step-icon {
        width: 28px;
        height: 28px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: var(--space-6);
    }

    .testimonial-text {
        font-size: var(--text-base);
    }

    .testimonial-avatar {
        width: 48px;
        height: 48px;
    }

    /* Contact Cards */
    .contact-icon {
        width: 48px;
        height: 48px;
        font-size: var(--text-lg);
    }

    /* Form */
    .form-input,
    .form-textarea,
    .form-select {
        padding: var(--space-3);
    }

    /* Mobile Menu */
    .mobile-menu {
        top: 64px;
    }

    .mobile-nav-link {
        font-size: var(--text-base);
    }
}

/* ==========================================
   ILLUSTRATION CROP RESPONSIVE
   ========================================== */

/* Tablet */
@media (max-width: 991px) {
    .illustration-crop {
        max-width: 250px;
    }

    .illustration-crop.large {
        max-width: 300px;
    }

    .step-illustration .illustration-crop {
        max-width: 240px;
    }

    .about-illustration .illustration-crop {
        max-width: 280px;
    }

    .contact-illustration .illustration-crop {
        max-width: 260px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .illustration-crop {
        max-width: 220px;
    }

    .illustration-crop.large {
        max-width: 260px;
    }

    .step-illustration .illustration-crop {
        max-width: 200px;
    }

    .about-illustration .illustration-crop,
    .contact-illustration .illustration-crop {
        max-width: 220px;
        margin-bottom: var(--space-6);
    }
}

/* Small Mobile */
@media (max-width: 575px) {
    .illustration-crop {
        max-width: 180px;
    }

    .illustration-crop.large {
        max-width: 220px;
    }

    .step-illustration .illustration-crop {
        max-width: 180px;
    }
}

/* ==========================================
   HOMEPAGE ILLUSTRATIONS RESPONSIVE
   ========================================== */

/* Tablet */
@media (max-width: 991px) {
    .homepage-illustration {
        max-width: 350px;
    }

    .hero-illustration .homepage-illustration {
        max-width: 400px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .homepage-illustration {
        max-width: 280px;
    }

    .hero-illustration .homepage-illustration {
        max-width: 320px;
    }
}

/* Small Mobile */
@media (max-width: 575px) {
    .homepage-illustration {
        max-width: 240px;
    }

    .hero-illustration .homepage-illustration {
        max-width: 280px;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .header,
    .footer,
    .mobile-menu-btn,
    .cta-section,
    .btn {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        background: none;
        color: black;
        min-height: auto;
        padding: 20px 0;
    }

    .hero-title,
    .hero-description {
        color: black;
    }

    .section {
        padding: 20px 0;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================
   HIGH CONTRAST
   ========================================== */
@media (prefers-contrast: high) {
    :root {
        --primary-red: #cc0000;
        --primary-red-dark: #990000;
        --secondary-blue: #0000cc;
        --text-secondary: #333333;
    }

    .btn-primary,
    .btn-secondary,
    .btn-gold {
        border: 2px solid currentColor;
    }
}

/* ==========================================
   DARK MODE (Optional - Commented Out)
   ========================================== */
/*
@media (prefers-color-scheme: dark) {
    :root {
        --warm-white: #1a1a2e;
        --soft-gray: #16213e;
        --white: #0f0f23;
        --text-primary: #e2e8f0;
        --text-secondary: #a0aec0;
    }
}
*/
