/* ═══════════════════════════════════════════════════════════════════════════════
   BIOMAPRO - DESIGN PREMIUM ELEGANTE
   Cores: Preto (#0A0A0A) + Dourado (#D4AF37)
   Foco: Aparência responsiva e luxuosa
   ═══════════════════════════════════════════════════════════════════════════════ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #D4AF37;
  --primary-dark: #B8941F;
  --dark: #0A0A0A;
  --dark-light: #1A1A1A;
  --dark-lighter: #2A2A2A;
  --white: #FFFFFF;
  --light: #F8F8F8;
  --gray: #666666;
  --text: #E8E8E8;
  --error: #E74C3C;
  --success: #27AE60;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HEADER PREMIUM
   ═══════════════════════════════════════════════════════════════════════════════ */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(212, 175, 55, 0.2);
  padding: 1.2rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--primary) 0%, #FFD700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: transform var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.tagline {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 300;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MAIN CONTAINER
   ═══════════════════════════════════════════════════════════════════════════════ */

.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8rem 2rem 2rem;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   STEPPER / PROGRESSO - ELEGANTE
   ═══════════════════════════════════════════════════════════════════════════════ */

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4rem;
  gap: 2rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.4;
  transition: opacity var(--transition);
  position: relative;
}

.step.active {
  opacity: 1;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 2px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.3rem;
  transition: all var(--transition);
  color: var(--primary);
  position: relative;
}

.step.active .step-number {
  background: linear-gradient(135deg, var(--primary), #FFD700);
  border-color: var(--primary);
  color: var(--dark);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.step-label {
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 0.8rem;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.step-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), transparent);
  margin: 0 -1rem;
  max-width: 120px;
  position: relative;
}

