/* Nawahi merchant offer page. Colors follow the dashboard (apps/dashboard
   src/app/globals.css). System fonts only: nothing is loaded from elsewhere. */
:root {
  --ink: #173c35;
  --muted: #566b64;
  --brand: #146c55;
  --brand-dark: #0f5543;
  --line: #dae5df;
  --paper: #f6f8f5;
  --card: #ffffff;
  --accent: #e6f3e9;
  --error: #b3261e;
  --error-bg: #fdecea;
  --owner: #fff1d2;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  padding-block: env(safe-area-inset-top, 0px) env(safe-area-inset-bottom, 0px);
}
a {
  color: var(--brand);
}
.wrap {
  width: min(1080px, 100%);
  margin-inline: auto;
  padding-inline: 20px;
}
.narrow {
  width: min(640px, 100%);
}
.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  background: var(--card);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

/* ---------- header ---------- */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  z-index: 5;
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}
.brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand);
}
.brand small {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
  margin-inline-start: 8px;
}

/* ---------- buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  background: var(--brand-dark);
}
.button:focus-visible,
.link:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent);
  outline-offset: 2px;
}
.button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.button.small {
  min-height: 40px;
  padding: 6px 16px;
  font-size: 0.95rem;
}

/* ---------- hero ---------- */
.hero {
  padding-block: 56px 40px;
  background: linear-gradient(180deg, var(--accent), var(--paper));
}
.pill {
  display: inline-block;
  margin: 0 0 12px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--owner);
  color: #715b2c;
  font-size: 0.9rem;
  font-weight: 700;
}
h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  line-height: 1.4;
  margin: 0 0 14px;
  max-width: 22ch;
  text-wrap: balance;
}
.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 24px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

/* ---------- sections ---------- */
.section {
  padding-block: 36px;
}
h2 {
  font-size: 1.45rem;
  margin: 0 0 18px;
}
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--brand);
}
.card p {
  margin: 0;
  color: var(--muted);
}
.steps {
  margin: 0;
  padding-inline-start: 1.4em;
  display: grid;
  gap: 8px;
}
.limits {
  margin: 0;
  padding-inline-start: 1.2em;
  display: grid;
  gap: 10px;
}
.owner {
  background: var(--owner);
  border: 1px dashed #c9a24d;
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 700;
}

/* ---------- form ---------- */
.request {
  background: var(--card);
  border-block: 1px solid var(--line);
  padding-block: 44px;
}
.hint {
  color: var(--muted);
  margin-top: -8px;
}
form {
  display: grid;
  gap: 16px;
}
.field {
  display: grid;
  gap: 6px;
}
label {
  font-weight: 600;
}
label small {
  font-weight: 400;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #b9cac2;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
textarea {
  resize: vertical;
}
input[dir="ltr"] {
  text-align: start;
}
.check {
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 12px;
}
.check input {
  width: 24px;
  min-height: 24px;
  height: 24px;
  margin-top: 4px;
  accent-color: var(--brand);
}
.check label {
  font-weight: 400;
}
.check .error-msg {
  grid-column: 1 / -1;
}
.error-msg {
  display: none;
  margin: 0;
  color: var(--error);
  font-size: 0.92rem;
}
:user-invalid {
  border-color: var(--error);
  background-color: var(--error-bg);
}
:user-invalid ~ .error-msg {
  display: block;
}
.hp {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent);
}
.status[data-kind="error"] {
  background: var(--error-bg);
  color: var(--error);
}
.alert {
  background: var(--owner);
  padding: 10px 14px;
  border-radius: 10px;
}
.foot {
  padding-block: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}
