/* =========================================================================
   برنامج الرحلات المدرسية للمتاحف — نموذج تفاعلي (front-end only)
   الهوية مستخرجة مباشرة من عرض Canva الخاص بلبيب:
   خمري/نبيتي أساسي + برتقالي + كريمي، مع عناوين كحلية ولمسة موف.
   ========================================================================= */
:root {
  --plum-900: #4e1230;
  --plum: #701a47;     /* primary brand */
  --plum-700: #5e1539;
  --plum-050: #f3e7ee;
  --orange: #ef682a;   /* accent */
  --orange-600: #d8551c;
  --orange-050: #fdeadf;
  --navy: #21324a;     /* heading ink */
  --mauve: #c898b8;    /* secondary */
  --mauve-100: #f0e3ea;
  --cream: #f7f5f1;
  --cream-200: #efe9e0;
  --ink: #2b2530;
  --ink-soft: #6f6670;
  --line: #e6dcdd;
  --white: #ffffff;
  --danger: #c0392b;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(78, 18, 48, 0.07);
  --shadow: 0 14px 34px rgba(78, 18, 48, 0.14);
  --shadow-lg: 0 26px 64px rgba(78, 18, 48, 0.26);
  --container: 1140px;
  --font: "Tajawal", system-ui, "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 0.95rem; font-weight: 700; line-height: 1;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--plum); color: var(--white); }
.btn-primary:hover { background: var(--plum-700); box-shadow: var(--shadow-sm); }
.btn-accent { background: var(--orange); color: var(--white); }
.btn-accent:hover { background: var(--orange-600); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--plum); border-color: var(--line); }
.btn-ghost:hover { background: var(--plum-050); border-color: var(--plum-050); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-text { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-family: inherit; font-weight: 700; padding: 12px 18px; border-radius: 999px; }
.btn-text:hover { background: var(--cream-200); }

/* ---------- Prototype banner ---------- */
.proto-banner { background: var(--navy); color: #fff; text-align: center; font-size: 0.8rem; font-weight: 500; padding: 7px 16px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247,245,241,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--plum); }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong { font-size: 1.35rem; color: var(--plum); font-weight: 900; }
.brand-text small { font-size: 0.68rem; letter-spacing: 0.01em; color: var(--ink-soft); font-weight: 500; }
.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.main-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 500; color: var(--navy); font-size: 0.95rem; }
.main-nav a:hover { background: var(--plum-050); color: var(--plum); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; background: var(--orange); color: #fff; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--plum); color: #fff; overflow: hidden; }
.hero-pattern { position: absolute; inset: 0; opacity: 1; pointer-events: none;
  background:
    radial-gradient(520px 320px at 88% -10%, rgba(239,104,42,0.28), transparent 60%),
    radial-gradient(420px 300px at 8% 120%, rgba(200,152,184,0.25), transparent 60%);
}
.hero-inner { position: relative; padding: 70px 20px 76px; }
.eyebrow { font-weight: 700; letter-spacing: 0.01em; color: var(--orange); margin-bottom: 14px; font-size: 0.95rem; }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.7rem); font-weight: 900; line-height: 1.14; color: #fff; }
.hero h1 .accent { color: var(--orange); }
.hero-sub { max-width: 640px; margin-top: 18px; font-size: 1.1rem; color: rgba(255,255,255,0.88); }

.quickstart { margin-top: 34px; background: var(--white); border-radius: var(--radius); padding: 14px; display: grid; grid-template-columns: 1.1fr 1.1fr 0.8fr auto; gap: 12px; box-shadow: var(--shadow-lg); align-items: end; }
.quickstart .field { display: flex; flex-direction: column; gap: 6px; text-align: start; }
.quickstart label { font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); padding-inline-start: 6px; }
.quickstart select, .quickstart input { font-family: inherit; font-size: 0.95rem; color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; background: var(--cream); }
.quickstart select:focus, .quickstart input:focus { outline: none; border-color: var(--plum); background: var(--white); }
.quickstart-submit { height: 46px; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--cream-200); border-bottom: 1px solid var(--line); }
.stats-inner { padding: 30px 20px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.stats-title { color: var(--navy); font-size: 1.25rem; font-weight: 900; flex: none; }
.stats-list { list-style: none; display: flex; gap: 34px; flex-wrap: wrap; margin-inline-start: auto; }
.stats-list li { display: flex; flex-direction: column; }
.stats-list strong { font-size: 1.9rem; color: var(--orange); font-weight: 900; line-height: 1; }
.stats-list span { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-cream { background: var(--cream-200); }
.section-plum { background: var(--plum); }
.section-plum h2, .section-plum .section-sub { color: #fff; }
.section-plum .section-sub { color: rgba(255,255,255,0.82); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head.center { justify-content: center; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; position: relative; }
.section-head h2::after { content: ""; display: block; width: 54px; height: 4px; background: var(--orange); border-radius: 4px; margin-top: 10px; }
.section-head.center h2::after { margin-inline: auto; }
.section-sub { color: var(--ink-soft); margin-top: 12px; }
.sort-field { font-size: 0.85rem; color: var(--ink-soft); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sort-field select { font-family: inherit; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; background: var(--white); color: var(--ink); cursor: pointer; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip { font-family: inherit; font-size: 0.88rem; font-weight: 500; color: var(--navy); background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: all 0.15s ease; }
.chip:hover { border-color: var(--plum); color: var(--plum); }
.chip.active { background: var(--plum); color: #fff; border-color: var(--plum); }

/* ---------- Museum cards ---------- */
.museum-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 24px; }
.museum-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.museum-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.museum-media { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; color: rgba(255,255,255,0.92); }
.museum-media svg { width: 52px; height: 52px; opacity: 0.92; }
.museum-media .m-city { position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(78,18,48,0.78); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.museum-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.museum-title { font-size: 1.15rem; font-weight: 900; color: var(--navy); }
.museum-desc { font-size: 0.9rem; color: var(--ink-soft); flex: 1; }
.museum-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 0.82rem; color: var(--ink-soft); }
.museum-meta span { display: inline-flex; align-items: center; gap: 5px; }
.stage-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.stage-tag { font-size: 0.72rem; font-weight: 700; color: var(--plum); background: var(--plum-050); border-radius: 999px; padding: 3px 10px; }
.museum-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding-top: 14px; border-top: 1px dashed var(--line); }
.museum-foot .cap { font-size: 0.82rem; color: var(--ink-soft); }
.museum-foot .cap strong { color: var(--navy); font-size: 1.05rem; }
.empty-state { text-align: center; color: var(--ink-soft); padding: 40px 0; }

/* ---------- Pillars ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.pillar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.pillar .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 1.2rem; margin-bottom: 12px; }
.pillar:nth-child(odd) .ico { background: var(--orange); }
.pillar h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }
.pillar p { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Journey ---------- */
.journey { list-style: none; counter-reset: j; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.journey li { counter-increment: j; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius); padding: 20px; color: #fff; position: relative; }
.journey li::before { content: counter(j, decimal); font-weight: 900; font-size: 1.6rem; color: var(--orange); display: block; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.journey li h3 { color: #fff; font-size: 1.02rem; margin-bottom: 5px; }
.journey li p { color: rgba(255,255,255,0.78); font-size: 0.88rem; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.about-text h2 { margin: 8px 0 16px; }
.about-text p { color: var(--ink-soft); margin-bottom: 12px; }
.about-text .muted { font-size: 0.85rem; }
.about-card { background: var(--plum); color: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.about-card h3 { color: var(--orange); margin-bottom: 14px; }
.about-card ul { list-style: none; display: grid; gap: 12px; }
.about-card li { display: flex; flex-direction: column; gap: 2px; font-size: 0.92rem; }
.about-card li span:first-child { color: rgba(255,255,255,0.6); font-size: 0.78rem; }
.about-card a { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum-900); color: rgba(255,255,255,0.8); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.brand--footer { color: #fff; }
.brand--footer img { filter: brightness(0) invert(1); }
.brand--footer .brand-text strong { color: #fff; }
.brand--footer .brand-text small { color: rgba(255,255,255,0.6); }
.footer-inner p { font-size: 0.85rem; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal-overlay { position: absolute; inset: 0; background: rgba(43, 10, 27, 0.55); backdrop-filter: blur(3px); }
.modal-dialog { position: absolute; inset-inline: 0; margin-inline: auto; top: 50%; transform: translateY(-50%); width: min(580px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; background: var(--cream); border-radius: 20px; box-shadow: var(--shadow-lg); animation: pop 0.2s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-46%) scale(0.98); } to { opacity: 1; } }
.modal-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--white); font-size: 1.4rem; line-height: 1; color: var(--ink-soft); cursor: pointer; box-shadow: var(--shadow-sm); }
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 28px; }

/* ---------- Wizard ---------- */
.wiz-trip { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.wiz-trip .thumb { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; }
.wiz-trip .thumb svg { width: 28px; height: 28px; }
.wiz-trip h3 { font-size: 1.08rem; color: var(--navy); }
.wiz-trip small { color: var(--ink-soft); font-size: 0.82rem; }

.steps { display: flex; gap: 6px; margin-bottom: 22px; }
.steps .step { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 0.68rem; color: var(--ink-soft); }
.steps .bar { height: 5px; border-radius: 999px; background: var(--line); transition: background 0.3s ease; }
.steps .step.done .bar { background: var(--mauve); }
.steps .step.active .bar { background: var(--orange); }
.steps .step.active { color: var(--orange); font-weight: 700; }

.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group > label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.form-group input, .form-group select {
  width: 100%; font-family: inherit; font-size: 0.95rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px; background: var(--white);
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px var(--plum-050); }
.form-group input.invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.78rem; margin-top: 5px; min-height: 1em; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.slot { font-family: inherit; font-size: 0.86rem; font-weight: 700; color: var(--navy); border: 1.5px solid var(--line); background: var(--white); border-radius: var(--radius-sm); padding: 11px 6px; cursor: pointer; text-align: center; }
.slot:hover { border-color: var(--plum); }
.slot.active { background: var(--plum); color: #fff; border-color: var(--plum); }
.slot[disabled] { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }

.counter-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.counter-row:last-of-type { border-bottom: none; }
.counter-row .label strong { display: block; color: var(--navy); }
.counter-row .label small { color: var(--ink-soft); font-size: 0.8rem; }
.counter { display: flex; align-items: center; gap: 14px; flex: none; }
.counter button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--plum); background: var(--white); color: var(--plum); font-size: 1.2rem; line-height: 1; cursor: pointer; font-weight: 700; }
.counter button:hover { background: var(--plum); color: #fff; }
.counter button[disabled] { opacity: 0.35; cursor: not-allowed; }
.counter .num { min-width: 30px; text-align: center; font-weight: 700; font-size: 1.05rem; }

/* support services checkboxes */
.svc-group { margin-bottom: 18px; }
.svc-group > h4 { color: var(--navy); font-size: 0.95rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.svc-group > h4 .dot { width: 10px; height: 10px; border-radius: 3px; }
.svc-option { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); margin-bottom: 8px; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.svc-option:hover { border-color: var(--mauve); }
.svc-option.checked { border-color: var(--plum); background: var(--plum-050); }
.svc-option input { margin-top: 3px; accent-color: var(--plum); width: 17px; height: 17px; flex: none; }
.svc-option .t { font-size: 0.9rem; color: var(--navy); font-weight: 500; }
.svc-option .s { font-size: 0.78rem; color: var(--ink-soft); }

.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 0.92rem; }
.summary-row .k { color: var(--ink-soft); flex: none; }
.summary-row .v { font-weight: 700; color: var(--navy); text-align: end; }
.summary-note { background: var(--orange-050); border: 1px solid var(--orange); color: var(--orange-600); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.85rem; margin-bottom: 18px; }

.wiz-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }

/* ---------- Confirmation ---------- */
.confirm { text-align: center; padding: 10px 4px; }
.confirm .check { width: 72px; height: 72px; border-radius: 50%; background: var(--plum-050); color: var(--plum); display: grid; place-items: center; margin: 0 auto 16px; font-size: 2.2rem; }
.confirm h2 { color: var(--navy); }
.confirm .ref { display: inline-block; margin: 14px 0; background: var(--orange-050); color: var(--orange-600); font-weight: 900; letter-spacing: 0.06em; padding: 8px 18px; border-radius: 999px; }
.confirm .muted { color: var(--ink-soft); font-size: 0.85rem; }

/* ---------- Requests list ---------- */
#requestsList { margin-top: 16px; display: grid; gap: 12px; }
.request-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.request-item h4 { color: var(--navy); font-size: 1rem; }
.request-item .meta { font-size: 0.83rem; color: var(--ink-soft); margin-top: 4px; }
.request-item .ref { font-size: 0.78rem; color: var(--orange-600); font-weight: 700; letter-spacing: 0.04em; }
.request-item .status { display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--plum); background: var(--plum-050); padding: 2px 10px; border-radius: 999px; margin-top: 6px; }
.requests-empty { color: var(--ink-soft); text-align: center; padding: 24px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .quickstart { grid-template-columns: 1fr 1fr; }
  .quickstart-submit { grid-column: 1 / -1; }
  .about-inner { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .stats-list { gap: 22px; }
}
@media (max-width: 520px) {
  .quickstart { grid-template-columns: 1fr; }
  .header-actions .btn-ghost { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .modal-body { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
