/* ==========================================================================
   SAKAI CORE - DIAGNOSTIC MULTI-STEP FORMS (forms.sakaicore.com.br)
   Design System: Obsidian Dark & Radiant Gold | Executive Medical High-Ticket
   ========================================================================== */

:root {
  --bg-main: #060709;
  --bg-card: rgba(14, 16, 22, 0.85);
  --bg-card-hover: rgba(22, 25, 35, 0.95);
  --bg-input: rgba(10, 12, 16, 0.8);
  
  --gold-primary: #D4AF37;
  --gold-light: #F9E79F;
  --gold-dark: #997300;
  --gold-gradient: linear-gradient(135deg, #F9E79F 0%, #D4AF37 50%, #997300 100%);
  --gold-glow: rgba(212, 175, 55, 0.25);
  --gold-glow-strong: rgba(212, 175, 55, 0.45);
  
  --text-primary: #F0F2F5;
  --text-secondary: #9DA3AE;
  --text-muted: #6B7280;
  --text-gold: #E5C158;
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.35);
  --border-gold-active: #D4AF37;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Glow Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.glow-top-left {
  top: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
}

.glow-top-right {
  top: -5%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
}

.glow-bottom {
  bottom: -15%;
  left: 30%;
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
}

/* Header */
.form-header {
  position: relative;
  z-index: 10;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(6, 7, 9, 0.7);
  backdrop-filter: blur(16px);
}

.header-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-image-wrap {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px var(--gold-glow));
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #FFFFFF;
}

.gold-dot {
  color: var(--gold-primary);
}

.brand-tagline {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-weight: 600;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-gold);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
  animation: pulse-glow 2s infinite ease-in-out;
}

.green-dot {
  background-color: #10B981;
  box-shadow: 0 0 10px #10B981;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Main Layout */
.form-main {
  flex: 1;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.form-wrapper {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

/* Progress Box */
.progress-box {
  margin-bottom: 24px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

.step-label {
  color: var(--text-gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.percentage-label {
  color: var(--text-muted);
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 10px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px var(--gold-glow-strong);
}

/* Diagnostic Card */
.diagnostic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 175, 55, 0.05);
  backdrop-filter: blur(24px);
  position: relative;
  transition: all var(--transition-smooth);
}

.diagnostic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

/* Step Typography */
.step-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text-gold);
  margin-bottom: 14px;
}

.step-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Form Steps Visibility & Transitions */
.form-step {
  display: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.form-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Options Grid */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.option-card {
  position: relative;
  display: block;
  cursor: pointer;
  background: rgba(18, 20, 28, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: all var(--transition-smooth);
  user-select: none;
}

.option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.option-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-smooth);
}

.option-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.option-text strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.option-text span {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.4;
  transition: color var(--transition-fast);
}

/* Hover & Selected States */
.option-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.option-card:hover .option-icon {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--border-gold);
}

.option-card.selected,
.option-card:has(input[type="radio"]:checked) {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(18, 20, 28, 0.85) 100%);
  border-color: var(--border-gold-active);
  box-shadow: 0 0 24px var(--gold-glow);
}

.option-card.selected .option-icon,
.option-card:has(input[type="radio"]:checked) .option-icon {
  background: var(--gold-gradient);
  color: #000;
  border-color: transparent;
}

.option-card.selected .option-text strong,
.option-card:has(input[type="radio"]:checked) .option-text strong {
  color: #FFFFFF;
}

.option-card.selected .option-text span,
.option-card:has(input[type="radio"]:checked) .option-text span {
  color: #E2E8F0;
}

/* Highlight badge for VIP cards */
.option-card.highlight {
  border-color: rgba(212, 175, 55, 0.25);
}

/* Step 6: Inputs Stack */
.inputs-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-group input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  transition: all var(--transition-fast);
}

.input-group input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 16px var(--gold-glow);
  background: rgba(14, 16, 22, 0.95);
}

.input-group input::placeholder {
  color: var(--text-muted);
}

.field-error {
  font-size: 0.76rem;
  color: #EF4444;
  display: none;
}

.field-error.show {
  display: block;
}

/* Action Buttons */
.step-navigation-bar {
  display: flex;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-glass);
}

.nav-spacer {
  flex: 1;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
  font-family: var(--font-sans);
}

.btn-prev {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
}

.btn-prev:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.btn-next {
  background: var(--gold-gradient);
  color: #08090C;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-next:hover {
  box-shadow: 0 6px 28px var(--gold-glow-strong);
  transform: translateY(-2px);
}

.btn-submit-gold {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 28px;
  background: var(--gold-gradient);
  color: #08090C;
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  box-shadow: 0 8px 30px var(--gold-glow-strong);
  transition: all var(--transition-smooth);
}

.btn-submit-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--gold-glow-strong);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn-submit-gold:hover .btn-arrow,
.btn-next:hover .btn-arrow {
  transform: translateX(4px);
}

.form-reassurance-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   THANK YOU PAGE (obrigado.html) STYLES
   ========================================================================== */

.thank-you-card {
  text-align: center;
  padding: 56px 44px;
}

.success-icon-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
}

.success-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #08090C;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 30px var(--gold-glow-strong);
}

.success-circle svg {
  width: 38px;
  height: 38px;
}

.success-shockwave {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 1px solid var(--gold-primary);
  opacity: 0.5;
  animation: shockwave-pulse 2.5s infinite ease-out;
}

@keyframes shockwave-pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.thank-you-title {
  font-size: 2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.thank-you-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.protocol-card {
  background: rgba(18, 20, 28, 0.7);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.protocol-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.protocol-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.protocol-number {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.protocol-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Timeline */
.next-steps-timeline {
  text-align: left;
  background: rgba(14, 16, 22, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 36px;
}

.timeline-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.timeline-step {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  position: relative;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-step.active .timeline-num {
  background: var(--gold-gradient);
  color: #08090C;
  border-color: transparent;
  box-shadow: 0 0 14px var(--gold-glow);
}

.timeline-text strong {
  display: block;
  font-size: 0.94rem;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.timeline-text p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.thank-you-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.btn-gold-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 30px;
  background: var(--gold-gradient);
  color: #08090C;
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 8px 30px var(--gold-glow-strong);
  transition: all var(--transition-smooth);
}

.btn-gold-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--gold-glow-strong);
}

.btn-secondary-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.btn-secondary-back:hover {
  color: #FFFFFF;
}

.thank-you-footer-note {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

.mini-founder-thumb {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold-primary);
}

.thank-you-footer-note strong {
  display: block;
  font-size: 0.88rem;
  color: #FFFFFF;
}

.thank-you-footer-note span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Footer */
.form-footer {
  position: relative;
  z-index: 10;
  padding: 24px;
  border-top: 1px solid var(--border-glass);
  background: rgba(6, 7, 9, 0.8);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-flex {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Text Gradients */
.text-gold {
  color: var(--text-gold);
}

.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Responsiveness */
@media (max-width: 640px) {
  .diagnostic-card {
    padding: 28px 20px;
    border-radius: var(--radius-md);
  }

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

  .thank-you-title {
    font-size: 1.5rem;
  }

  .option-card {
    padding: 14px 16px;
  }

  .footer-flex {
    flex-direction: column;
    text-align: center;
  }
}
