/* PDF Download Survey Styles */

.pdf-download-survey {
    margin: 30px auto;
    text-align: center;
}

/* Download Button */
.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.pdf-download-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 115, 170, 0.4);
}

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

.pdf-download-btn svg {
    width: 24px;
    height: 24px;
}

/* Modal Styles */
.pdf-survey-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.pdf-survey-modal.active {
    display: flex;
}

.pdf-survey-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.pdf-survey-modal-content {
    position: relative;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    z-index: 1;
}

.pdf-survey-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-survey-modal-close:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

.pdf-survey-modal-content h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 28px;
    text-align: center;
}

.pdf-survey-modal-subtitle {
    margin: 0 0 30px 0;
    color: #666;
    font-size: 16px;
    text-align: center;
}

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

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

.pdf-survey-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pdf-survey-question {
    margin-bottom: 10px;
}

.pdf-survey-question label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #555;
    font-size: 16px;
    text-align: left;
}

.pdf-survey-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdf-survey-option {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-survey-option:hover {
    background: #f0f0f0;
    border-color: #0073aa;
}

.pdf-survey-option input[type="radio"]:checked + label {
    font-weight: 600;
    color: #0073aa;
}

.pdf-survey-option:has(input[type="radio"]:checked) {
    background: #e6f3f9;
    border-color: #0073aa;
}

.pdf-survey-option input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #0073aa;
}

.pdf-survey-option label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
    flex: 1;
}

.pdf-survey-submit {
    margin-top: 10px;
    padding: 14px 28px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pdf-survey-submit:hover {
    background: #005a87;
}

.pdf-survey-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.pdf-survey-message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
}

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

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

.pdf-survey-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.pdf-survey-loading.active {
    display: block;
}

.pdf-survey-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Responsive */
@media (max-width: 600px) {
    .pdf-survey-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .pdf-download-btn {
        padding: 14px 24px;
        font-size: 16px;
    }
}
