/* Frontend Styles for Download Box */

/* Download Box Container */
.download-box {
    background: #f7f7f8;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    margin-bottom: 60px !important;
    color: #333;
    position: relative;
    overflow: hidden;
}

.download-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.download-box-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #6F01F5 !important;
    position: relative;
    z-index: 1;
}

.download-box-description {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
}

.download-box-cta {
    font-size: 16px;
}

.download-box-cta:active {
    transform: translateY(0);
}

/* Download Overlay - Using existing modal structure from theme */
.download-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: rgba(0, 0, 0, 0.6);
}

.download-overlay.show {
    display: block;
    opacity: 1;
}

.download-modal {
    position: fixed;
    margin: 0 0 0 -400px;
    top: 50%;
    left: 50%;
    z-index: 1050;
    width: 800px;
    max-width: 90%;
    background-color: #fff;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    transform: translateY(-50%);
}

.download-modal-header {
    padding: 20px 25px;
    color: #fff;
    border-radius: 4px 4px 0 0;
    position: relative;
}

.download-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    padding-right: 40px;
}

.download-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 5px 10px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.download-modal-close:hover {
    opacity: 1;
}

.download-modal-body {
    padding: 30px;
    max-height: 600px;
    overflow-y: auto;
}

/* Eloqua Form Container */
.eloqua-form {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .download-modal {
        width: 90%;
        margin-left: -45%;
        max-height: 80vh;
    }
    
    .download-box {
        padding: 20px;
    }
    
    .download-box-title {
        font-size: 20px;
    }
    
    .download-box-description {
        font-size: 14px;
    }
}

/* Animation for modal appearance */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.download-overlay.show {
    animation: fadeIn 0.3s ease;
}

.download-overlay.show .download-modal {
    animation: slideIn 0.3s ease;
}
