/* El Wazan · join page, design v2 (dark desk, paper form, prescription summary).
   Loaded after site.css: it re-points site.css tokens and re-skins the same markup, so join.js keeps working. */

:root {
  --charcoal: #070605; --raised: #100E0B; --raised-2: #171411; --line: #2A241C;
  --brass: #B88A43; --err: #E0A58E;
  --f-display: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --f-disp: 'Rakkas', 'Times New Roman', serif;
  --f-lcd: 'Handjet', 'IBM Plex Mono', monospace;
  --metal: linear-gradient(100deg, #9C7432 0%, #E9CB8E 36%, #C0924A 56%, #8A6428 100%);
  --header-h: 64px;
}
html, body { background: #070605; }
body {
  background-image:
    radial-gradient(ellipse 50% 40% at 70% 12%, rgba(201, 150, 72, .13), rgba(201, 150, 72, .04) 45%, transparent 72%),
    radial-gradient(ellipse 60% 50% at 25% 70%, rgba(201, 150, 72, .06), transparent 70%);
  background-attachment: fixed;
}
[dir=ltr] body { background-image: radial-gradient(ellipse 50% 40% at 30% 12%, rgba(201, 150, 72, .13), rgba(201, 150, 72, .04) 45%, transparent 72%), radial-gradient(ellipse 60% 50% at 75% 70%, rgba(201, 150, 72, .06), transparent 70%); }

/* header: same bar as the home page */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); padding: 0; background: rgba(7, 6, 5, .82); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(184, 138, 67, .2); }
.header-in, .header.is-scrolled .header-in { height: 100%; max-width: 1240px; margin-inline: auto; padding: 0 16px; background: none; border: 0; border-radius: 0; box-shadow: none; display: flex; align-items: center; justify-content: space-between; }
@media (min-width: 760px) { .header-in, .header.is-scrolled .header-in { padding-inline: 32px; } }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo .sym { width: 34px; height: 34px; }
.logo-ar { font: 400 26px/1 var(--f-disp); color: var(--sand); }
.logo-en { font: 500 11px/1 'IBM Plex Mono', monospace; letter-spacing: .2em; color: var(--gray); padding-inline-start: 10px; border-inline-start: 1px solid var(--line); }
@media (max-width: 480px) { .logo-en { display: none; } }
.lang { border: 0; font-family: 'IBM Plex Mono', monospace; }

