/* ==========================================================================
   SISTEMA NPS - ELO3 EDUCACIONAL
   Folha de Estilo Principal da Pesquisa Pública (assets/css/style.css)
   Identidade Visual Oficial:
   - Azul Institucional Primário: #1F7A8C / #087696
   - Azul Institucional Profundo: #155E6D / #22435D
   - Laranja Institucional Destaque: #F28C28 / #E67E22
   - Tipografia: Montserrat, sans-serif
   ========================================================================== */

:root {
  --elo3-primary: #1F7A8C;
  --elo3-primary-dark: #155E6D;
  --elo3-navy: #22435D;
  --elo3-primary-soft: rgba(31, 122, 140, 0.09);
  --elo3-primary-border: rgba(31, 122, 140, 0.25);

  --elo3-orange: #F28C28;
  --elo3-orange-hover: #E07B18;
  --elo3-orange-soft: rgba(242, 140, 40, 0.12);

  --bg-page: #F3F7F9;
  --bg-card: #FFFFFF;
  --bg-subtle: #F8FAFC;

  --text-main: #1E293B;
  --text-secondary: #475569;
  --text-muted: #64748B;

  --border-light: #E2E8F0;
  --border-focus: #1F7A8C;

  /* Cores Semânticas NPS */
  --nps-detrator: #E11D48;
  --nps-detrator-bg: #FFF1F2;
  --nps-neutro: #D97706;
  --nps-neutro-bg: #FFFBEB;
  --nps-promotor: #059669;
  --nps-promotor-bg: #ECFDF5;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-card: 0 20px 50px rgba(21, 94, 109, 0.08), 0 4px 16px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 10px 25px rgba(31, 122, 140, 0.14);
  --shadow-cta: 0 8px 24px rgba(242, 140, 40, 0.32);

  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background: linear-gradient(155deg, #EEF5F8 0%, #F7FAFC 50%, #EDF3F6 100%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Elementos Decorativos de Fundo */
.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
}

.bg-circle-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(31, 122, 140, 0.22) 0%, transparent 70%);
  top: -120px;
  right: -100px;
}

.bg-circle-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(242, 140, 40, 0.16) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
}

/* Estrutura Principal */
.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 28px;
}

/* Cabeçalho */
.survey-header {
  margin-bottom: 18px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 4px 14px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.brand-link:hover {
  transform: scale(1.02);
}

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

.step-badge {
  background: var(--bg-card);
  border: 1px solid var(--elo3-primary-border);
  color: var(--elo3-primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(31, 122, 140, 0.07);
}

/* Barra de Progresso */
.progress-wrapper {
  padding: 0 4px;
}

.progress-bar-track {
  width: 100%;
  height: 7px;
  background: rgba(31, 122, 140, 0.14);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--elo3-primary) 0%, var(--elo3-orange) 100%);
  border-radius: var(--radius-pill);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Card Central do Assistente */
.survey-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 6px 0 20px;
}

.survey-card {
  width: 100%;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
}

.survey-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--elo3-primary) 0%, var(--elo3-navy) 65%, var(--elo3-orange) 100%);
}

/* Animação de Transição entre Etapas */
.survey-step {
  animation: stepFadeIn var(--transition-smooth);
}

.survey-step[hidden] {
  display: none !important;
}

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

/* Tipografia das Etapas */
.step-header {
  margin-bottom: 28px;
}

.step-kicker,
.pill-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--elo3-primary);
  background: var(--elo3-primary-soft);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--elo3-navy);
  line-height: 1.3;
  margin-bottom: 10px;
}

.step-subtitle {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Tela de Boas-Vindas (Etapa 0) */
.welcome-hero {
  text-align: center;
  padding: 8px 4px;
}

.welcome-icon-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--elo3-primary) 0%, var(--elo3-primary-dark) 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(31, 122, 140, 0.25);
}

.welcome-title {
  font-size: 1.85rem;
  margin-top: 4px;
  margin-bottom: 18px;
}

.welcome-text {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.welcome-text p {
  margin-bottom: 12px;
}

.welcome-highlight {
  color: var(--elo3-navy);
  font-weight: 600;
}

.welcome-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin-bottom: 30px;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.meta-item svg {
  color: var(--elo3-primary);
}

/* Cartões de Seleção de Perfil (Etapa 1) */
.profile-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.profile-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  padding: 22px 20px;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-fast);
  position: relative;
}

.profile-card:hover {
  border-color: var(--elo3-primary);
  background: #FAFDFE;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.profile-card:focus-visible {
  outline: 3px solid rgba(31, 122, 140, 0.35);
  outline-offset: 2px;
}

