/* style.css — Design Premium Acessível */
* { font-family: 'Inter', system-ui, -apple-system, sans-serif; box-sizing: border-box; }
body {
  background: #0a1628; color: #e2e8f0; min-height: 100vh; margin: 0; overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0;
  background-image: linear-gradient(rgba(59,130,246,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,0.08) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none; z-index: 0;
}
body::after {
  content: ''; position: fixed; inset: 0;
  background: radial-gradient(ellipse at 20% 20%, rgba(59,130,246,0.18) 0%, transparent 50%), radial-gradient(ellipse at 80% 80%, rgba(139,92,246,0.12) 0%, transparent 50%);
  pointer-events: none; z-index: 0;
}

/* Barra de Utilidade Pública */
.utility-bar {
  background: rgba(30, 41, 59, 0.9); border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.5rem 0; font-size: 0.8rem; position: relative; z-index: 20;
}
.container { max-width: 72rem; margin: 0 auto; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 0 1rem; justify-content: center; }
.bar-label { color: #94a3b8; font-weight: 600; white-space: nowrap; }
.util-link { 
  color: #cbd5e1; text-decoration: none; padding: 0.2rem 0.5rem; 
  border-radius: 4px; transition: all 0.2s; 
}
.util-link:hover { background: rgba(59, 130, 246, 0.2); color: #fff; }

.top-header {
  position: relative; z-index: 10; max-width: 72rem; margin: 0 auto;
  padding: 1.5rem 1.5rem 1rem; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 0.6rem; }
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 1.1rem;
}
.logo-text { font-weight: 700; color: #fff; font-size: 1.1rem; }
.header-badge { font-size: 0.8rem; color: #94a3b8; display: none; }
@media (min-width: 640px) { .header-badge { display: block; } }
.admin-link {
  background: none; border: none; color: #475569; font-size: 0.7rem;
  cursor: pointer; opacity: 0.6; transition: opacity 0.2s; padding: 0.2rem;
}
.admin-link:hover { opacity: 1; color: #94a3b8; }

.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  transition: width 0.5s ease; z-index: 100; width: 0%;
}

.slide-viewport {
  position: relative; z-index: 1; width: 100vw; overflow: hidden; padding: 1rem 0 5rem;
}
.slide-track {
  display: flex; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform;
}
.slide { min-width: 100vw; padding: 0 1rem; display: flex; align-items: center; justify-content: center; }
@media (min-width: 768px) { .slide { min-width: 100%; padding: 0; } }

.module-card {
  background: rgba(15, 23, 42, 0.75);
  @supports not (backdrop-filter: blur(20px)) { background: rgba(15, 23, 42, 0.95); }
  backdrop-filter: blur(20px);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 24px; width: 100%; max-width: 720px; padding: 2rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4); position: relative; overflow: hidden;
}
.module-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}
.module-number {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.3);
  color: #93c5fd; padding: 0.4rem 1rem; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 1.5rem;
}
.module-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.8rem; color: #fff;
}
.module-subtitle { color: #94a3b8; font-size: 1rem; margin: 0 0 2rem; }

.input-base {
  width: 100%; background: rgba(10, 22, 40, 0.8);
  border: 1px solid rgba(59,130,246,0.6); border-radius: 14px;
  padding: 1rem 1.2rem; color: #fff; font-size: 1.05rem;
  font-family: inherit; transition: all 0.3s ease;
}
.input-base:focus {
  outline: none; border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.2); background: rgba(10, 22, 40, 1);
}
.input-base::placeholder { color: #64748b; }

.option-btn {
  width: 100%; text-align: left; background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59,130,246,0.2); border-radius: 14px;
  padding: 1.1rem 1.3rem; color: #e2e8f0; font-size: 1rem;
  font-weight: 500; transition: all 0.25s ease; cursor: pointer;
  display: flex; align-items: center; gap: 0.8rem; font-family: inherit;
  min-height: 56px; word-break: break-word; line-height: 1.3;
}
.option-btn:hover { background: rgba(59,130,246,0.12); border-color: #3b82f6; transform: translateX(6px); }
.option-btn.selected {
  background: rgba(59,130,246,0.2); border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.option-marker {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid rgba(148,163,184,0.3); display: flex;
  align-items: center; justify-content: center; font-size: 0.85rem;
  font-weight: 700; flex-shrink: 0; transition: all 0.25s ease; color: #94a3b8;
}
.option-btn.selected .option-marker { background: #3b82f6; border-color: #3b82f6; color: #fff; }

.nav-row { display: flex; justify-content: space-between; gap: 0.8rem; margin-top: 2rem; flex-wrap: wrap; }
.nav-btn {
  padding: 0.9rem 1.8rem; border-radius: 14px; font-weight: 700;
  font-size: 0.95rem; cursor: pointer; transition: all 0.25s ease;
  display: inline-flex; align-items: center; gap: 0.5rem; font-family: inherit; border: none;
}
.nav-btn-primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; }
.nav-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px); box-shadow: 0 10px 30px rgba(37,99,235,0.4);
}
.nav-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.nav-btn-ghost { background: rgba(30,41,59,0.6); border: 1px solid rgba(148,163,184,0.2); color: #e2e8f0; }
.nav-btn-ghost:hover { background: rgba(30,41,59,0.9); border-color: rgba(148,163,184,0.4); }
.nav-btn-whatsapp {
  background: linear-gradient(135deg, #10b981, #059669); color: #fff;
  width: 100%; justify-content: center; text-decoration: none;
}
.nav-btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(16,185,129,0.4); }

.slide-dots {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem; z-index: 50; background: rgba(10,22,40,0.7);
  backdrop-filter: blur(10px); padding: 0.6rem 1rem; border-radius: 50px;
  border: 1px solid rgba(59,130,246,0.2);
}
.slide-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(148,163,184,0.3);
  transition: all 0.3s ease; cursor: pointer; border: none; padding: 0;
}
.slide-dot.active { background: #3b82f6; width: 24px; border-radius: 4px; }
.slide-dot.done { background: #10b981; }

.success-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; margin: 0 auto 1.5rem;
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); color: #fff;
}
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.result-card { border-radius: 16px; padding: 1.5rem; margin: 1.5rem 0; }
.result-card.success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); }
.result-card.warning { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); }
.result-card.neutral { background: rgba(148,163,184,0.1); border: 1px solid rgba(148,163,184,0.3); }

