/* ===========================================
   PESQUISA DE CLIMA ORGANIZACIONAL - ÂMBAR ENERGIA
   Paleta: Laranja e Cinza Âmbar
   =========================================== */

:root {
    /* Paleta Âmbar Energia - Laranja e Cinza */
    --ambar-orange:        #f97316;  /* Laranja principal */
    --ambar-orange-dark:   #ea580c;  /* Laranja escuro */
    --ambar-orange-darker: #dc4c00;  /* Laranja muito escuro */
    --ambar-orange-light:  #fb923c;  /* Laranja claro */
    --ambar-orange-pale:   #ffedd5;  /* Laranja muito claro */
    --ambar-orange-50:     #fff7ed;  /* Quase branco laranja */

    --ambar-gray-900:      #111827;  /* Cinza escuro (quase preto) */
    --ambar-gray-800:      #1f2937;  /* Cinza 800 */
    --ambar-gray-700:      #374151;  /* Cinza 700 */
    --ambar-gray-600:      #4b5563;  /* Cinza 600 */
    --ambar-gray-500:      #6b7280;  /* Cinza 500 */
    --ambar-gray-300:      #d1d5db;  /* Cinza 300 */
    --ambar-gray-200:      #e5e7eb;  /* Cinza 200 */
    --ambar-gray-100:      #f3f4f6;  /* Cinza 100 */
    --ambar-gray-50:       #f9fafb;  /* Quase branco */
    --ambar-white:         #ffffff;

    /* NPS */
    --nps-detrator:       #dc2626;
    --nps-detrator-light: #fee2e2;
    --nps-neutro:         #f59e0b;
    --nps-neutro-light:   #fef3c7;
    --nps-promotor:       #16a34a;
    --nps-promotor-light: #dcfce7;

    /* Sim/Não */
    --resposta-sim: #16a34a;
    --resposta-nao: #dc2626;

    /* Sombras com tom laranja */
    --shadow-sm: 0 1px 2px rgba(249, 115, 22, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(249, 115, 22, 0.08), 0 2px 4px -1px rgba(249, 115, 22, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(249, 115, 22, 0.1), 0 4px 6px -2px rgba(249, 115, 22, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(249, 115, 22, 0.12), 0 10px 10px -5px rgba(249, 115, 22, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--ambar-gray-50);
    color: var(--ambar-gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: #000000;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.35) 0%, rgba(31, 41, 55, 0.25) 50%, rgba(75, 85, 99, 0.2) 100%);
    z-index: 2;
}

.security-bar {
    background: var(--ambar-gray-900);
    color: var(--ambar-white);
    padding: 10px 0;
    border-top: 2px solid var(--ambar-orange);
    border-bottom: 1px solid var(--ambar-gray-800);
}

.security-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: var(--ambar-gray-300);
}

.security-bar-content svg {
    color: var(--ambar-orange);
    flex-shrink: 0;
}

.main-content {
    min-height: calc(100vh - 380px - 42px - 120px);
    padding: 48px 0;
}

.container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 24px;
}

.screen {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.screen.active {
    display: block;
}

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

.welcome-card {
    background: var(--ambar-white);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--ambar-gray-200);
}

.welcome-header {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: var(--ambar-white);
    padding: 32px 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.welcome-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.15) 100%);
    pointer-events: none;
}

.welcome-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--ambar-gray-900);
}