.profile-card.selected {
  border-color: var(--elo3-primary);
  background: linear-gradient(135deg, rgba(31, 122, 140, 0.07) 0%, rgba(31, 122, 140, 0.02) 100%);
  box-shadow: 0 8px 22px rgba(31, 122, 140, 0.14);
}

.profile-card-icon {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--elo3-primary-soft);
  color: var(--elo3-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.profile-card.selected .profile-card-icon {
  background: var(--elo3-primary);
  color: #FFFFFF;
}

.profile-card-content {
  flex: 1;
}

.profile-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--elo3-navy);
  margin-bottom: 4px;
}

.profile-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.profile-card-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.profile-card.selected .profile-card-check {
  background: var(--elo3-orange);
  border-color: var(--elo3-orange);
  color: #FFFFFF;
}

/* Opções em Grade (Modalidades e Procedimentos - Etapa 2) */
.options-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.option-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.option-card-btn:hover {
  border-color: var(--elo3-primary);
  background: #FAFDFE;
}

.option-card-btn.selected {
  border-color: var(--elo3-primary);
  background: var(--elo3-primary-soft);
  color: var(--elo3-navy);
  box-shadow: 0 4px 12px rgba(31, 122, 140, 0.1);
}

.option-card-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition-fast);
}

.option-card-btn.selected .option-card-dot {
  border-color: var(--elo3-primary);
  background: var(--elo3-primary);
}

.option-card-btn.selected .option-card-dot::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #FFFFFF;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Seleção de Curso com Busca (Etapa 2) */
.course-selection-block {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border-light);
}

.form-label {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--elo3-navy);
  margin-bottom: 10px;
}

.label-optional {
  font-weight: 500;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.search-select-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.form-input,
.form-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--text-main);
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: all var(--transition-fast);
}

.search-input {
  padding-left: 42px;
  padding-right: 38px;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--elo3-primary);
  box-shadow: 0 0 0 3px rgba(31, 122, 140, 0.14);
}

.clear-search-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.35rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.course-list-container {
  max-height: 230px;
  overflow-y: auto;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  divide-y: 1px solid var(--border-light);
}

.course-option-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border: none;
  border-bottom: 1px solid #F1F5F9;
  background: transparent;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.course-option-item:last-child {
  border-bottom: none;
}

.course-option-item:hover {
  background: #F8FAFC;
}

.course-option-item.selected {
  background: var(--elo3-primary-soft);
  color: var(--elo3-navy);
  font-weight: 700;
}

.course-option-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--elo3-primary-dark);
  background: rgba(31, 122, 140, 0.1);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.custom-other-wrapper {
  margin-top: 16px;
  animation: stepFadeIn 0.25s ease;
}

/* Escala Principal NPS 0 a 10 (Etapa 3) */
.nps-scale-wrapper {
  margin: 18px 0 28px;
}

.nps-scale-grid {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.nps-score-btn {
  height: 56px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-light);
  background: var(--bg-card);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--elo3-navy);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.nps-score-btn:hover {
  transform: translateY(-3px);
  border-color: var(--elo3-primary);
  box-shadow: 0 6px 14px rgba(31, 122, 140, 0.15);
}

.nps-score-btn:focus-visible {
  outline: 3px solid rgba(31, 122, 140, 0.4);
  outline-offset: 2px;
}

/* Cores Sutis na Seleção da Nota */
.nps-score-btn.selected[data-group="detrator"] {
  background: var(--nps-detrator);
  border-color: var(--nps-detrator);
  color: #FFFFFF;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.28);
}

.nps-score-btn.selected[data-group="neutro"] {
  background: var(--nps-neutro);
  border-color: var(--nps-neutro);
  color: #FFFFFF;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.28);
}

.nps-score-btn.selected[data-group="promotor"] {
  background: var(--nps-promotor);
  border-color: var(--nps-promotor);
  color: #FFFFFF;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.28);
}

.nps-scale-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-secondary);
  padding: 0 2px;
}

.nps-selection-feedback {
  margin-top: 16px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--elo3-navy);
  background: var(--elo3-primary-soft);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* Etapa 4: Comentários e Chips de Aspectos */
.form-group {
  margin-bottom: 22px;
}

.form-helper {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-top: -4px;
  margin-bottom: 12px;
}

.char-counter {
  text-align: right;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.aspects-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.aspect-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-light);
  background: var(--bg-subtle);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.aspect-chip:hover {
  border-color: var(--elo3-primary);
  background: #FFFFFF;
}

