/*
 * Pausa Fácil - estilos portados do projeto Angular (styles.scss + landing.scss + privacy.scss).
 * Cores da marca inline (antes variáveis SCSS):
 *   primary #024f6b | secondary #9E9E9E | success/accent #48BB78
 *   text-primary #2D3748 | text-secondary #4A5568 | bg-light #F7FAFC
 */

:root {
  --primary-color: #024f6b;
  --secondary-color: #9E9E9E;
  --accent-color: #48BB78;
  --text-primary: #2D3748;
  --text-secondary: #4A5568;
  --background-light: #F7FAFC;
  --background-white: #FFFFFF;
}

/* ===== Global ===== */
body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
}

.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-slogan {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.bg-primary {
  background: linear-gradient(135deg, #024f6b 0%, #9E9E9E 100%) !important;
}

.btn {
  border-radius: 50px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: #024f6b;
  border-color: #024f6b;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #012a39;
  border-color: #012a39;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 82, 130, 0.2);
}

.card {
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.section-title {
  position: relative;
  margin-bottom: 3rem;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #9E9E9E;
  border-radius: 2px;
}

.text-gradient {
  background: linear-gradient(135deg, #024f6b 0%, #9E9E9E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.shadow-custom {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.section-padding {
  padding: 5rem 0;
}

/* ===== Landing ===== */
.logo-container img.logo-original {
  filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.5));
  transition: transform 0.3s ease;
}

.logo-container img.logo-original:hover {
  transform: scale(1.1);
}

.brand-name {
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
  font-weight: 800;
  color: #ffffff;
}

.brand-slogan {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-title {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  letter-spacing: -0.01em;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.floating-animation {
  animation: float 4s ease-in-out infinite;
}

.hero-image-container {
  position: relative;
}

.hero-image-container:after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(5px);
}

.benefits-list li {
  transition: transform 0.3s ease;
}

.benefits-list li:hover {
  transform: translateX(10px);
}

.benefits-list .benefit-icon {
  font-size: 1.5rem;
  font-weight: bold;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(2, 79, 107, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.feature-icon i {
  font-size: 1.75rem;
  color: #024f6b;
  transition: color 0.3s ease;
}

.feature-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, #024f6b 0%, #9E9E9E 100%);
}

.feature-card:hover .feature-icon i {
  color: white;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Política de Privacidade ===== */
.policy-section h2 {
  color: #024f6b;
  font-weight: 700;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(2, 79, 107, 0.1);
}

.policy-section p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.policy-list {
  padding-left: 1.25rem;
}

.policy-list li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.75rem;
  position: relative;
}

.policy-list li::marker {
  color: #024f6b;
}

.contact-info {
  border-left: 4px solid #024f6b;
}

.contact-info p {
  color: var(--text-primary);
}

.btn-outline-primary {
  color: #024f6b;
  border-color: #024f6b;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: #024f6b;
  border-color: #024f6b;
  transform: translateY(-2px);
}

.btn-success {
  background-color: #25D366;
  border-color: #25D366;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-success:hover {
  background-color: #128C7E;
  border-color: #128C7E;
  transform: translateY(-2px);
}

/* ===== Questionário (wizard) ===== */
.wizard-body {
  /* Fundo claro para a logo (teal) e o card branco contrastarem. */
  background: linear-gradient(160deg, #f2f6f8 0%, #e2edf1 100%);
  min-height: 100vh;
}

.wizard-shell {
  position: relative;
  min-height: 100vh;
}

/* Topbar flutua sobre o conteúdo para não empurrar o card -> centralização real. */
.wizard-topbar {
  position: absolute;
  top: 0;
  left: 0;
  padding: 1.25rem 1.5rem;
  z-index: 2;
}

.wizard-logo {
  height: 210px;
  width: auto;
}

@media (max-width: 575px) {
  .wizard-logo {
    height: 96px;
  }
}

.wizard-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.wizard-card-wrap {
  width: 100%;
  max-width: 640px;
}

.wizard-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(2, 79, 107, 0.12);
  border: 1px solid rgba(2, 79, 107, 0.08);
  padding: 2.5rem;
}

/* Marca d'água (logo-03) centralizada no formulário. */
.wizard-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  background: url('/img/pausa-facil-nova-logo-04.svg') no-repeat center / contain;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

/* Placeholder mais claro para não confundir com valor preenchido. */
.wizard-card .form-control::placeholder {
  color: #cbd5e0;
  opacity: 1;
}

/* Conteúdo acima da marca d'água. */
.wizard-card > * {
  position: relative;
  z-index: 1;
}

.wizard-progress {
  position: relative;
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  margin-bottom: 2rem;
}

.wizard-progress-bar {
  height: 100%;
  background: #48BB78;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.wizard-progress-label {
  position: absolute;
  right: 0;
  top: 10px;
  font-size: 0.8rem;
  color: #9E9E9E;
}

.wizard-title {
  color: #024f6b;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.wizard-help {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.wizard-input {
  border: none;
  border-bottom: 2px solid #cbd5e0;
  border-radius: 0;
  padding-left: 0;
  font-size: 1.5rem;
}

.wizard-input:focus {
  box-shadow: none;
  border-bottom-color: #024f6b;
}

.wizard-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.wizard-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wizard-option:hover {
  border-color: #024f6b;
  background: #f7fafc;
}

.wizard-option:has(input:checked) {
  border-color: #024f6b;
  background: rgba(2, 79, 107, 0.06);
}

/* Campos condicionais revelados conforme a seleção (sem JS, via :has). */
.wizard-outro,
.wizard-tipo-outro,
.wizard-metodo-outro,
.wizard-local-quantos {
  display: none;
  margin-top: 0.75rem;
}

.wizard-options:has(input[value='Outro']:checked) + .wizard-outro,
.wizard-options:has(input[value='Outro']:checked) + .wizard-tipo-outro,
.wizard-options:has(input[value='Outro']:checked) + .wizard-metodo-outro,
.wizard-options:has(input[value='sim']:checked) + .wizard-local-quantos {
  display: block;
}

/* Escala 1..10 (familiaridade NR36). */
.wizard-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.wizard-scale-item {
  cursor: pointer;
}

.wizard-scale-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wizard-scale-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.wizard-scale-item:hover span {
  border-color: #024f6b;
}

.wizard-scale-item input:checked + span {
  background: #024f6b;
  border-color: #024f6b;
  color: #fff;
}

.wizard-nav {
  display: flex;
  align-items: center;
  margin-top: 2rem;
}

/* ===== Resultado do diagnóstico ===== */
.diag-result {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 1.5rem;
}

.diag-metric {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: 12px;
  background: #f7fafc;
  border-left: 5px solid #024f6b;
}

.diag-metric-danger { border-left-color: #c53030; }
.diag-metric-warning { border-left-color: #b7791f; }

.diag-metric-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.diag-metric-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #024f6b;
  margin: 0.25rem 0;
}

.diag-metric-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

@media (max-width: 575px) {
  .diag-result { grid-template-columns: 1fr; }
}

.diag-risco {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff8f1 0%, #fdeee0 100%);
  border: 1px solid #f0d9bf;
}

.diag-risco-icon {
  font-size: 1.6rem;
  color: #b7791f;
  line-height: 1;
}

.diag-risco-titulo {
  font-size: 1.05rem;
  font-weight: 700;
  color: #024f6b;
  margin: 0 0 0.35rem;
}

.diag-risco-texto {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

@media (max-width: 575px) {
  .wizard-card { padding: 1.5rem; }
  .wizard-input { font-size: 1.25rem; }
}

/* ===== Responsivo ===== */
@media (max-width: 991px) {
  .hero-image-container { margin-top: 3rem; }
  .benefits-image-container { margin-top: 3rem; }
  .brand-name { font-size: 2rem; }
}

@media (max-width: 768px) {
  .display-4 { font-size: 2.5rem; }
  .lead { font-size: 1.1rem; }
  .section-padding { padding: 3rem 0; }
  .benefits-list li { margin-bottom: 1.5rem; }
  .brand-name { font-size: 1.75rem; }
  .brand-slogan { font-size: 0.875rem; }
  .policy-section { margin-bottom: 2rem !important; }
  .policy-section h2 { font-size: 1.25rem; }
  .btn-lg { padding: 0.625rem 1.5rem; font-size: 1rem; }
}
