/* assets/frontend.css */

/* Download Button Container */
.drm-download-button-container {
    margin: 20px 0;
}

.drm-file-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.drm-file-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.drm-file-icon {
    position: relative;
    margin-right: 20px;
}

.drm-file-type {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: #E53E3E;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
}

.drm-file-info {
    flex: 1;
}

.drm-file-name {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.drm-file-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.drm-download-btn {
    background: #3B82F6;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.drm-download-btn:hover {
    background: #2563EB;
}

/* Modal Styles */
.drm-modal {
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
}

.drm-modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.drm-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 20px;
}

.drm-close:hover {
    color: #000;
}

.drm-modal-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
}

/* Form Styles */
.drm-request-form {
    width: 100%;
}

.drm-form-group {
    margin-bottom: 20px;
}

.drm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.drm-request-form input[type="text"],
.drm-request-form input[type="email"],
.drm-request-form input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.drm-request-form input:focus {
    outline: none;
    border-color: #3B82F6;
    background: #fff;
}

.drm-request-form input::placeholder {
    color: #999;
    font-style: italic;
}

/* reCAPTCHA Style */
.drm-recaptcha {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
}

.drm-recaptcha input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.drm-recaptcha label {
    cursor: pointer;
    user-select: none;
    color: #333;
    font-size: 14px;
}

/* Submit Button */
.drm-submit-btn {
    width: 100%;
    background: #DC2626;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.drm-submit-btn:hover:not(:disabled) {
    background: #B91C1C;
}

.drm-submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Message Styles */
.drm-message {
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
    text-align: center;
}

.drm-message.drm-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.drm-message.drm-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.drm-message h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .drm-file-item {
        flex-direction: column;
        text-align: center;
    }
    
    .drm-file-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .drm-file-info {
        margin-bottom: 15px;
    }
    
    .drm-file-meta {
        justify-content: center;
    }
    
    .drm-form-row {
        grid-template-columns: 1fr;
    }
    
    .drm-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}