/* Sign-up (/Signup): 3-step wizard (plan, clinic, verify email) + order summary.
   Prefixed su- so it doesn't clash with the shared .plan cards. */

.su { position: relative; padding: 36px 0 80px; overflow-x: clip; }
.su-dots {
  position: absolute; inset: 0 0 auto 0; height: 420px; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, var(--line-2) 1px, transparent 0); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 10%, transparent 75%);
}
.su-wrap { position: relative; display: flex; flex-direction: column; gap: 28px; }
.su-grid { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.su-main { flex: 1.6 1 560px; min-width: 0; }
.su-side { flex: 1 1 320px; min-width: 0; position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }

.su-card { border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.su-card[hidden] { display: none; }
.su-card .eyebrow { margin: 0 0 12px; }
.su-h1 { font-size: 40px; line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; margin: 0 0 10px; color: var(--ink); text-wrap: balance; }
.su-h1:focus { outline: none; }
html[lang="ar"] .su-h1 { letter-spacing: 0; line-height: 1.3; }
.su-lead { font-size: 17px; line-height: 1.6; }
.su-lead b { color: var(--ink); overflow-wrap: anywhere; }
.su-sub { font-size: 16px; }
.su-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.su-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.su-link { font-weight: 700; font-size: 15px; }
.su-fine { margin: 0; font-size: 13px; line-height: 1.6; color: var(--slate-2); }
.su-back .arr { transform: scaleX(calc(var(--dir) * -1)); }
.su-back:hover .arr { transform: scaleX(calc(var(--dir) * -1)) translateX(3px); }

/* ---------- Progress ---------- */
.su-steps-nav { max-width: 520px; width: 100%; margin: 0 auto; }
.su-steps { display: flex; align-items: flex-start; list-style: none; margin: 0; padding: 0; }
.su-st { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; font-size: 13px; font-weight: 700; color: #8A95A6; text-align: center; }
.su-st .dot {
  width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: #8A95A6;
  position: relative; z-index: 1; transition: all .35s;
}
.su-st .dot svg { display: none; }
.su-st.cur { color: var(--ink); }
.su-st.cur .dot { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 6px rgba(224, 20, 44, .12); }
.su-st.done { color: var(--navy); }
.su-st.done .dot { background: var(--red); border-color: var(--red); color: #fff; }
.su-st.done .dot .n { display: none; }
.su-st.done .dot svg { display: block; }
.su-st .bar { position: absolute; top: 17px; inset-inline-start: calc(50% + 22px); inset-inline-end: calc(-50% + 22px); height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.su-st .bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .5s ease; }
.su-st.done .bar i { width: 100%; }
.su-st:last-child .bar { display: none; }

/* ---------- Step 1: plans ---------- */
.su-save { font-size: 11px; font-weight: 800; background: #DDF3E8; color: #0B6B43; padding: 3px 8px; border-radius: 999px; }
.su-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; padding-top: 6px; }
.su-plan {
  position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: 20px; padding: 20px;
  display: flex; flex-direction: column; gap: 10px; cursor: pointer;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.su-plan:hover { border-color: #AEB8C6; transform: translateY(-2px); }
.su-plan:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 4px rgba(224, 20, 44, .1), 0 24px 40px -30px rgba(224, 20, 44, .6); }
.su-plan:has(input:focus-visible) { outline: 3px solid #F2A33A; outline-offset: 2px; }
.su-plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 17px; }
.su-plan .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C3CBD6; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: border-color .2s; }
.su-plan .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.su-plan:has(input:checked) .radio { border-color: var(--red); }
.su-plan:has(input:checked) .radio::after { transform: scale(1); }
.su-pop { position: absolute; top: -11px; inset-inline-end: 16px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--red); color: #fff; padding: 4px 10px; border-radius: 999px; }
html[lang="ar"] .su-pop { letter-spacing: 0; }
.su-price { display: flex; align-items: baseline; gap: 6px; }
.su-price > b { font-size: 32px; letter-spacing: -0.03em; }
.su-price .per { font-size: 14px; color: var(--slate-2); }
.su-note { font-size: 13px; color: var(--slate-3); margin-top: -6px; }
.su-plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--slate); }
.su-plan li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.su-plan li svg { flex-shrink: 0; margin-top: 2px; color: var(--red); }

/* ---------- Step 2: form ---------- */
.su-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.su-card .lbl { gap: 7px; }
.su-alert { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--red-tint); color: var(--red-dark); font-size: 14px; font-weight: 600; line-height: 1.5; }
.su-phone { display: flex; gap: 8px; }
.su-dial { display: flex; align-items: center; justify-content: center; min-width: 76px; min-height: 50px; padding: 0 10px; border-radius: 12px; background: var(--mist); border: 1px solid var(--line-2); font-weight: 700; color: var(--navy); flex-shrink: 0; }
.su-phone .inp { min-width: 0; }
.su-pw { position: relative; display: block; }
.su-pw .inp { padding-inline-end: 76px; }
.su-pw .eye {
  position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); min-height: 38px; padding: 0 10px;
  border: 0; background: none; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 700; color: var(--navy); cursor: pointer;
}
.su-pw .eye:hover { background: var(--mist); }
.su-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.su-meter i { height: 5px; border-radius: 4px; background: var(--line); transition: background .3s; }
.su-rules { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.su-strength { font-size: 13px; font-weight: 700; }
.su-strength:empty { display: none; }
.su-rule { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: #8A95A6; transition: color .2s; }
.su-rule svg { opacity: .35; transition: opacity .2s; }
.su-rule.ok { color: #0B6B43; }
.su-rule.ok svg { opacity: 1; }
.su-paym { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.su-paym legend { padding: 0; margin-bottom: 10px; }
.su-paym-opts { display: flex; flex-direction: column; gap: 10px; }
.su-po {
  position: relative; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px;
  background: #fff; border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.su-po:hover { border-color: #AEB8C6; }
.su-po:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 4px rgba(224, 20, 44, .1); }
.su-po:has(input:focus-visible) { outline: 3px solid #F2A33A; outline-offset: 2px; }
.su-po .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C3CBD6; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.su-po .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.su-po:has(input:checked) .radio { border-color: var(--red); }
.su-po:has(input:checked) .radio::after { transform: scale(1); }
.su-po .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--red-tint); color: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.su-po-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; line-height: 1.5; color: var(--slate-2); font-weight: 500; }
.su-po-t b { font-size: 15px; color: var(--ink); }
.su-po-t [dir="ltr"] { font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.su-po.off { cursor: not-allowed; background: var(--ground); }
.su-po.off:hover { border-color: var(--line); }
.su-po.off .radio, .su-po.off .ic, .su-po.off .su-po-t { opacity: .55; }
.su-soon { margin-inline-start: auto; flex-shrink: 0; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--mist); color: var(--navy); padding: 4px 10px; border-radius: 999px; }
html[lang="ar"] .su-soon { letter-spacing: 0; }
.su-main[data-pay="bank"] [data-pay-paypal],
.su-main[data-pay="paypal"] [data-pay-bank] { display: none; }

.su-captcha { display: flex; flex-direction: column; gap: 7px; }
.su-captcha [data-recaptcha] { min-height: 78px; }

/* Trial vs paid copy (data-kind on the form) */
.su-main[data-kind="trial"] [data-paid-only],
.su-main[data-kind="paid"] [data-trial-only] { display: none !important; }

/* ---------- Step 3: check your email ---------- */
.su-mail { position: relative; width: 84px; height: 84px; border-radius: 24px; background: var(--red-tint); color: var(--red); display: flex; align-items: center; justify-content: center; }
.su-mail::after { content: ""; position: absolute; inset: -8px; border-radius: 30px; border: 2px solid rgba(224, 20, 44, .3); animation: su-ring 2.2s ease-out infinite; }
@keyframes su-ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.su-next-wrap { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; }
.su-next { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.su-next li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.su-next .num { width: 32px; height: 32px; border-radius: 10px; background: var(--red-tint); color: var(--red); display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.su-next li > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.su-next b { font-size: 15px; }
.su-next li > span:last-child > span { font-size: 13px; line-height: 1.45; color: var(--slate-2); }

/* ---------- /VerifyEmail (landing page of the verification link) ---------- */
.su-verify { width: 100%; max-width: 680px; margin: 24px auto 0; }
.su-win {
  width: 96px; height: 96px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 40px -14px rgba(224, 20, 44, .7); animation: su-winpop .6s cubic-bezier(.3, 1.6, .5, 1) both;
}
.su-win path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: su-tick .5s .35s ease forwards; }
@keyframes su-winpop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes su-tick { to { stroke-dashoffset: 0; } }

/* ---------- Order summary ---------- */
.su-sum { border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.su-sum-title { font-size: 18px; }
.su-change { background: none; border: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--red-hover); cursor: pointer; min-height: 36px; padding: 0 4px; }
.su-change:hover { color: var(--red-deep); }
.su-sum-plan { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--ground); }
.su-sum-plan img { width: 40px; height: 40px; flex-shrink: 0; }
.su-sum-plan > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.su-sum-plan b { font-size: 16px; }
.su-sum-plan > span > span { font-size: 13px; color: var(--slate-2); }
.su-sum-rows { display: flex; flex-direction: column; gap: 10px; }
.su-sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--slate); }
.su-sum-row[hidden] { display: none; }
.su-sum-row b { color: var(--ink); }
.su-sum-row b.ok { color: #0B6B43; }
.su-coupon { display: flex; gap: 8px; }
.su-coupon[hidden] { display: none; }
.su-coupon .inp { min-height: 44px; text-transform: uppercase; min-width: 0; }
.su-coupon .inp::placeholder { text-transform: none; }
.su-coupon .btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
.su-coupon-ok { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.5; font-weight: 700; color: #0B6B43; background: #DDF3E8; border-radius: 10px; padding: 8px 12px; }
.su-coupon-ok[hidden] { display: none; }
.su-coupon-ok svg { flex-shrink: 0; margin-top: 2px; }
.su-coupon-ok button { margin-inline-start: auto; background: none; border: 0; font: inherit; font-size: 13px; font-weight: 700; color: #0B6B43; text-decoration: underline; cursor: pointer; padding: 0; }
.su-due { border-top: 1px dashed var(--line-2); padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 16px; }
.su-due .amt { font-size: 30px; letter-spacing: -0.03em; color: var(--red); }

.su-trust { border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; position: relative; }
.su-ecg { position: absolute; inset-inline: 0; top: 10px; width: 100%; height: 40px; opacity: .5; }
.su-trust > b { font-size: 15px; position: relative; margin-top: 30px; }
.su-trust-item { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--slate); }
.su-trust-item svg { color: var(--red); flex-shrink: 0; }
.su-trust-item a { font-weight: 700; white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .su-h1 { font-size: 32px; }
  .su-st .t { font-size: 12px; }
  .su-side { position: static; }
}
@media (max-width: 520px) {
  .su { padding-top: 24px; }
  .su-card { padding: 26px 20px; }
  .su-sum { padding: 22px 18px; }
  .su-foot .btn { flex: 1 1 auto; }
  .su-dial { min-width: 64px; }
  .su-po { gap: 10px; padding: 12px; flex-wrap: wrap; }
  .su-po .ic { display: none; }
  .su-po-t { flex: 1 1 0; }
}

@media (prefers-reduced-motion: reduce) {
  .su-mail::after { animation: none; display: none; }
  .su-win { animation: none; }
  .su-win path { animation: none; stroke-dashoffset: 0; }
  .su-plan, .su-plan:hover { transform: none; }
}
