/* صفحة طلب خدمة لمسجد — تبني على متغيرات style.css */
.request-page { padding-block: 40px 72px; }
.request-head { text-align: center; margin-bottom: 28px; }
.request-head .section-sub { max-width: 60ch; margin-inline: auto; }

.user-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 14px; font-weight: 500;
}
.user-chip .link-btn { border: 0; background: none; color: var(--danger); font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; }

/* ---------------- شريط الخطوات ---------------- */
.wizard-steps {
  list-style: none; margin: 0 0 24px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.track-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 16px 0; }
.track-form .field { flex: 1; min-width: 200px; }
.wizard-steps li {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; font-size: 14px; color: var(--muted);
}
.wizard-steps span {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--olive-50); color: var(--olive-700); font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.wizard-steps .is-active { border-color: var(--olive-600); color: var(--olive-900); font-weight: 700; }
.wizard-steps .is-active span { background: var(--olive-700); color: #fff; }
.wizard-steps .is-done span { background: var(--gold-500); color: #fff; }

/* ---------------- البطاقات ---------------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-title { font-size: 20px; color: var(--olive-900); margin-bottom: 16px; }
.panel-head .panel-title { margin-bottom: 0; }
.step-panel { margin-inline: auto; max-width: 820px; }
.loading-view { text-align: center; color: var(--muted); padding: 60px 16px; }

/* ---------------- اختيار الخدمة ---------------- */
.service-picker {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px;
}
.service-option {
  width: 100%; display: grid; justify-items: center; gap: 10px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 14px; cursor: pointer; font: inherit; color: inherit;
  transition: border-color .2s, background-color .2s, transform .2s;
}
.service-option:hover { border-color: var(--olive-500); background: var(--olive-50); transform: translateY(-2px); }
.service-option b { font-size: 16px; color: var(--olive-900); }

/* ---------------- النماذج ---------------- */
.auth-form { display: grid; gap: 14px; max-width: 420px; margin: 20px auto 0; }
#request-form { display: grid; gap: 16px; margin-top: 18px; }
.chosen-service { color: var(--ink-soft); font-size: 15px; margin-top: 10px; }
.chosen-service b { color: var(--olive-800); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.field > span:first-child { display: flex; justify-content: space-between; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 11px 15px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 400;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--olive-500); box-shadow: 0 0 0 3px rgba(118, 135, 95, .2); }

.field-hint { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.file-chips { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.file-chips li {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
  background: var(--olive-50); border-radius: 999px; padding: 5px 12px; color: var(--olive-800);
}
.file-chips button { border: 0; background: none; color: var(--danger); cursor: pointer; font-size: 13px; padding: 0; }

/* ---------------- الطلبات ---------------- */
.requests-list { display: grid; gap: 14px; margin-top: 16px; }
.request-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; }
.request-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.request-top div { display: grid; }
.request-top b { font-size: 17px; color: var(--olive-900); }
.request-top .muted { font-size: 14px; }
.request-details { color: var(--ink-soft); font-size: 15px; white-space: pre-line; }
.request-note { background: var(--gold-100); border-radius: 12px; padding: 10px 14px; font-size: 14.5px; }
.request-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.request-files { display: flex; gap: 10px; flex-wrap: wrap; }
.request-files a { color: var(--olive-700); text-decoration: underline; }

.status-pill { padding: 4px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--olive-50); color: var(--olive-700); }
.status-pill.status-pending { background: var(--gold-100); color: var(--gold-600); }
.status-pill.status-completed { background: #E4F0E2; color: #3E6B39; }
.status-pill.status-rejected { background: #FBEFEC; color: var(--danger); }

.timeline { display: flex; gap: 6px; flex-wrap: wrap; }
.timeline span {
  flex: 1; min-width: 92px; text-align: center; font-size: 12.5px; padding: 6px 8px; border-radius: 999px;
  background: var(--bg-alt); color: var(--muted);
}
.timeline .done { background: var(--olive-700); color: #fff; }
.timeline .rejected { background: var(--danger); color: #fff; }

.empty-state { text-align: center; color: var(--muted); padding: 40px; border: 1px dashed var(--line); border-radius: var(--radius); }

@media (max-width: 720px) {
  .wizard-steps { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
}

/* زر «متابعة طلب» يبقى ظاهراً في الجوال (style.css يخفي أزرار الهيدر) */
@media (max-width: 560px) {
  .header-actions #track-link { display: inline-flex; padding: 8px 12px; font-size: 13.5px; }
  .header-actions { gap: 6px; }
}
/* خطوة «متابعة الطلب» في الشريط قابلة للضغط */
.wizard-steps li[data-step="track"] { cursor: pointer; }
.wizard-steps li[data-step="track"]:hover { border-color: var(--olive-500); color: var(--olive-800); }
