/* Lebegő WhatsApp érdeklődő – Egerkert */

#wa-lead-root {
  position: fixed;
  z-index: 9990;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wa-lead-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-lead-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

body.wa-lead-open .wa-lead-fab {
  opacity: 0;
  pointer-events: none;
}

.wa-lead-modal[hidden] {
  display: none;
}

.wa-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 9991;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

@media (min-width: 520px) {
  .wa-lead-modal {
    align-items: center;
  }
}

.wa-lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.wa-lead-modal__panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 24px 22px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

@media (min-width: 520px) {
  .wa-lead-modal__panel {
    border-radius: 16px;
  }
}

.wa-lead-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #374151;
}

.wa-lead-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: #1f3d2b;
}

.wa-lead-lead {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.5;
}

.wa-lead-form label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}

.wa-lead-form .req {
  color: #c62828;
}

.wa-lead-form .opt {
  font-weight: 400;
  color: #6b7280;
  font-size: 0.85rem;
}

.wa-lead-form input,
.wa-lead-form select,
.wa-lead-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
  box-sizing: border-box;
}

.wa-lead-form input:focus,
.wa-lead-form select:focus,
.wa-lead-form textarea:focus {
  outline: 2px solid #2e7d32;
  outline-offset: 1px;
  border-color: #2e7d32;
}

.wa-lead-check {
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.45;
}

.wa-lead-check input {
  display: inline;
  width: auto;
  margin: 0 6px 0 0;
  vertical-align: middle;
}

.wa-lead-check a {
  color: #2e7d32;
}

.wa-lead-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.wa-lead-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #ffebee;
  color: #b71c1c;
  border-radius: 8px;
  font-size: 0.9rem;
}

.wa-lead-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #2e7d32;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.wa-lead-submit:hover:not(:disabled) {
  background: #256628;
}

.wa-lead-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.wa-lead-success p {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.55;
  color: #1f3d2b;
}

.wa-lead-wa-btn {
  display: block;
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  text-align: center;
  background: #25d366;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  box-sizing: border-box;
}

.wa-lead-wa-btn:hover {
  background: #1fb855;
}

.wa-lead-secondary {
  width: 100%;
  padding: 12px;
  border: 2px solid #2e7d32;
  background: #fff;
  color: #2e7d32;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
}

@media (max-width: 480px) {
  .wa-lead-fab {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
  }
}
