/* Experiência pública estilo Typeform. Independente do style.css do admin. */
* { box-sizing: border-box; }
html, body { height: 100%; }
.survey-body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--theme, #1d2b8f);
    color: #fff;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

/* Barra de progresso fininha no topo */
.survey-progress {
    position: fixed; top: 0; left: 0; right: 0;
    height: 5px;
    background: rgba(255, 255, 255, 0.18);
    z-index: 20;
}
.survey-progress-bar {
    height: 100%; width: 0;
    background: #fff;
    transition: width 0.4s ease;
}

.preview-flag {
    position: fixed; top: 10px; right: 10px; z-index: 30;
    background: rgba(0, 0, 0, 0.35);
    color: #fff; font-size: 12px;
    padding: 6px 12px; border-radius: 999px;
}

.survey-stage {
    height: 100vh; height: 100dvh;
    display: flex; align-items: center;
    padding: 24px;
    overflow-y: auto;
}

/* Cada tela */
.screen {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    animation: screenIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes screenIn {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Tela de boas-vindas / final: centralizada */
.screen.center { text-align: center; }
.screen.center .screen-title { font-size: clamp(28px, 5vw, 44px); }

.q-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 15px; opacity: 0.85; margin-bottom: 14px;
    font-weight: 600;
}
.q-tag svg { width: 14px; height: 14px; }

.screen-title {
    font-size: clamp(22px, 3.4vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}
.screen-title .req { opacity: 0.7; }
.screen-desc {
    font-size: clamp(15px, 2vw, 18px);
    opacity: 0.85;
    margin: 0 0 26px;
    line-height: 1.5;
}

/* Inputs de texto/email/número */
.field-input {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: clamp(20px, 3vw, 28px);
    padding: 8px 2px;
    outline: none;
    font-family: inherit;
}
.field-input::placeholder { color: rgba(255, 255, 255, 0.45); }
.field-input:focus { border-bottom-color: #fff; }
textarea.field-input { resize: none; min-height: 56px; line-height: 1.4; }

/* Opções de múltipla escolha */
.options { display: flex; flex-direction: column; gap: 12px; }
.option {
    display: flex; align-items: center; gap: 14px;
    width: 100%;
    text-align: left;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: clamp(15px, 2vw, 18px);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s, transform 0.08s;
}
.option:hover { background: rgba(255, 255, 255, 0.18); }
.option.selected {
    background: rgba(255, 255, 255, 0.92);
    color: var(--theme, #1d2b8f);
    border-color: #fff;
}
.option:active { transform: scale(0.99); }
.option .key {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px;
    border: 1.5px solid currentColor;
    border-radius: 5px;
    font-size: 13px; font-weight: 700;
    flex: 0 0 auto;
}
.option .check { margin-left: auto; opacity: 0; font-weight: 700; }
.option.selected .check { opacity: 1; }

/* Botões de avanço */
.screen-actions {
    display: flex; align-items: center; gap: 16px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.btn-primary {
    background: #fff;
    color: var(--theme, #1d2b8f);
    border: 0;
    border-radius: 6px;
    padding: 12px 26px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.08s, opacity 0.15s;
}
.btn-primary:hover { opacity: 0.92; }
.btn-primary:active { transform: translateY(1px); }
.enter-hint { font-size: 13px; opacity: 0.8; }
.enter-hint b { font-weight: 700; }

.field-error {
    color: #fff;
    background: rgba(220, 38, 38, 0.85);
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 14px;
}

/* Navegação inferior (voltar/avançar) */
.survey-nav {
    position: fixed; right: 18px; bottom: 18px; z-index: 20;
    display: flex; gap: 6px;
}
.survey-nav button {
    width: 40px; height: 38px;
    background: rgba(0, 0, 0, 0.25);
    border: 0; color: #fff;
    border-radius: 6px; cursor: pointer;
    font-size: 16px;
}
.survey-nav button:disabled { opacity: 0.35; cursor: default; }
.survey-nav button:not(:disabled):hover { background: rgba(0, 0, 0, 0.4); }

/* Tela final */
.ending-icon {
    font-size: 56px;
    margin-bottom: 12px;
}

.survey-unavailable {
    height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 24px;
}
.survey-unavailable h1 { font-size: 26px; margin: 0 0 8px; }
.survey-unavailable p { opacity: 0.85; }

@media (max-width: 520px) {
    .survey-stage { padding: 18px; align-items: flex-start; padding-top: 60px; }
}
