/* ============================================
   components.css — Cards, modal, form, fab, animações
   ============================================ */

.card {
  background: white;
  border-radius: var(--rt-r-lg);
  border: 1px solid var(--rt-line);
  box-shadow: var(--rt-shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--rt-shadow-md); }

/* Selos wavy */
.seal {
  position: relative;
  display: inline-grid;
  place-items: center;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.15));
}

/* Animações de balão */
@keyframes float-a {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}
@keyframes float-b {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-14px) rotate(4deg); }
}
@keyframes float-c {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}
.float-a { animation: float-a 5s ease-in-out infinite; }
.float-b { animation: float-b 6.5s ease-in-out infinite; }
.float-c { animation: float-c 7.5s ease-in-out infinite; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Modal
   ============================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 42, 74, 0.55);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 20px;
  animation: fade-up .25s ease;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  width: 100%;
  max-width: 560px;
  background: var(--rt-paper);
  border-radius: var(--rt-r-xl);
  padding: 36px;
  position: relative;
  box-shadow: var(--rt-shadow-lg);
  border: 1px solid var(--rt-line);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--rt-bege);
  color: var(--rt-marrom);
  transition: background .15s;
}
.modal-close:hover { background: var(--rt-bege-deep); }

/* ============================================
   Form fields
   ============================================ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--rt-azul);
}
.field input, .field select, .field textarea {
  font: 500 15px var(--rt-sans);
  padding: 12px 14px;
  border: 1.5px solid var(--rt-line);
  border-radius: 10px;
  background: white;
  color: var(--rt-ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--rt-azul);
  box-shadow: 0 0 0 4px rgba(0, 59, 102, 0.12);
}

/* ============================================
   FAB WhatsApp
   ============================================ */
.fab-whats {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--rt-whatsapp);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.6), 0 4px 10px rgba(0,0,0,0.12);
  z-index: 90;
  transition: transform .2s;
}
.fab-whats:hover { transform: scale(1.08); }
@keyframes ping {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.7); opacity: 0; }
}
.fab-whats::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--rt-whatsapp);
  animation: ping 1.8s ease-out infinite;
  z-index: -1;
}

/* Mapa Brasil */
.br-map path {
  fill: var(--rt-bege);
  stroke: var(--rt-azul);
  stroke-width: 1.2;
  transition: fill .2s;
}
.br-map path:hover { fill: var(--rt-amarelo); cursor: pointer; }
.br-map .active { fill: var(--rt-rosa); }
.br-map .dot {
  fill: var(--rt-rosa);
  stroke: white;
  stroke-width: 2;
}
