/* MailerWave Connect — front-end form styles (v2.4.0)
 * Theme it by overriding the custom properties on .mw-form-wrap, e.g.
 *   .mw-form-wrap { --mw-primary: #e11d48; --mw-radius: 999px; }
 */

.mw-form-wrap {
  --mw-primary:       #0c5282;
  --mw-primary-hover: #0a4268;
  --mw-ring:          rgba(46, 211, 230, .45);
  --mw-text:          #1a202c;
  --mw-muted:         #4a5568;
  --mw-border:        #cbd5e0;
  --mw-bg:            #fff;
  --mw-radius:        8px;

  box-sizing: border-box;
  max-width: 420px;
  margin: 24px auto;
  padding: 28px 32px;
  border: 1px solid #e2e8f0;
  border-radius: calc(var(--mw-radius) + 4px);
  background: var(--mw-bg);
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--mw-text);
}
.mw-form-wrap *, .mw-form-wrap *::before, .mw-form-wrap *::after { box-sizing: border-box; }

.mw-form-title { margin: 0 0 8px; font-size: 1.3rem; font-weight: 700; color: var(--mw-text); line-height: 1.3; }
.mw-form-desc  { margin: 0 0 20px; color: var(--mw-muted); font-size: .95rem; line-height: 1.55; }

.mw-messages {
  padding: 10px 14px;
  border-radius: var(--mw-radius);
  margin-bottom: 16px;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
}
.mw-messages[hidden] { display: none; }
.mw-messages.mw-success { background: #f0fff4; color: #276749; border: 1px solid #c6f6d5; }
.mw-messages.mw-error   { background: #fff5f5; color: #c53030; border: 1px solid #fed7d7; }

.mw-field { position: relative; margin-bottom: 12px; }

.mw-form-wrap input[type="email"],
.mw-form-wrap input[type="text"],
.mw-form-wrap input[type="tel"] {
  display: block;
  width: 100%;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--mw-text);
  background: #fff;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.mw-form-wrap input::placeholder { color: #8a94a6; }
.mw-form-wrap input:focus {
  outline: none;
  border-color: var(--mw-primary);
  box-shadow: 0 0 0 3px var(--mw-ring);
}

/* Honeypot — off-screen, invisible to people, still present for bots. */
.mw-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.mw-form-wrap .screen-reader-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.mw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
  padding: 12px 20px;
  background: var(--mw-primary);
  color: #fff;
  border: 0;
  border-radius: var(--mw-radius);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.mw-btn:hover        { background: var(--mw-primary-hover); }
.mw-btn:active       { transform: scale(.985); }
.mw-btn:disabled     { opacity: .65; cursor: not-allowed; }
.mw-btn:focus-visible { outline: 3px solid var(--mw-ring); outline-offset: 2px; }

.mw-btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mw-spin .7s linear infinite;
}
.mw-btn-spinner[hidden] { display: none; }
@keyframes mw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mw-btn-spinner { animation-duration: 2s; } }

.mw-notice-deleted { border: 2px dashed #e53e3e; padding: 10px; color: #c53030; font-size: .875rem; }

/* =====================================================================
   intl-tel-input (v17, bundled locally) — flag + dial code inside the input
===================================================================== */
.iti { display: block; width: 100%; position: relative; }
.iti input[type="tel"] { padding-left: 78px !important; width: 100% !important; }

.iti__flag-container { position: absolute; top: 0; left: 0; bottom: 0; padding: 0; }
.iti__selected-flag {
  height: 100%;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border-right: 1px solid var(--mw-border, #cbd5e0);
  border-radius: var(--mw-radius, 8px) 0 0 var(--mw-radius, 8px);
  background: #f7fafc;
  white-space: nowrap;
}
.iti__selected-flag:hover, .iti__selected-flag:focus { background: #edf2f7; outline: none; }
.iti__selected-dial-code { font-size: .9rem; color: #2d3748; font-weight: 500; }
.iti__arrow { border-top: 4px solid #4a5568; border-left: 4px solid transparent; border-right: 4px solid transparent; margin-left: 2px; }
.iti__arrow--up { border-top: none; border-bottom: 4px solid #4a5568; }

.iti__country-list {
  position: absolute; z-index: 99999; left: 0; top: calc(100% + 2px);
  width: 300px; max-width: 80vw; max-height: 220px; overflow-y: auto;
  background: #fff; border: 1px solid var(--mw-border, #cbd5e0); border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15); font-size: .875rem;
  list-style: none; padding: 4px 0; margin: 0;
}
.iti__country-list.iti__hide { display: none; }   /* library toggle — must stay */
.iti__country { padding: 7px 10px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.iti__country.iti__highlight, .iti__country:hover { background: #ebf8ff; }
.iti__country-name { color: #2d3748; flex: 1; }
.iti__dial-code    { color: #718096; font-size: .82rem; }
.iti__divider      { border-top: 1px solid #e2e8f0; margin: 4px 0; padding: 0; }
.iti__flag-box     { width: 20px; flex-shrink: 0; }

@media (max-width: 480px) {
  .mw-form-wrap { padding: 20px 16px; margin: 16px auto; }
  .iti input[type="tel"] { padding-left: 74px !important; }
}