@media (max-width: 768px) {
  .stepper {
    gap: 0.5rem;
  }

  .step-line {
    max-width: 50px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .step-label {
    font-size: 0.7rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════════════════════ */

.step-section {
  display: none;
  animation: fadeInUp 0.6s var(--transition);
}

.step-section.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray);
  font-weight: 300;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FORMULÁRIOS - ELEGANTES
   ═══════════════════════════════════════════════════════════════════════════════ */

.form-container,
.formulario-pagamento {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(42, 42, 42, 0.5));
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(212, 175, 55, 0.2);
  margin-bottom: 2rem;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--primary);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-group input {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 6px;
  font-size: 1rem;
  transition: all var(--transition);
  background: rgba(10, 10, 10, 0.5);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.form-group input::placeholder {
  color: rgba(212, 175, 55, 0.4);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.05);
  background: rgba(10, 10, 10, 0.7);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-container,
  .formulario-pagamento {
    padding: 2rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   AGENDAMENTO (Etapa 2)
   ═══════════════════════════════════════════════════════════════════════════════ */

.agendamento-container {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(42, 42, 42, 0.5));
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(212, 175, 55, 0.2);
  margin-bottom: 2rem;
  border: 1px solid rgba(212, 175, 55, 0.15);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 1024px) {
  .agendamento-container {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .agendamento-container {
    padding: 1.5rem;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .agendamento-container {
    padding: 1rem;
    gap: 1rem;
  }
}

.calendario-wrapper {
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  padding: 2rem;
  background: rgba(10, 10, 10, 0.3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .calendario-wrapper {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .calendario-wrapper {
    padding: 1rem;
    overflow-x: hidden;
  }
}

.calendario-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

.btn-nav-cal {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: all var(--transition);
  color: var(--primary);
  border-radius: 6px;
}

.btn-nav-cal:hover {
  background: rgba(212, 175, 55, 0.2);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  transform: scale(1.1);
}

.calendario {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.7rem;
  min-width: 280px;
}

@media (max-width: 480px) {
  .calendario {
    gap: 0.5rem;
    min-width: auto;
  }
}

.dia-semana {
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--primary);
  padding: 0.8rem;
}

.dia {
  padding: 0.9rem;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(10, 10, 10, 0.3);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .dia {
    padding: 0.7rem;
    min-height: 65px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .dia {
    padding: 0.5rem;
    min-height: 50px;
    font-size: 0.7rem;
  }
}

.dia:hover:not(.desabilitado) {
  border-color: var(--primary);
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

.dia.selecionado {
  background: linear-gradient(135deg, var(--primary), #FFD700);
  color: var(--dark);
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
}

.dia.desabilitado {
  opacity: 0.2;
  cursor: not-allowed;
}

.horarios-wrapper {
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  padding: 2rem;
  background: rgba(10, 10, 10, 0.3);
  max-height: 500px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .horarios-wrapper {
    padding: 1.5rem;
    max-height: 400px;
  }
}

@media (max-width: 480px) {
  .horarios-wrapper {
    padding: 1rem;
    max-height: 300px;
  }
}

.horarios-wrapper h3 {
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.1rem;
}

.horarios {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.horario-btn {
  padding: 0.9rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 6px;
  background: rgba(10, 10, 10, 0.3);
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 600;
  text-align: center;
  color: var(--text);
  touch-action: manipulation;
}

@media (max-width: 480px) {
  .horario-btn {
    padding: 0.8rem 0.6rem;
    font-size: 0.9rem;
  }
}

.horario-btn:hover {
  border-color: var(--primary);
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.horario-btn.selecionado {
  background: linear-gradient(135deg, var(--primary), #FFD700);
  color: var(--dark);
  border-color: var(--primary);
  font-weight: 700;
}

.resumo-agendamento {
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  padding: 2rem;
  background: rgba(212, 175, 55, 0.05);
  position: sticky;
  top: 0;
}

@media (max-width: 768px) {
  .resumo-agendamento {
    padding: 1.5rem;
    position: static;
  }
}

@media (max-width: 480px) {
  .resumo-agendamento {
    padding: 1rem;
  }
}

.resumo-agendamento h3 {
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.1rem;
}

.resumo-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.resumo-item:last-child {
  border-bottom: none;
}

.resumo-item strong {
  color: var(--primary);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PAGAMENTO (Etapa 3)
   ═══════════════════════════════════════════════════════════════════════════════ */

.pagamento-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .pagamento-container {
    grid-template-columns: 1fr;
  }
}

.resumo-final {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(42, 42, 42, 0.5));
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.resumo-final h3 {
  margin-bottom: 2rem;
  color: var(--primary);
  font-size: 1.3rem;
}

.resumo-bloco {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.resumo-bloco h4 {
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
}

.resumo-bloco p {
  color: var(--text);
  margin-bottom: 0.4rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BOTÕES
   ═══════════════════════════════════════════════════════════════════════════════ */

.btn {
  padding: 1rem 2.2rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #FFD700);
  color: var(--dark);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.2);
}

.btn-success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
  width: 100%;
  padding: 1.2rem;
  font-size: 1.1rem;
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(34, 197, 94, 0.5);
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.btn-info {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
  width: 100%;
  padding: 1.2rem;
  font-size: 1.1rem;
}

.btn-info:hover:not(:disabled) {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.btn-registrar {
  margin: 1.5rem 0;
  font-weight: 600;
}

.resumo-acoes {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.info-resumo {
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-pagar {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.1rem;
}

.form-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

.termos-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(212, 175, 55, 0.08);
  border-radius: 8px;
}

.termos-checkbox input[type="checkbox"] {
  margin-top: 0.3rem;
  cursor: pointer;
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.termos-checkbox label {
  color: var(--text);
  cursor: pointer;
}

.mensagem-erro {
  padding: 1.2rem;
  background: rgba(231, 76, 60, 0.1);
  color: #FF6B6B;
  border-left: 4px solid #FF6B6B;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  display: none;
}

.mensagem-sucesso {
  padding: 1.2rem;
  background: rgba(39, 174, 96, 0.1);
  color: #5FD3BC;
  border-left: 4px solid #5FD3BC;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  display: none;
}

.mensagem-erro.show,
.mensagem-sucesso.show {
  display: block;
}

.footer {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(10, 10, 10, 0.9));
  border-top: 2px solid rgba(212, 175, 55, 0.2);
  color: var(--text);
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer p {
  margin: 0.6rem 0;
  font-size: 0.95rem;
}
