/* Gated Content Download Styles */

/* Download Button */
.gcd-download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gcd-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.gcd-download-btn:active {
    transform: translateY(0);
}

/* Modal Background */
.gcd-modal {
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Content */
.gcd-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.gcd-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.gcd-close:hover,
.gcd-close:focus {
    color: #000;
}

/* Form Title */
.gcd-modal-content h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

/* Form Styles */
.gcd-form {
    margin-top: 20px;
}

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

.gcd-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.gcd-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.gcd-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.gcd-form-group input.error {
    border-color: #e74c3c;
}

/* Error Messages */
.gcd-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Privacy Policy */
.gcd-privacy {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #667eea;
}

.gcd-privacy p {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.gcd-privacy a {
    color: #667eea;
    text-decoration: underline;
    font-weight: 500;
}

.gcd-privacy a:hover {
    color: #764ba2;
}

/* Submit Button */
.gcd-submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gcd-submit-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.gcd-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading, Success, and Error Messages */
.gcd-loading,
.gcd-success,
.gcd-error-msg {
    text-align: center;
    padding: 10px;
    margin-top: 15px;
    border-radius: 5px;
    font-size: 14px;
}

.gcd-loading {
    background-color: #f0f0f0;
    color: #666;
}

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

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

/* Responsive Design */
@media (max-width: 600px) {
    .gcd-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .gcd-modal-content h3 {
        font-size: 20px;
    }
    
    .gcd-download-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* Loading Spinner */
.gcd-loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
