/* Tiraz Labs — contact page (section "contact"). Owner: E (simplified UX pass, agent 4).
   One short form in a card (name · WhatsApp/email switch + one field · optional «بخصوص» chips · optional message · one button),
   then other ways to reach us (only configured channels) and «ماذا يحدث بعد ذلك». Phones: one column, big fields, full-width
   button. ≥ 1080: form 7 cols | side 4 cols (sticky). Tokens only. */

#contact [hidden] { display: none !important; }
#contact .page-head { padding-block-end: clamp(28px, 1rem + 3vw, 56px); }

/* WhatsApp card (in the page head) */
.cx-wa { display: grid; justify-items: start; gap: 10px; margin-block-start: 8px; }
.cx-wa-btn { min-width: min(100%, 320px); }
@media (max-width: 559px) { .cx-wa, .cx-wa-btn { width: 100%; } }

/* body */
.cx-body { padding-block-end: var(--sec-y); }
.cx-grid { display: grid; gap: var(--sp-8); }
.cx-main, .cx-side { min-width: 0; }
.cx-or { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font-size: var(--t-small); color: var(--text-soft); }
.cx-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.cx-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
@media (min-width: 768px) { .cx-card { padding: clamp(28px, 1rem + 2.4vw, 44px); } }
@media (min-width: 1080px) {
  .cx-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
  .cx-main { grid-column: 1 / span 7; }
  .cx-side { grid-column: 9 / -1; position: sticky; inset-block-start: calc(var(--hdr-h) + var(--sp-6)); }
}

/* form (fields sit on ink-2: inputs use --surface-2 well inside the card for contrast) */
.cx-form { display: grid; gap: var(--sp-6); }
.cx-optional { font-weight: 400; color: var(--text-faint); }
.cx-help, .cx-err { margin: 0; }
.cx-field .input { min-height: 56px; font-size: 1.0625rem; background: var(--surface-2); }
.cx-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.cx-legend { padding: 0; margin-block-end: 10px; font-size: var(--t-small); font-weight: 500; color: var(--text); }
.cx-via { border: 0; margin: 0; padding: 0; min-width: 0; }

/* WhatsApp | email: a two-option segmented switch (real radios) */
.cx-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: var(--surface-2); }
.cx-seg-o { position: relative; display: grid; }
.cx-seg-o input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cx-seg-o span { display: grid; place-items: center; min-height: 44px; padding-inline: 12px; border-radius: calc(var(--r-ctl) - 4px); font-size: var(--t-small); font-weight: 600; color: var(--text-soft); }
.cx-seg-o input:checked + span { background: var(--accent-fill); color: var(--accent-ink); }
.cx-seg-o input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
@media (hover: hover) { .cx-seg-o input:not(:checked):hover + span { color: var(--text); } }

/* «بخصوص» chips (optional, one tap) */
.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-chip { min-height: 44px; }
.cx-f-message textarea.input { min-height: 104px; padding-block: 14px; }
.cx-field .input[dir="auto"]:placeholder-shown { direction: inherit; }
html[dir="rtl"] .cx-f-contact .input { text-align: right; }

.cx-pkg-slot:empty { display: none; }
.cx-pkg { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding-block: 4px; padding-inline: var(--sp-4) 4px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: var(--surface-2); }
.cx-pkg-t { margin: 0; font-size: var(--t-small); color: var(--text-soft); min-width: 0; }
.cx-pkg-t strong { color: var(--text); font-weight: 600; }
.cx-pkg-x { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--text-soft); cursor: pointer; }
.cx-pkg-x:hover { background: var(--surface-3); color: var(--text); }

.cx-foot { display: grid; gap: var(--sp-4); padding-block-start: var(--sp-2); }
.cx-send { width: 100%; }
.cx-send[data-loading] { cursor: progress; opacity: .78; }
@media (min-width: 640px) { .cx-send { width: auto; justify-self: start; min-width: 220px; } }
.cx-status { margin: 0; font-size: var(--t-small); line-height: 1.6; color: var(--text-soft); }
.cx-status:empty { display: none; }
.cx-status[data-tone="bad"] { color: var(--bad); font-weight: 500; }
.cx-status[data-tone="note"] { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-ctl); background: var(--surface-3); color: var(--text-soft); }
.cx-hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* success */
.cx-done { display: grid; gap: var(--sp-4); justify-items: start; outline: none; }
.cx-done-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.cx-done-t { margin: 0; }
.cx-done-p { margin: 0; color: var(--text-soft); font-size: var(--t-lead); line-height: 1.7; max-width: var(--measure-lead); }
.cx-done-actions { margin-block-start: var(--sp-3); width: 100%; }

/* other ways to reach us (only the channels set in the dashboard) */
.cx-side { display: grid; gap: var(--sp-8); align-content: start; }
.cx-alt { display: grid; gap: var(--sp-4); }
.cx-alt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cx-alt-a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding-inline: 16px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); color: var(--text); text-decoration: none; font-weight: 600; }
.cx-alt-a svg { flex: none; width: 20px; height: 20px; }
.cx-alt-v { margin-inline-start: auto; font-family: var(--f-mono); font-weight: 400; font-size: var(--t-small); color: var(--text-soft); unicode-bidi: isolate; }
@media (hover: hover) { .cx-alt-a:hover { border-color: var(--accent-line); } }

/* what happens next */
.cx-next { display: grid; gap: var(--sp-5); padding-block-start: var(--sp-5); border-block-start: 1px solid var(--prestige-line); }
.cx-side-t { margin: 0; }
.cx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); }
.cx-steps > li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--sp-3); align-items: start; color: var(--text-soft); line-height: 1.7; }
html[lang="en"] .cx-steps > li { line-height: 1.6; }
.cx-step-n { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--prestige-line); border-radius: 50%;
  font-family: var(--f-num); font-weight: 700; color: var(--prestige); line-height: 1; }

/* without JavaScript (contact.html <noscript>) */
.cx-noscript { display: grid; gap: var(--sp-5); padding-block: calc(var(--hdr-h) + var(--sp-9)) var(--sec-y); }