.info-box {
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2);
  border-radius: 14px; padding: 1rem 1.2rem; font-size: 0.9rem;
  color: #cbd5e1; line-height: 1.5;
}

.field-group { margin-bottom: 1.2rem; }
.field-label { display: block; font-size: 0.9rem; font-weight: 600; color: #e2e8f0; margin-bottom: 0.5rem; }
.field-error { font-size: 0.85rem; color: #f87171; margin-top: 0.5rem; display: none; font-weight: 700; }
.field-error.show { display: block; }

.options-stack { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-note {
  position: relative; z-index: 1; max-width: 720px; margin: 0 auto;
  padding: 2rem 1.5rem 1rem; text-align: center; font-size: 0.75rem; color: #64748b;
}
.footer-content { display: flex; justify-content: center; align-items: center; gap: 1rem; }

/* Modal Styles */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
  z-index: 1000; display: flex; align-items: flex-start; justify-content: center; 
  padding: 10vh 1rem 2rem; overflow-y: auto;
}
.modal-overlay.hidden { display: none; }
.modal-content {
  background: #132043; border: 1px solid rgba(59,130,246,0.3); border-radius: 20px;
  padding: 2rem; width: 100%; max-width: 400px; margin-bottom: 2rem;
}
.modal-content h3 { color: #fff; margin-bottom: 1.5rem; font-size: 1.2rem; }
.modal-content input { margin-bottom: 1rem; }
.modal-actions { display: flex; gap: 0.8rem; margin-top: 1.5rem; }
.btn-primary {
  flex: 1; background: #3b82f6; color: #fff; border: none; padding: 0.8rem;
  border-radius: 10px; font-weight: 700; cursor: pointer;
}
.btn-ghost {
  flex: 1; background: transparent; color: #94a3b8; border: 1px solid rgba(148,163,184,0.3);
  padding: 0.8rem; border-radius: 10px; font-weight: 700; cursor: pointer;
}

@media (max-width: 640px) {
  .module-card { padding: 1.5rem; border-radius: 20px; }
  .nav-btn { padding: 0.8rem 1.2rem; font-size: 0.9rem; }
  .nav-row { flex-direction: column; }
  .nav-row .nav-btn { width: 100%; justify-content: center; }
  .bar-label { display: none; }
  .util-link { font-size: 0.75rem; padding: 0.3rem; }
}
@media (max-width: 360px) {
  .module-card { padding: 1.2rem; border-radius: 16px; }
  .module-title { font-size: 1.3rem; }
}
