/* ==========================================================================
   ADVANCED - Computação Gráfica e Artes
   Design System & Landing Page Stylesheet
   ========================================================================== */

:root {
  /* Paleta Principal */
  --bg-dark: #0D0D0D;
  --bg-surface: #141414;
  --bg-card: #1A1A1A;
  --bg-card-hover: #222225;
  --bg-input: #121214;
  
  /* Cores de Destaque */
  --accent-orange: #FF6B00;
  --accent-orange-hover: #FF7A00;
  --accent-orange-light: #FFA24C;
  --accent-orange-glow: rgba(255, 107, 0, 0.4);
  --accent-orange-soft: rgba(255, 107, 0, 0.12);
  
  /* WhatsApp */
  --whatsapp-green: #25D366;
  --whatsapp-hover: #20BA5A;
  --whatsapp-glow: rgba(37, 211, 102, 0.35);

  /* Textos */
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A0;
  --text-muted: #6B7280;
  --text-inverse: #0D0D0D;

  /* Bordas e Divisores */
  --border-subtle: #27272A;
  --border-medium: #3F3F46;
  --border-focus: #FF6B00;

  /* Status */
  --color-success: #10B981;
  --color-error: #EF4444;

  /* Efeitos e Raios */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-orange: 0 8px 25px rgba(255, 107, 0, 0.3);
  --shadow-green: 0 8px 25px rgba(37, 211, 102, 0.3);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Fundo Estilizado com Efeito de Luz */
body::before {
  content: "";
  position: fixed;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.12) 0%, rgba(13, 13, 13, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Container Principal */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   HEADER & BRANDING
   ========================================================================== */

.site-header {
  padding: 1.75rem 0;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  background: rgba(13, 13, 13, 0.85);
  position: sticky;
  top: 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-orange), #D9480F);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.35);
  flex-shrink: 0;
}

.brand-icon svg {
  width: 26px;
  height: 26px;
  fill: #FFFFFF;
}

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

.brand-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-title span {
  color: var(--accent-orange);
}

.brand-tagline {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.3);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-orange-light);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-orange);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(255, 107, 0, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
  }
}

/* ==========================================================================
   HERO & CAPTAÇÃO SECTION
   ========================================================================== */

.hero-section {
  padding: 3.5rem 0 4.5rem;
  flex: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* Coluna de Texto & Benefícios */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--accent-orange);
  font-weight: 600;
  width: fit-content;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent-orange), #FFA24C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Benefícios em Destaque */
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.benefit-icon {
  width: 24px;
  height: 24px;
  background: var(--accent-orange-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-text strong {
  color: var(--text-primary);
  display: block;
  font-size: 0.95rem;
}

.benefit-text p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Prova Social / Selos de Segurança */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-orange);
}

/* ==========================================================================
   FORMULÁRIO DE CAPTURA (CARD)
   ========================================================================== */

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card), 0 0 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-orange), #FFA24C);
}

.form-header {
  margin-bottom: 1.75rem;
  text-align: left;
}

.form-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.form-header p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 0.45rem;
}

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

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

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

.form-input,
.form-select {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 0.85rem 1rem 0.85rem 2.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

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

.form-input:hover,
.form-select:hover {
  border-color: #52525B;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--border-focus);
  background-color: #17171B;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

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

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A0A0A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}

.form-select option {
  background-color: #1A1A1A;
  color: var(--text-primary);
  padding: 0.75rem;
}

/* Opções de Cursos em Cards Selecionáveis (Modo Visual Radio) */
.course-options-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.4rem;
}

.course-radio-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  user-select: none;
}

.course-radio-label:hover {
  background-color: var(--bg-card-hover);
  border-color: #4B5563;
  transform: translateY(-1px);
}

.course-radio-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.course-radio-input:checked + .course-radio-card {
  border-color: var(--accent-orange);
  background-color: rgba(255, 107, 0, 0.08);
  box-shadow: 0 0 0 1px var(--accent-orange);
}

.course-radio-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.course-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.course-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.course-desc-tag {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.course-badge-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.badge-tecnico {
  background: rgba(255, 107, 0, 0.2);
  color: var(--accent-orange-light);
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.badge-gratuito {
  background: rgba(16, 185, 129, 0.18);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.custom-radio-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.course-radio-label.is-selected {
  border-color: var(--accent-orange);
  background-color: rgba(255, 107, 0, 0.08);
  box-shadow: 0 0 0 1px var(--accent-orange);
}

.course-radio-label.is-selected .custom-radio-mark {
  border-color: var(--accent-orange);
}

.course-radio-label.is-selected .custom-radio-mark::after {
  content: "";
  width: 9px;
  height: 9px;
  background-color: var(--accent-orange);
  border-radius: 50%;
}

/* Mensagem de Erro do Campo */
.form-error-message {
  font-size: 0.78rem;
  color: var(--color-error);
  margin-top: 0.35rem;
  display: none;
  align-items: center;
  gap: 0.35rem;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .course-options-container {
  border-color: var(--color-error);
}

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

/* Botão de Envio (CTA Laranja) */
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-orange), #FF7A00);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: var(--transition);
  box-shadow: var(--shadow-orange);
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
}

.btn-submit::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: 0.6s;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #FF7A00, #FF8C1A);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 107, 0, 0.5);
}

.btn-submit:hover::after {
  left: 100%;
}

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

.btn-submit svg {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}

.btn-submit:hover svg {
  transform: translateX(4px);
}

/* Micro-texto de privacidade */
.form-footer-note {
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* ==========================================================================
   PÁGINA DE AGRADECIMENTO (THANK YOU PAGE)
   ========================================================================== */

.thankyou-wrapper {
  padding: 4rem 0 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.thankyou-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 620px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-card), 0 0 50px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.thankyou-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-orange), var(--whatsapp-green));
}

.success-icon-badge {
  width: 72px;
  height: 72px;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid rgba(16, 185, 129, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-success);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
  animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  70% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

.thankyou-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.thankyou-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.thankyou-subtitle .bold-step {
  color: var(--accent-orange);
  font-weight: 700;
}

/* Card Informativo do Curso Selecionado */
.chosen-course-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 107, 0, 0.4);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.chosen-course-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-orange);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.chosen-course-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.chosen-course-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Botão Oficial do WhatsApp */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  background: linear-gradient(135deg, var(--accent-orange), #FF7A00);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1.25rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-orange);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-whatsapp svg {
  width: 28px;
  height: 28px;
  fill: #FFFFFF;
  flex-shrink: 0;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #FF7A00, #FF8C1A);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 12px 35px rgba(255, 107, 0, 0.5);
}

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

/* Instruções Adicionais pós-inscrição */
.thankyou-steps {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.step-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.step-num {
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-orange);
  flex-shrink: 0;
}

/* Botão Voltar / Link Alternativo */
.back-link {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  padding: 2.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0A0A0A;
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-school {
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==========================================================================
   RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content {
    text-align: center;
    align-items: center;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .benefits-list {
    text-align: left;
  }

  .trust-badges {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 1.25rem 0;
  }

  .brand-title {
    font-size: 1.1rem;
  }

  .header-badge {
    display: none;
  }

  .hero-section {
    padding: 2rem 0 3.5rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .form-card {
    padding: 1.5rem 1.25rem;
  }

  .thankyou-card {
    padding: 2rem 1.25rem;
  }

  .thankyou-title {
    font-size: 1.6rem;
  }

  .btn-submit,
  .btn-whatsapp {
    font-size: 0.95rem;
    padding: 1rem;
  }

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