/* Member Popup — two-column split layout */
/* Primary: #67796e  |  Secondary: #C88732  */

/* ── Dialog shell ────────────────────────────────────────────────────────── */

.member-popup-dialog.ui-dialog {
  max-width: min(780px, calc(100vw - 2rem)) !important;
  width: min(780px, calc(100vw - 2rem)) !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.35) !important;
  box-sizing: border-box;
}

/* Remove default jQuery UI dialog content padding */
.member-popup-dialog .ui-dialog-content {
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

/* ── Title bar — collapse it to zero height, keep only the × button ─────── */

.member-popup-dialog .ui-dialog-titlebar {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 0 !important;
  overflow: visible !important;
  position: relative;
  z-index: 20;
}

.member-popup-dialog .ui-dialog-title {
  display: none !important;
}

/* × close button — floating top-right over the white panel */
.member-popup-dialog .ui-dialog-titlebar-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  background: #fff !important;
  border: 2px solid #ddd !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  z-index: 30;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.member-popup-dialog .ui-dialog-titlebar-close .ui-icon {
  display: none !important;
}

/* Dark × arms so they read on the white button */
.member-popup-dialog .ui-dialog-titlebar-close::before,
.member-popup-dialog .ui-dialog-titlebar-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: #333;
  border-radius: 1px;
}

.member-popup-dialog .ui-dialog-titlebar-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.member-popup-dialog .ui-dialog-titlebar-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.member-popup-dialog .ui-dialog-titlebar-close:hover,
.member-popup-dialog .ui-dialog-titlebar-close:focus {
  background: #f0f0f0 !important;
  border-color: #aaa !important;
  outline: none;
}

/* ── Two-column split ────────────────────────────────────────────────────── */

.mp-split {
  display: flex;
  min-height: 380px;
  border-radius: 12px;
  overflow: hidden;
}

/* Left — green panel */
.mp-split__left {
  flex: 0 0 48%;
  background: #67796e;
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.mp-split__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C88732;    /* secondary accent in the green panel */
}

.mp-split__heading {
  margin: 0 0 1rem;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.mp-split__body {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.mp-split__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mp-split__list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

/* Orange tick mark */
.mp-split__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #C88732;
  font-weight: 700;
}

/* Right — white panel */
.mp-split__right {
  flex: 1;
  background: #fff;
  padding: 3rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.mp-split__tagline {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.5;
}

.mp-split__tagline strong {
  color: #C88732;
}

/* Register button */
.mp-split__register-btn {
  display: block;
  width: 100%;
  max-width: 260px;
  padding: 0.85rem 1.5rem;
  background: #67796e;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(103, 121, 110, 0.35);
  margin-bottom: 1.25rem;
}

.mp-split__register-btn:hover,
.mp-split__register-btn:focus {
  background: #4f5e55;
  box-shadow: 0 6px 18px rgba(103, 121, 110, 0.45);
  outline: none;
  color: #fff !important;
}

/* "Maybe later" close link */
.mp-split__close-link {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9rem;
  color: #888;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s ease;
}

.mp-split__close-link:hover,
.mp-split__close-link:focus {
  color: #333;
  outline: none;
}

/* ── Mobile — stack vertically (max-width: 600px) ───────────────────────── */

@media (max-width: 600px) {

  .member-popup-dialog.ui-dialog {
    top: 0.5rem !important;
    left: 0.5rem !important;
    transform: none !important;
    width: calc(100vw - 1rem) !important;
    max-width: calc(100vw - 1rem) !important;
    border-radius: 10px !important;
  }

  .mp-split {
    flex-direction: column;
    min-height: unset;
  }

  .mp-split__left {
    flex: none;
    padding: 2rem 1.5rem 1.5rem;
  }

  .mp-split__heading {
    font-size: 1.25rem;
  }

  .mp-split__body {
    font-size: 0.88rem;
  }

  .mp-split__right {
    flex: none;
    padding: 1.75rem 1.5rem 2rem;
  }

  .mp-split__register-btn {
    max-width: 100%;
  }

  .member-popup-dialog .ui-dialog-titlebar-close {
    top: 10px !important;
    right: 10px !important;
  }
}
