/**
 * COGES Preventivi Popup Styles
 * @version 3.7.1
 */

/* BUTTON RICHIEDI PDF */
.coges-btn-request-pdf {
    background: linear-gradient(135deg, #FDB913 0%, #e5a711 100%);
    color: #2C2C2C;
    border: none;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(253, 185, 19, 0.3);
    transition: all 0.3s;
}

.coges-btn-request-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(253, 185, 19, 0.4);
}

/* POPUP OVERLAY */
.coges-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    animation: fadeIn 0.3s;
}

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

/* POPUP BOX */
.coges-popup-box {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
}

.coges-popup-box.large {
    max-width: 700px;
}

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

/* CLOSE BUTTON */
.coges-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.2s;
}

.coges-popup-close:hover {
    color: #333;
}

/* POPUP HEADER */
.popup-header {
    text-align: center;
    margin-bottom: 30px;
}

.popup-header h2 {
    color: #2C2C2C;
    margin: 0 0 10px 0;
    font-size: 28px;
}

.popup-header p {
    color: #666;
    margin: 0;
}

/* POPUP BENEFITS */
.popup-benefits {
    background: #F5F5F5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #FDB913;
}

.popup-benefits h4 {
    margin: 0 0 15px 0;
    color: #2C2C2C;
}

.popup-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-benefits li {
    padding: 8px 0;
    color: #2C2C2C;
    font-size: 15px;
}

/* FORM STYLES */
.coges-popup-box form h3 {
    color: #2C2C2C;
    margin: 0 0 20px 0;
    font-size: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #2C2C2C;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.coges-select {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.coges-select:focus {
    outline: none;
    border-color: #FDB913;
}

.form-group small {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

/* CHECKBOXES */
.form-checkboxes {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #2C2C2C;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* BUTTONS */
.coges-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.coges-btn.primary {
    background: #FDB913;
    color: #2C2C2C;
}

.coges-btn.primary:hover {
    background: #e5a711;
}

.coges-btn.full-width {
    width: 100%;
}

.coges-btn.large {
    padding: 18px 40px;
    font-size: 18px;
}

/* MESSAGES */
.loading,
.success-message,
.error-message {
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
}

.loading {
    background: #e3f2fd;
    color: #1976d2;
}

.success-message {
    background: #d4edda;
    color: #155724;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
}

/* FOOTER */
.popup-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
}

.popup-footer a {
    color: #FDB913;
    font-weight: 600;
    text-decoration: none;
}

.popup-footer a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .coges-popup-box {
        padding: 25px;
        max-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .popup-header h2 {
        font-size: 24px;
    }
    
    .coges-btn-request-pdf {
        padding: 15px 30px;
        font-size: 16px;
    }
}
