/* ═══════════════════════════════════════════════════════════════
   Burgan Bank — Speak Up (Whistleblowing) shared styles
   Tokens extracted from Figma file gnMBVoFSz8OdyGmvj79ndb
   ═══════════════════════════════════════════════════════════════ */
:root {
  --navy: #003274;
  --brand: #0069AA;
  --section-title: #006BAF;
  --blue-bright: #0F75CE;
  --orange: #F18E00;
  --ink: #181B20;
  --gray-text: #676665;
  --gray-border: #858584;
  --field-label: #6D8195;
  --field-border: #CCD4DF;
  --tile-border: #D8DCE6;
  --radio-border: #A7B4C7;
  --bg-page: #F8F8F8;
  --alert-bg: #CCE6FA;
  --tick-bg: #DBEAF3;
  --faq-head: #D7ECF4;
  --faq-border: #D0DFEB;
  --faq-wrap-bg: #F5F8FC;
  --faq-wrap-border: #EBF2F7;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans', 'Noto Sans Arabic', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }

/* ── Chrome / Header ─────────────────────────────────────────── */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 100px; padding: 0 60px; background: #FFFFFF;
  border-bottom: 2px solid var(--orange);
  gap: 24px;
}
.site-header__logo img { width: 138px; height: 46px; display: block; }
.site-header__nav { display: flex; gap: 26px; flex-wrap: wrap; }
.site-header__nav a { font-size: 16px; font-weight: 600; color: #000; line-height: 1.2; }
.site-header__nav a:hover { color: var(--brand); }
.site-header__utils { display: flex; align-items: center; gap: 18px; }
.site-header__ar { font-family: 'Noto Sans Arabic', sans-serif; font-size: 16px; color: var(--brand); }
.site-header__search {
  width: 38px; height: 38px; border-radius: 19px; background: var(--bg-page);
  border: 0; display: flex; align-items: center; justify-content: center;
}
.site-header__login {
  height: 40px; padding: 0 22px; border-radius: 20px; background: var(--brand);
  color: #fff; font-size: 16px; font-weight: 600; border: 0; display: inline-flex; align-items: center;
}

/* ── Chrome / Footer ─────────────────────────────────────────── */
.site-footer {
  /* Figma: radial #66B0E9→#0166B3 layered over linear #002054→#1359D0 */
  background:
    radial-gradient(140% 120% at 50% -10%, #66B0E9 0%, rgba(1, 102, 179, 0) 100%),
    linear-gradient(180deg, #002054 0%, #1359D0 100%);
  background-color: #0166B3;
  color: #fff; padding: 60px 60px 0;
}
.site-footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer__top img { width: 155px; height: 52px; display: block; }
.site-footer__socials { display: flex; gap: 10px; }
.site-footer__socials span { width: 28px; height: 28px; border-radius: 4px; background: #fff; display: block; }
.site-footer__rule { border: 0; border-top: 1px solid rgba(0,0,0,.18); margin: 24px 0 0; }
.site-footer__cols {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; padding: 44px 0;
}
.site-footer__cols h4 { margin: 0 0 9px; font-size: 20px; font-weight: 600; line-height: 1.3; color: #fff; }
.site-footer__cols a { display: block; font-size: 16px; font-weight: 400; line-height: 1.9; color: #F8F8F8; margin-top: 9px; }
.site-footer__cols a:hover { text-decoration: underline; }
.site-footer__legal { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 16px; flex-wrap: wrap; }
.site-footer__legal-links { display: flex; gap: 26px; flex-wrap: wrap; }
.site-footer__legal a, .site-footer__legal span { font-size: 15px; line-height: 1.5; color: #fff; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 35px; border-radius: 50px; border: 0;
  /* Figma: radial #FFA24D → #F47C0D with end stop at 57% */
  background: radial-gradient(circle at 50% 40%, #FFA24D 0%, #F47C0D 57%);
  color: #fff; font-size: 20px; font-weight: 400; line-height: 1;
}
.btn-cta:hover { filter: brightness(1.05); }
.btn-lg {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 12px 24px; border-radius: 100px;
  font-size: 16px; font-weight: 500; line-height: 18px; border: 0;
}
.btn-lg--outline { background: #fff; border: 1px solid var(--field-border); color: var(--ink); }
.btn-lg--outline:hover { border-color: var(--brand); }
.btn-lg--orange { background: radial-gradient(circle at 50% 40%, #FFA24D 0%, #F47C0D 57%); color: #fff; }
.btn-lg--orange:hover { filter: brightness(1.05); }
.btn-lg:disabled { opacity: .5; cursor: not-allowed; filter: none; }

/* ── Form fields ─────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.field label { font-size: 16px; font-weight: 400; line-height: 24px; color: var(--field-label); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 16px; line-height: 24px; color: var(--ink);
  background: #fff; border: 1px solid var(--field-border); border-radius: 6px; padding: 12px;
}
.field input { height: 48px; }
.field select { height: 48px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none'%3E%3Cpath d='M3 7.5l7 6 7-6' stroke='%23A7B4C7' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px;
}
.field textarea { min-height: 124px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--field-label); }
.field select.is-placeholder { color: var(--field-label); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue-bright); outline-offset: -1px; }
.field .field-error { display: none; font-size: 12px; font-weight: 500; color: #C6262E; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #C6262E; }
.field.has-error .field-error { display: block; }
.form-row { display: flex; gap: 24px; }
.form-row > .field { flex: 1; }

/* ── Radio / checkbox ────────────────────────────────────────── */
.choice { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .radio-dot {
  flex: none; width: 24px; height: 24px; border-radius: 16px; background: #fff;
  border: 1px solid var(--radio-border); margin-top: 1px; transition: border 120ms;
}
.choice input:checked + .radio-dot { border: 6px solid var(--blue-bright); }
.choice input:focus-visible + .radio-dot { outline: 2px solid var(--blue-bright); outline-offset: 2px; }
.choice .choice-label { font-size: 17px; font-weight: 400; line-height: 27px; color: var(--navy); }
.choice .check-box {
  flex: none; width: 22px; height: 22px; border-radius: 4px; background: #fff;
  border: 1px solid var(--field-border); margin-top: 3px; display: flex; align-items: center; justify-content: center;
  transition: background 120ms, border 120ms;
}
.choice .check-box svg { opacity: 0; }
.choice input:checked + .check-box { background: var(--brand); border-color: var(--brand); }
.choice input:checked + .check-box svg { opacity: 1; }
.choice input:focus-visible + .check-box { outline: 2px solid var(--blue-bright); outline-offset: 2px; }

/* ── Info alert ──────────────────────────────────────────────── */
.info-alert {
  display: flex; align-items: center; gap: 16px; padding: 16px;
  border-radius: 16px; background: var(--alert-bg);
}
.info-alert svg { flex: none; }
.info-alert p { margin: 0; font-size: 14px; line-height: 22px; color: var(--ink); }

/* ── Section number badge ────────────────────────────────────── */
.step-head { display: flex; align-items: center; gap: 14px; }
.step-head .n {
  flex: none; width: 34px; height: 34px; border-radius: 17px; background: var(--brand);
  color: #fff; font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.step-head h2 { margin: 0; font-size: 25px; font-weight: 700; line-height: 31px; color: var(--navy); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .site-header { padding: 12px 24px; height: auto; min-height: 72px; flex-wrap: wrap; }
  .site-header__nav { display: none; }
  .site-footer { padding: 40px 24px 0; }
  .site-footer__cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .form-row { flex-direction: column; gap: 20px; }
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { flex-wrap: wrap; }
}
body.no-chrome .site-header, body.no-chrome .site-footer { display: none; }
body.no-lang-toggle .lang-toggle { display: none; }

/* ── RTL (Arabic) ─────────────────────────────────────────────── */
html[dir="rtl"] body { font-family: 'Noto Sans Arabic', 'Noto Sans', sans-serif; }
html[dir="rtl"] .field select {
  background-position: left 12px center;
  padding-right: 12px; padding-left: 40px;
}
/* tel inputs default to LTR in browsers — align them with the other RTL fields.
   direction stays ltr so a typed number like +965 1234 keeps its digit order. */
html[dir="rtl"] input[type="tel"] { direction: ltr; text-align: right; }
.lang-toggle-btn { background: none; border: 0; padding: 0; font-size: 16px; color: var(--brand); font-family: 'Noto Sans Arabic', 'Noto Sans', sans-serif; }
.lang-toggle-btn:hover { text-decoration: underline; }

/* Calculator-style in-widget language pills (visible even with chrome=0) */
.lang-toggle { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.lang-btn {
  height: 36px; padding: 0 16px; border: 1.5px solid #DCE6EF; border-radius: 100px;
  background: transparent; font-size: 14px; font-weight: 500; color: var(--field-label);
  cursor: pointer; font-family: inherit;
  transition: background 120ms, color 120ms, border-color 120ms;
}
.lang-btn--active { background: var(--navy); color: #fff; border-color: var(--navy); }
.lang-btn:hover:not(.lang-btn--active) { border-color: #005D9E; color: #005D9E; }
