/* ====== VARIÁVEIS CSS ====== */
:root {
  /* Cores principais */
  --lavender-mist: #f4effaff;
  --dark-amethyst: #2f184bff;
  --indigo-velvet: #532b88ff;
  --lavender-purple: #9b72cfff;
  --wisteria: rgb(138, 108, 175);
  
  /* Cores derivadas para melhor contraste */
  --text-primary: var(--dark-amethyst);
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-muted2: rgb(52, 16, 94);
  --border-light: #e2e8f0;
  --accent-primary: var(--indigo-velvet);
  --accent-secondary: var(--lavender-purple);
  --background-primary: var(--lavender-mist);
  --background-secondary: #ffffff;
}

/* ====== ESTILOS GLOBAIS ====== */
body {
  background: var(--background-primary);
  font-family: "Raleway", system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ====== CABEÇALHO (PERSONALIZAÇÃO DO BOOTSTRAP) ====== */
header {
  border-bottom: 1px solid var(--wisteria);
  background: var(--background-secondary);
}

header a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

header a:hover {
  color: var(--accent-primary);
}

.logo {
  font-weight: 700;
  color: var(--dark-amethyst);
  font-family: "Raleway", sans-serif;
}

/* ====== CARD PRINCIPAL (PERSONALIZAÇÃO DO BOOTSTRAP) ====== */
.card-box {
  background: var(--background-secondary);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 500px;
  margin: auto;
  border: 1px solid var(--wisteria);
  box-shadow: 0 10px 30px rgba(83, 43, 136, 0.08);
  transition: all 0.3s ease;
}

.card-box:hover {
  box-shadow: 0 15px 40px rgba(83, 43, 136, 0.12);
}

/* ====== FORMULÁRIO (PERSONALIZAÇÃO DO BOOTSTRAP) ====== */
.form-label {
  font-weight: 600;
  color: var(--dark-amethyst);
  margin-bottom: 0.5rem;
  display: block;
}

.input-group {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--wisteria);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
  display: flex;
}

.input-group:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(83, 43, 136, 0.1);
}

.input-group-text {
  background: var(--background-secondary);
  border: none;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
}

input.form-control {
  height: 48px;
  border: none;
  background: var(--background-secondary);
  padding: 0.75rem;
  color: var(--text-primary);
  flex: 1;
  width: 100%;
}

input.form-control:focus {
  box-shadow: none;
  background: var(--background-secondary);
  outline: none;
}

input.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* ====== BOTÕES (PERSONALIZAÇÃO DO BOOTSTRAP) ====== */
.btn-dark {
  background: var(--accent-primary) !important;
  border: 1px solid var(--accent-primary) !important;
  color: white;
  font-weight: 600;
  padding: 12px;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  border: none;
}

.btn-dark:hover {
  background: var(--lavender-purple) !important;
  border-color: var(--lavender-purple) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(155, 114, 207, 0.3);
}

.btn-outline-dark {
  border: 1px solid var(--wisteria) !important;
  color: var(--text-primary) !important;
  background: transparent;
  font-weight: 500;
  padding: 12px;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-outline-dark:hover {
  background: var(--accent-primary) !important;
  color: white !important;
  border-color: var(--accent-primary) !important;
  transform: translateY(-2px);
}

/* ====== CHECKBOX (PERSONALIZAÇÃO DO BOOTSTRAP) ====== */
.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.form-check-input {
  border: 1px solid var(--wisteria);
  margin-right: 0.5rem;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.form-check-label {
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
}

/* ====== LINKS ====== */
a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

a:hover {
  color: var(--lavender-purple);
  text-decoration: underline;
}

/* ====== DIVISÓRIA ====== */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--wisteria);
}

.divider::before {
  margin-right: 1rem;
}

.divider::after {
  margin-left: 1rem;
}

/* ====== RODAPÉ (PERSONALIZAÇÃO DO BOOTSTRAP) ====== */
.footer-section {
  background: var(--background-secondary);
  font-size: 0.9rem;
  padding: 3rem 0;
  margin-top: auto;
  border-top: 1px solid var(--wisteria);
}

.footer-title {
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--dark-amethyst);
  font-size: 1rem;
}

.footer-links {
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 6px;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: normal;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.footer-help-btn {
  background: var(--accent-primary);
  border: none;
  font-size: 0.85rem;
  color: white;
  border-radius: 50px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer-help-btn:hover {
  background: var(--lavender-purple);
  transform: translateY(-2px);
}

.footer-location {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.dropdown-icon {
  font-size: 0.75rem;
  margin-left: 4px;
  color: var(--text-muted);
}

.footer-social {
  width: 100%;
  text-align: center;
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.footer-social a {
  font-size: 28px;
  color: var(--lavender-purple);
  transition: all .3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  color: var(--accent-primary);
  transform: translateY(-3px);
  text-decoration: none;
}

/* ====== TIPOGRAFIA ====== */
h2 {
  color: var(--dark-amethyst);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.text-muted {
  color: var(--text-muted) !important;
}

.small {
  font-size: 0.875rem;
  line-height: 1.4;
}

/* ====== RESPONSIVIDADE ====== */
@media (max-width: 768px) {
  .card-box {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }
  
  .footer-section .row {
    flex-direction: column;
  }
  
  .footer-section .col-md-3,
  .footer-section .col-md-9 {
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .footer-social {
    gap: 20px;
  }
  
  .footer-social a {
    font-size: 24px;
  }
}

@media (max-width: 576px) {
  .card-box {
    padding: 1.5rem 1rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .footer-section {
    padding: 2rem 0;
  }
}