/* ===== WPEQM Button Colors (PLUGIN ONLY) ===== */
.wpeqm-register-page .wpeqm-btn,
.wpeqm-modal .wpeqm-btn,
.wpeqm-event-details .wpeqm-btn{
  border-radius:14px;
  padding:14px 16px;
  font-weight:800;
  text-decoration:none !important;
  border:1px solid transparent;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Primary buttons (Reserve/Register/Download) */
.wpeqm-register-page .wpeqm-btn-primary,
.wpeqm-modal .wpeqm-btn-primary,
.wpeqm-register-page .wpeqm-btn-download,
.wpeqm-modal .wpeqm-btn-download{
  background: linear-gradient(180deg,#2f57ff,#1f3fe6) !important;
  border-color: transparent !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}

/* Secondary button (Back to Event) */
.wpeqm-register-page .wpeqm-btn-secondary,
.wpeqm-modal .wpeqm-btn-secondary{
  background:#ffffff !important;
  border:1px solid #e5e7eb !important;
  color:#1f3fe6 !important;
  -webkit-text-fill-color:#1f3fe6 !important;
}

/* WhatsApp outline button */
.wpeqm-modal .wpeqm-btn-wa,
.wpeqm-register-page .wpeqm-btn-wa{
  background:#ffffff !important;
  border:2px solid #ff6a00 !important;
  color:#ff6a00 !important;
  -webkit-text-fill-color:#ff6a00 !important;
}

/* Remove underline from links inside modal/buttons */
.wpeqm-modal a,
.wpeqm-register-page a{
  text-decoration:none !important;
}

/* =========================
   WPEQM Frontend – FULL CSS (SCOPED FIX)
   Only affects plugin sections:
   - .wpeqm-register-page
   - .wpeqm-modal
   - .wpeqm-event-details
   ========================= */

/* Notices (scoped) */
.wpeqm-register-page .wpeqm-notice,
.wpeqm-modal .wpeqm-notice{
  padding: 10px 12px; border-radius: 10px; margin-bottom: 12px;
}
.wpeqm-register-page .wpeqm-success,
.wpeqm-modal .wpeqm-success{ background: #eaffea; border: 1px solid #b7efb7; }
.wpeqm-register-page .wpeqm-error,
.wpeqm-modal .wpeqm-error{ background: #ffecec; border: 1px solid #f2b2b2; }

/* ================= Buttons (SCOPED) ================= */
.wpeqm-register-page .wpeqm-btn,
.wpeqm-modal .wpeqm-btn,
.wpeqm-event-details .wpeqm-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px 16px;
  border-radius:14px;
  font-weight:800;
  text-decoration:none !important;   /* no underline */
  border:1px solid transparent;
  cursor:pointer;
  box-shadow:none;
  line-height:1.2;
}

.wpeqm-register-page .wpeqm-btn:hover,
.wpeqm-modal .wpeqm-btn:hover,
.wpeqm-event-details .wpeqm-btn:hover{
  text-decoration:none !important;
}

/* Primary + Download */
.wpeqm-register-page .wpeqm-btn-primary,
.wpeqm-modal .wpeqm-btn-primary,
.wpeqm-register-page .wpeqm-btn-download,
.wpeqm-modal .wpeqm-btn-download{
  background: linear-gradient(180deg,#2f57ff,#1f3fe6);
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}

.wpeqm-register-page .wpeqm-btn-primary *,
.wpeqm-modal .wpeqm-btn-primary *,
.wpeqm-register-page .wpeqm-btn-download *,
.wpeqm-modal .wpeqm-btn-download *{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}

/* Secondary */
.wpeqm-register-page .wpeqm-btn-secondary,
.wpeqm-modal .wpeqm-btn-secondary,
.wpeqm-event-details .wpeqm-btn-secondary{
  background:#fff;
  border:1px solid #e5e7eb;
  color:#1f3fe6 !important;
}

/* WhatsApp outline */
.wpeqm-register-page .wpeqm-btn-wa,
.wpeqm-modal .wpeqm-btn-wa{
  background:#fff;
  border:2px solid #ff6a00;
  color:#ff6a00 !important;
  text-decoration:none !important;
}
.wpeqm-register-page .wpeqm-btn-wa *,
.wpeqm-modal .wpeqm-btn-wa *{
  color:#ff6a00 !important;
  -webkit-text-fill-color:#ff6a00 !important;
}

/* ================= FORM ================= */
.wpeqm-register-page{
  max-width: 980px;
  margin: 40px auto;
  background:#fff;
  border: 1px solid #eef0f3;
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(15,23,42,.10);
  padding: 28px;
}

.wpeqm-register-page .wpeqm-reg-head{ display:flex; gap:12px; align-items:flex-start; margin-bottom:18px; }
.wpeqm-register-page .wpeqm-reg-icon{
  width:34px;height:34px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  background:#f1f5f9;
}
.wpeqm-register-page h2{ margin:0; font-size:28px; font-weight:800; color:#0f172a; }
.wpeqm-register-page .wpeqm-reg-sub{ margin-top:6px; color:#64748b; font-size:15px; }

/* form grid */
.wpeqm-register-page .wpeqm-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.wpeqm-register-page .wpeqm-field{ margin:0; }
.wpeqm-register-page .wpeqm-field label{ display:none; }

.wpeqm-register-page .wpeqm-field input,
.wpeqm-register-page .wpeqm-field select{
  width:100%;
  padding:14px 16px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  background:#eef5ff;
  font-size:15px;
  color:#0f172a;
  outline:none;
}
.wpeqm-register-page .wpeqm-field input:focus,
.wpeqm-register-page .wpeqm-field select:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 4px rgba(59,130,246,.18);
}

.wpeqm-register-page .wpeqm-field-select,
.wpeqm-register-page .wpeqm-field-checkboxes{ grid-column:span 2; }

.wpeqm-register-page .wpeqm-group-label{
  font-weight:700;
  color:#0f172a;
  margin:4px 0 10px;
  font-size:14px;
}

/* checkboxes */
.wpeqm-register-page .wpeqm-checkbox-group{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:14px;
  background:#fff;
}
.wpeqm-register-page .wpeqm-cbox{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  text-decoration:none !important;
}
.wpeqm-register-page input[type="checkbox"]{
  width:16px; height:16px;
  appearance:auto !important;
  -webkit-appearance: checkbox !important;
  opacity:1 !important;
  position: static !important;
  visibility: visible !important;
}

.wpeqm-register-page .wpeqm-actions-row{
  grid-column:span 2;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:8px;
}
.wpeqm-register-page .wpeqm-reg-note{
  margin-top:16px;
  text-align:center;
  color:#64748b;
  font-size:14px;
}

/* ================= EVENT DETAILS ================= */
.wpeqm-event-details{
  margin:12px 0;
  padding:14px;
  border:1px solid #eef0f3;
  border-radius:14px;
  background:#fafafa;
}
.wpeqm-event-details .wpeqm-map{ width:100%; height:340px; border:0; border-radius:12px; }
.wpeqm-event-details .wpeqm-map-wrap{ margin:14px 0 0; }

/* ================= THANK YOU MODAL ================= */
.wpeqm-modal-overlay{
  position:fixed; inset:0;
  background: rgba(0,0,0,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:999999;
}
.wpeqm-modal{
  width:min(520px, 100%);
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 25px 70px rgba(0,0,0,.30);
  position:relative;
}

/* Close button (anchor or button) */
.wpeqm-modal-close{
  position:absolute;
  right:14px; top:14px;
  width:36px; height:36px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.22);
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-size:18px;
  text-decoration:none !important;
  line-height:1;
  z-index:2;
}
.wpeqm-modal-close:hover{
  background: rgba(255,255,255,.32);
  text-decoration:none !important;
}

.wpeqm-modal-header{
  background: linear-gradient(180deg,#2f57ff,#1f3fe6);
  padding:16px 18px 14px;
  color:#fff;
  text-align:center;
}
.wpeqm-modal-logo{ display:flex; justify-content:center; margin-bottom:10px; }
.wpeqm-modal-logo img{ height:40px; width:auto; }

.wpeqm-modal-header h3{
  margin:0;
  font-size:22px;
  font-weight:900;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
.wpeqm-modal-header .wpeqm-subline{
  margin-top:6px;
  font-size:14px;
  opacity:.95;
  color:#fff !important;
}
.wpeqm-modal-header .wpeqm-hint{
  margin-top:10px;
  font-size:13px;
  opacity:.95;
  color:#fff !important;
}

.wpeqm-modal-body{ padding:16px 18px 18px; }

.wpeqm-eventbox{
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:14px;
}
.wpeqm-eventbox-title{
  font-weight:900;
  font-size:16px;
  margin-bottom:10px;
}
.wpeqm-eventgrid{
  display:grid;
  grid-template-columns: 1fr 160px;
  gap:14px;
  align-items:center;
}
.wpeqm-eventmeta{ display:grid; gap:10px; }
.wpeqm-meta-row{ display:flex; gap:10px; align-items:flex-start; }
.wpeqm-meta-row b{ display:block; color:#0f172a; }
.wpeqm-meta-row span{ display:block; color:#64748b; margin-top:2px; }

.wpeqm-qrbox{
  border:3px solid #1f3fe6;
  border-radius:14px;
  padding:10px;
  text-align:center;
  background:#fff;
}
.wpeqm-qrbox img{ width:130px; height:130px; }
.wpeqm-qrlabel{
  margin-top:8px;
  font-weight:900;
  color:#1f3fe6;
  font-size:13px;
}

.wpeqm-modal-actions{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin-top:14px;
}
.wpeqm-modal-actions a{ text-decoration:none !important; }
.wpeqm-modal-actions a:hover{ text-decoration:none !important; }

/* Mobile */
@media (max-width:520px){
  .wpeqm-register-page{ margin:18px auto; padding:18px; }
  .wpeqm-register-page .wpeqm-form{ grid-template-columns:1fr; }
  .wpeqm-register-page .wpeqm-field-select,
  .wpeqm-register-page .wpeqm-field-checkboxes,
  .wpeqm-register-page .wpeqm-actions-row{ grid-column:span 1; }
  .wpeqm-register-page .wpeqm-actions-row{ grid-template-columns:1fr; }
  .wpeqm-checkbox-group{ grid-template-columns:1fr 1fr; }
  .wpeqm-eventgrid{ grid-template-columns:1fr; }
  .wpeqm-qrbox img{ width:160px;height:160px; }
  .wpeqm-modal-actions{ grid-template-columns:1fr; }
}