/* ===============================================
   AGENDAMENTO - CSS AVANÇADO
   José W. Trainer - Paleta: Preto, Branco, Laranja
   =============================================== */

/* Variáveis CSS específicas para agendamento */
:root {
  /* Gradientes especiais */
  --gradiente-hero-agendamento: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #333333 100%);
  --gradiente-form: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 248, 248, 0.9) 100%);
  --gradiente-card: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  
  /* Sombras especiais */
  --sombra-form: 0 20px 40px rgba(0, 0, 0, 0.15);
  --sombra-input-focus: 0 0 0 3px rgba(255, 107, 53, 0.3);
  --sombra-flutuante: 0 10px 30px rgba(0, 0, 0, 0.1);
  
  /* Animações */
  --transicao-suave: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transicao-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset específico para agendamento */
.agendamento-section {
  min-height: calc(100vh - 90px); /* Ajusta para o header fixo */
  background: var(--gradiente-hero-agendamento);
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

/* Efeito de partículas de fundo */
.agendamento-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
  animation: particleFloat 20s ease-in-out infinite;
  z-index: 1;
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Container principal */
.agendamento-section > p:first-of-type {
  color: var(--cinza-claro);
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 300;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Card de informações da anamnese */
.anamnese-info {
  position: relative;
  z-index: 2;
  background: var(--gradiente-card);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--sombra-flutuante);
  border: 1px solid rgba(255, 107, 53, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: slideInFromTop 0.8s ease-out;
  overflow: hidden;
}

.anamnese-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--laranja-gradiente);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.anamnese-info h3 {
  color: var(--laranja-primario);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.anamnese-info h3::before {
  content: '⚡';
  font-size: 1.2rem;
  animation: pulse 2s infinite;
}

.anamnese-info p {
  color: var(--cinza-escuro);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.anamnese-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--laranja-gradiente);
  color: var(--preto-primario);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transicao-bounce);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  position: relative;
  overflow: hidden;
}

.anamnese-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.anamnese-link:hover::before {
  left: 100%;
}

.anamnese-link:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.anamnese-link::after {
  content: '→';
  transition: var(--transicao-suave);
}

.anamnese-link:hover::after {
  transform: translateX(5px);
}

/* Formulário principal */
.form-agendamento {
  position: relative;
  z-index: 2;
  background: var(--gradiente-form);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--sombra-form);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideInFromBottom 1s ease-out 0.3s both;
  max-width: 600px;
  margin: 0 auto;
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Labels */
.form-agendamento label {
  display: block;
  color: var(--laranja-primario);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  position: relative;
  transition: var(--transicao-suave);
}

.form-agendamento label::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--laranja-gradiente);
  transition: var(--transicao-suave);
  border-radius: 2px;
}

/* Inputs e selects */
.form-agendamento input,
.form-agendamento select {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid rgba(255, 107, 53, 0.1);
  border-radius: 16px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--preto-primario);
  transition: var(--transicao-suave);
  margin-bottom: 1.5rem;
  position: relative;
}

