:root {
  --bg-primary: #0D0D0D;
  --bg-card: #141414;
  --bg-input: #1C1C1C;
  --bg-input-focus: #222222;
  --accent: #FF6B00;
  --accent-hover: #FF8533;
  --accent-glow: rgba(255, 107, 0, 0.35);
  --whatsapp: #25D366;
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A0;
  --text-muted: #666666;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 107, 0, 0.5);
  --error: #FF4D4D;
  --success: #00E676;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  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 Background Effects */
.bg-glow {
  position: fixed;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.14) 0%, rgba(255, 107, 0, 0.03) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  padding: 28px 24px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.logo-container:hover {
  transform: scale(1.02);
}

.logo-img {
  height: 54px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
}

/* Main Content Wrapper */
.main-container {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 60px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Progress Steps Indicator */
.steps-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.step-item.active {
  color: var(--accent);
}

.step-item.completed {
  color: var(--success);
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.step-divider {
  width: 20px;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

/* Glass Card */
.card {
  width: 100%;
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.92) 0%, rgba(16, 16, 16, 0.96) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.85;
}

/* Hero Text inside Card */
.card-header {
  text-align: center;
  margin-bottom: 30px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 0, 0.12);
  color: var(--accent);
  border: 1px solid rgba(255, 107, 0, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.card-title {
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.card-title .highlight {
  background: linear-gradient(90deg, #FF6B00, #FF9E44);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-subtitle {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 460px;
  margin: 0 auto;
}

/* Form Styles */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #E0E0E0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label .required {
  color: var(--accent);
  margin-left: 3px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 15px;
  color: var(--text-secondary);
  pointer-events: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px 14px 44px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.96rem;
  transition: var(--transition);
  outline: none;
}

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

.form-input:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.form-input:focus {
  background: var(--bg-input-focus);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.12);
}

.input-wrapper:focus-within .input-icon {
  color: var(--accent);
}

.form-input.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.12);
}

.error-msg {
  font-size: 0.78rem;
  color: var(--error);
  display: none;
  margin-top: 2px;
}

.error-msg.visible {
  display: block;
}

/* Course Radio Cards Grid */
.course-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.course-option {
  position: relative;
  cursor: pointer;
}

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

.course-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  height: 100%;
  padding: 14px 15px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.course-option:hover .course-card {
  border-color: rgba(255, 255, 255, 0.2);
  background: #202020;
}

.course-option input[type="radio"]:focus-visible + .course-card {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.course-option input[type="radio"]:checked + .course-card {
  background: rgba(255, 107, 0, 0.1);
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.16);
}

.course-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.course-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  transition: var(--transition);
}

.course-option input[type="radio"]:checked + .course-card .course-tag {
  background: var(--accent);
  color: #0D0D0D;
}

.radio-indicator {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.radio-indicator::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: var(--transition);
}

.course-option input[type="radio"]:checked + .course-card .radio-indicator {
  border-color: var(--accent);
}

.course-option input[type="radio"]:checked + .course-card .radio-indicator::after {
  transform: scale(1);
}

.course-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.course-period {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Primary CTA Button */
.btn-cta {
  width: 100%;
  margin-top: 6px;
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #FF6B00 0%, #FF8800 100%);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 28px var(--accent-glow);
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255, 107, 0, 0.5);
  background: linear-gradient(135deg, #FF7A00 0%, #FF9419 100%);
}

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

.btn-cta svg {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.btn-cta:hover svg.arrow-icon {
  transform: translateX(4px);
}

/* Security / Trust Footer inside card */
.form-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: center;
}

.form-trust svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Thank You Page Specific Styles */
.thank-you-card {
  text-align: center;
  padding: 44px 34px;
}

.success-icon-wrap {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: rgba(255, 107, 0, 0.12);
  border: 2px solid rgba(255, 107, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 0 35px rgba(255, 107, 0, 0.25);
  animation: pulseScale 2.2s infinite ease-in-out;
}

@keyframes pulseScale {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 25px rgba(255, 107, 0, 0.25);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 107, 0, 0.45);
  }
}

.selected-course-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  margin: 20px 0 26px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.selected-course-pill strong {
  color: var(--text-primary);
  font-weight: 700;
}

.btn-whatsapp-cta {
  text-transform: uppercase;
  font-size: 1.02rem;
  padding: 18px 26px;
  letter-spacing: 0.03em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

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

/* Footer */
.site-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Responsive Adjustments */
@media (max-width: 540px) {
  .site-header {
    padding: 22px 16px 12px;
  }

  .logo-img {
    height: 44px;
  }

  .card {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .course-options-grid {
    grid-template-columns: 1fr;
  }

  .btn-cta {
    font-size: 0.95rem;
    padding: 15px 18px;
  }
}
