/* Free-trial signup window (js/register.js). Uses the site's colours from site.css. */
.signup-modal {
  width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 20px; overflow: hidden;
  color: var(--ink, #13202E); background: #fff; box-shadow: 0 24px 80px rgb(19 32 46 / .28);
}
.signup-modal::backdrop { background: rgb(16 32 47 / .62); }
body.signup-open { overflow: hidden; }
.signup-modal [hidden] { display: none !important; }

/* header stays put; the form scrolls under it; the button stays at the bottom */
.signup-panel { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.signup-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 26px 28px 18px; border-bottom: 1px solid #EEF0F2; }
.signup-head h2 { margin: 0 0 4px; font-size: 26px; line-height: 1.15; font-weight: 850; letter-spacing: -.02em; }
.signup-head p { margin: 0; font-size: 14px; color: var(--muted, #66717F); }
.signup-close {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin: -2px -6px 0 0; padding: 0;
  border: 0; border-radius: 10px; background: transparent; color: var(--ink-2, #3B4756); cursor: pointer;
}
.signup-close:hover { background: #F1F3F5; color: var(--ink, #13202E); }
.signup-close:disabled { opacity: .4; cursor: default; }
.signup-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 28px 0; scrollbar-width: thin; scrollbar-color: #CBD3DB transparent; }
.signup-body::-webkit-scrollbar { width: 10px; }
.signup-body::-webkit-scrollbar-thumb { background: #CBD3DB; border: 3px solid #fff; border-radius: 999px; }

/* fields */
.signup-form, .signup-fields { display: grid; gap: 18px; }
.signup-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.signup-field { display: grid; gap: 7px; min-width: 0; font-size: 14px; font-weight: 650; color: var(--ink, #13202E); }
.signup-field input, .signup-field select, .signup-address {
  width: 100%; min-width: 0; height: 46px; box-sizing: border-box; margin: 0;
  border: 1px solid #CDD5DD; border-radius: 10px; background: #fff; color: var(--ink, #13202E);
  font: inherit; font-size: 16px; font-weight: 400; transition: border-color .12s, box-shadow .12s;
}
.signup-field input, .signup-field select { padding: 0 14px; }
.signup-field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5' stroke='%2366717F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.signup-field select:invalid { color: #8A94A0; }
.signup-field select option { color: var(--ink, #13202E); }
.signup-field input::placeholder { color: #9AA3AD; }
.signup-field input:hover, .signup-field select:hover, .signup-address:hover { border-color: #A9B4BF; }
.signup-field input:focus, .signup-field select:focus, .signup-address:focus-within {
  outline: none; border-color: var(--teal, #0F766E); box-shadow: 0 0 0 3px rgb(15 118 110 / .16);
}
.signup-hint { margin: 0; font-size: 13px; font-weight: 400; line-height: 1.45; color: var(--muted, #66717F); }

/* workspace address: the domain is part of the box */
.signup-address { display: flex; align-items: stretch; overflow: hidden; }
.signup-field .signup-address input { flex: 1; width: auto; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.signup-field .signup-address input:focus { box-shadow: none; }
.signup-address span[hidden] { display: none; }
.signup-address .signup-prefix { border-left: 0; border-right: 1px solid #E3E7EB; padding-right: 10px; }
.signup-address span { display: flex; align-items: center; padding: 0 14px; border-left: 1px solid #E3E7EB; background: #F6F7F8; color: var(--ink-2, #3B4756); font-size: 15px; font-weight: 400; white-space: nowrap; }

/* job numbers and time zone, folded by default with the values shown */
.signup-options { border: 1px solid #E3E7EB; border-radius: 12px; }
.signup-options summary {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none;
  font-size: 14px; font-weight: 650;
}
.signup-options summary::-webkit-details-marker { display: none; }
.signup-options summary::after {
  content: ''; flex: none; width: 7px; height: 7px; margin: -3px 2px 0 0; border: solid var(--muted, #66717F); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.signup-options[open] summary::after { margin-top: 3px; transform: rotate(225deg); }
.signup-options summary > span:first-child { flex: none; white-space: nowrap; }
.signup-options-now { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; color: var(--muted, #66717F); }
.signup-options[open] .signup-options-now { visibility: hidden; }
.signup-options > div, .signup-options > p { margin: 0 14px; }
.signup-options > p { margin-bottom: 14px; margin-top: 8px; }
.signup-pair { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; align-items: start; }

.signup-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.55; color: var(--ink-2, #3B4756); cursor: pointer; }
.signup-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--teal, #0F766E); cursor: pointer; }
.signup-consent a { color: var(--teal, #0F766E); text-decoration: underline; text-underline-offset: 2px; }

/* the button stays in view at the bottom of the window */
.signup-actions { position: sticky; bottom: 0; z-index: 1; margin: 4px -28px 0; padding: 14px 28px 22px; background: #fff; border-top: 1px solid #EEF0F2; display: grid; gap: 8px; }
.signup-actions .btn { width: 100%; min-height: 50px; border-radius: 12px; }
.signup-actions .btn:disabled { opacity: .7; cursor: progress; }
.signup-status { margin: 0; font-size: 13px; color: var(--muted, #66717F); text-align: center; }
.signup-status:empty { display: none; }

.signup-loading { margin: 0 0 24px; color: var(--muted, #66717F); font-size: 15px; }
.signup-error { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; background: #FEF3F2; border: 1px solid #FECDCA; color: #B42318; font-size: 14px; }
.signup-retry { margin-bottom: 24px; }
.signup-success { padding-bottom: 26px; }
.signup-success h3 { margin: 0 0 10px; font-size: 22px; font-weight: 850; letter-spacing: -.02em; }
.signup-success p { margin: 0 0 8px; }
.signup-success .btn { width: 100%; margin-top: 12px; }
.signup-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 480px) {
  .signup-modal { width: 100vw; max-width: 100vw; max-height: 100dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .signup-panel { max-height: 100dvh; }
  .signup-head { padding: 20px 20px 14px; }
  .signup-head h2 { font-size: 22px; }
  .signup-body { padding: 16px 20px 0; }
  .signup-actions { margin: 4px -20px 0; padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .signup-pair { grid-template-columns: 1fr; }
  .signup-options-now { display: none; }
  .signup-options summary::after { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .signup-field input, .signup-field select, .signup-address { transition: none; } }

.signup-invite{margin:0 0 14px;padding:10px 12px;border-radius:10px;background:#ecfdf5;color:#065f46;font-size:14px;line-height:1.4}
.signup-invite[hidden]{display:none}
