/* Step Buttons */
    .step-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .back-step-btn,
    .submit-btn {
        flex: none;
        width: 100%;
    }

    /* Mobile and Tablet Responsive Styles */

@media (max-width: 768px) {
    /* Typography */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .features h2 {
        font-size: 2rem;
    }

    /* Navigation */
    .nav-links {
        gap: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    /* Containers */
    .form-container, .login-container {
        padding: 2rem 1rem;
    }

    /* Grid and Layout */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Client Form */
    .client-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .client-item input {
        flex: none;
    }

    /* Region Selection */
    .region-group {
        flex-direction: column;
        align-items: stretch;
    }

    .region-group input {
        display: block;
        flex: none;
    }

    /* Buttons */
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .features {
        padding: 60px 0;
    }

    .form-page, .login-page {
        padding: 100px 0 60px;
    }

    /* Profile page mobile styles */
    .profile-info-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .action-buttons {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .credits-card {
        padding: 1.5rem !important;
    }
    
    .credits-card > div:first-of-type {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1.5rem !important;
    }
    
    .credits-card button {
        width: 100% !important;
        text-align: center !important;
    }
    
    #profile-credits {
        font-size: 2rem !important;
    }

    /* Hide credits text on small screens, show only number */
    #nav-credits {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
        margin-right: 0.5rem !important;
    }

    /* Pricing Grid - Keep in one line on medium screens */
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    .pricing-grid > div {
        padding: 1.5rem !important;
    }
    
    .pricing-grid h3 {
        font-size: 1.2rem !important;
    }
    
    .pricing-grid [id$="-price"] {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .form-container, .login-container {
        padding: 1.5rem 1rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }


    .profile-card,
    .credits-card,
    .account-actions-card,
    .account-stats-card {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .form-container {
        padding: 1.5rem 1rem !important;
    }
    
    #profile-credits {
        font-size: 1.8rem !important;
    }
    
    .action-buttons button {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }

    /* Pricing Grid - Still keep in one line but make smaller */
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
    }
    
    .pricing-grid > div {
        padding: 1rem !important;
    }
    
    .pricing-grid h3 {
        font-size: 1rem !important;
    }
    
    .pricing-grid p {
        font-size: 0.8rem !important;
    }
    
    .pricing-grid [id$="-price"] {
        font-size: 1.8rem !important;
    }
    
    .pricing-grid ul {
        font-size: 0.85rem !important;
    }
    
    .pricing-grid button {
        font-size: 0.9rem !important;
        padding: 0.75rem !important;
    }
    
    /* Professional plan scale adjustment for mobile */
    .pricing-grid > div:nth-child(2) {
        transform: none !important;
    }
}

@media (min-width: 1200px) {
    /* Large screens */
    .container {
        max-width: 1400px;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .hero p {
        font-size: 1.4rem;
    }

    .features h2 {
        font-size: 3rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }

    .form-page, .login-page {
        padding: 80px 0 40px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .cta-button,
    .back-btn,
    .submit-btn,
    .login-btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .feature-card {
        break-inside: avoid;
    }
}