/* Build your own package — /packages/
   Self-contained like every other page stylesheet in this design: the reset and
   the shared header block are repeated here because render.php strips every
   other stylesheet on a pe-* page. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--surface-page); }
body { font-family: var(--font-body); }
a { color: var(--text-accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }

/* Header (shared shell) ---------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-subtle); }
.site-header .bar { max-width: 1160px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header .logo { display: flex; align-items: center; gap: 10px; }
.site-header .wordmark { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--text-primary); }
.site-header .nav-desktop { display: flex; align-items: center; gap: 28px; }
.site-header .nav-desktop a { font-family: var(--font-body); font-weight: 500; font-size: 14.5px; color: var(--text-secondary); transition: color 0.2s ease; }
.site-header .nav-desktop a:hover { color: var(--blue-600); }
.site-header .nav-burger { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--border-subtle); background: var(--white); border-radius: 10px; cursor: pointer; color: var(--text-primary); }
@media (max-width: 1000px) { .site-header .nav-desktop { display: none !important; } .site-header .nav-burger { display: inline-flex !important; } }

.card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

/* Page -------------------------------------------------------------------- */
.pe-pk-page { background: var(--surface-page); min-height: 100vh; }
.pe-pk-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.pe-pk-eyebrow { color: var(--text-accent); margin-bottom: 12px; }

/* Hero -------------------------------------------------------------------- */
.pe-pk-hero { padding: 72px 0 40px; }
.pe-pk-h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: var(--tracking-tight); line-height: var(--leading-snug); color: var(--text-primary); margin: 0 0 16px; max-width: 18ch; }
.pe-pk-lede { color: var(--text-secondary); margin: 0; max-width: 62ch; line-height: var(--leading-relaxed); }

.pe-pk-anchors { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; padding: 0; }
.pe-pk-anchors li { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; min-width: 170px; }
.pe-pk-anchors b { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.1; color: var(--text-primary); }
.pe-pk-anchors span { font-size: var(--size-caption); color: var(--text-muted); }

/* Layout ------------------------------------------------------------------ */
.pe-pk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding-bottom: 96px; }
.pe-pk-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.pe-pk-error { background: #FEF2F2; border: 1px solid rgba(220,38,38,0.3); color: #B91C1C; border-radius: var(--radius-md); padding: 14px 18px; font-size: var(--size-body-sm); font-weight: 600; }

/* Steps ------------------------------------------------------------------- */
.pe-pk-step { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 26px 28px; }
.pe-pk-step-title { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; color: var(--text-primary); margin: 0 0 6px; display: flex; align-items: center; gap: 12px; }
.pe-pk-step-title span { flex: 0 0 auto; width: 28px; height: 28px; border-radius: var(--radius-full); background: var(--accent-soft); color: var(--text-accent); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pe-pk-step-sub { font-size: var(--size-body-sm); color: var(--text-secondary); line-height: var(--leading-relaxed); margin: 0 0 18px; max-width: 70ch; }

/* Radio cards ------------------------------------------------------------- */
.pe-pk-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.pe-pk-choice { position: relative; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 16px 18px; cursor: pointer; background: var(--white); transition: border-color var(--duration-fast) ease, background var(--duration-fast) ease, box-shadow var(--duration-fast) ease; }
.pe-pk-choice:hover { border-color: var(--border-accent); }
.pe-pk-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pe-pk-choice b { font-size: var(--size-body-sm); font-weight: 600; color: var(--text-primary); }
.pe-pk-choice i { font-style: normal; font-size: var(--size-caption); color: var(--text-muted); line-height: 1.45; }
.pe-pk-choice.is-on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.pe-pk-choice.is-on b { color: var(--blue-700); }
.pe-pk-choice input:focus-visible + b { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* Presets ----------------------------------------------------------------- */
.pe-pk-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pe-pk-pick { border: 1px solid var(--border-strong); background: var(--white); color: var(--text-secondary); border-radius: var(--radius-full); padding: 7px 14px; font-family: var(--font-body); font-size: var(--size-caption); font-weight: 600; cursor: pointer; transition: all var(--duration-fast) ease; }
.pe-pk-pick:hover { border-color: var(--accent); color: var(--text-accent); background: var(--accent-soft); }

/* Service rows ------------------------------------------------------------ */
.pe-pk-services { display: flex; flex-direction: column; gap: 14px; }
.pe-pk-svc { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 18px 20px; background: var(--white); }
.pe-pk-svc.is-hidden { display: none; }
.pe-pk-svc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.pe-pk-svc-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--text-primary); margin: 0 0 4px; }
.pe-pk-svc-blurb { font-size: var(--size-caption); color: var(--text-secondary); line-height: var(--leading-relaxed); margin: 0; max-width: 52ch; }

.pe-pk-stepper { flex: 0 0 auto; display: flex; align-items: center; gap: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-full); overflow: hidden; background: var(--white); }
.pe-pk-stepper button { width: 38px; height: 38px; border: 0; background: var(--white); color: var(--text-secondary); font-size: 19px; line-height: 1; cursor: pointer; transition: background var(--duration-fast) ease, color var(--duration-fast) ease; }
.pe-pk-stepper button:hover { background: var(--accent-soft); color: var(--text-accent); }
.pe-pk-stepper input { width: 58px; height: 38px; border: 0; border-left: 1px solid var(--border-subtle); border-right: 1px solid var(--border-subtle); text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--text-primary); background: var(--white); -moz-appearance: textfield; }
.pe-pk-stepper input::-webkit-outer-spin-button,
.pe-pk-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pe-pk-stepper input:focus { outline: 2px solid var(--border-accent); outline-offset: -2px; }

