/* Estilos adicionais para a seção de contato */ 
a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}

a:hover {
  color: #535bf2;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

/* Botão */
button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}

button:hover {
  border-color: #646cff;
}

button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

/* Container */
.secao_contato {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

/* Cabeçalho do formulário */
.cabecalho_formulario {
  text-align: center;
  margin-bottom: 2rem;
}

.cabecalho_titulo {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.cabecalho_subtitulo {
  font-size: 1.125rem;
  color: #4b5563;
}

/* Formulário */
.form-container {
  position: relative;
}

.lead-form {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
  transition: all 200ms ease;
}

.lead-form:hover {
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1), 0 0 0 1px #dbeafe;
}

/* Campos */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.phone-label {
  display: block;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 0.25rem;
}

/* Input */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: Inter, system-ui, sans-serif;
  background-color: white;
  transition: all 150ms ease;
  outline: none;
}

.form-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
  transform: translateY(-1px);
}

.form-input:hover:not(:focus) {
  border-color: #d1d5db;
}

.form-input::placeholder {
  color: #9ca3af;
}

/* Telefone agrupado */
.phone-inputs {
  display: flex;
  gap: 1rem;
  align-items: end;
}

.phone-group {
  display: flex;
  flex-direction: column;
}

.phone-group.flex-1 {
  flex: 1;
}

.phone-ddd {
  width: 80px;
  text-align: center;
}

/* Botão submit */
.submit-button {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: all 200ms ease;
  position: relative;
  overflow: hidden;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.submit-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

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

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Botão loading */
.button-text {
  transition: opacity 150ms ease;
}

.submit-button.loading .button-text {
  opacity: 0;
}

.loading-spinner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  opacity: 0;
  transition: opacity 150ms ease;
}

.submit-button.loading .loading-spinner {
  opacity: 1;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Feedback de erro */
.error-message {
  display: block;
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 150ms ease;
}

.error-message.show {
  opacity: 1;
  transform: translateY(0);
}

.form-input.error {
  border-color: #ef4444;
  background-color: #fee2e2;
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px #fee2e2;
}

/* Feedback de sucesso */
.success-message {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  border: 1px solid #10b981;
  text-align: center;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 300ms ease;
  pointer-events: none;
}

.success-message.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1rem;
  animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1
  }
}

/* Tema escuro */
@media (prefers-color-scheme: light) {
  body {
    color: #213547;
    background-color: #ffffff;
  }

  a:hover {
    color: #747bff;
  }

  button {
    background-color: #f9f9f9;
  }
}

/* Responsividade para telas médias */
@media (max-width: 768px) {
    .secao_contato {
        padding: 1rem;
        gap: 1.5rem;
    }
    
  .container {
    padding: 1rem;
    gap: 1.5rem;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .lead-form {
    padding: 1.5rem;
  }

  .phone-inputs {
    gap: 0.75rem;
  }

  .phone-ddd {
    width: 70px;
  }
}

/* Responsividade para telas pequenas */
@media (max-width: 480px) {
  .cabecalho_titulo {
    font-size: 1.5rem;
  }

  .cabecalho_subtitulo {
    font-size: 1rem;
  }

  .submit-button {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }
}