/* Wave Purple — "Suggest a station" and "Feedback / Contact" popups (loaded with wp-forms.js) */
html.wpf-lock { overflow: hidden; }
dialog.wpf, dialog.wpf *, dialog.wpf *::before, dialog.wpf *::after { box-sizing: border-box; }

dialog.wpf {
  padding: 0; border: 1px solid rgba(139,92,246,.55); border-radius: 12px;
  background: #241740; color: #f4efe4;
  width: min(400px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif; font-size: 13px;
  box-shadow: 0 24px 70px rgba(0,0,0,.65);
}
dialog.wpf[open] { display: flex; flex-direction: column; }
dialog.wpf::backdrop { background: rgba(10,5,20,.78); }

.wpf-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: none;
  padding: 11px 12px 10px 16px; border-bottom: 1px solid rgba(139,92,246,.3);
}
.wpf-head h2 { margin: 0; font-family: 'Fraunces', serif; font-weight: 700; font-size: 17px; line-height: 1.2; color: #f4efe4; }
.wpf-x {
  flex: none; width: 30px; height: 30px; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: #f4efe4; background: #34215c; border: 1px solid rgba(139,92,246,.55); border-radius: 8px;
}
.wpf-x:hover { background: #6b3fa0; }

.wpf-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 2px 16px 16px; }
.wpf-intro { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: #c9bfe0; }

.wpf-form label { display: block; margin: 12px 0 5px; font-weight: 600; font-size: 12px; }
.wpf-req { color: #d9a441; font-weight: 700; }
.wpf-form input[type=text], .wpf-form input[type=url], .wpf-form input[type=email], .wpf-form input[type=tel],
.wpf-form select, .wpf-form textarea {
  width: 100%; padding: 9px 10px; font: inherit; font-size: 13px; color: #f4efe4;
  background: #34215c; border: 1px solid rgba(139,92,246,.5); border-radius: 8px;
}
.wpf-form textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
.wpf-form input:focus, .wpf-form select:focus, .wpf-form textarea:focus { outline: 2px solid #d9a441; outline-offset: 1px; }

.wpf-opts { border: 0; margin: 12px 0 0; padding: 0; display: flex; gap: 8px; }
.wpf-opts label {
  flex: 1; display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 10px; font-weight: 500; font-size: 13px;
  background: #1a0f2b; border: 1px solid rgba(139,92,246,.35); border-radius: 8px; cursor: pointer;
}
.wpf-opts label:has(input:checked) { border-color: #d9a441; }
.wpf-opts input { width: 16px; height: 16px; accent-color: #d9a441; flex: none; }

.wpf-count { text-align: right; font-size: 11px; opacity: .65; margin-top: 3px; }
.wpf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wpf-ts { margin: 10px 0 0; position: relative; width: 300px; max-width: 100%; min-height: 65px; }
.wpf-error {
  margin: 10px 0 0; padding: 9px 11px; border-radius: 8px; font-size: 12px;
  background: rgba(232,86,63,.15); border: 1px solid rgba(232,86,63,.55); color: #ffb4a6;
}
.wpf-send {
  display: block; width: 100%; margin-top: 10px; padding: 11px 18px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  color: #fff; background: #6b3fa0; border: 0; border-radius: 8px;
}
.wpf-send:hover { background: #8b5cf6; }
.wpf-send[disabled] { opacity: .6; cursor: wait; }
.wpf [hidden] { display: none !important; }

.wpf-done { text-align: center; padding: 22px 6px 6px; }
.wpf-done h3 { margin: 0 0 8px; font-family: 'Fraunces', serif; font-size: 18px; color: #f4efe4; }
.wpf-done p { margin: 0 0 18px; font-size: 13px; line-height: 1.5; color: #c9bfe0; }
.wpf-ok { padding: 10px 30px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; color: #fff; background: #6b3fa0; border: 0; border-radius: 8px; }
.wpf-ok:hover { background: #8b5cf6; }

/* Phones: popup about two-thirds of the screen height; inputs stay 16px so iPhones don't zoom in on focus */
@media (max-width: 520px) {
  dialog.wpf { width: 88vw; max-height: 67vh; max-height: 67dvh; font-size: 14px; }
  .wpf-head { padding: 9px 10px 9px 14px; }
  .wpf-head h2 { font-size: 16px; }
  .wpf-x { width: 28px; height: 28px; }
  .wpf-body { padding: 0 14px 14px; }
  .wpf-form label { font-size: 13px; margin-top: 10px; }
  .wpf-form input[type=text], .wpf-form input[type=url], .wpf-form input[type=email], .wpf-form input[type=tel],
  .wpf-form select, .wpf-form textarea { font-size: 16px; padding: 8px 10px; }
  .wpf-form textarea { min-height: 80px; }
  .wpf-opts label { font-size: 14px; padding: 8px 9px; }
  .wpf-send, .wpf-ok { font-size: 15px; }
  .wpf-done h3 { font-size: 17px; }
  .wpf-done p { font-size: 14px; }
}
