/* ===========================
   COLORI PRINCIPALI
=========================== */
:root {
    --primary-color: #1E2945;
    --secondary-color: #C2D015;
    --text-color: #484848;
    --bg-color: #f8f8f8;
}

/* ===========================
   CONTAINER
=========================== */
.spq-quiz-container {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background: #fff;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ===========================
   INPUT & TEXTAREA (FIX)
=========================== */
.spq-form-row input,
.spq-text-answer input,
.spq-text-answer textarea {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.spq-form-row input:focus,
.spq-text-answer input:focus,
.spq-text-answer textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* ===========================
   DOMANDE E RISPOSTE
=========================== */
.spq-question-wrapper {
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

/* ===========================
   RISPOSTE MULTIPLE
=========================== */
.spq-answers {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.spq-answer-option {
    display:flex;
    align-items:center;
    gap:10px;
    padding:14px;
    border:1px solid #ddd;
    border-radius:8px;
    cursor:pointer;
    transition:.2s;
}

.spq-answer-option input {
    display:none;
}

.spq-answer-option.active {
    border-color:#000;
    background:#f5f5f5;
}

.spq-radio-custom {
    width:18px;
    height:18px;
    border:2px solid #000;
    border-radius:50%;
}

.spq-answer-option.active .spq-radio-custom {
    background:#000;
}

/* ===========================
   BUTTONS
=========================== */
.spq-nav-button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    color: #fff;
    margin-top: 15px;
}

.spq-next-button {
    background-color: var(--primary-color);
}

.spq-prev-button {
    background-color: var(--secondary-color);
}

/* ===========================
   PROGRESSO STEP-BY-STEP
=========================== */
.spq-progress {
    height: 6px;
    background: #eee;
    margin-bottom: 20px;
    border-radius: 3px;
}
.spq-progress-bar {
    height: 6px;
    background: var(--secondary-color);
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* NUMERO DINAMICO */
.spq-question-number {
    font-weight: 500;
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* DOMANDA TESTO */
.spq-question-text {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
}

/* INPUT TELEFONO */
.spq-text-answer input[type="tel"] {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

/* BUTTONS */
.spq-nav-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
