/* Stili per il form personalizzato */
.custom-form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: block !important; /* Forza la visualizzazione */
}

/* Progress bar */
.form-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 0 20px;
}
    
.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1f1f1;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.progress-step.active {
    background-color: #0073aa;
    color: white;
}

.progress-step.completed {
    background-color: #4CAF50;
    color: white;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background-color: #f1f1f1;
    position: relative;
    margin: 0 10px;
}

.progress-bar.completed {
    background-color: #4CAF50;
}

/* Form steps */
.form-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-step.active {
    display: block;
    opacity: 1;
}

/* Radio buttons styled */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e9e9e9;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.radio-option:hover {
    border-color: #0073aa;
}

.radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #0073aa;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked {
    border-color: #0073aa;
}

.radio-option input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #0073aa;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-option label {
    font-size: 16px;
    font-weight: 500;
    flex: 1;
    cursor: pointer;
}

.radio-option.selected {
    border-color: #0073aa;
    background-color: rgba(0, 115, 170, 0.05);
}

/* Form question styling */
.form-question {
    margin-bottom: 30px;
}

.form-question h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.form-helper-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    font-style: italic;
}

/* Form buttons */
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.form-buttons button {
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-buttons .prev-step {
    background-color: #f1f1f1;
    color: #333;
    border: none;
}

.form-buttons .prev-step:hover {
    background-color: #e1e1e1;
}

.form-buttons .next-step {
    background-color: #0073aa;
    color: white;
    border: none;
}

.form-buttons .next-step:hover {
    background-color: #005177;
}

/* Form fields styling */
.custom-form .form-group {
    margin-bottom: 20px;
}

.custom-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form input[type="tel"],
.custom-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.custom-form input[type="text"]:focus,
.custom-form input[type="email"]:focus,
.custom-form input[type="tel"]:focus,
.custom-form textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.custom-form button[type="submit"] {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.custom-form button[type="submit"]:hover {
    background: #005177;
}

.form-response {
    margin-top: 30px;
}

.success-message {
    background: #dff0d8;
    color: #3c763d;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
}

.success-message h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Stile per dispositivi mobili */
@media (max-width: 767px) {
    .custom-form-container {
        padding: 20px;
        margin: 20px auto;
    }
    
    .form-progress {
        padding: 0;
    }
    
    .progress-step {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .radio-option {
        padding: 10px;
    }
    
    .radio-option input[type="radio"] {
        width: 20px;
        height: 20px;
    }
    
    .radio-option input[type="radio"]:checked::after {
        width: 10px;
        height: 10px;
    }
    
    .form-buttons button {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .custom-form input[type="text"],
    .custom-form input[type="email"],
    .custom-form input[type="tel"],
    .custom-form textarea {
        padding: 10px;
        font-size: 14px;
    }
}

/* Custom alert styles */
.custom-alert {
    display: none;
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 16px;
    z-index: 99999;
    border-left: 4px solid #f44336;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -20px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.custom-alert.show {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.alert-content {
    display: flex;
    align-items: flex-start;
    flex: 1;
}

.alert-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    color: #f44336;
}

.alert-message {
    font-size: 14px;
    color: #333;
    flex: 1;
}

.alert-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    padding: 0 5px;
    margin-left: 10px;
    line-height: 1;
}

.alert-close:hover {
    color: #333;
} 