/**
 * Stili per la modale personalizzata del form di valutazione
 */

/* Stile di base per la modale */
.nestup-custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.nestup-custom-modal.active {
    display: flex;
}

/* Overlay scuro che copre la pagina */
.nestup-custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Contenitore principale della modale */
.nestup-custom-modal-container {
    position: relative;
    width: 90%;
    max-width: 100%;
    max-height: 90vh;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: nestupModalFadeIn 0.3s ease;
    z-index: 99999999999999999999999;
    left: 0;
    right: 0;
    top: 40px;
    margin: auto;
    transform: none;
}
.nestup-steps-indicator .nestup-step-indicator{
    width: 48px;
}
/* Intestazione della modale */
.nestup-custom-modal-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nestup-custom-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.nestup-custom-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 5px;
}

.nestup-custom-modal-close:hover {
    color: #333;
}

/* Corpo della modale */
.nestup-custom-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    max-height: calc(90vh - 120px); /* Altezza massima considerando header e padding */
}

/* Footer della modale */
.nestup-custom-modal-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Quando la modale è aperta, blocca lo scroll della pagina */
body.nestup-modal-open {
    overflow: hidden;
}

/* Animazione per l'apertura della modale */
@keyframes nestupModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stili per i passi del form */
.nestup-step {
    display: none;
}

.nestup-step[data-step="1"] {
    display: block;
}

/* Indicatori di passo */
.nestup-steps-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.nestup-steps-header {
    display: flex;
    width: 100%;
}

.nestup-step-indicator {
    flex: 1;
    text-align: center;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    position: relative;
}

.nestup-step-indicator.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.nestup-step-indicator:not(:last-child):after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    width: 20px;
    height: 2px;
    background-color: #e9ecef;
    z-index: 1;
}

.nestup-step-indicator.active:not(:last-child):after {
    background-color: #007bff;
}

/* Stili per il form */
.nestup-form-group {
    margin-bottom: 15px;
}

.nestup-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.nestup-form-control {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 16px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.nestup-form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.nestup-form-control.is-invalid {
    border-color: #dc3545;
}

.nestup-btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 8px 16px;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 4px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}

.nestup-btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.nestup-btn-primary:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}

.nestup-btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.nestup-btn-secondary:hover {
    color: #fff;
    background-color: #5a6268;
    border-color: #545b62;
}

.nestup-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Messaggio di successo e errore */
.nestup-form-success,
.nestup-form-error {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: none;
}

.nestup-form-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.nestup-form-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* Badge per le informazioni aggiuntive */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border-radius: 10px;
}

.bg-warning {
    background-color: #ffc107;
    color: #333;
}

/* Visualizzazione dell'indirizzo */
.nestup-address-display {
    font-weight: 600;
    padding: 10px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

/* Responsive - Su schermi piccoli */
@media (max-width: 576px) {
    .nestup-custom-modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .nestup-custom-modal-header,
    .nestup-custom-modal-body,
    .nestup-custom-modal-footer {
        padding: 10px;
    }
    
    .nestup-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .nestup-step-indicator {
        font-size: 14px;
        padding: 8px 5px;
    }
} 