/* CSS IDENTICO AL PLUGIN LB-PDF-VIA-EMAIL */

/* Pulsante */
.lb-pdf-download-btn {
    background-color: #2271b1;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lb-pdf-download-btn:hover {
    background-color: #135e96;
}

/* Modal */
.lb-pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-pdf-modal-content {
    padding: 30px;
    max-width: 500px;
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    margin: 20px;
    max-height: 90vh;
    overflow-y: auto;
}

.lb-pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.lb-pdf-modal-header h3 {
    margin: 0;
    color: #333;
}

.lb-pdf-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-pdf-modal-close:hover {
    color: #000;
}

/* Form */
.lb-pdf-form-row {
    margin-bottom: 20px;
}

.lb-pdf-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.lb-pdf-form-row label a {
    color: var(--e-global-color-primary)!important;
    text-decoration: underline!important;
}

.lb-pdf-form-row input[type="text"],
.lb-pdf-form-row input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.lb-pdf-form-row.lb-checkbox {
    display: flex;
    align-items: center;
}

.lb-pdf-form-row.lb-checkbox input {
    margin-right: 10px;
}

.lb-pdf-form-row.lb-checkbox label {
    margin-bottom: 0;
}

/* Submit */
.lb-pdf-form-actions {
    display: flex;
    align-items: center;
}

.lb-pdf-submit-btn {
    background-color: #2271b1;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lb-pdf-submit-btn:hover {
    background-color: #135e96;
}

.lb-pdf-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #2271b1;
    animation: spin 1s ease-in-out infinite;
    display: inline-block;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Messaggi */
.lb-pdf-form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.lb-pdf-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.lb-pdf-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 767px) {
    .lb-pdf-modal-content {
        padding: 20px;
        margin: 10px;
    }
}