.pe-pk-svc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.pe-pk-tiers { display: flex; flex-wrap: wrap; gap: 6px; }
.pe-pk-tier { display: inline-flex; align-items: baseline; gap: 5px; border: 1px solid var(--border-subtle); border-radius: var(--radius-full); padding: 4px 10px; background: var(--ink-50); }
.pe-pk-tier i { font-style: normal; font-size: 12px; color: var(--text-muted); }
.pe-pk-tier b { font-size: 12.5px; font-weight: 700; color: var(--text-secondary); }
.pe-pk-tier.is-on { background: var(--accent); border-color: var(--accent); }
.pe-pk-tier.is-on i { color: rgba(255,255,255,0.82); }
.pe-pk-tier.is-on b { color: var(--white); }

.pe-pk-svc-line { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.pe-pk-svc-line span { font-size: var(--size-caption); color: var(--text-muted); }
.pe-pk-svc-line b { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--text-primary); }

.pe-pk-note { font-size: var(--size-caption); color: var(--text-muted); line-height: var(--leading-relaxed); margin: 16px 0 0; }

/* Checkbox row ------------------------------------------------------------ */
.pe-pk-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; padding: 16px 18px; border: 1px dashed var(--border-strong); border-radius: var(--radius-md); cursor: pointer; }
.pe-pk-check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex: 0 0 auto; }
.pe-pk-check b { display: block; font-size: var(--size-body-sm); font-weight: 600; color: var(--text-primary); }
.pe-pk-check i { font-style: normal; display: block; font-size: var(--size-caption); color: var(--text-muted); line-height: 1.5; margin-top: 2px; }

/* Fields ------------------------------------------------------------------ */
.pe-pk-field { display: flex; flex-direction: column; gap: 7px; }
.pe-pk-field + .pe-pk-field-row,
.pe-pk-field-row + .pe-pk-field-row { margin-top: 16px; }
.pe-pk-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pe-pk-field label { font-size: var(--size-caption); font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: var(--tracking-wide); display: flex; align-items: center; gap: 8px; }
.pe-pk-field label span { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--text-muted); font-size: 12px; }
.pe-pk-field input[type="text"],
.pe-pk-field input[type="email"],
.pe-pk-field textarea { width: 100%; font-family: var(--font-body); font-size: var(--size-body-sm); color: var(--text-primary); background: var(--white); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 11px 13px; }
.pe-pk-field textarea { resize: vertical; line-height: var(--leading-relaxed); }
.pe-pk-field input:focus,
.pe-pk-field textarea:focus { outline: 2px solid var(--border-accent); outline-offset: 1px; border-color: var(--accent); }
.pe-pk-field input::placeholder,
.pe-pk-field textarea::placeholder { color: var(--ink-300); }

/* The honeypot is for scripts, not people: off-screen rather than display
   none, because some bots skip hidden inputs and real users never reach it. */
.pe-pk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Summary ----------------------------------------------------------------- */
.pe-pk-side { position: sticky; top: 86px; }
.pe-pk-sum { background: var(--surface-card); border: 1px solid var(--border-accent); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 24px; }
.pe-pk-sum-eyebrow { color: var(--text-accent); margin-bottom: 16px; }
.pe-pk-sum-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pe-pk-sum-lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
.pe-pk-sum-lines li:first-child { padding-top: 0; }
.pe-pk-sum-lines span { font-size: var(--size-body-sm); color: var(--text-primary); font-weight: 500; }
.pe-pk-sum-lines i { display: block; font-style: normal; font-size: 12px; color: var(--text-muted); font-weight: 400; margin-top: 1px; }
.pe-pk-sum-lines b { font-size: var(--size-body-sm); font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.pe-pk-sum-lines .is-mod span,
.pe-pk-sum-lines .is-mod b { color: var(--text-secondary); font-weight: 500; }
.pe-pk-sum-empty { font-size: var(--size-caption); color: var(--text-muted); line-height: var(--leading-relaxed); margin: 0; }

.pe-pk-sum-total { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 18px 0 18px; }
.pe-pk-sum-total span { font-size: var(--size-caption); font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-muted); width: 100%; }
.pe-pk-sum-total b { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: var(--tracking-tight); color: var(--text-primary); }
.pe-pk-sum-total i { font-style: normal; font-size: var(--size-body-sm); color: var(--text-muted); }

