/* ===== Formulário de captura antes do WhatsApp — Salute Emergências ===== */

.swf-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 22, 0.55);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.swf-overlay.swf-aberto {
  display: flex;
}

.swf-card {
  background: #ffffff;
  width: 100%;
  max-width: 380px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  animation: swf-subir 0.25s ease-out;
}

@keyframes swf-subir {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.swf-header {
  background: linear-gradient(135deg, #00838E 0%, #108A94 100%);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  color: #fff;
}

.swf-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.swf-header-icon svg { width: 24px; height: 24px; }

.swf-header-texto strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.swf-header-texto span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  opacity: 0.9;
  margin-top: 2px;
}

.swf-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  display: inline-block;
}

.swf-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  padding: 4px;
}
.swf-close:hover { opacity: 1; }

.swf-body {
  padding: 22px 22px 24px;
}

.swf-intro {
  background: #F2F8F8;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: #244;
  margin-bottom: 18px;
  line-height: 1.4;
}

.swf-field { margin-bottom: 14px; }

.swf-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.swf-field input,
.swf-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1.5px solid #E0E4E4;
  border-radius: 10px;
  font-size: 15px;
  color: #222;
  outline: none;
  transition: border-color 0.15s ease;
  background: #fff;
  font-family: inherit;
}

.swf-field input:focus,
.swf-field select:focus {
  border-color: #00838E;
}

.swf-field input.swf-erro,
.swf-field select.swf-erro {
  border-color: #eb5e57;
}

.swf-erro-msg {
  color: #eb5e57;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.swf-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #eb5e57 0%, #e2453d 100%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 20px rgba(235, 94, 87, 0.35);
}

.swf-btn:hover { transform: translateY(-1px); }
.swf-btn:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}

.swf-btn svg { width: 19px; height: 19px; }

@media (max-width: 420px) {
  .swf-card { max-width: 100%; }
}
