/* The report form, on the articles and on /support. */
.ar-report h2 { font-weight: 900; font-size: clamp(1.4rem, 2.3vw, 1.85rem); line-height: 1.35; color: var(--emerald); }
html[data-lang=ar] .ar-report [lang=en], html[data-lang=en] .ar-report [lang=ar] { display: none; }
.ar-report p { margin-top: 10px; font-size: 1.03rem; line-height: 1.85; color: var(--ink-2); }
.ar-form { margin-top: 22px; }
.ar-field { margin-bottom: 16px; }
.ar-field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 1rem; color: var(--ink); }
.ar-field input, .ar-field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1.5px solid rgba(7, 63, 53, .32);
  border-radius: 14px;
  background: var(--ivory);
  color: var(--ink);
  font: 500 1.05rem/1.7 var(--font);
  transition: border-color .2s;
}
[dir=rtl] .ar-field input[dir=ltr] { text-align: end; }
.ar-field textarea { min-height: 136px; resize: vertical; }
.ar-field input:hover, .ar-field textarea:hover { border-color: var(--emerald); }
/* Focus recolours the field's own border: one line, never a second one around it. */
.ar-field input:focus, .ar-field textarea:focus { outline: none; border-color: var(--gold-print); box-shadow: inset 0 0 0 .5px var(--gold-print); }
.ar-field [aria-invalid=true], .ar-field [aria-invalid=true]:focus { border-color: #a93a2a; box-shadow: none; }
.ar-report .ar-field__error { margin-top: 6px; font-size: .95rem; font-weight: 500; color: #a93a2a; }
.ar-phone { position: relative; display: flex; align-items: stretch; min-height: 50px; border: 1.5px solid rgba(7, 63, 53, .32); border-radius: 14px; background: var(--ivory); transition: border-color .2s; }
.ar-phone:hover { border-color: var(--emerald); }
.ar-phone:focus-within { border-color: var(--gold-print); box-shadow: inset 0 0 0 .5px var(--gold-print); }
.ar-phone:has(> input[aria-invalid=true]) { border-color: #a93a2a; box-shadow: none; }
.ar-phone__pick { display: flex; align-items: center; gap: 8px; flex: none; padding: 0 12px; border: 0; border-inline-end: 1px solid var(--line); border-radius: 12px 0 0 12px; background: none; color: var(--ink); font: 700 1.02rem var(--font); cursor: pointer; }
.ar-phone__pick:hover { background: rgba(7, 63, 53, .05); }
.ar-phone__pick:focus { outline: none; }
.ar-phone__pick:focus-visible { background: rgba(176, 122, 34, .14); }
.ar-phone__pick img { display: block; width: 26px; height: 20px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(7, 63, 53, .16); object-fit: cover; }
.ar-phone__pick i { width: 7px; height: 7px; margin-inline-start: 2px; border-inline-end: 2px solid var(--ink-2); border-block-end: 2px solid var(--ink-2); transform: translateY(-2px) rotate(45deg); }
.ar-field .ar-phone > input { flex: 1; min-width: 0; min-height: 0; border: 0; border-radius: 0 12px 12px 0; background: none; text-align: left; }
.ar-field .ar-phone > input:focus, .ar-field .ar-phone > input[aria-invalid=true]:focus { outline: none; border: 0; box-shadow: none; }
.ar-field .ar-phone > input::placeholder { color: rgba(54, 87, 77, .62); }
.ar-phone__panel { position: absolute; inset-inline: -1.5px; top: calc(100% + 8px); z-index: 20; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--ivory); box-shadow: 0 22px 54px rgba(4, 39, 31, .24); }
.ar-phone__panel[hidden] { display: none; }
.ar-field .ar-phone__panel input { min-height: 46px; padding: 8px 14px; }
.ar-phone__panel ul { max-height: 288px; margin: 8px 0 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.ar-phone__panel li[role=option] { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 10px; border-radius: 10px; color: var(--ink); cursor: pointer; }
.ar-phone__panel li[role=option] span { flex: 1; min-width: 0; font-weight: 500; }
.ar-phone__panel li[role=option] img { flex: none; width: 26px; height: 20px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(7, 63, 53, .16); object-fit: cover; }
.ar-phone__panel li[role=option] bdi { color: var(--ink-2); font-weight: 500; }
.ar-phone__panel li.is-active, .ar-phone__panel li[role=option]:hover { background: rgba(7, 63, 53, .08); }
.ar-phone__panel li[aria-selected=true] { font-weight: 700; }
.ar-phone__panel li.is-none { padding: 12px 10px; color: var(--ink-2); }

.ar-form__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ar-form__send { width: 100%; background: var(--emerald); color: var(--ivory); }
.ar-form__send:hover { filter: brightness(1.15); }
.ar-form__send:disabled { opacity: .65; cursor: progress; }
.ar-form__send:focus-visible { outline: 3px solid var(--gold-print); outline-offset: 2px; }
.ar-report .ar-form__status { margin-top: 0; font-weight: 500; color: #a93a2a; }
.ar-report .ar-form__note { margin-top: 12px; font-size: .92rem; color: var(--ink-2); }
.ar-report .ar-form__note a { color: var(--emerald); text-underline-offset: .25em; }
.ar-report .ar-form__sent { margin-top: 20px; padding: 18px 20px; border-radius: 14px; background: var(--emerald); color: var(--ivory); font-weight: 700; font-size: 1.1rem; line-height: 1.7; }
.ar-form__sent:focus { outline: none; }

.ar-report .ar-form__status:not(:empty) { margin-top: 12px; }
.legal__main .ar-report { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
