/* Popup shell */
.waw-popup { position: fixed; inset: 0; z-index: 9999; display: none; }
.waw-popup.waw-open { display: block; }
.waw-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); }

/* Centered modal wrapper */
.waw-modal {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}

/* Card */
.waw-form-wrap {
  position: relative;
  width: 100%; max-width: 560px;
  background: #fff; border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.12), 0 6px 18px rgba(0,0,0,.08);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Small × close button at top-right of card */
.waw-close {
  position: absolute; top: 10px; right: 10px;
  width: 24px; height: 24px;
  border-radius: 999px; border: 1px solid #e5e7eb;
  background: #fff; color: #111; font-size: 16px; line-height: 22px;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* Headings */
.waw-head h2 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.waw-sub { margin: 0 0 12px; color: #4b5563; font-size: 14px; line-height: 1.5; }
.waw-offer { color: #065f46; font-weight: 700; }

/* Fields */
.waw-field { margin: 12px 0 16px; }
.waw-field label { display: block; margin-bottom: 6px; font-size: 13px; color: #111827; }
.waw-field input[type="tel"] {
  width: 100%; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 10px 12px; font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.waw-field input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.15); }

/* Button */
.waw-btn {
  width: 100%; background: #16a34a; color: #fff; border: 0; border-radius: 12px;
  padding: 12px 14px; font-size: 15px; font-weight: 800; cursor: pointer;
  box-shadow: 0 8px 20px rgba(22,163,74,.35);
}
.waw-btn:disabled { opacity:.7; cursor:not-allowed; }

/* Messages */
.waw-msg { margin-top: 10px; min-height: 18px; font-size: 14px; line-height: 1.4; transition: all .3s ease; }
.waw-success { color: #000; font-weight: 600; }
.waw-error { color: #b91c1c; font-weight: 500; }

/* intl-tel-input */
.iti { width: 100%; }
.iti__country-list { z-index: 10000; }

/* Mobile */
@media (max-width: 480px){
  .waw-form-wrap { border-radius: 12px; padding: 18px 14px; }
  .waw-head h2 { font-size: 18px; }
}

/* --- Fix close button position and popup centering --- */
.waw-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.waw-form-wrap {
  position: relative;
  margin: auto;
}

.waw-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  border: 1px solid #e5e7eb;
  font-size: 16px;
  line-height: 22px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
