/* Download Gate Styles */

.dg-form-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    margin: 20px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dg-title {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
}

.dg-subtitle {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

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

.dg-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.dg-form-group input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.dg-form-group input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
}

.dg-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dg-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.dg-submit-btn:active {
    transform: translateY(0);
}

.dg-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.dg-privacy-note {
    margin-top: 15px;
    padding: 12px;
    background: #f0f4ff;
    border-radius: 8px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.dg-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.dg-message.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.dg-message.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.dg-already-access {
    background: #d4edda;
    color: #155724;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    border-left: 4px solid #28a745;
}

/* Protected Content Styles */

.dg-protected-content.dg-hidden {
    display: none !important;
}

.dg-protected-content.dg-visible {
    display: block;
    animation: dgFadeIn 0.5s ease-in;
}

@keyframes dgFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dg-locked-message {
    background: #fff3cd;
    color: #856404;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    text-align: center;
    font-weight: 500;
}

/* Body class based visibility */

body.no-download-access .download-protected {
    display: none !important;
}

body.has-download-access .download-protected {
    display: block;
}

body.has-download-access .download-locked {
    display: none !important;
}

body.no-download-access .download-locked {
    display: block;
}

/* Responsive */

@media (max-width: 600px) {
    .dg-form-container {
        padding: 20px;
        margin: 10px;
    }
    
    .dg-title {
        font-size: 20px;
    }
    
    .dg-subtitle {
        font-size: 14px;
    }
}