.pe-pk-submit { width: 100%; justify-content: center; }
.pe-pk-sum-note { font-size: 12.5px; color: var(--text-muted); line-height: var(--leading-relaxed); margin: 14px 0 0; }
.pe-pk-sum-trust { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 8px; }
.pe-pk-sum-trust li { font-size: 12.5px; color: var(--text-secondary); padding-left: 20px; position: relative; line-height: 1.45; }
.pe-pk-sum-trust li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

/* Sent confirmation ------------------------------------------------------- */
.pe-pk-sent { padding: 40px 24px 0; max-width: 1160px; margin: 0 auto; }
.pe-pk-sent-card { background: var(--surface-card); border: 1px solid var(--border-accent); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: 36px 38px; }
.pe-pk-tick { width: 52px; height: 52px; border-radius: var(--radius-full); background: #ECFDF5; color: #15803D; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.pe-pk-sent-title { font-family: var(--font-display); font-weight: 700; letter-spacing: var(--tracking-tight); color: var(--text-primary); margin: 0 0 12px; }
.pe-pk-sent-body { color: var(--text-secondary); line-height: var(--leading-relaxed); margin: 0 0 24px; max-width: 66ch; }
.pe-pk-sent-body b { color: var(--text-primary); }
.pe-pk-sent-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* How it works ------------------------------------------------------------ */
.pe-pk-how { background: var(--surface-card); border-top: 1px solid var(--border-subtle); padding: 72px 0; }
.pe-pk-how-title { font-family: var(--font-display); font-weight: 700; letter-spacing: var(--tracking-tight); color: var(--text-primary); margin: 0 0 28px; }
.pe-pk-how-steps { list-style: none; counter-reset: pk; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.pe-pk-how-steps li { counter-increment: pk; padding-top: 42px; position: relative; }
.pe-pk-how-steps li::before { content: counter(pk); position: absolute; top: 0; left: 0; width: 30px; height: 30px; border-radius: var(--radius-full); background: var(--accent); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.pe-pk-how-steps b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--text-primary); margin-bottom: 8px; }
.pe-pk-how-steps p { font-size: var(--size-body-sm); color: var(--text-secondary); line-height: var(--leading-relaxed); margin: 0; }

/* FAQ --------------------------------------------------------------------- */
.pe-pk-faq { padding: 72px 0 96px; }
.pe-pk-faq details { border-bottom: 1px solid var(--border-subtle); padding: 18px 0; }
.pe-pk-faq details:first-of-type { border-top: 1px solid var(--border-subtle); }
.pe-pk-faq summary { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--text-primary); cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pe-pk-faq summary::-webkit-details-marker { display: none; }
.pe-pk-faq summary::after { content: "+"; flex: 0 0 auto; font-size: 22px; font-weight: 400; color: var(--text-accent); line-height: 1; }
.pe-pk-faq details[open] summary::after { content: "\2212"; }
.pe-pk-faq details p { font-size: var(--size-body-md); color: var(--text-secondary); line-height: var(--leading-relaxed); margin: 12px 0 0; max-width: 76ch; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 980px) {
  .pe-pk-grid { grid-template-columns: 1fr; }
  .pe-pk-side { position: static; order: -1; }
  .pe-pk-sum { padding: 20px; }
  .pe-pk-sum-total b { font-size: 34px; }
}

@media (max-width: 640px) {
  .pe-pk-hero { padding: 48px 0 32px; }
  .pe-pk-h1 { max-width: none; }
  .pe-pk-anchors li { min-width: 140px; flex: 1 1 140px; padding: 12px 14px; }
  .pe-pk-anchors b { font-size: 22px; }
  .pe-pk-step { padding: 22px 18px; }
  .pe-pk-svc { padding: 16px; }
  .pe-pk-svc-head { flex-direction: column; align-items: stretch; gap: 14px; }
  .pe-pk-stepper { align-self: flex-start; }
  .pe-pk-svc-foot { flex-direction: column; align-items: flex-start; }
  .pe-pk-sent { padding-top: 28px; }
  .pe-pk-sent-card { padding: 26px 20px; }
  .pe-pk-how, .pe-pk-faq { padding: 48px 0; }
}

/* Dirhams, next to the dollar figure that is actually charged --------------- */
.pe-pk-anchors i { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--text-accent); }

/* The bracket strip is only drawn when a service has more than one bracket, so
   the price line has to hold the right edge on its own. */
.pe-pk-svc-line { margin-left: auto; }
@media (max-width: 640px) { .pe-pk-svc-line { margin-left: 0; } }