.welcome-logo {
    height: 64px;
    width: auto;
    background: var(--ambar-white);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.welcome-logo-fallback {
    height: 64px;
    width: 64px;
    background: var(--ambar-white);
    color: var(--ambar-orange);
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.welcome-logo-fallback.show {
    display: flex;
}

.welcome-titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.welcome-eyebrow {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.85);
}

.welcome-titles h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.welcome-body {
    padding: 36px 40px 40px;
}

.welcome-text {
    font-size: 16px;
    color: var(--ambar-gray-700);
    margin-bottom: 24px;
    line-height: 1.7;
}

.info-box {
    background: var(--ambar-gray-50);
    border: 1px solid var(--ambar-gray-200);
    border-left: 4px solid var(--ambar-orange);
    border-radius: 8px;
    padding: 20px 22px;
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.info-box-icon {
    width: 40px;
    height: 40px;
    background: var(--ambar-white);
    border: 1px solid var(--ambar-gray-200);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ambar-orange);
    flex-shrink: 0;
    margin-top: 0;
}

.info-box-text {
    font-size: 13.5px;
    color: var(--ambar-gray-700);
    line-height: 1.65;
}

.info-box-text strong {
    display: block;
    color: var(--ambar-gray-900);
    font-size: 14.5px;
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding: 14px 18px;
    background: var(--ambar-white);
    border-radius: 8px;
    border: 1.5px solid var(--ambar-gray-300);
    transition: all 0.2s ease;
}

.checkbox-item:hover {
    border-color: var(--ambar-orange);
    background: var(--ambar-gray-50);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--ambar-orange);
}

.checkbox-item label {
    font-size: 13.5px;
    color: var(--ambar-gray-700);
    cursor: pointer;
    margin: 0;
    font-weight: 500;
    user-select: none;
}

.checkbox-item:has(input[type="checkbox"]:checked) {
    border-color: var(--ambar-orange);
    background: var(--ambar-gray-50);
}

.checkbox-item input[type="checkbox"]:checked + label {
    color: var(--ambar-gray-900);
    font-weight: 600;
}

.form-cpf label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ambar-gray-900);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.input-group input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid var(--ambar-gray-300);
    border-radius: 8px;
    background: var(--ambar-white);
    color: var(--ambar-gray-900);
    transition: all 0.2s ease;
    font-family: inherit;
    letter-spacing: 0.5px;
}

.input-group input:focus {
    outline: none;
    border-color: var(--ambar-orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.input-group input.invalid {
    border-color: var(--nps-detrator);
    background: #fef2f2;
}

.error-message {
    display: block;
    color: var(--nps-detrator);
    font-size: 13px;
    font-weight: 500;
    min-height: 18px;
    margin-top: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--ambar-orange);
    color: var(--ambar-white);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: var(--ambar-orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: var(--ambar-gray-300);
    color: var(--ambar-gray-500);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
}

.welcome-footer {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--ambar-gray-200);
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-around;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ambar-gray-700);
    font-size: 13.5px;
    font-weight: 500;
}

.trust-item svg {
    color: var(--ambar-orange);
}

.progress-wrapper {
    background: var(--ambar-white);
    padding: 18px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--ambar-gray-200);
    position: sticky;
    top: 16px;
    z-index: 50;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ambar-gray-700);
}

#progress-percent {
    color: var(--ambar-orange);
    font-size: 14px;
}

.progress-bar {
    height: 8px;
    background: var(--ambar-gray-200);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ambar-orange) 0%, var(--ambar-orange-light) 100%);
    border-radius: 100px;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.questao {
    background: var(--ambar-white);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--ambar-gray-200);
    transition: all 0.2s ease;
}

.questao.respondida {
    border-color: var(--ambar-orange);
    border-left: 4px solid var(--ambar-orange);
}

.questao-header {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.questao-numero {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--ambar-gray-900);
    color: var(--ambar-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.questao.respondida .questao-numero {
    background: var(--ambar-orange);
}

.questao-texto {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: var(--ambar-gray-900);
    line-height: 1.5;
    padding-top: 6px;
}

.questao-tipo-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
}

.badge-nps {
    background: var(--ambar-orange);
    color: var(--ambar-white);
}

.badge-simnao {
    background: var(--ambar-gray-200);
    color: var(--ambar-gray-700);
}

.nps-container {
    margin-top: 24px;
}

.nps-categorias {
    display: grid;
    grid-template-columns: 7fr 2fr 2fr;
    gap: 4px;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.nps-cat {
    text-align: center;
    padding: 6px 4px;
    border-radius: 6px 6px 0 0;
    color: var(--ambar-white);
}

.nps-cat-detrator { background: var(--nps-detrator); }
.nps-cat-neutro   { background: var(--nps-neutro); }
.nps-cat-promotor { background: var(--nps-promotor); }

.nps-escala {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 6px;
}

.nps-btn {
    aspect-ratio: 1 / 1;
    min-height: 52px;
    border: 2px solid var(--ambar-gray-200);
    background: var(--ambar-white);
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--ambar-gray-700);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.nps-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--cor-nps);
}

