/* Smart Download Modal Styles */
.sdm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sdm-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sdm-modal {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.sdm-modal-overlay.active .sdm-modal {
    transform: translateY(0);
}

.sdm-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sdm-modal-close:hover {
    color: #333;
}

.sdm-modal h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sdm-modal h2 i {
    color: #4b6cb7;
}

.sdm-file-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid #4b6cb7;
}

.sdm-file-icon {
    font-size: 36px;
    color: #e74c3c;
}

.sdm-file-info h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 18px;
}

.sdm-file-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.sdm-form-group {
    margin-bottom: 20px;
}

.sdm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 14px;
}

.sdm-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s;
}

.sdm-form-group input:focus {
    outline: none;
    border-color: #4b6cb7;
    box-shadow: 0 0 0 3px rgba(75, 108, 183, 0.1);
}

.sdm-modal-submit-btn {
    background: linear-gradient(to right, #4b6cb7, #3a56a4);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sdm-modal-submit-btn:hover {
    background: linear-gradient(to right, #3a56a4, #2d4688);
    transform: translateY(-2px);
}

.sdm-privacy-notice {
    margin-top: 15px;
    text-align: center;
    color: #777;
    font-size: 12px;
    line-height: 1.4;
}

/* Download Button Styles */
.sdm-download-btn {
    background: linear-gradient(to right, #4b6cb7, #3a56a4);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 16px;
}

.sdm-download-btn:hover {
    background: linear-gradient(to right, #3a56a4, #2d4688);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Thank You Page Styles */
#sdm-thank-you-page {
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.sdm-thank-you-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.sdm-thank-you-icon {
    font-size: 80px;
    color: #2d9c8a;
    margin-bottom: 20px;
}

#sdm-thank-you-page h2 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 15px;
}

#sdm-thank-you-page p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.sdm-back-btn {
    background: #4b6cb7;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    margin-top: 20px;
}

.sdm-back-btn:hover {
    background: #3a56a4;
}

/* Loading State */
.sdm-loading {
    position: relative;
    pointer-events: none;
}

.sdm-loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: sdm-spin 0.8s linear infinite;
}

@keyframes sdm-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .sdm-modal {
        width: 95%;
        padding: 20px;
    }
    
    .sdm-thank-you-container {
        padding: 20px;
    }
    
    #sdm-thank-you-page h2 {
        font-size: 28px;
    }
}