/* ===== Pesquisa de Satisfacao - Verlux ===== */

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body.page-pesquisa {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #555;
    background: #f4f2f6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* ===== Header ===== */
.pesquisa-header {
    background: linear-gradient(135deg, #865EA3 0%, #5F4A6E 100%);
    padding: 28px 20px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pesquisa-header::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.pesquisa-header::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.pesquisa-header-inner {
    position: relative;
    z-index: 1;
}

.pesquisa-logo {
    height: 56px;
    width: auto;
    display: inline-block;
}

/* ===== Footer ===== */
.pesquisa-footer {
    text-align: center;
    padding: 24px 0;
    color: #aaa;
    font-size: 13px;
}

.pesquisa-footer p {
    margin: 0;
}

/* ===== Container ===== */
.pesquisa-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 28px 16px 40px;
}

/* ===== Intro ===== */
.pesquisa-intro {
    text-align: center;
    margin-bottom: 28px;
    padding: 0 8px;
}

.pesquisa-intro h1 {
    color: #5F4A6E;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
}

.pesquisa-intro p {
    color: #888;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* ===== Progress indicator ===== */
.pesquisa-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 0 4px;
}

.pesquisa-progress-bar {
    flex: 1;
    height: 4px;
    background: #e0d5ea;
    border-radius: 2px;
    overflow: hidden;
}

.pesquisa-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #865EA3, #86C7A8);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.pesquisa-progress-text {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

/* ===== Question Groups ===== */
.pesquisa-group {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(95, 74, 110, 0.08);
    border: 1px solid rgba(134, 94, 163, 0.06);
    transition: box-shadow 0.2s;
}

.pesquisa-group:hover {
    box-shadow: 0 2px 8px rgba(95, 74, 110, 0.12);
}

.pesquisa-label {
    display: block;
    color: #5F4A6E;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 14px;
    line-height: 1.45;
}

/* Question number styling */
.pesquisa-label .q-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #865EA3;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ===== Radio Buttons ===== */
.pesquisa-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pesquisa-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    color: #555;
    transition: all 0.15s;
    border: 1px solid transparent;
}

.pesquisa-radio:hover {
    background: #f7f4fa;
}

.pesquisa-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-custom {
    display: inline-block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    transition: all 0.15s;
    position: relative;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #865EA3;
    transform: scale(0);
    transition: transform 0.15s;
}

.pesquisa-radio input[type="radio"]:checked ~ .radio-custom {
    border-color: #865EA3;
}

.pesquisa-radio input[type="radio"]:checked ~ .radio-custom::after {
    transform: scale(1);
}

.pesquisa-radio:has(input:checked) {
    background: #f4f0f7;
    border-color: #e0d5ea;
}

/* Inline options (yes/no) */
.pesquisa-options--inline {
    flex-direction: row;
    gap: 10px;
}

.pesquisa-options--inline .pesquisa-radio {
    flex: 1;
    justify-content: center;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 14px;
}

.pesquisa-options--inline .pesquisa-radio:has(input:checked) {
    border-color: #865EA3;
    background: #f4f0f7;
}

/* ===== NPS Scale (Q7) ===== */
.nps-scale {
    text-align: center;
}

.nps-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #aaa;
    margin-bottom: 10px;
    padding: 0 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.nps-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

.nps-buttons input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.nps-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 42px;
    border-radius: 8px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.nps-btn:hover {
    border-color: #865EA3;
    background: #f7f4fa;
    transform: translateY(-1px);
}

.nps-buttons input[type="radio"]:checked + .nps-btn {
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* NPS color zones */
.nps-buttons input[value="0"]:checked + .nps-btn,
.nps-buttons input[value="1"]:checked + .nps-btn,
.nps-buttons input[value="2"]:checked + .nps-btn,
.nps-buttons input[value="3"]:checked + .nps-btn,
.nps-buttons input[value="4"]:checked + .nps-btn,
.nps-buttons input[value="5"]:checked + .nps-btn,
.nps-buttons input[value="6"]:checked + .nps-btn {
    background: #e74c3c;
}

.nps-buttons input[value="7"]:checked + .nps-btn,
.nps-buttons input[value="8"]:checked + .nps-btn {
    background: #f39c12;
}

.nps-buttons input[value="9"]:checked + .nps-btn,
.nps-buttons input[value="10"]:checked + .nps-btn {
    background: #27ae60;
}

/* ===== Satisfaction Scale (Q8) ===== */
.satisfaction-scale {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.satisfaction-option {
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.satisfaction-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.satisfaction-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    margin: 0 auto 6px;
    font-size: 17px;
    font-weight: 700;
    color: #888;
    background: #fff;
    transition: all 0.2s;
}

.satisfaction-text {
    display: block;
    font-size: 11px;
    color: #aaa;
    line-height: 1.2;
}

.satisfaction-option:hover .satisfaction-circle {
    border-color: #865EA3;
    transform: translateY(-2px);
}

.satisfaction-option input:checked ~ .satisfaction-circle {
    background: #865EA3;
    border-color: #865EA3;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(134, 94, 163, 0.3);
}

.satisfaction-option input:checked ~ .satisfaction-text {
    color: #5F4A6E;
    font-weight: 600;
}

/* ===== Textareas ===== */
.pesquisa-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    color: #555;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fafafa;
}

.pesquisa-group textarea:focus {
    border-color: #865EA3;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(134, 94, 163, 0.1);
}

/* ===== Submit Button ===== */
.pesquisa-submit {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #865EA3, #6d4a8a);
    color: #fff;
    border: none;
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(134, 94, 163, 0.3);
    letter-spacing: 0.3px;
}

.pesquisa-submit:hover {
    background: linear-gradient(135deg, #5F4A6E, #4a3756);
    box-shadow: 0 6px 16px rgba(95, 74, 110, 0.35);
    transform: translateY(-1px);
}

.pesquisa-submit:active {
    transform: translateY(0);
}

.pesquisa-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== Messages ===== */
.form-message {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    display: none;
    font-size: 14px;
    line-height: 1.4;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ===== Thank You ===== */
.pesquisa-obrigado {
    text-align: center;
    padding: 60px 20px;
}

.obrigado-icon {
    margin-bottom: 20px;
}

.obrigado-icon i {
    font-size: 72px;
    color: #86C7A8;
}

.pesquisa-obrigado h2 {
    color: #5F4A6E;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
}

.pesquisa-obrigado p {
    color: #888;
    font-size: 15px;
    margin: 0 0 28px;
    line-height: 1.5;
}

.pesquisa-btn-home {
    display: inline-block;
    background: #865EA3;
    color: #fff;
    padding: 12px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 3px 8px rgba(134, 94, 163, 0.25);
}

.pesquisa-btn-home:hover {
    background: #5F4A6E;
    color: #fff;
    transform: translateY(-1px);
}

/* ===== Validation highlight ===== */
.pesquisa-group.has-error {
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.3);
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
    .pesquisa-header {
        padding: 36px 20px 40px;
    }

    .pesquisa-logo {
        height: 64px;
    }

    .pesquisa-container {
        padding: 40px 20px 60px;
    }

    .pesquisa-intro h1 {
        font-size: 26px;
    }

    .pesquisa-group {
        padding: 24px;
    }

    .pesquisa-submit {
        width: auto;
        min-width: 260px;
        margin: 12px auto 0;
    }

    .nps-btn {
        width: 44px;
        height: 46px;
        font-size: 15px;
    }

    .satisfaction-circle {
        width: 52px;
        height: 52px;
        font-size: 18px;
    }
}

@media (max-width: 380px) {
    .pesquisa-header {
        padding: 22px 16px 26px;
    }

    .pesquisa-logo {
        height: 48px;
    }

    .satisfaction-circle {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .satisfaction-text {
        font-size: 10px;
    }

    .nps-btn {
        width: 28px;
        height: 32px;
        font-size: 12px;
        border-radius: 6px;
    }

    .nps-buttons {
        gap: 3px;
    }
}