.nps-btn[data-cat="detrator"] { --cor-nps: var(--nps-detrator); }
.nps-btn[data-cat="neutro"]   { --cor-nps: var(--nps-neutro); }
.nps-btn[data-cat="promotor"] { --cor-nps: var(--nps-promotor); }

.nps-btn:hover {
    transform: translateY(-2px);
    border-color: var(--cor-nps);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nps-btn.selected {
    background: var(--cor-nps);
    color: var(--ambar-white);
    border-color: var(--cor-nps);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.nps-btn.selected::before {
    background: rgba(255, 255, 255, 0.4);
}

.nps-legendas {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 12px;
    color: var(--ambar-gray-500);
    font-weight: 500;
}

.nps-legendas span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nps-legendas .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-detrator { background: var(--nps-detrator); }
.dot-neutro   { background: var(--nps-neutro); }
.dot-promotor { background: var(--nps-promotor); }

.simnao-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.simnao-btn {
    padding: 18px 20px;
    border: 2px solid var(--ambar-gray-200);
    background: var(--ambar-white);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--ambar-gray-700);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.simnao-btn[data-valor="sim"]:hover {
    border-color: var(--resposta-sim);
    color: var(--resposta-sim);
    background: var(--nps-promotor-light);
    transform: translateY(-2px);
}

.simnao-btn[data-valor="nao"]:hover {
    border-color: var(--resposta-nao);
    color: var(--resposta-nao);
    background: var(--nps-detrator-light);
    transform: translateY(-2px);
}

.simnao-btn[data-valor="sim"].selected {
    border-color: var(--resposta-sim);
    color: var(--ambar-white);
    background: var(--resposta-sim);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.25);
}

.simnao-btn[data-valor="nao"].selected {
    border-color: var(--resposta-nao);
    color: var(--ambar-white);
    background: var(--resposta-nao);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.25);
}

.simnao-btn svg {
    width: 22px;
    height: 22px;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 32px;
    padding: 24px 0;
}

.thanks-card {
    background: var(--ambar-white);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--ambar-gray-200);
    border-top: 4px solid var(--ambar-orange);
}

.thanks-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--nps-promotor) 0%, #15803d 100%);
    color: var(--ambar-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(22, 163, 74, 0.3);
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.thanks-card h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--ambar-gray-900);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.thanks-card p {
    font-size: 16px;
    color: var(--ambar-gray-700);
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.thanks-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--nps-promotor-light);
    color: #15803d;
    padding: 10px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}

.footer {
    background: var(--ambar-gray-900);
    color: var(--ambar-gray-300);
    padding: 32px 0;
    border-top: 3px solid var(--ambar-orange);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--ambar-white);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.footer-logo {
    height: 38px;
    width: auto;
}

.footer-info {
    text-align: right;
    font-size: 13px;
}

.footer-info p {
    margin: 0;
    line-height: 1.6;
}

.footer-small {
    font-size: 11.5px;
    color: var(--ambar-gray-500);
    margin-top: 4px !important;
}

@media (max-width: 768px) {
    .hero { height: 280px; }
    .welcome-header { flex-direction: column; text-align: center; padding: 28px 24px; gap: 16px; }
    .welcome-titles h1 { font-size: 26px; }
    .welcome-body { padding: 28px 24px; }
    .input-group { flex-direction: column; }
    .questao { padding: 22px 20px; }
    .questao-texto { font-size: 15px; }
    .nps-categorias { font-size: 9.5px; }
    .nps-escala { gap: 4px; }
    .nps-btn { min-height: 44px; font-size: 14px; }
    .simnao-container { grid-template-columns: 1fr; }
    .footer-container { flex-direction: column; text-align: center; }
    .footer-info { text-align: center; }
    .nps-legendas { font-size: 10.5px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .main-content { padding: 32px 0; }
    .welcome-titles h1 { font-size: 22px; }
    .nps-btn { min-height: 38px; font-size: 12px; }
    .nps-categorias { font-size: 8.5px; }
}
