/* Signature Cloud self-serve demo page (try.signatureegy.com): the panel style sheet, trimmed.
   RTL, mobile first, self-hosted font, no external resources, no inline styles (CSP). */
/* IBM Plex Sans Arabic, SIL Open Font License 1.1 (fonts/OFL.txt). */
@font-face {
  font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-sans-arabic-arabic-400.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-sans-arabic-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-sans-arabic-arabic-600.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-sans-arabic-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/ibm-plex-sans-arabic-arabic-700.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/ibm-plex-sans-arabic-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #1A335C; --navy-dark: #122744; --slate: #5A6A7A;
  --teal: #6A9593; --teal-text: #3E6F6C;
  --bg: #f4f6f8; --card: #fff; --text: #1d2733; --muted: var(--slate); --line: #dde3ea;
  --primary: var(--navy); --primary-dark: var(--navy-dark);
  --green: #1d7a46; --green-bg: #e3f4ea; --red: #b3261e; --red-bg: #fbe6e4;
  --blue: #1f5fae; --blue-bg: #e4eefb; --grey: #556270; --grey-bg: #eceff2;
  --orange: #9a4a00; --orange-bg: #fdeedd; --orange-line: #f0c79c;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  font-size: 16px; line-height: 1.6;
}
a { color: var(--primary); }
h1 { font-size: 1.35rem; margin: 0 0 .5rem; }
.wrap { max-width: 640px; margin: 0 auto; padding: 16px 16px 32px; }
.muted { color: var(--muted); }
.bad { color: var(--red); font-weight: 600; }
.ok { color: var(--green); font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.offscreen { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.js-only { display: none !important; }
html.js .js-only { display: inline-flex !important; }

/* header: white bar with the logo, no navigation */
.site-head { background: #fff; }
.brandbar { display: flex; align-items: center; padding: 10px 16px; border-bottom: 3px solid var(--teal); }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.brand img { display: block; height: 32px; width: auto; }
.wordmark { color: var(--teal-text); font-weight: 600; font-size: 1.3rem; line-height: 1; }

.site-footer { border-top: 1px solid var(--line); color: var(--slate); font-size: .82rem; text-align: center; padding: 14px 16px 20px; }
.site-footer p { margin: 0 0 4px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* card and form */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.lead { margin: 0 0 10px; }
.note { background: var(--grey-bg); border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; font-size: .95rem; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; font: inherit; color: inherit; background: #fff;
  border: 1px solid #b9c4d0; border-radius: 8px; padding: 10px 12px; min-height: 44px;
}
input:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; }
input[dir=ltr] { text-align: left; }
input.phone { text-align: right; }
input[aria-invalid="true"] { border-color: var(--red); }
.field-msg { color: var(--red); font-size: .9rem; margin: 4px 0 0; }
.field-msg:empty { display: none; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 0; }
fieldset[aria-invalid="true"] { border-color: var(--red); }
legend { font-weight: 700; padding: 0 6px; }
.sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.sector-card { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 12px; min-height: 64px; cursor: pointer; font-weight: 600; background: #fff; margin: 0; }
.sector-card input { width: auto; min-height: 0; margin: 0; }
.sector-card:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 2px var(--blue-bg); }
.sector-card.disabled { cursor: not-allowed; color: var(--muted); background: var(--grey-bg); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 18px 0 0; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; flex: none; margin: 2px 0 0; }
.cf-turnstile { margin: 16px 0 0; min-height: 65px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 8px 18px; border-radius: 8px; border: 1px solid #b9c4d0;
  background: #fff; color: var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; margin: 4px 0;
}
.btn:hover { background: #f0f3f6; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-block { width: 100%; margin-top: 20px; }
.btn-big { font-size: 1.1rem; padding: 14px 22px; width: 100%; }
.btn-small { min-height: 44px; padding: 4px 12px; font-size: .9rem; }
.btn.busy { opacity: .7; pointer-events: none; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.btn-row .btn { flex: 1 1 100%; }

/* alerts */
.alert { border-radius: 8px; padding: 12px 14px; margin: 0 0 14px; }
.alert-error { background: var(--red-bg); color: #7d1a14; border: 1px solid #f0c2bd; }
.alert-info { background: var(--green-bg); color: #145232; border: 1px solid #bfe3cd; }
.alert-warn { background: var(--orange-bg); color: var(--orange); border: 1px solid var(--orange-line); font-weight: 600; }
.alert a { color: inherit; font-weight: 700; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.chip-grey { background: var(--grey-bg); color: var(--grey); }

/* waiting */
.waiting { font-weight: 700; color: var(--blue); margin: 0 0 12px; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--blue-bg); border-top-color: var(--blue); border-radius: 50%; animation: spin 1s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* ready: link, user and password */
.creds { display: grid; grid-template-columns: max-content 1fr; gap: 8px 12px; align-items: center; margin: 14px 0; }
.creds dt { color: var(--muted); font-weight: 600; }
.creds dd { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--grey-bg); border-radius: 6px; padding: 4px 8px; word-break: break-all; }
.mono.pw { font-size: 1.2rem; letter-spacing: .06em; }

@media (max-width: 480px) {
  .creds { grid-template-columns: 1fr; gap: 4px; }
  .creds dd { margin-bottom: 8px; }
}
