#download-modal-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#download-modal {
    background: #ffffff;
    width: 500px;
    max-width: 90%;
    margin: 0;
    padding: 40px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#download-modal-close {
    position: absolute;
    top: 15px; 
    right: 20px; 
    cursor: pointer;
    font-size: 24px;
    color: #666;
    background: none;
    border: none;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
}

#download-modal-close:hover {
    color: #333;
}

#download-modal h2 {
    margin: 0 0 30px 0;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

#download-modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#download-modal-form label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

#download-modal-form input[type="text"],
#download-modal-form input[type="email"],
#download-modal-form select {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
    font-family: inherit;
}

#download-modal-form input[type="text"]:focus,
#download-modal-form input[type="email"]:focus,
#download-modal-form select:focus {
    outline: none;
    border-color: #006177;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

#download-modal-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.checkbox-container {
    margin-top: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

#download-modal-form input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

#download-modal-form label[for="dm-gdpr"] {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

#download-modal-form label[for="dm-gdpr"] a {
    color: #006177;
    text-decoration: none;
    font-weight: 500;
}

#download-modal-form label[for="dm-gdpr"] a:hover {
    text-decoration: underline;
}

#download-modal-form button[type="submit"] {
    background: #006177;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 10px;
    font-family: inherit;
}

#download-modal-form button[type="submit"]:hover {
    background: #006177;
    transform: translateY(-1px);
}

#download-modal-form button[type="submit"]:active {
    transform: translateY(0);
}

#download-modal-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 6px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0c4a6e;
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 600px) {
    #download-modal {
        width: 95%;
        padding: 30px 20px;
        margin: 20px;
    }
    
    #download-modal h2 {
        font-size: 24px;
    }
    
    #download-modal-form {
        gap: 15px;
    }
}