.form-agendamento input:focus,
.form-agendamento select:focus {
  outline: none;
  border-color: var(--laranja-primario);
  box-shadow: var(--sombra-input-focus);
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

.form-agendamento input:focus + label::before,
.form-agendamento select:focus + label::before {
  height: 100%;
}

/* Input date específico */
.form-agendamento input[type="date"] {
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
}

.form-agendamento input[type="date"]::-webkit-calendar-picker-indicator {
  background: var(--laranja-primario);
  border-radius: 50%;
  padding: 2px;
  cursor: pointer;
}

/* Select personalizado */
.form-agendamento select {
  appearance: none;
  background-image: 
    linear-gradient(45deg, transparent 50%, var(--laranja-primario) 50%),
    linear-gradient(135deg, var(--laranja-primario) 50%, transparent 50%);
  background-position: 
    calc(100% - 20px) calc(1rem + 2px),
    calc(100% - 15px) calc(1rem + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.form-agendamento select:focus {
  background-image: 
    linear-gradient(45deg, transparent 50%, var(--laranja-primario) 50%),
    linear-gradient(135deg, var(--laranja-primario) 50%, transparent 50%);
}

/* Optgroups */
.form-agendamento optgroup {
  font-weight: 700;
  color: var(--laranja-primario);
  background: var(--cinza-claro);
}

.form-agendamento option {
  padding: 0.5rem;
  background: var(--branco);
  color: var(--preto-primario);
}

/* Instruções presenciais */
.instrucoes-presencial {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 107, 53, 0.3);
  animation: fadeInScale 0.5s ease-out;
  position: relative;
  overflow: hidden;
}

.instrucoes-presencial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--laranja-gradiente);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.instrucoes-presencial h4 {
  color: var(--laranja-primario);
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.instrucoes-presencial h4::before {
  content: '📋';
}

#instrucoes-lista {
  list-style: none;
  padding: 0;
}

#instrucoes-lista li {
  padding: 0.5rem 0;
  color: var(--preto-primario);
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.5;
}

#instrucoes-lista li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--laranja-primario);
  font-weight: 700;
}

/* Botão de envio */
.form-agendamento .btn {
  width: 100%;
  background: var(--laranja-gradiente);
  color: var(--preto-primario);
  border: none;
  padding: 1.2rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transicao-bounce);
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.form-agendamento .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.form-agendamento .btn:hover::before {
  left: 100%;
}

.form-agendamento .btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.form-agendamento .btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Animação de loading no botão */
.form-agendamento .btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.form-agendamento .btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid var(--preto-primario);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Seção de contato */
.contato {
  background: var(--preto-primario);
  color: var(--branco);
  padding: 3rem 1rem;
  position: relative;
}

.contato h2 {
  text-align: center;
  color: var(--laranja-claro);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.contato h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--laranja-gradiente);
  border-radius: 2px;
}

.contato-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contato-info h3,
.contato-atendimento h3 {
  color: var(--laranja-claro);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contato-botoes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.contato-botoes .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  background: var(--laranja-gradiente);
  color: var(--preto-primario);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: var(--transicao-suave);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.contato-botoes .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.contato-botoes .btn i {
  font-size: 1.2rem;
}

.horarios {
  list-style: none;
  padding: 0;
}

.horarios li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 107, 53, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.horarios li span {
  color: var(--laranja-claro);
  font-weight: 600;
}

.resposta-rapida {
  background: rgba(255, 107, 53, 0.1);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--laranja-primario);
  margin-top: 1.5rem;
  font-weight: 500;
}

.confidential-note {
  font-style: italic;
  color: var(--cinza-claro);
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .agendamento-section {
    padding: 1rem;
  }
  
  .form-agendamento {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .anamnese-info {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .contato-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contato-botoes {
    flex-direction: column;
  }
  
  .form-agendamento input,
  .form-agendamento select {
    padding: 0.8rem 1rem;
  }
}

@media (max-width: 480px) {
  .agendamento-section > p:first-of-type {
    font-size: 1rem;
  }
  
  .anamnese-info h3 {
    font-size: 1.3rem;
  }
  
  .form-agendamento .btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .contato h2 {
    font-size: 2rem;
  }
}

/* Efeitos especiais para interação */
@media (hover: hover) {
  .form-agendamento input:hover,
  .form-agendamento select:hover {
    border-color: var(--laranja-claro);
    transform: translateY(-1px);
  }
  
  .anamnese-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  }
  
  .form-agendamento:hover {
    box-shadow: 0 25px 50px rgba(255, 107, 53, 0.2);
  }
}

/* Modo escuro automático - REMOVIDO */
/* @media (prefers-color-scheme: dark) {
  .form-agendamento {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-color: rgba(255, 107, 53, 0.3);
  }
  
  .anamnese-info {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.8) 100%);
    color: var(--branco);
  }
  
  .anamnese-info p {
    color: var(--cinza-claro);
  }
} */
