/* signup-modal.css – the landing page's sign-up pop-up (config/signup-modal.php, assets/js/signup-steps.js).
   Three short steps, sized to the screen: never a scrollbar or a swipe, from a small phone to a desktop.
   Uses the landing page's colour tokens (--card, --ink, --or …) so it follows Dark / Medium / Light. */
.su-modal { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 12px;
  background: rgba(6, 7, 9, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); overscroll-behavior: contain; }
.su-modal[hidden] { display: none; }
html.su-open, html.su-open body { overflow: hidden; }   /* the page behind stays put */
.su-box { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 24px); overflow-y: auto; overflow-x: hidden;
  background: var(--card, #15171C); color: var(--ink, #F5F2EC); border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 22px;
  box-shadow: 0 30px 80px -24px rgba(0,0,0,.7); animation: suIn .22s ease-out; }
@keyframes suIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.su-x { position: sticky; top: 14px; float: right; margin: 14px 16px -48px 0; z-index: 20; width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: var(--raise, rgba(255,255,255,.06)); color: var(--mut, #C9C3B8); font-size: 20px; line-height: 1; cursor: pointer;
  transition: background .15s, color .15s; }
.su-x:hover { background: var(--line, rgba(255,255,255,.12)); color: var(--ink, #F5F2EC); }
.su-x:focus-visible { outline: 2px solid var(--or, #FF8E1C); outline-offset: 2px; }
.su-form { display: grid; gap: 14px; padding: 0 22px 18px; margin: 0; }
.su-head { position: sticky; top: 0; z-index: 15; background: var(--card, #15171C); display: flex; gap: 12px; align-items: center; margin: 0 -22px; padding: 18px 66px 12px 22px; min-height: 34px; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
.su-head img { width: 30px; height: auto; flex: none; }
.su-head h2 { margin: 0; font-size: 1.22rem; line-height: 1.2; font-family: 'Playfair Display', serif; font-weight: 600; }
.su-head p { margin: 3px 0 0; font-size: .78rem; color: var(--mut, #C9C3B8); }
.su-dots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; list-style: none; margin: 0; padding: 0; }
.su-dots li { display: flex; align-items: center; gap: 7px; padding: 0 0 8px; font-size: .74rem; font-weight: 700; color: var(--mut, #C9C3B8);
  border-bottom: 2px solid var(--line, rgba(255,255,255,.12)); cursor: default; transition: color .15s, border-color .15s; }
.su-dots li span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .68rem; font-weight: 800;
  background: var(--raise, rgba(255,255,255,.08)); flex: none; }
.su-dots li.on, .su-dots li.done { border-color: var(--or, #FF8E1C); color: var(--ink, #F5F2EC); }
.su-dots li.on span, .su-dots li.done span { background: var(--or, #FF8E1C); color: var(--on-or, #242424); }
.su-dots li.done { cursor: pointer; }
.su-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.su-form fieldset[hidden] { display: none; }
.su-f { display: grid; gap: 4px; }
.su-f { gap: 6px; }
.su-f > span { font-size: .78rem; font-weight: 700; color: var(--ink2, #E8E3DA); }
.su-f em { font-style: normal; font-weight: 600; color: var(--mut, #C9C3B8); }
.su-f input { height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line, rgba(255,255,255,.14)); background: var(--bg2, #0E1014);
  color: var(--ink, #F5F2EC); font: inherit; font-size: 16px; /* 16px: phones don't zoom in */ }
.su-f input { box-sizing: border-box; width: 100%; transition: border-color .15s, box-shadow .15s; }
.su-f input::placeholder { color: var(--mut, #C9C3B8); opacity: .55; }
.su-f input:focus, .su-f input:focus-visible { outline: none; border-color: var(--or, #FF8E1C); box-shadow: 0 0 0 3px rgba(255, 142, 28, .18); }
.su-hint { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--mut, #C9C3B8); }
.su-agree { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; line-height: 1.5; }
.su-agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--or, #FF8E1C); flex: none; }
.su-agree a, .su-alt a { color: var(--link, #FFAB45); }
/* the step's buttons: one full-width primary; with "Back" it sits beside it at its own width */
.su-acts { position: sticky; bottom: 0; z-index: 15; background: var(--card, #15171C); padding-top: 8px; display: flex; gap: 8px; margin-top: 4px; }
.su-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--or, #FF8E1C); color: var(--on-or, #242424); font: inherit; font-size: .95rem; font-weight: 800; cursor: pointer;
  transition: filter .15s, transform .1s, border-color .15s; }
.su-btn:hover { filter: brightness(1.06); }
.su-btn:active { transform: scale(.98); }
.su-btn:focus-visible { outline: 2px solid var(--or, #FF8E1C); outline-offset: 2px; }
.su-btn.ghost { background: transparent; color: var(--ink, #F5F2EC); border: 1px solid var(--line, rgba(255,255,255,.18)); }
.su-btn.ghost:hover { filter: none; border-color: var(--mut, #C9C3B8); }
.su-btn:disabled { opacity: .6; cursor: progress; }
.su-acts .su-btn { flex: 1 1 auto; }
.su-acts .su-btn.ghost { flex: 0 0 auto; }
/* "or" between the steps and the guest button */
.su-or { display: flex; align-items: center; gap: 12px; margin: 2px 0 -2px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mut, #C9C3B8); }
.su-or::before, .su-or::after { content: ''; flex: 1; height: 1px; background: var(--line, rgba(255,255,255,.12)); }
.su-alt { margin: 0; font-size: .78rem; line-height: 1.6; text-align: center; color: var(--mut, #C9C3B8); }
.su-alt a { text-underline-offset: 2px; white-space: nowrap; }
/* "Continue as guest": a quiet full-width button under the steps – look around before making an account */
.su-guest { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 42px; box-sizing: border-box; text-decoration: none;
  font-size: .88rem; font-weight: 700; }
.su-guest:hover { border-color: var(--or, #FF8E1C); }
.su-guest:focus-visible { outline: 2px solid var(--or, #FF8E1C); outline-offset: 2px; }
.su-guest-sub { font-weight: 500; color: var(--mut, #C9C3B8); }
@media (max-width: 380px) { .su-guest-sub, .su-guest > span[aria-hidden] { display: none; } }
.su-form .cf-turnstile { margin: 0 !important; }
/* short screens (landscape phones): tighter, still no scrolling */
@media (max-height: 560px) {
  .su-form { gap: 8px; padding: 14px 16px 12px; }
  .su-head img, .su-head p { display: none; }
  .su-f input, .su-btn { height: 40px; }
  .su-dots li { padding-bottom: 5px; }
  .su-or { display: none; }
}
@media (max-width: 380px) { .su-dots li { font-size: 0; gap: 0; justify-content: center; } .su-dots li span { font-size: .7rem; } }
@media (prefers-reduced-motion: reduce) { .su-box { animation: none; } }
/* very short screens (a phone turned sideways): the fields side by side, the step markers and the sign-in line hidden */
@media (max-height: 440px) {
  .su-box { width: min(640px, 100%); }
  .su-form { gap: 6px; padding: 10px 14px; }
  .su-head h2 { font-size: 1.05rem; }
  .su-dots, .su-alt, .su-or { display: none; }
  .su-form fieldset { grid-template-columns: 1fr 1fr; gap: 6px 10px; }
  .su-form fieldset > .su-acts, .su-form fieldset > .su-hint, .su-form fieldset > .su-agree, .su-form fieldset > .cf-turnstile { grid-column: 1 / -1; }
  .su-f span { font-size: .72rem; }
  .su-f input, .su-btn { height: 38px; }
}

/* the terms pop-up over the sign-up pop-up (config/terms.php hive_terms_modal): read to the end before "I agree" unlocks */
.terms-overlay { position: fixed; inset: 0; z-index: 1400; display: grid; place-items: center; padding: 12px;
  background: rgba(6, 7, 9, .7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); overscroll-behavior: contain; }
.terms-overlay[hidden] { display: none; }
html.terms-open, html.terms-open body { overflow: hidden; }
.terms-box { display: flex; flex-direction: column; width: min(640px, 100%); max-height: calc(100dvh - 24px);
  background: var(--card, #15171C); color: var(--ink, #F5F2EC); border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 22px;
  box-shadow: 0 30px 80px -24px rgba(0,0,0,.7); animation: suIn .22s ease-out; }
.terms-head { position: sticky; top: 0; z-index: 15; background: var(--card, #15171C); border-radius: 22px 22px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line, rgba(255,255,255,.1)); }
.terms-head h2 { margin: 0; font-size: 1.15rem; font-family: 'Playfair Display', serif; font-weight: 600; }
.terms-x { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--line, rgba(255,255,255,.1)); background: transparent; color: inherit; cursor: pointer; }
.terms-body { overflow-y: auto; padding: 4px 20px 16px; outline: none; font-size: .88rem; line-height: 1.6; color: var(--ink2, #E8E3DA); }
.terms-body h3 { margin: 18px 0 6px; font-size: .95rem; font-weight: 800; color: var(--ink, #F5F2EC); }
.terms-body p { margin: 0 0 8px; }
.terms-body ul { margin: 0 0 8px; padding-left: 20px; }
.terms-body li { margin-bottom: 4px; }
.terms-body a { color: var(--link, #FFAB45); }
.terms-meta { font-size: .75rem; color: var(--mut, #C9C3B8); margin-top: 12px !important; }
.terms-foot { position: sticky; bottom: 0; z-index: 15; background: var(--card, #15171C); border-radius: 0 0 22px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line, rgba(255,255,255,.1)); }
.terms-scroll-hint { margin-right: auto; font-size: .78rem; color: var(--mut, #C9C3B8); }
.terms-foot .su-btn:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 480px) { .terms-foot .su-btn { flex: 1; } .terms-scroll-hint { flex-basis: 100%; } }
