@charset "UTF-8";
/* ==========================================================================
   دليل العطور ونتائج المطابقة
   ========================================================================== */

.guide {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.guide::before {
  content: '';
  position: absolute;
  inset-block-start: -15%;
  inset-inline-start: -10%;
  width: 55vw;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(234, 188, 138, .24), transparent 62%);
  pointer-events: none;
}

/* ── المقدّمة ─────────────────────────────────────────────────────────── */

.guide__intro { text-align: center; position: relative; }
.guide__badge {
  width: 76px; height: 76px;
  margin: 0 auto var(--sp-5);
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--gold);
  animation: floaty 6s ease-in-out infinite;
}
.guide__badge svg { width: 34px; height: 34px; }
.guide__intro h1 { margin-block-end: var(--sp-3); }
.guide__intro .lead { max-width: 46ch; margin: 0 auto var(--sp-6); }

/* ── النموذج ──────────────────────────────────────────────────────────── */

.guide__form { width: 100%; position: relative; }

.guide__progress { display: flex; align-items: center; gap: var(--sp-3); margin-block-end: var(--sp-6); }
.guide__progress-bar {
  flex: 1;
  height: 5px;
  background: var(--sand-2);
  border-radius: var(--r-full);
  overflow: hidden;
}
.guide__progress-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--gold-2));
  border-radius: var(--r-full);
  transition: width .4s var(--ease-out);
}
.guide__progress-text { font-size: .78rem; color: var(--text-3); white-space: nowrap; }

.guide-step { border: 0; padding: 0; margin: 0; }
.guide-step legend {
  display: block;
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  text-align: center;
  margin-block-end: var(--sp-6);
  color: var(--text);
}

.guide-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-3);
}
.guide-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.guide-option > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-4);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all .22s var(--ease);
  height: 100%;
  text-align: center;
}
.guide-option > span:hover { border-color: var(--sand-3); transform: translateY(-3px); box-shadow: var(--sh-1); }
.guide-option > span svg { width: 26px; height: 26px; color: var(--brand); }
.guide-option > span strong { font-size: .92rem; font-weight: 500; }
.guide-option input:checked + span {
  border-color: var(--brand);
  background: var(--sand);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.guide-option input:focus-visible + span { outline: 2px solid var(--gold-ink); outline-offset: 3px; }

.guide__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-block-start: var(--sp-7);
}
.guide__nav .btn { min-width: 130px; }
.guide__nav .btn:only-child { margin-inline-start: auto; }

/* ── النتائج ──────────────────────────────────────────────────────────── */

.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--sp-4);
}
.match-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  position: relative;
  transition: all .28s var(--ease);
}
.match-card:hover { border-color: var(--sand-3); box-shadow: var(--sh-2); transform: translateY(-3px); }

.match-card__score {
  position: absolute;
  inset-block-start: var(--sp-3);
  inset-inline-end: var(--sp-3);
  text-align: center;
}
.match-card__score small { display: none; }

.match-ring {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(var(--gold) calc(var(--pct) * 1%), var(--sand-2) 0);
  position: relative;
}
.match-ring::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--surface);
}
.match-ring .num {
  position: relative;
  font-size: .8rem;
  font-weight: 700;
  color: var(--brand);
}

.match-card__media {
  width: 92px; height: 115px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(165deg, var(--sand) 0%, var(--surface-2) 100%);
}
.match-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }

.match-card__body { display: grid; gap: 6px; align-content: start; padding-inline-end: 58px; }
.match-card__body h3 { font-size: 1.02rem; line-height: 1.35; }
.match-card__body h3 a:hover { color: var(--brand); }
.match-card__why { font-size: .72rem; color: var(--text-3); margin-block-start: 2px; }
.match-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-block-start: var(--sp-2);
  padding-inline-end: 0;
}
.match-card__foot .num { font-weight: 700; color: var(--brand); }

@media (max-width: 480px) {
  .match-card { grid-template-columns: 1fr; }
  .match-card__body { padding-inline-end: 0; }
  .match-card__media { width: 100%; height: 180px; }
}

/* ── تحسين الخطوات (أيقونة + عناوين بارزة + بطاقات أنيقة) ────────────── */
.guide-step { text-align: center; }
.guide-step__icon {
  width: 64px; height: 64px; margin: 0 auto var(--sp-3);
  display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(145deg, var(--brand), var(--brand-deep, var(--brand)));
  color: var(--gold);
  box-shadow: 0 8px 22px rgba(74, 38, 20, .22);
}
.guide-step__icon svg { width: 28px; height: 28px; }
.guide-step__icon--no { background: linear-gradient(145deg, #8a3b2e, #5e261d); color: #f6d9d2; }
.guide-step__eyebrow { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; margin-block-end: var(--sp-2); }
.guide-step legend { margin-block-end: var(--sp-3); font-weight: 600; }
.guide-step legend .hl { background: linear-gradient(transparent 68%, rgba(234, 188, 138, .45) 0); padding-inline: .2em; }
.guide-step__hint { color: var(--text-3); font-size: .85rem; margin-block-end: var(--sp-5); }
.guide-options { margin-block-start: var(--sp-5); }
.guide-option__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sand); transition: all .22s var(--ease); font-style: normal; }
.guide-option > span svg { width: 24px; height: 24px; }
.guide-option > span strong { font-size: 1rem; font-weight: 600; }
.guide-option input:checked + span .guide-option__ic { background: var(--brand); }
.guide-option input:checked + span .guide-option__ic svg { color: var(--gold); }

.accord-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.accord-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.accord-pill > span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .6rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--r-full);
  background: var(--surface); font-size: .95rem; font-weight: 500; cursor: pointer;
  transition: all .2s var(--ease); user-select: none;
}
.accord-pill > span i { width: 11px; height: 11px; border-radius: 50%; background: var(--chip, var(--gold)); flex: none; }
.accord-pill > span:hover { border-color: var(--chip, var(--sand-3)); transform: translateY(-2px); }
.accord-pill input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--text-invert, #fff); box-shadow: 0 4px 14px rgba(74, 38, 20, .25); }
.accord-pill input:checked + span i { box-shadow: 0 0 0 2px #fff; }
.accord-grid--avoid .accord-pill input:checked + span { background: #8a3b2e; border-color: #8a3b2e; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.accord-pill input:focus-visible + span { outline: 2px solid var(--gold-ink); outline-offset: 3px; }

@media (max-width: 480px) {
  .guide-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .accord-pill > span { padding: .5rem .9rem; font-size: .88rem; }
}

.guide-step legend .guide-step__icon { display: grid; }
.guide-step legend .hl { display: inline; }