/* buttons: brass outline on the dark, metallic fill on hover */
.btn { border-radius: 2px; font-family: var(--f-body); font-weight: 600; }
.btn-primary { border-color: #C79A55; color: #E2C07E; background: transparent; }
.btn-primary::before { background: var(--metal); }
.btn-ghost { border-color: var(--line); }

/* head */
.join { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px)); }
.wrap { max-width: 1240px; padding-inline: 16px; }
@media (min-width: 760px) { .wrap { padding-inline: 32px; } }
.note { font: 600 14px/1.4 var(--f-body); color: var(--brass); display: flex; align-items: center; gap: 12px; margin: 0; }
.note::before { content: ''; width: 28px; height: 1.5px; background: currentColor; }
:lang(en) .note { font: 500 12px/1.4 'IBM Plex Mono', monospace; letter-spacing: .14em; text-transform: uppercase; }
.join-head .h2 { font-family: var(--f-disp); font-weight: 400; font-size: clamp(44px, 6.4vw, 88px); line-height: 1.12; letter-spacing: 0; }
:lang(en) .join-head .h2 { line-height: 1.02; }
.h2 em { background-image: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.join-head .sub { color: #A79D90; }
.lcd { font-family: var(--f-lcd); font-weight: 600; letter-spacing: .02em; direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }

/* form sections: dark raised cards (site.css styles the fields with the dark tokens) */
.fs { background: linear-gradient(180deg, #171310, #110E0B); border: 1px solid rgba(184, 138, 67, .18); border-radius: 6px; box-shadow: 0 40px 80px -40px #000; }
.fs-head h2 { font-family: var(--f-disp); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; }
.fs-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 4px; }
.inp, .chip span, .pay-opt span { border-radius: 4px; background: #0A0908; }
.inp:focus { border-color: #C79A55; box-shadow: 0 0 0 4px rgba(201, 150, 72, .12); }
.chip input:checked + span, .pay-opt input:checked + span { border-color: #C79A55; background: rgba(201, 150, 72, .1); }
.chip input:checked + span::after, .pay-opt input:checked + span::after { border-color: #E2C07E; }
.pay-box { background: rgba(201, 150, 72, .07); border: 1px solid rgba(201, 150, 72, .35); border-radius: 4px; }
.proof { border-radius: 4px; background: #0A0908; }
.jf-privacy { color: #A79D90; }
.form-err { border-radius: 4px; }

/* summary: glowing card, same look as the featured package on the home page */
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.sum-card { position: relative; border: 0; border-radius: 6px; animation: none;
  background: radial-gradient(ellipse 90% 50% at 50% 0%, rgba(201, 150, 72, .2), transparent 70%), linear-gradient(180deg, #1B1610, #0E0B08);
  box-shadow: 0 0 0 1px rgba(201, 150, 72, .35), 0 30px 90px -30px rgba(201, 150, 72, .45), 0 40px 80px -40px #000; }
.sum-card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0 62%, #E9CB8E 78%, #FFF6E0 82%, #C0924A 86%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: sumSpin 5s linear infinite; }
@keyframes sumSpin { to { --spin: 360deg; } }
.sum-plans { background: #0A0908; border-color: rgba(184, 138, 67, .18); border-radius: 4px; }
.sp { border-radius: 3px; font-family: var(--f-body); }
.sp.is-on { background: var(--metal); color: #0B0A09; }
.sum-name { font-family: var(--f-disp); font-weight: 400; font-size: clamp(36px, 3.4vw, 46px); line-height: 1.1; background-image: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sum-price b { font-size: clamp(58px, 5.4vw, 72px); letter-spacing: .01em; background-image: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sum-price .was { font-size: 26px; color: var(--gray); text-decoration-color: #B88A43; text-decoration-thickness: 2px; }
.sum-total b { font-size: 34px; }
.sum-total b span { font-size: inherit; color: inherit; }
.sum-row b { font: 600 15px/1.4 var(--f-body); letter-spacing: 0; }
.sum-feat .i { color: #E2C07E; }

/* done panel */
.done .h2 { font-family: var(--f-disp); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1.15; }
.done .btn-primary { background: var(--metal); border-color: transparent; color: #0B0A09; }
@media (prefers-reduced-motion: reduce) { .sum-card::before { animation: none; } }
.sum-plans + .sum-plans { margin-top: -6px; }
.sp:disabled { opacity: .35; cursor: not-allowed; }

/* 2026-11-28: join page without a form (package → payment → WhatsApp receipt) */
.btn-wa { background: #25D366; border-color: #25D366; color: #08150D; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-wa:hover { box-shadow: 0 12px 34px -10px rgba(37, 211, 102, .6); }
.btn-wa .i { width: 22px; height: 22px; }
.st-n { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-inline-end: 10px; border-radius: 50%; border: 1px solid rgba(201, 150, 72, .5); color: #E2C07E; font-size: 20px; vertical-align: middle; }
.sum-step { display: flex; align-items: center; font: 600 15px/1.3 var(--f-body); color: var(--sand, #E2C07E); text-transform: none; letter-spacing: 0; }
.sum-step .st-n { width: 30px; height: 30px; font-size: 18px; }
.abroad-line { font-size: 14px; color: var(--gray); }
.fs-next { background: transparent; box-shadow: none; border-style: dashed; }
.fs-next .fs-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
/* step 1 (package) comes first on desktop too, in both languages */
@media (min-width: 961px) { .join-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .sum { order: -1; } }
.fs-head h2 { display: flex; align-items: center; gap: 12px; }
.fs-head h2 .st-n, .sum-step .st-n { margin: 0; flex: none; }
.sum-step { gap: 10px; }
