/* ==========================================================================
   style.css — Pesquisa NPS pública (step-by-step survey)
   Review 360BH — Design Premium
   ========================================================================== */

:root {
    --primary-color: #0056b3;
    --font-primary: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   CONTAINER PRINCIPAL
   ========================================================================== */
.survey-container {
    background: #fff;
    width: 100%;
    max-width: 650px;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.survey-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #00a8e8);
}

/* ==========================================================================
   LOGO
   ========================================================================== */
.logo-container {
    margin-bottom: 30px;
}

.logo-container img {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
}

/* ==========================================================================
   STEP-BY-STEP (Typeform)
   ========================================================================== */
.question-step {
    display: none;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-step.active {
    display: block;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-counter {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.question-step h3 {
    margin-bottom: 30px;
    font-size: 22px;
    color: #1e293b;
    line-height: 1.4;
    font-weight: 700;
}

/* ==========================================================================
   ESCALA NPS (0 a 10)
   ========================================================================== */
.nps-scale {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.nps-scale label {
    flex: 1;
    min-width: 38px;
    text-align: center;
    background: #f1f5f9;
    padding: 14px 0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    border: 2px solid transparent;
    font-size: 16px;
    color: #475569;
}

.nps-scale label:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.nps-scale input[type="radio"] {
    display: none;
}

.nps-scale label.selected {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.3);
}

/* ==========================================================================
   TEXTAREA
   ========================================================================== */
textarea {
    width: 100%;
    padding: 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    resize: vertical;
    font-family: var(--font-primary);
    font-size: 15px;
    background: #f8fafc;
    transition: all 0.2s ease;
    min-height: 100px;
    color: #1e293b;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
    background: #fff;
}

textarea::placeholder {
    color: #94a3b8;
}

/* ==========================================================================
   BOTÕES DE NAVEGAÇÃO
   ========================================================================== */
.navigation-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    justify-content: center;
}

.btn-submit, .btn-primary, .btn-secondary {
    border: none;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-primary);
}

.btn-submit, .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #003d82 100%);
    color: #fff;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.25);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #e2e8f0;
}

.btn-submit:hover, .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.35);
}

.btn-submit:active, .btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.25);
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

/* ==========================================================================
   LEAD FORM (Step 0)
   ========================================================================== */
.lead-form-group {
    margin-bottom: 18px;
    text-align: left;
}

.lead-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

.lead-form-group input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--font-primary);
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.lead-form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
    background: #fff;
}

.lead-form-group input::placeholder {
    color: #94a3b8;
}

/* Erro de validação */
.lead-form-group input.input-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-text {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

/* ==========================================================================
   TELA DE OBRIGADO / GOOGLE REVIEW
   ========================================================================== */
.thank-you-container {
    animation: fadeInUp 0.5s ease;
}

.thank-you-container h2 {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 12px;
}

.thank-you-container p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */

/* Mobile pequeno (< 400px) */
@media (max-width: 399px) {
    body {
        padding: 10px;
    }

    .survey-container {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .question-step h3 {
        font-size: 18px;
    }

    .nps-scale {
        gap: 4px;
    }

    .nps-scale label {
        min-width: 30px;
        padding: 12px 0;
        font-size: 14px;
        border-radius: 8px;
    }

    .navigation-buttons {
        flex-direction: column;
    }
}

/* Mobile (400px - 575px) */
@media (min-width: 400px) and (max-width: 575px) {
    .survey-container {
        padding: 35px 24px;
    }

    .nps-scale label {
        min-width: 34px;
        padding: 13px 0;
    }
}

/* Tablet+ (576px+) */
@media (min-width: 576px) {
    .nps-scale label {
        min-width: 40px;
        padding: 14px 4px;
    }
}
