/* 
 * App Stylesheet - Primeiro Passo (Studio Carol Melo)
 * Design: Minimalista, Elegante, Editorial, Light Theme
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --color-primary: #102E44;       /* Azul Petróleo */
  --color-primary-hover: #1b4461;
  --color-primary-light: #F4F7F9; /* Off-White / Cinza Azulado Suave */
  --color-accent: #C97A64;        /* Terracota */
  --color-background: #FFFFFF;    /* Branco Predominante */
  --color-foreground: #222222;
  --color-text-muted: #8c8c8c;
  --color-border: #f0f0f0;
  
  --font-sans: 'Montserrat', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

.fade-in-slide {
  animation: fadeInSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Base layouts */
.container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  padding: 32px 0;
  display: flex;
  justify-content: center;
}

.logo-container {
  max-width: 160px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo-img {
  width: 100%;
  height: auto;
  object-contain: fit;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  background-color: var(--color-primary-light);
  height: 2px;
  position: relative;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--color-primary);
  width: 0%;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Typography styles */
h1 {
  font-family: var(--font-sans);
  color: var(--color-primary);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

h2 {
  font-family: var(--font-sans);
  color: var(--color-primary);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
}

p {
  font-size: 13px;
  font-weight: 300;
  color: var(--color-foreground);
  opacity: 0.8;
  line-height: 1.6;
}

/* Landing step specific styling */
.landing-text-block {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.landing-headline {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-primary);
}

.divider-accent {
  width: 32px;
  height: 1px;
  background-color: var(--color-accent);
  margin: 12px auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  width: 100%;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 46, 68, 0.08);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Quiz questions steps styling */
.step-container {
  display: none; /* Controlled by JS */
}

.step-container.active {
  display: block;
}

.question-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 32px;
  text-align: center;
  line-height: 1.4;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.option-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.option-card:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.option-card.selected {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
  border-width: 1.5px;
}

.option-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.option-card.selected .option-radio {
  border-color: var(--color-primary);
}

.option-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
  display: block;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.option-card.selected .option-radio::after {
  opacity: 1;
  transform: scale(1);
}

.option-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-foreground);
  line-height: 1.4;
}

.quiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
}

.btn-back {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.btn-back:hover {
  color: var(--color-primary);
}

/* Forms styling */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  outline: none;
  background-color: var(--color-primary-light);
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: var(--color-primary);
  background-color: #ffffff;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 24px;
}

.checkbox-input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.checkbox-text {
  font-size: 11px;
  font-weight: 300;
  color: var(--color-foreground);
  opacity: 0.8;
  line-height: 1.4;
}

.checkbox-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.error-message {
  color: var(--color-accent);
  font-size: 11px;
  margin-top: 4px;
  font-weight: 400;
  display: none;
}

.form-group.has-error .error-message {
  display: block;
}

.form-group.has-error .form-input {
  border-color: var(--color-accent);
}

/* Spinner */
.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-primary-light);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Results template styling */
.result-block {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  padding: 32px;
  border-radius: 20px;
  border-left: 2px solid var(--color-accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.005);
  text-align: center;
}

.result-block-highlighted {
  background-color: var(--color-primary-light);
  border: 1px solid rgba(16, 46, 68, 0.05);
  padding: 32px;
  border-radius: 20px;
  border-left: 2px solid var(--color-accent);
  text-align: center;
}

.bullet-check-list {
  list-style: none;
}

.bullet-check-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
}

.bullet-check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 500;
}

/* Testimonials Carousel styles */
.carousel-window {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  background-color: #121212;
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.carousel-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
  max-height: 480px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  outline: none;
}

.carousel-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.carousel-btn-prev {
  left: 12px;
}

.carousel-btn-next {
  right: 12px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #d1d1d1;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  width: 24px;
  background-color: var(--color-primary);
  border-radius: 6px;
}

/* Footer elements */
footer {
  padding: 40px 0;
  text-align: center;
  font-size: 11px;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

footer a {
  color: var(--color-text-muted);
  text-decoration: underline;
}

/* Video wrapper */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  background-color: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ----------------------------------------------------
   Utility Classes (Tailwind Compatibility / Alignment / Spacing)
   ---------------------------------------------------- */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-auto { margin-top: auto !important; margin-bottom: auto !important; }

.max-w-sm { max-width: 384px !important; }
.max-w-md { max-width: 448px !important; }
.max-w-xs { max-width: 320px !important; }

.flex { display: flex !important; }
.flex-grow { flex-grow: 1 !important; }
.items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.flex-col { flex-direction: column !important; }

.relative { position: relative !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }

/* Spacing */
.py-4 { padding-top: 16px !important; padding-bottom: 16px !important; }
.py-8 { padding-top: 32px !important; padding-bottom: 32px !important; }
.py-12 { padding-top: 48px !important; padding-bottom: 48px !important; }
.p-8 { padding: 32px !important; }

.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-4 { margin-top: 16px !important; }
.mt-12 { margin-top: 48px !important; }

.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mb-6 { margin-bottom: 24px !important; }
.mb-8 { margin-bottom: 32px !important; }
.mb-12 { margin-bottom: 48px !important; }

/* Flex Gap Spacing */
.space-y-4 > * + * { margin-top: 16px !important; }
.space-y-6 > * + * { margin-top: 24px !important; }
.space-y-8 > * + * { margin-top: 32px !important; }
.space-y-12 > * + * { margin-top: 48px !important; }

/* Typography */
.text-\[9px\] { font-size: 9px !important; }
.text-\[10px\] { font-size: 10px !important; }
.text-xs { font-size: 12px !important; }
.text-sm { font-size: 14px !important; }
.text-lg { font-size: 18px !important; }
.text-xl { font-size: 20px !important; }

.font-light { font-weight: 300 !important; }
.font-normal { font-weight: 400 !important; }
.font-semibold { font-weight: 600 !important; }

.uppercase { text-transform: uppercase !important; }
.tracking-widest { letter-spacing: 0.15em !important; }
.leading-snug { line-height: 1.375 !important; }
.leading-relaxed { line-height: 1.625 !important; }

/* Colors */
.text-primary { color: var(--color-primary) !important; }
.text-neutral-400 { color: var(--color-text-muted) !important; }
.text-neutral-600 { color: #555555 !important; }
.text-neutral-700 { color: #333333 !important; }

.bg-white { background-color: #ffffff !important; }
.border { border: 1px solid var(--color-border) !important; }
.border-neutral-100 { border-color: var(--color-border) !important; }
.rounded-3xl { border-radius: 24px !important; }
.shadow-\[0_2px_12px_rgba\(0\,0\,0\,0\.01\)\] { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.01) !important; }
