/* ===========================
 * CONTAINER GENERAL
 * =========================== */
.voturi-survey-wrapper {
    display: flex;
    justify-content: center;
    padding: 0;              /* dacă vrei un pic de spațiu: 16px 0 */
    margin: 0;
    background: transparent; /* banda gri dispare */
    box-sizing: border-box;
}

.voturi-survey-card {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
    max-width: 1200px;
    color: #111827;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    padding: 24px 32px;
    margin: 0;               /* marginul exterior îl vom controla din block */
    box-sizing: border-box;
}

/* ===========================
 * TITLU & HEADER ÎNTREBARE
 * =========================== */

.voturi-survey-title {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.voturi-question-header h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 18px;
}

.voturi-question-description {
    margin-top: 0;
    margin-bottom: 16px;
    color: #6b7280;
    font-size: 14px;
}

/* ===========================
 * PAS / STEP
 * =========================== */

.voturi-step {
    display: none;
}

/* fallback: dacă JS nu pornește, măcar primul pas se vede */
.voturi-step:first-child {
    display: block;
}

/* ===========================
 * FOOTER WIZARD + BUTOANE
 * =========================== */

.voturi-wizard-footer {
    margin-top: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.voturi-btn {
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

.voturi-btn-primary {
    background-color: #2563eb;
    color: #ffffff;
}

.voturi-btn-primary:hover {
    background-color: #1d4ed8;
}

.voturi-btn-secondary {
    background-color: #e5e7eb;
    color: #111827;
}

.voturi-btn-secondary:hover {
    background-color: #d1d5db;
}

/* ===========================
 * PROGRES
 * =========================== */

.voturi-wizard-progress {
    margin-left: auto;
    min-width: 260px;
}

.voturi-step-indicator {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.voturi-progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.voturi-progress-bar-inner {
    height: 100%;
    width: 0%;
    background-color: #2563eb;
    border-radius: 999px;
    transition: width 0.2s ease;
}

/* ===========================
 * MESAJ ERORI / SUCCES
 * =========================== */

.voturi-message,
.voturi-recover-message {
    margin-top: 8px;
    font-size: 13px;
}

.voturi-message-error,
.voturi-recover-message.voturi-message-error {
    color: #b91c1c;
}

.voturi-message-success,
.voturi-recover-message.voturi-message-success {
    color: #15803d;
}

/* ===========================
 * VARIANTE DE RĂSPUNS
 * =========================== */

.voturi-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.voturi-choice-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    font-size: 16px;
}

.voturi-choice-item:hover {
    background-color: #f9fafb;
}

.voturi-choice-item input[type="radio"],
.voturi-choice-item input[type="checkbox"] {
    margin: 0;
    outline: none;
}

/* ===========================
 * INPUTURI & TEXTAREA
 * =========================== */

.voturi-answer-text,
.voturi-answer-free-text,
.voturi-input {
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
    padding: 10px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.voturi-answer-text:focus,
.voturi-answer-free-text:focus,
.voturi-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37,99,235,0.25);
}

/* ===========================
 * DATE PERSONALE
 * =========================== */

.voturi-personal-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.voturi-personal-table td {
    padding: 4px 0;
    vertical-align: middle;
}

.voturi-personal-table label {
    font-size: 14px;
}

/* ===========================
 * RECOVER (dacă vei folosi)
 * =========================== */

.voturi-recover-panel {
    margin-top: 10px;
}

.voturi-recover-form {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    background-color: #f9fafb;
}

.voturi-recover-form .voturi-input {
    margin-bottom: 6px;
}

/* ===========================
 * SUMMARY VIEW (după finalizare)
 * =========================== */

.voturi-summary {
    font-size: 15px;
    line-height: 1.5;
}

.voturi-summary-question {
    margin-bottom: 16px;
}

.voturi-summary-question h3 {
    margin-bottom: 4px;
}



/* =========================
 *  Mobile (< 500px)
 * =======================*/
@media (max-width: 500px) {

    /* Date personale: label deasupra, input full width */
    .voturi-personal-table,
    .voturi-personal-table tbody,
    .voturi-personal-table tr,
    .voturi-personal-table td {
        display: block;
        width: 100%;
    }

    .voturi-personal-table tr {
        margin-bottom: 12px;
    }

    .voturi-personal-table td:first-child {
        margin-bottom: 4px; /* spațiu între label și input */
    }

    .voturi-personal-table label {
        display: block;
        font-weight: 600;
    }

    .voturi-input {
        width: 100%;
        box-sizing: border-box;
    }

    /* Footer wizard: butoane pe linii separate + progres 100% lățime */
    .voturi-wizard-footer {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .voturi-wizard-footer .voturi-btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .voturi-wizard-progress {
        width: 100%;
        margin-top: 4px;
    }

    .voturi-step-indicator {
        display: block;
        margin-bottom: 4px;
        text-align: center;
    }

    .voturi-progress-bar {
        width: 100%;
        height: 6px;
        border-radius: 999px;
        overflow: hidden;
    }

    .voturi-progress-bar-inner {
        height: 100%;
        border-radius: 999px;
    }
}

@media (max-width: 500px) {

    /* Forțează cardul wizard să fie full width pe mobil */
    .voturi-survey-card {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box;
    }

    /* Containerul progresului să nu fie limitat */
    .voturi-wizard-progress {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 8px 0 !important;
        box-sizing: border-box;
    }

    /* Bara propriu-zisă să se întindă pe toată lățimea */
    .voturi-progress-bar {
        width: 100% !important;
        max-width: 100% !important;
        height: 6px;
        border-radius: 999px;
        overflow: hidden;
    }

    .voturi-progress-bar-inner {
        height: 100%;
        border-radius: 999px;
        transition: width 0.25s ease;
    }
}

