/* Responsive styles */

/* Tablets and small desktops */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-left h1 {
        font-size: 2.8em; /* Slightly smaller than desktop */
    }
    
    .modal-content {
        max-width: 100%;
        height: 90vh;
    }
}

/* Large phones */
@media (max-width: 480px) {
    .hero {
        padding: 30px 15px; /* Reduced padding */
    }
    
    .hero-content {
        gap: 30px; /* Smaller gap */
    }
    
    .hero-left h1 {
        font-size: 2.2em; /* Smaller for phones */
        line-height: 1.1;
        margin-bottom: 16px;
    }
    
    .hero-left .tagline {
        font-size: 1.1em; /* Smaller tagline */
        margin-bottom: 30px;
    }
    
    .form-card {
        padding: 24px; /* Much smaller padding */
        margin: 0 5px; /* Small side margins */
    }
    
    .code-box {
        width: 38px;
        height: 46px;
        font-size: 1.1em;
    }
    
    .code-input-container {
        gap: 6px; /* Tighter spacing */
    }
}

/* iPhone XS and smaller */
@media (max-width: 375px) {
    .hero-left h1 {
        font-size: 2em; /* Even smaller */
    }
    
    .form-card {
        padding: 20px; /* Very compact */
    }
    
    .code-box {
        width: 36px;
        height: 44px;
        font-size: 1em;
    }
    
    .benefits-list li {
        padding: 12px 0; /* Tighter list items */
    }
}

/* Modal mobile fixes */
@media (max-width: 480px) {
    .modal-content {
        margin: 10px;
        max-width: calc(100vw - 20px);
        height: auto;
        max-height: calc(100vh - 20px);
    }
    
    .modal-body {
        padding: 16px; /* Reduce padding */
    }
    
    .modal-header {
        padding: 16px; /* Reduce header padding */
    }
    
    /* Stack buttons vertically on mobile */
    .modal-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-actions .button {
        flex: none; /* Remove flex: 1 */
        width: 100%;
        padding: 12px 16px;
        font-size: 14px; /* Slightly smaller font */
        white-space: nowrap;
    }
    
    /* Fix download menu positioning */
    .download-menu {
        position: static; /* Change from absolute */
        margin-bottom: 8px;
        margin-top: 0;
    }
    
    /* Adjust button text for smaller screens */
    #btn-download {
        font-size: 14px;
    }
    
    #btn-print {
        font-size: 14px;
    }
}

/* For very small screens like iPhone SE */
@media (max-width: 375px) {
    .modal-actions .button {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .modal-header h3 {
        font-size: 1.2em; /* Smaller modal title */
    }
}