:root {
  --theme-highlight-color: #ca8a04;
  --theme-background-color: #ffffff;
  --theme-text-color: #000000;
  --theme-heading-color: #000000;
  --theme-text-size: 16px;
  --theme-text-font: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body, html {
  font-family: var(--theme-text-font);
  background-color: var(--theme-background-color);
  color: var(--theme-text-color);
  font-size: var(--theme-text-size);
  line-height: 1.5;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  height: 14px;
  background-color: #e5e7eb;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.progress-bar {
  height: 100%;
  background-color: #16a34a; /* verde vibrante para chamar atencao */
  width: 0%;
  transition: width 0.4s ease-out;
  border-radius: 0 8px 8px 0;
}

/* Main Container */
.header-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 60;
}
.back-button {
  position: absolute;
  top: 12px;
  left: 8px;
  padding: 8px;
  cursor: pointer;
  color: #000;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-button:active {
  transform: scale(0.9);
}
.back-button.hidden {
  display: none;
}

.main-content {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1rem;
  padding-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.5s ease;
}

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

/* Layers / Steps styling */

.layer {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.layer.hidden {
  display: none;
}

/* Text */
.layer-text {
  width: 100%;
  color: var(--theme-text-color);
}
.layer-text h2, .layer-text h3 {
  color: var(--theme-heading-color);
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.layer-text p {
  margin-bottom: 0.5rem;
}
.ql-align-center {
  text-align: center;
}

/* Alert */
.layer-alert {
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

/* Image */
.layer-image {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}
.layer-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Button */
.btn-theme {
  width: 100%;
  padding: 1.15rem 1.5rem;
  border-radius: 12px;
  background-color: var(--theme-highlight-color);
  color: #ffffff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(202, 138, 4, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-theme:hover {
  background-color: #b45309;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(202, 138, 4, 0.35);
}

.btn-theme:active {
  transform: translateY(1px);
}

.btn-success {
  background-color: #16a34a !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25) !important;
}

.btn-success:hover {
  background-color: #15803d !important;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35) !important;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Options */
.options-grid {
  display: grid;
  gap: 0.85rem;
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-1 { grid-template-columns: 1fr; }

.option-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.1rem 1.35rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #ffffff;
  color: #1f2937;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.option-item:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.option-item.selected {
  background-color: #fef8e7;
  border-color: var(--theme-highlight-color);
  box-shadow: 0 4px 12px rgba(202, 138, 4, 0.08);
}

.option-item.background-contrast {
  border: 1px solid var(--theme-highlight-color);
}

.option-label {
  flex: 1;
  font-weight: 500;
  font-size: 1.05rem;
}

.option-icon-print {
  width: 24px;
  height: 24px;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  background-color: transparent;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.option-item.selected .option-icon-print {
  background-color: var(--theme-highlight-color);
  border-color: var(--theme-highlight-color);
  color: #ffffff;
}

/* Options with Images */
.option-item.has-image {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  position: relative;
  border: 1px solid #e2e8f0;
}

.option-item.has-image .option-inner-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.option-item.has-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0 !important;
  transition: transform 0.3s ease;
}

.option-item.has-image:hover img {
  transform: scale(1.02);
}

.option-item.has-image .option-label {
  padding: 0.85rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  border-top: 1px solid #f1f5f9;
  background-color: #ffffff;
}

.option-item.has-image.selected .option-label {
  background-color: #fef8e7;
  border-top-color: #fde047;
}

.option-item.has-image .option-icon-print {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  z-index: 10;
  margin: 0;
  width: 22px;
  height: 22px;
}

.option-item.has-image.selected .option-icon-print {
  background-color: var(--theme-highlight-color);
  border-color: var(--theme-highlight-color);
  color: white;
}

/* Quotes */
.layer-quotes {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.quotes-carousel {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  width: 100%;
}

.quotes-carousel::-webkit-scrollbar {
  display: none;
}

.quote-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  width: 92%;
  max-width: 500px;
  flex-shrink: 0;
  scroll-snap-align: center;
  white-space: normal;
  display: flex;
  flex-direction: column;
}

.quote-text {
  margin-bottom: 0;
  color: #1f2937;
  line-height: 1.5;
  font-size: 1rem;
}

.quote-author {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quote-rate {
  color: #fbbf24;
}

/* Mobile specific */
@media (max-width: 640px) {
  .grid-cols-2 { grid-template-columns: 1fr; }
}


/* Fields */
.field-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.field-label {
  font-size: 1rem;
  color: #000;
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 500;
  text-align: left;
}

.field-input {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  color: #1f2937;
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.field-input::placeholder {
  color: #9ca3af;
  font-style: italic;
}

.field-input:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}

/* Force specific button color to gold on form steps if needed */
.btn-gold {
  background-color: #c99c3b !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 1rem !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
}


@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.4s ease-in-out;
}


/* Image Carousel */
.carousel-wrapper {
  position: relative;
  width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}
.image-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.image-carousel::-webkit-scrollbar {
  display: none;
}
.carousel-img {
  width: 85%;
  max-width: 400px;
  flex-shrink: 0;
  scroll-snap-align: center;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 0.5rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-dot.active {
  background-color: var(--theme-highlight-color);
  width: 24px;
}

/* Custom Profile Analysis CSS */
.analysis-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.progress-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: #334155;
  font-size: 1rem;
}
.progress-item:last-child {
  margin-bottom: 0;
}
.progress-item.completed {
  color: #16a34a;
}
.progress-item.pending {
  color: #ca8a04;
}
.progress-icon {
  font-size: 1.25rem;
}

.benefits-box {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #1e293b;
  line-height: 1.4;
}
.benefit-item:last-child {
  margin-bottom: 0;
}
.benefit-icon {
  flex-shrink: 0;
  color: #16a34a;
  font-size: 1.1rem;
}
.discount-notice {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed #cbd5e1;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
  font-style: italic;
}

/* Pricing Component */
.pricing-container {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 2px solid #ca8a04;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
    box-shadow: 0 10px 30px rgba(202, 138, 4, 0.15);
    position: relative;
    overflow: hidden;
}

.pricing-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #ca8a04;
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.35rem 1.5rem;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-old {
    color: #94a3b8;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: line-through;
    margin-top: 1.5rem;
    margin-bottom: 0.25rem;
}

.pricing-new {
    color: #0f172a;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
}

.pricing-currency {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.pricing-condition {
    color: #ef4444;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0;
}
/* =========================================
   QUIZ 2.1 - VSL STYLES (FIXED)
   ========================================= */

/* Delayed Elements - Prevents scrolling */
.fade-in-delayed {
    display: none;
}

.fade-in-delayed.visible {
    display: block;
    animation: fadeInUp 1.2s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* VSL Thumbnail Overlay */
.vsl-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    width: 100%;
    aspect-ratio: 9/16;
    background: #000;
}

#custom-vsl-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    pointer-events: none;
}

#custom-vsl-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.vsl-overlay-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    text-align: center;
    width: 100%;
}

.vsl-play-btn {
    width: 85px;
    height: 85px;
    background: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    animation: pulsePlay 2s infinite;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

@keyframes pulsePlay {
    0% { box-shadow: 0 0 0 0 rgba(220,38,38,0.7); }
    70% { box-shadow: 0 0 0 25px rgba(220,38,38,0); }
    100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}

.vsl-overlay-text {
    color: #ffffff !important;
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
    text-shadow: 0px 4px 15px rgba(0,0,0,0.9) !important;
}
/* VSL Progress Bar */
#vsl-progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 20;
    pointer-events: none;
}

#vsl-progress-fill {
    height: 100%;
    width: 0%;
    background-color: #dc2626; /* red */
    transition: width 0.1s linear;
}