.aspect-chip.selected {
  background: var(--elo3-primary);
  border-color: var(--elo3-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(31, 122, 140, 0.22);
}

.aspect-chip-icon {
  font-size: 0.95rem;
  line-height: 1;
}

/* Etapa 5: Contato Opcional e LGPD */
.contact-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.consent-box {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 18px;
  transition: border-color var(--transition-fast);
}

.consent-box:focus-within {
  border-color: var(--elo3-primary);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #94A3B8;
  background: #FFFFFF;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: all var(--transition-fast);
}

.checkbox-input:checked + .checkbox-custom {
  background: var(--elo3-primary);
  border-color: var(--elo3-primary);
}

.checkbox-input:checked + .checkbox-custom::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 11px;
  border: solid #FFFFFF;
  border-width: 0 2.5px 2.5px 0;
  top: 2px;
  left: 6px;
  transform: rotate(45deg);
}

.checkbox-input:focus-visible + .checkbox-custom {
  outline: 3px solid rgba(31, 122, 140, 0.35);
  outline-offset: 2px;
}

.checkbox-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.45;
}

.lgpd-notice {
  background: rgba(31, 122, 140, 0.05);
  border-left: 4px solid var(--elo3-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  margin-bottom: 22px;
}

.lgpd-notice-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--elo3-navy);
  margin-bottom: 6px;
}

.lgpd-notice-header svg {
  color: var(--elo3-primary);
  flex-shrink: 0;
}

.lgpd-notice-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.link-button {
  background: none;
  border: none;
  color: var(--elo3-primary);
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.link-button:hover {
  color: var(--elo3-primary-dark);
}

/* Mensagens de Erro */
.field-error {
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  color: #BE123C;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 18px;
  animation: stepFadeIn 0.2s ease;
}

/* Botões de Ação e Navegação */
.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #F1F5F9;
}

.step-actions-center {
  justify-content: center;
  border-top: none;
  padding-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  min-height: 50px;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.02rem;
}

.btn-primary {
  background: var(--elo3-primary);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(31, 122, 140, 0.25);
}

.btn-primary:hover:not(:disabled) {
  background: var(--elo3-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(31, 122, 140, 0.32);
}

.btn-cta {
  background: var(--elo3-orange);
  color: #FFFFFF;
  box-shadow: var(--shadow-cta);
}

.btn-cta:hover:not(:disabled) {
  background: var(--elo3-orange-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #F1F5F9;
  color: var(--text-secondary);
}

.btn-secondary:hover:not(:disabled) {
  background: #E2E8F0;
  color: var(--text-main);
}

/* Spinner de Envio */
.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Etapa 6: Tela Final de Agradecimento */
.thankyou-container {
  text-align: center;
  padding: 12px 4px;
}

.thankyou-icon-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.25);
}

.thankyou-title {
  font-size: 1.75rem;
  margin-bottom: 14px;
}

.thankyou-message {
  font-size: 1.04rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 10px;
}

.thankyou-signature {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--elo3-primary);
  margin-bottom: 20px;
}

.protocol-badge {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

/* Módulo Independente de Avaliação no Google */
.google-review-slot {
  margin-top: 12px;
}

.google-review-card {
  background: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.google-review-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.google-g-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.google-review-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--elo3-navy);
}

.google-review-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.5;
}

.btn-google-review {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #FFFFFF;
  color: var(--elo3-navy);
  border: 2px solid var(--elo3-primary);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-google-review:hover {
  background: var(--elo3-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(31, 122, 140, 0.22);
}

.google-config-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Rodapé */
.survey-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 8px;
}

.footer-links {
  margin-top: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.footer-links a {
  color: var(--elo3-primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Modal LGPD */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-dialog {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
  font-size: 1.05rem;
  color: var(--elo3-navy);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.modal-body p {
  margin-bottom: 12px;
}

.modal-body a {
  color: var(--elo3-primary);
  font-weight: 600;
}

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border-light);
  text-align: right;
}

/* Responsividade Mobile-First (Smartphones / WhatsApp / QR Code) */
@media (max-width: 640px) {
  .app-shell {
    padding: 12px 12px 20px;
  }

  .brand-logo {
    height: 40px;
  }

  .survey-card {
    padding: 26px 18px;
    border-radius: 18px;
  }

  .welcome-title {
    font-size: 1.5rem;
  }

  .step-title {
    font-size: 1.25rem;
  }

  /* Escala 0 a 10 responsiva e confortável para toque no celular */
  .nps-scale-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
  }

  .nps-score-btn {
    height: 50px;
    font-size: 1.05rem;
  }

  /* O botão 10 ocupa destaque confortável na segunda linha */
  .nps-score-btn[data-score="10"] {
    grid-column: span 2;
  }

  .contact-fields-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step-actions {
    flex-direction: row;
  }

  .step-actions .btn {
    padding: 13px 18px;
    font-size: 0.92rem;
  }
}

