/* Sammelan pop-up (home page), guidelines page and the members' "I understand" pop-up.
   Content comes from the admin (Sammelan section); see api/inc/site.php and js/sammelan.js. */
.mm-pop { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 24, 45, .6); }
.mm-pop[hidden] { display: none; }
.mm-pop-box { position: relative; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow: auto; padding: 28px 28px 24px; border-radius: 14px; text-align: center; color: #333;
  background: #fff; border: 0; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.mm-pop-x { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 30px; line-height: 1; color: #8a5a00; cursor: pointer; }
.mm-pop-x:hover { color: #ed1c24; }
.mm-pop-god { width: 112px; height: 112px; object-fit: cover; border-radius: 50%; }
/* A drawn icon (SVG) sits whole inside the ring instead of being cropped like a photo */
.mm-pop-god[src$=".svg"] { object-fit: contain; border-radius: 0; }
.mm-pop-org { margin: 8px 0 12px; font-weight: 700; color: #2b419a; }
.mm-pop-success { margin: 14px 0; }
.mm-pop-success p { margin: 0; color: #2b419a; font-weight: 700; font-size: 1rem; line-height: 1.45; }
.mm-pop-kicker { margin: 0; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: #ed1c24; }
.mm-pop h2 { margin: 6px 0 12px; font-size: 1.15rem; line-height: 1.35; color: #333; }
.mm-facts { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; font-size: .95rem; }
.mm-pop .mm-facts a { color: #c00; font-weight: 700; }
.mm-closed { display: inline-block; padding: 1px 8px; border-radius: 99px; background: #ed1c24; color: #fff; font-size: .75rem; }
.mm-pop-dir { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin: 0 0 14px; padding: 10px; border-radius: 10px; background: #fff6dd; color: #c0151c; }
.mm-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 4px 0 0; }
.mm-pop-never { margin: 14px 0 0; }
.mm-pop-hide { border: 0; background: none; padding: 4px 6px; font-size: .85rem; color: #2b419a; text-decoration: underline; cursor: pointer; }
.mm-pop-hide:hover { color: #ed1c24; }
.mm-btn { display: inline-block; padding: 9px 20px; border-radius: 8px; background: #2b419a; color: #fff !important; font-weight: 500; text-decoration: none !important; border: 2px solid #2b419a; cursor: pointer; }
.mm-btn:hover { background: #1d2d6e; border-color: #1d2d6e; }
.mm-btn.light { background: #fff; color: #2b419a !important; }
.mm-btn.small { padding: 5px 14px; font-size: .9rem; }

/* Guidelines page */
.mm-guidelines { max-width: 900px; margin: 40px auto 60px; }
.mm-guidelines .mm-facts { padding: 16px 20px; border-radius: 10px; background: #fff6dd; border-left: 4px solid #f2b33d; text-align: left; }
.mm-guidelines .cms-text ol li { margin-bottom: .6em; }
.mm-guidelines .mm-actions { justify-content: flex-start; margin-top: 24px; }
.mm-note { color: #777; }

/* Members' guidelines pop-up after login */
.mm-ack .mm-pop-box { max-width: 760px; text-align: left; background: #fff; border-color: #2b419a; color: #333; }
.mm-ack h2 { text-align: center; color: #2b419a; }
.mm-ack .mm-ack-body { font-size: .95rem; }
.mm-ack .mm-ack-body .mm-actions { display: none; }
.mm-ack .mm-facts { padding: 12px 16px; border-radius: 8px; background: #fff6dd; }
.mm-ack-foot { position: sticky; bottom: -24px; margin: 16px -28px -24px; padding: 14px 28px; background: #fff; border-top: 1px solid #e5e5e5; text-align: center; }

/* Newsletter status under the box */
.mm-sub-status { min-height: 1.5em; margin: 8px 0 0; color: #fff; }
.mm-sub-status.bad { color: #ffd2d4; }

@media (max-width: 575px) {
  .mm-pop-box { padding: 24px 16px 18px; }
  .mm-pop h2 { font-size: 1.05rem; }
  .mm-ack-foot { margin: 16px -16px -18px; padding: 12px 16px; }
}

/* Member dashboard: registration status (js/member-status.js) */
.mm-status-pill { display: inline-block; align-self: center; margin: 0 12px; padding: 6px 14px; border-radius: 99px; font-size: .85rem; font-weight: 500; line-height: 1.3; text-decoration: none !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.mm-status-pill[hidden] { display: none; }
.mm-status-pill.todo { background: #fff1d6; color: #8a5300 !important; border: 1px solid #f2c06b; }
.mm-status-pill.wait { background: #e6eafa; color: #2b419a !important; border: 1px solid #b7c2ef; }
.mm-status-pill.ok { background: #e3f4ea; color: #1f7a45 !important; border: 1px solid #9fd6b5; }
/* The pill sits right of the home button, centred on it (the header itself is a 3-cell table) */
.mm-home-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mm-home-row > a:first-child { flex: none; display: flex; }
.mm-home-row .mm-status-pill { margin: 0; min-width: 0; }
.mm-status-wrap { margin-top: 24px; margin-bottom: 8px; }
.mm-status { padding: 22px 24px; border-radius: 14px; background: #fff; border: 1px solid #e3e6f0; border-left: 6px solid #f2b33d; box-shadow: 0 4px 16px rgba(28, 34, 56, .06); }
.mm-status.wait { border-left-color: #2b419a; }
.mm-status.ok { border-left-color: #1f8a4c; }
.mm-status h2 { margin: 14px 0 4px; font-size: 1.25rem; color: #1c2238; }
.mm-status p { margin: 0; color: #4a5068; }
.mm-status .mm-actions { justify-content: flex-start; margin-top: 14px; }
.mm-steps { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; counter-reset: none; }
.mm-steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 3px solid #e3e6f0; color: #8a90a6; font-size: .9rem; }
.mm-steps li.done { border-bottom-color: #1f8a4c; color: #1f7a45; }
.mm-steps li.now { border-bottom-color: #f2b33d; color: #1c2238; font-weight: 600; }
.mm-status.wait .mm-steps li.now { border-bottom-color: #2b419a; }
.mm-step-dot { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #e3e6f0; color: #646b85; font-size: .8rem; font-weight: 600; }
.mm-steps li.done .mm-step-dot { background: #1f8a4c; color: #fff; }
.mm-steps li.now .mm-step-dot { background: #f2b33d; color: #fff; }
.mm-status.wait .mm-steps li.now .mm-step-dot { background: #2b419a; }

/* Payment page: confirm the form is final */
/* (the payment page lays out every div in .row as label + field, so these override it) */
.payment .mm-pay-check { display: block !important; margin: 14px 0; padding: 12px 14px; border-radius: 8px; background: #fff6dd; border-left: 4px solid #f2b33d; font-size: .9rem; color: #5a4300; text-align: left; }
.payment .mm-pay-check a { display: inline-block; margin-top: 4px; color: #2b419a; font-weight: 600; text-decoration: underline; }
.payment .mm-pay-check label { display: flex !important; width: auto !important; gap: 10px; align-items: flex-start; margin: 10px 0 0 !important; padding: 0 !important; font-weight: 500; color: #3b2a00; cursor: pointer; }
.payment .mm-pay-check input[type=checkbox] { flex: none; width: 18px !important; height: 18px !important; margin: 2px 0 0 !important; padding: 0 !important; accent-color: #2b419a; }

@media (max-width: 575px) {
  .mm-status-pill { max-width: 40vw; font-size: .75rem; padding: 5px 10px; margin: 0 6px; }
  .mm-steps .mm-step-name { font-size: .78rem; }
  .mm-status { padding: 16px; }
}

/* Message box (js/mm-message.js), in place of the browser's alert() */
.mm-msg { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .5); animation: mm-msg-in .15s ease-out; }
.mm-msg-box { position: relative; width: 100%; max-width: 600px; padding: 44px 32px 40px; border-radius: 6px; background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); text-align: center; }
.mm-msg-box p { margin: 0; color: #222; font-size: 1.15rem; line-height: 1.6; }
.mm-msg-close { position: absolute; top: -22px; right: -18px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #2b419a; color: #fff;
  font-size: 30px; line-height: 44px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.mm-msg-close:hover { background: #22357f; }
.mm-msg-close:focus-visible { outline: 3px solid #f2b33d; outline-offset: 2px; }
@keyframes mm-msg-in { from { opacity: 0; } }
@media (max-width: 575px) {
  .mm-msg-box { padding: 36px 20px 30px; }
  .mm-msg-box p { font-size: 1rem; }
  .mm-msg-close { top: -18px; right: -6px; width: 40px; height: 40px; font-size: 26px; line-height: 38px; }
}
/* Payment page: the confirm box when it wasn't ticked */
.payment .mm-pay-check.is-missing { border-left-color: #d93025; background: #fdecea; }

/* Payment receipts (transactions page, payment page once paid) */
a.mm-receipt { margin-left: 12px; color: #1e7b3a !important; text-decoration: underline; }
.mm-receipt-btn { display: inline-block; margin: 12px 0 0; padding: 9px 18px; border-radius: 30px; background: #2b419a; color: #fff !important; font-weight: 600; text-decoration: none !important; }
.mm-receipt-btn:hover { background: #1f3180; }
.mm-paid-note { margin: 10px 0 0; padding: 18px; border-radius: 10px; background: #eaf6ee; border-left: 4px solid #1e7b3a; color: #1f3d27; text-align: left; }
.mm-paid-note p { margin: 0 0 6px; }
.mm-paid-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.mm-paid-actions a:not(.mm-receipt-btn) { margin-top: 12px; color: #2b419a; font-weight: 600; text-decoration: underline; }
.mm-paid-small { margin-top: 10px !important; font-size: .85rem; color: #4f6656; }
