/* =========================================================
   دُغري / DOGHRI — rider and store applications
   Loaded only on /deliveryman/apply and the /vendor/apply steps.
   Everything sits under .dg-reg; tokens come from landing.css.
   ========================================================= */

.dg-reg {
  --pad: clamp(20px, 3.4vw, 44px);
  --field-h: 56px;
  --line-2: rgba(27, 27, 27, .16);
  --ok: #0E7A47;
  --bad: #B4232A;
  position: relative;
  isolation: isolate;
  padding-block: clamp(24px, 4vw, 56px) clamp(56px, 7vw, 104px);
  overflow-x: clip;
}
.dg-reg::before { /* the hero sun, peeking behind the intro panel */
  content: ""; position: absolute; z-index: -1; width: min(620px, 80vw); aspect-ratio: 1; border-radius: 50%;
  background: var(--dg-yellow); inset-inline-start: -14vw; top: -220px; opacity: .9;
}
.dg-reg::after { /* faint city grid on the far side */
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto 40%; height: 520px; pointer-events: none;
  background-image: linear-gradient(var(--dg-line) 1px, transparent 1px), linear-gradient(90deg, var(--dg-line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse at 60% 0, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 60% 0, #000 10%, transparent 70%);
}
[dir="rtl"] .dg-reg::after { inset: 0 40% auto 0; }

.dg-reg__grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.dg-reg__grid > * { min-width: 0; }
.dg-reg--single .dg-reg__grid { grid-template-columns: minmax(0, 1fr); max-width: 980px; }

/* ---------- intro panel ---------- */
.dg-intro {
  position: relative; overflow: hidden; border-radius: var(--dg-r-lg); padding: var(--pad); padding-bottom: 0;
  display: flex; flex-direction: column;
}
.dg-intro--dark { background: var(--dg-ink); color: var(--dg-chalk); box-shadow: 6px 6px 0 var(--dg-yellow); }
.dg-intro--yellow { background: var(--dg-yellow); color: var(--dg-ink); border: 2px solid var(--dg-ink); box-shadow: var(--dg-hard); }

.dg-reg .dg-intro__kicker { margin-bottom: 14px; }
.dg-intro--dark .dg-intro__kicker { color: var(--dg-yellow); }
.dg-intro--dark .dg-intro__kicker::before { background: repeating-linear-gradient(90deg, var(--dg-yellow) 0 10px, transparent 10px 15px); }

.dg-reg .dg-intro__title { font-family: var(--dg-font-head); font-weight: 700; font-size: clamp(30px, 3vw, 42px); line-height: 1.35; letter-spacing: 0; text-wrap: balance; }
[lang="en"] .dg-reg .dg-intro__title { font-size: clamp(28px, 2.6vw, 38px); }
.dg-intro--dark .dg-hl { color: var(--dg-yellow); }
.dg-intro--dark .dg-hl::before { height: .1em; bottom: -.04em; transform: none; border-radius: 0; background: repeating-linear-gradient(90deg, var(--dg-yellow) 0 .55em, transparent .55em .85em); }
.dg-intro--yellow .dg-hl::before { background: var(--dg-chalk); }
.dg-reg .dg-intro__lead { margin-top: 14px; font-size: 16.5px; }
.dg-intro--dark .dg-intro__lead { color: var(--dg-muted-dark); }
.dg-intro--yellow .dg-intro__lead { color: #4A3E1E; }

.dg-intro__block { margin-top: 24px; padding-top: 20px; border-top: 2px dashed var(--dg-line-dark); }
.dg-intro--yellow .dg-intro__block { border-color: rgba(27,27,27,.22); }
.dg-reg .dg-intro__h { font-family: var(--dg-font-body); font-weight: 800; font-size: 16px; line-height: 1.4; margin-bottom: 12px; }
.dg-intro--dark .dg-intro__h { color: var(--dg-yellow); }
.dg-reg .dg-intro__p { font-size: 15px; margin-bottom: 12px; }
.dg-intro--dark .dg-intro__p { color: #E6DFCD; }

.dg-reg .dg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dg-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 12px; border-radius: 999px; font-weight: 700; font-size: 14.4px; line-height: 1.3; border: 1.5px solid var(--dg-line-dark); }
[dir="rtl"] .dg-chips li { padding: 7px 12px 7px 14px; }
.dg-chips .dg-ico { width: 20px; height: 20px; }
.dg-intro--dark .dg-chips .dg-ico { color: var(--dg-yellow); }
.dg-intro--dark .dg-chips li.is-hot { background: var(--dg-yellow); color: var(--dg-ink); border-color: var(--dg-yellow); }
.dg-intro--dark .dg-chips li.is-hot .dg-ico { color: var(--dg-ink); }
.dg-intro--yellow .dg-chips li { border-color: rgba(27,27,27,.28); background: rgba(255,248,231,.5); }

.dg-reg .dg-intro__list { display: grid; gap: 10px; }
.dg-intro__list li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15.5px; line-height: 1.45; }
.dg-intro__list .dg-ico { width: 38px; height: 38px; padding: 8px; border-radius: 12px; }
.dg-intro--dark .dg-intro__list .dg-ico { background: var(--dg-road); color: var(--dg-yellow); }
.dg-intro--yellow .dg-intro__list .dg-ico { background: var(--dg-ink); color: var(--dg-yellow); }

.dg-reg .dg-checklist { display: grid; gap: 10px; counter-reset: need; }
.dg-checklist li { counter-increment: need; display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; line-height: 1.5; }
.dg-checklist li::before {
  content: counter(need); flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--dg-font-head); font-size: 12.5px; line-height: 1; border: 2px solid currentColor;
}
.dg-intro--dark .dg-checklist li::before { color: var(--dg-yellow); }
.dg-checklist b { font-weight: 800; }
.dg-intro--dark .dg-checklist b { color: var(--dg-yellow); }

.dg-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 16px 18px; border-radius: var(--dg-r); }
.dg-note b { display: block; font-weight: 800; font-size: 15.5px; margin-bottom: 2px; }
.dg-reg .dg-note p { font-size: 14.6px; line-height: 1.6; }
.dg-note__icon { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--dg-green); color: var(--dg-white); }
.dg-note__icon .dg-ico { width: 24px; height: 24px; }
.dg-intro--dark .dg-note { background: var(--dg-road); }
.dg-intro--dark .dg-note p { color: #E6DFCD; }
.dg-intro--yellow .dg-note { background: var(--dg-ink); color: var(--dg-chalk); }
.dg-intro--yellow .dg-note p { color: #E6DFCD; }

.dg-intro__jump { display: none; }

/* road strip at the foot of the panel */
.dg-intro__road { position: relative; height: 64px; margin: 28px calc(var(--pad) * -1) 0; background: var(--dg-road); overflow: hidden; flex: none; }
.dg-intro--yellow .dg-intro__road { background: var(--dg-ink); }
.dg-intro__lane {
  /* one tile wider at each end, so a transform carries the marks instead of a repaint */
  position: absolute; inset-inline: -52px; top: 50%; height: 5px; translate: 0 -50%;
  background: repeating-linear-gradient(90deg, var(--dg-yellow) 0 30px, transparent 30px 52px); background-size: 52px 5px;
  animation: dg-reg-lane 2.2s linear infinite;
}
@keyframes dg-reg-lane { to { transform: translateX(calc(var(--dg-dir) * -52px)); } }
.dg-intro__bike { position: absolute; top: 6px; inset-inline-start: 22%; width: 64px; }
.dg-intro__bike::before { content: ""; position: absolute; inset: 6px 4px; border-radius: 12px; background: var(--dg-road); z-index: -1; }
.dg-intro__bike .dg-bike { width: 64px; filter: none; }
.dg-intro__shop { position: absolute; bottom: 8px; inset-inline-end: 26px; width: 58px; height: auto; }
.dg-intro__target {
  position: absolute; top: 50%; inset-inline-end: 26px; translate: 0 -50%; width: 34px; height: 34px; border-radius: 50%;
  border: 5px solid var(--dg-yellow); background: radial-gradient(circle, var(--dg-yellow) 0 5px, transparent 6px);
}

/* ---------- form card ---------- */
.dg-card {
  position: relative; background: var(--dg-paper); border: 2px solid var(--dg-ink); border-radius: var(--dg-r-lg);
  box-shadow: var(--dg-hard); padding: var(--pad); overflow: clip;
}
.dg-card__lane { position: absolute; bottom: 0; inset-inline: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--dg-yellow) 0 30px, transparent 30px 50px); }

.dg-reg .dg-form__eyebrow { font-weight: 800; font-size: 14.4px; color: var(--dg-muted); }
.dg-reg .dg-form__title { margin-top: 4px; font-family: var(--dg-font-head); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.4; }

/* step rail */
.dg-reg .dg-rail { display: flex; margin: 22px calc(var(--pad) * -1) 0; padding: 14px var(--pad) 16px; background: var(--dg-paper); border-block: 2px solid var(--dg-ink); }
.dg-rail li { position: relative; flex: 1 1 0; min-width: 0; }
.dg-rail li + li::before {
  content: ""; position: absolute; top: 16px; height: 4px; z-index: 0;
  inset-inline-start: calc(-50% + 24px); width: calc(100% - 48px);
  background: repeating-linear-gradient(90deg, var(--line-2) 0 10px, transparent 10px 16px);
}
.dg-rail li.is-done + li::before, .dg-rail li.is-current::before, .dg-rail li.active + li.active::before { background: repeating-linear-gradient(90deg, var(--dg-ink) 0 10px, transparent 10px 16px); }
.dg-rail a, .dg-rail__item { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--dg-muted); text-decoration: none; }
.dg-rail__no {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--dg-paper); border: 2px solid var(--line-2);
  font-family: var(--dg-font-head); font-weight: 700; font-size: 14px; line-height: 1; color: var(--dg-muted); transition: background .25s, border-color .25s, color .25s, transform .25s var(--dg-ease);
}
.dg-rail__no .dg-ico { width: 18px; height: 18px; stroke-width: 3; }
.dg-rail__txt { font-weight: 700; font-size: 13.6px; line-height: 1.35; }
.dg-rail a:hover .dg-rail__no { border-color: var(--dg-ink); }
.dg-rail li.is-done .dg-rail__no, .dg-rail li.active .dg-rail__no { background: var(--dg-ink); border-color: var(--dg-ink); color: var(--dg-yellow); }
.dg-rail li.is-current .dg-rail__no, .dg-rail li.active.is-current .dg-rail__no { background: var(--dg-yellow); border-color: var(--dg-ink); color: var(--dg-ink); transform: scale(1.08); }
.dg-rail li.is-done .dg-rail__txt, .dg-rail li.is-current .dg-rail__txt, .dg-rail li.active .dg-rail__txt { color: var(--dg-ink); }
.dg-rail li.is-failed .dg-rail__no { background: var(--dg-red); border-color: var(--dg-red); color: var(--dg-white); }
@media (min-width: 861px) {
  .dg-reg .dg-rail--sticky { position: sticky; top: 76px; z-index: 6; }
}

/* error summary */
.dg-alert {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 16px 18px; border-radius: var(--dg-r);
  background: #FDEDED; border: 2px solid var(--dg-red); color: var(--dg-ink); outline: 0;
}
.dg-alert[hidden] { display: none; }
.dg-alert > .dg-ico { color: var(--bad); width: 26px; height: 26px; margin-top: 2px; }
.dg-alert b { font-weight: 800; font-size: 15.5px; }
.dg-reg .dg-alert ul { margin-top: 4px; display: grid; gap: 2px; }
.dg-alert li { font-size: 14.6px; color: var(--bad); line-height: 1.5; }
.dg-alert li a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* sections */
.dg-fs { padding-block: 30px 6px; scroll-margin-top: 170px; }
.dg-fs + .dg-fs { border-top: 2px dashed var(--dg-line); margin-top: 26px; }
.dg-fs__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.dg-fs__no {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--dg-yellow);
  font-family: var(--dg-font-head); font-weight: 700; font-size: 15px; line-height: 1; transition: background .3s, color .3s;
}
.dg-fs.is-complete .dg-fs__no { background: var(--dg-ink); color: var(--dg-yellow); }
.dg-reg .dg-fs__title { font-family: var(--dg-font-head); font-weight: 700; font-size: 20px; line-height: 1.45; }
.dg-reg .dg-fs__hint { margin-top: 2px; color: var(--dg-muted); font-size: 15px; line-height: 1.6; }

.dg-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
.dg-field { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.dg-field--full { grid-column: 1 / -1; }
.dg-reg .dg-label, .dg-reg legend.dg-label {
  display: block; float: none; width: auto; margin: 0 0 0; padding: 0; font-family: var(--dg-font-body); font-weight: 800; font-size: 15.2px; line-height: 1.4; color: var(--dg-ink);
}
.dg-reg fieldset > legend.dg-label { margin-bottom: 8px; }
.dg-req { font-style: normal; color: var(--dg-red); margin-inline-start: 3px; }
.dg-reg .dg-hint { font-size: 13.6px; color: var(--dg-muted); line-height: 1.55; }
.dg-reg .dg-err { display: none; font-size: 14px; font-weight: 700; color: var(--bad); line-height: 1.5; }
.dg-field.is-invalid > .dg-err:not(:empty) { display: flex; gap: 6px; align-items: flex-start; }
.dg-field.is-invalid > .dg-err:not(:empty)::before {
  content: "!"; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center;
  background: var(--dg-red); color: var(--dg-white); font-size: 12px; line-height: 1;
}

/* inputs */
.dg-reg .dg-input {
  display: block; width: 100%; min-height: var(--field-h); padding: 0 18px; margin: 0;
  border: 2px solid var(--line-2); border-radius: 16px; background: var(--dg-white); color: var(--dg-ink);
  font-family: var(--dg-font-body); font-size: 16.5px; font-weight: 500; line-height: 1.4; box-shadow: none; outline: 0;
  transition: border-color .2s, box-shadow .25s var(--dg-ease), background .2s;
  -webkit-appearance: none; appearance: none;
}
.dg-reg textarea.dg-input { min-height: 104px; padding: 14px 18px; resize: vertical; }
.dg-reg .dg-input::placeholder { color: #9A937F; opacity: 1; }
.dg-reg .dg-input:hover { border-color: rgba(27,27,27,.32); }
.dg-reg .dg-input:focus { border-color: var(--dg-ink); box-shadow: 4px 4px 0 var(--dg-yellow); }
.dg-reg .dg-input[readonly] { background: var(--dg-sand); color: var(--dg-muted); cursor: default; box-shadow: none; }
.dg-reg .is-invalid .dg-input, .dg-reg .dg-input.is-invalid { border-color: var(--dg-red); background: #FFF7F7; }
.dg-reg .is-invalid .dg-input:focus { box-shadow: 4px 4px 0 rgba(229, 72, 77, .35); }
.dg-reg input[type="number"].dg-input { -moz-appearance: textfield; }
.dg-reg input[type="number"].dg-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.dg-select { position: relative; }
.dg-select::after {
  content: ""; position: absolute; top: 50%; inset-inline-end: 18px; width: 10px; height: 10px; margin-top: -7px; pointer-events: none;
  border-inline-end: 2.5px solid var(--dg-ink); border-bottom: 2.5px solid var(--dg-ink); transform: rotate(45deg);
}
.dg-select .dg-input { padding-inline-end: 46px; cursor: pointer; }

/* phone (intl-tel-input) */
.dg-reg .iti { display: block; width: 100%; direction: ltr; }
.dg-reg .iti .dg-input { padding-left: 92px !important; text-align: left; }
.dg-reg .iti__flag-container { padding: 4px; }
.dg-reg .iti__selected-flag { border-radius: 12px; padding: 0 10px 0 12px; background: var(--dg-chalk); }
.dg-reg .iti--separate-dial-code .iti__selected-flag, .dg-reg .iti__selected-flag:hover { background: var(--dg-sand); }
.dg-reg .iti__country-list { border-radius: 14px; border: 2px solid var(--dg-ink); box-shadow: var(--dg-shadow); font-size: 15px; direction: ltr; text-align: left; }

/* vehicle tiles */
.dg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.dg-tile { position: relative; margin: 0; cursor: pointer; }
.dg-tile input, .dg-seg__opt input, .dg-pill-opt input, .dg-plan input, .dg-pkg input, .dg-pay input, .dg-check input {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.dg-tile__box {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 112px; padding: 16px 10px;
  border: 2px solid var(--line-2); border-radius: 20px; background: var(--dg-white); text-align: center;
  transition: border-color .2s, background .2s, transform .25s var(--dg-ease), box-shadow .25s var(--dg-ease);
}
.dg-tile__box .dg-ico { width: 36px; height: 36px; stroke-width: 1.7; }
.dg-tile__box b { font-weight: 800; font-size: 15px; line-height: 1.3; }
.dg-tile:hover .dg-tile__box { border-color: var(--dg-ink); }
.dg-tile input:checked + .dg-tile__box { background: var(--dg-yellow); border-color: var(--dg-ink); box-shadow: 4px 4px 0 var(--dg-ink); transform: translate(-2px, -2px); }
.dg-tile input:checked + .dg-tile__box::after {
  content: ""; position: absolute; top: 10px; inset-inline-end: 10px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--dg-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC233' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.dg-tile input:focus-visible + .dg-tile__box, .dg-seg__opt input:focus-visible + span, .dg-pill-opt input:focus-visible + span,
.dg-plan input:focus-visible + .dg-plan__box, .dg-pkg input:focus-visible + .dg-pkg__box, .dg-pay input:focus-visible + .dg-pay__box, .dg-check input:focus-visible + .dg-check__box {
  outline: 3px solid var(--dg-ink); outline-offset: 3px;
}
.dg-field.is-invalid .dg-tile__box, .dg-field.is-invalid .dg-seg__opt > span { border-color: var(--dg-red); }

/* segmented radios */
.dg-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dg-seg__opt { margin: 0; cursor: pointer; }
.dg-seg__opt > span {
  position: relative; display: grid; align-content: center; gap: 2px; min-height: var(--field-h); height: 100%; padding: 10px 16px; padding-inline-start: 46px;
  border: 2px solid var(--line-2); border-radius: 16px; background: var(--dg-white); transition: border-color .2s, background .2s;
}
.dg-seg__opt > span::before {
  content: ""; position: absolute; inset-inline-start: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%;
  border: 2px solid rgba(27,27,27,.4); background: var(--dg-white); transition: border-color .2s, box-shadow .2s;
}
.dg-seg__opt b { font-weight: 800; font-size: 15.2px; line-height: 1.35; }
.dg-seg__opt small { font-size: 13px; color: var(--dg-muted); line-height: 1.4; }
.dg-seg__opt:hover > span { border-color: var(--dg-ink); }
.dg-seg__opt input:checked + span { border-color: var(--dg-ink); background: var(--dg-yellow-soft); }
.dg-seg__opt input:checked + span::before { border-color: var(--dg-ink); background: var(--dg-yellow); box-shadow: inset 0 0 0 4px var(--dg-ink); }

/* pill radios */
.dg-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.dg-pill-opt { margin: 0; cursor: pointer; }
.dg-pill-opt span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line-2); background: var(--dg-white); font-weight: 700; font-size: 15px; transition: background .2s, color .2s, border-color .2s; }
.dg-pill-opt:hover span { border-color: var(--dg-ink); }
.dg-pill-opt input:checked + span { background: var(--dg-ink); border-color: var(--dg-ink); color: var(--dg-yellow); }

/* checkbox */
.dg-check { display: flex; align-items: flex-start; gap: 12px; margin: 0; cursor: pointer; font-weight: 600; font-size: 15.5px; line-height: 1.55; }
.dg-check__box { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--dg-ink); background: var(--dg-white); display: grid; place-items: center; transition: background .2s; }
.dg-check__box .dg-ico { width: 18px; height: 18px; stroke-width: 3.2; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s var(--dg-ease); }
.dg-check input:checked + .dg-check__box { background: var(--dg-yellow); }
.dg-check input:checked + .dg-check__box .dg-ico { opacity: 1; transform: none; }
.dg-check a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--dg-yellow-deep); color: var(--dg-ink); }
.dg-field.is-invalid .dg-check__box { border-color: var(--dg-red); background: #FFF7F7; }

/* uploads */
.dg-upload { position: relative; }
.dg-upload__input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.dg-upload__face {
  position: relative; display: grid; place-items: center; min-height: 168px; overflow: hidden; border-radius: 20px;
  border: 2px dashed rgba(27,27,27,.3); background: var(--dg-chalk); transition: border-color .2s, background .2s;
}
.dg-upload:hover .dg-upload__face, .dg-upload.is-drag .dg-upload__face { border-color: var(--dg-ink); background: var(--dg-yellow-soft); }
.dg-upload__input:focus-visible + .dg-upload__face { outline: 3px solid var(--dg-ink); outline-offset: 3px; }
.dg-upload__ph { display: grid; justify-items: center; gap: 4px; padding: 18px; text-align: center; }
.dg-upload__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--dg-yellow); margin-bottom: 6px; transition: transform .3s var(--dg-ease); }
.dg-upload:hover .dg-upload__icon { transform: translateY(-3px) rotate(calc(var(--dg-dir) * 4deg)); }
.dg-upload__icon .dg-ico { width: 28px; height: 28px; }
.dg-upload__ph b { font-weight: 800; font-size: 15.2px; line-height: 1.4; }
.dg-upload__ph small { font-size: 13px; color: var(--dg-muted); }
.dg-upload__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dg-upload__preview[hidden] { display: none; }
.dg-upload__file { display: flex; align-items: center; gap: 10px; padding: 16px; font-weight: 700; font-size: 14.5px; word-break: break-all; }
.dg-upload__file[hidden] { display: none; }
.dg-upload__file::before { content: ""; flex: none; width: 40px; height: 48px; border-radius: 8px; background: var(--dg-white); border: 2px solid var(--dg-ink); box-shadow: inset 0 -12px 0 var(--dg-yellow); }
.dg-upload__change {
  position: absolute; bottom: 10px; inset-inline-start: 10px; display: none; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--dg-ink); color: var(--dg-chalk); font-weight: 700; font-size: 12.8px; line-height: 1.2;
}
.dg-upload__change .dg-ico { width: 15px; height: 15px; }
.dg-upload.has-file .dg-upload__face { border-style: solid; border-color: var(--dg-ink); }
.dg-upload.has-file .dg-upload__change { display: inline-flex; }
.dg-upload.has-file.has-preview .dg-upload__ph, .dg-upload.has-file.is-doc .dg-upload__ph { display: none; }
.dg-upload--multi.has-file .dg-upload__ph { display: grid; }
.dg-upload--multi.has-file .dg-upload__change { display: none; }
.dg-upload--round .dg-upload__face { width: 168px; height: 168px; min-height: 0; border-radius: 50%; }
.dg-upload--round .dg-upload__change { inset-inline-start: 50%; translate: calc(var(--dg-dir) * -50%) 0; bottom: 14px; }
[dir="rtl"] .dg-upload--round .dg-upload__change { translate: 50% 0; }
.dg-upload--round .dg-upload__ph small { display: none; }
.dg-upload--cover .dg-upload__face { aspect-ratio: 2 / 1; min-height: 0; }
.dg-upload--logo .dg-upload__face { width: 168px; height: 168px; min-height: 0; border-radius: 28px; }
.dg-field.is-invalid .dg-upload__face { border-color: var(--dg-red); background: #FFF7F7; }
.dg-reg .dg-upload__thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.dg-upload__thumbs:empty { display: none; }
.dg-upload__thumbs li { position: relative; width: 78px; height: 78px; border-radius: 14px; overflow: hidden; border: 2px solid var(--dg-ink); background: var(--dg-white); }
.dg-upload__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.dg-upload__thumbs span { position: absolute; bottom: 4px; inset-inline-start: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--dg-ink); color: var(--dg-yellow); font-size: 11.5px; font-weight: 800; display: grid; place-items: center; line-height: 1; }

/* password */
.dg-pass { position: relative; direction: ltr; }
.dg-reg .dg-pass .dg-input { padding-right: 60px; }
.dg-pass__toggle {
  position: absolute; top: 50%; right: 8px; translate: 0 -50%; width: 44px; height: 44px; border: 0; border-radius: 12px; cursor: pointer;
  display: grid; place-items: center; background: transparent; color: var(--dg-ink); transition: background .2s;
}
.dg-pass__toggle:hover { background: var(--dg-sand); }
.dg-pass__toggle:focus-visible { outline: 3px solid var(--dg-ink); outline-offset: 1px; }
.dg-pass__hide { display: none; }
.dg-pass__toggle[aria-pressed="true"] .dg-pass__show { display: none; }
.dg-pass__toggle[aria-pressed="true"] .dg-pass__hide { display: block; }
.dg-meter { display: flex; align-items: center; gap: 6px; }
.dg-meter i { flex: 1; height: 6px; border-radius: 6px; background: var(--dg-sand); transition: background .3s; }
.dg-meter span { flex: none; min-width: 64px; font-size: 13px; font-weight: 800; text-align: end; color: var(--dg-muted); }
.dg-meter[data-score="1"] i:nth-child(-n+1), .dg-meter[data-score="2"] i:nth-child(-n+2) { background: var(--dg-red); }
.dg-meter[data-score="3"] i:nth-child(-n+3), .dg-meter[data-score="4"] i:nth-child(-n+4) { background: var(--dg-yellow-deep); }
.dg-meter[data-score="5"] i { background: var(--dg-green); }
.dg-meter[data-score="1"] span, .dg-meter[data-score="2"] span { color: var(--bad); }
.dg-meter[data-score="5"] span { color: var(--ok); }
.dg-reg .dg-rules { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.dg-rules li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--dg-chalk); border: 1px solid var(--dg-line); font-size: 13px; font-weight: 600; color: var(--dg-muted); line-height: 1.4; transition: background .2s, color .2s; }
.dg-rules li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; opacity: .7; }
.dg-rules li.is-ok { background: rgba(25,179,107,.1); border-color: rgba(25,179,107,.35); color: var(--ok); }
.dg-rules li.is-ok::before { opacity: 1; border-color: var(--dg-green); background: var(--dg-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.dg-match { font-size: 13.6px; font-weight: 700; }
.dg-match[hidden] { display: none; }
.dg-match.is-ok { color: var(--ok); }
.dg-match.is-bad { color: var(--bad); }

/* captcha */
.dg-captcha { display: flex; gap: 12px; align-items: stretch; }
.dg-captcha .dg-input { flex: 1; min-width: 0; letter-spacing: .12em; }
.dg-captcha__img { flex: none; width: 160px; height: var(--field-h); object-fit: cover; border-radius: 16px; border: 2px solid var(--line-2); background: var(--dg-white); }

/* foot + submit */
.dg-form__foot { margin-top: 30px; padding-top: 24px; border-top: 2px dashed var(--dg-line); display: grid; gap: 18px; }
.dg-form__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; padding-bottom: 14px; }
.dg-reg .dg-form__note { display: flex; gap: 8px; align-items: flex-start; color: var(--dg-muted); font-size: 14.4px; line-height: 1.55; max-width: 44ch; }
.dg-form__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-inline-start: auto; }
.dg-reg .dg-btn--lg { min-height: 60px; padding-inline: 30px; border-radius: 18px; font-size: 16.5px; }
.dg-reg .dg-btn--yellow { box-shadow: inset 0 0 0 2px var(--dg-ink); }
.dg-reg .dg-btn--yellow:hover { box-shadow: inset 0 0 0 2px var(--dg-ink), 4px 4px 0 var(--dg-ink); color: var(--dg-ink); }
.dg-reg .dg-btn--line { color: var(--dg-ink); }
.dg-reg .dg-btn--line:hover { color: var(--dg-ink); }
.dg-reg .dg-btn:focus-visible { outline: 3px solid var(--dg-ink); outline-offset: 3px; }
.dg-reg .dg-btn[aria-busy="true"] { pointer-events: none; opacity: .75; }
.dg-reg .dg-btn[aria-busy="true"] .dg-ico { animation: dg-reg-nudge .7s ease-in-out infinite alternate; }
@keyframes dg-reg-nudge { to { translate: calc(var(--dg-dir) * 6px) 0; } }

/* ---------- done / thank-you ---------- */
.dg-done { text-align: center; padding-block: clamp(36px, 5vw, 64px) clamp(44px, 6vw, 72px); }
.dg-done__badge { width: 88px; height: 88px; margin-inline: auto; border-radius: 50%; display: grid; place-items: center; background: var(--dg-green); color: var(--dg-white); box-shadow: 0 0 0 10px rgba(25,179,107,.15); }
.dg-done__badge .dg-ico { width: 44px; height: 44px; stroke-width: 3; }
.dg-done--fail .dg-done__badge { background: var(--dg-red); box-shadow: 0 0 0 10px rgba(229,72,77,.15); }
.dg-reg .dg-done__title { margin-top: 26px; font-family: var(--dg-font-head); font-weight: 700; font-size: clamp(26px, 3vw, 38px); line-height: 1.35; }
.dg-reg .dg-done__text { margin: 12px auto 0; max-width: 52ch; color: var(--dg-muted); font-size: 16.8px; line-height: 1.75; }
.dg-reg .dg-track-steps { display: inline-grid; gap: 0; margin-top: 30px; text-align: start; }
.dg-track-steps li { position: relative; display: flex; align-items: center; gap: 14px; padding-block: 8px; font-weight: 700; font-size: 15.5px; }
.dg-track-steps li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--dg-ink); background: var(--dg-paper); z-index: 1; }
.dg-track-steps li + li::after { content: ""; position: absolute; inset-inline-start: 9.5px; bottom: calc(50% + 11px); height: calc(100% - 22px); width: 3px; background: repeating-linear-gradient(180deg, var(--dg-ink) 0 5px, transparent 5px 9px); }
.dg-track-steps li.is-done::before { background: var(--dg-green); border-color: var(--dg-green); }
.dg-track-steps li:not(.is-done) { color: var(--dg-muted); }
.dg-done__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- store: language tabs, map, timing ---------- */
.dg-reg .dg-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(27,27,27,.06); width: fit-content; max-width: 100%; }
.dg-reg .dg-tabs a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--dg-ink); text-decoration: none; }
.dg-reg .dg-tabs a.active { background: var(--dg-ink); color: var(--dg-yellow); }
.dg-map-pick { position: relative; border-radius: 22px; overflow: hidden; border: 2px solid var(--dg-ink); background: var(--dg-sand); }
/* Leaflet sizes itself from its container, so a map div with no height renders as nothing.
   The stacking context keeps Leaflet's own panes, which sit at z-index 400, inside the
   rounded box instead of over the sticky header. */
.dg-map-pick #map { height: 340px; width: 100%; z-index: 0; }
.dg-field.is-invalid .dg-map-pick { border-color: var(--dg-red); }
/* Above the map, full width: the box used to float inside the map because Google moved it
   there, and on a phone it covered the part of the map it was meant to help you find. */
.dg-reg #pac-input {
  display: block; margin: 0 0 10px; height: 46px; width: 100%; padding: 0 18px; border-radius: 999px; border: 2px solid var(--dg-ink);
  background: var(--dg-white); box-shadow: 3px 3px 0 var(--dg-ink); font-family: var(--dg-font-body); font-size: 15px; outline: 0;
}
.dg-map-status { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--dg-chalk); border: 1.5px solid var(--dg-line); font-size: 14.4px; font-weight: 600; color: var(--dg-muted); }
.dg-map-status .dg-ico { width: 22px; height: 22px; color: var(--dg-ink); }
.dg-map-status.is-set { background: rgba(25,179,107,.1); border-color: rgba(25,179,107,.4); color: var(--ok); }
.dg-map-status.is-set .dg-ico { color: var(--dg-green); }
.dg-coords { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dg-reg .dg-coords .dg-input { min-height: 46px; font-size: 14.4px; border-radius: 12px; }
.dg-time { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 10px; }
.dg-time__cell { position: relative; }
.dg-time__cell > small { position: absolute; top: 7px; inset-inline-start: 18px; font-size: 12px; font-weight: 700; color: var(--dg-muted); pointer-events: none; }
.dg-reg .dg-time__cell .dg-input { padding-top: 18px; }
.dg-reg .dg-time .dg-select .dg-input { padding-top: 0; }

/* select2 inside the form */
.dg-reg .select2-container { width: 100% !important; }
.dg-reg .select2-container--default .select2-selection--single,
.dg-reg .select2-container--default .select2-selection--multiple {
  min-height: var(--field-h); border: 2px solid var(--line-2); border-radius: 16px; background: var(--dg-white); display: flex; align-items: center; outline: 0;
}
.dg-reg .select2-container--default .select2-selection--single .select2-selection__rendered { padding-inline: 18px 46px; line-height: 1.4; font-size: 16.5px; font-weight: 500; color: var(--dg-ink); width: 100%; text-align: start; }
.dg-reg .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #9A937F; }
.dg-reg .select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; top: 0; width: 46px; right: auto; left: auto; inset-inline-end: 0; }
.dg-reg .select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: var(--dg-ink) transparent transparent; border-width: 7px 6px 0; margin-left: -6px; }
.dg-reg .select2-container--open .select2-selection, .dg-reg .select2-container--focus .select2-selection { border-color: var(--dg-ink) !important; box-shadow: 4px 4px 0 var(--dg-yellow); }
.dg-reg .is-invalid .select2-selection { border-color: var(--dg-red) !important; background: #FFF7F7 !important; }
.select2-container--open .select2-dropdown { border: 2px solid var(--dg-ink); border-radius: 16px; overflow: hidden; box-shadow: var(--dg-shadow); font-family: var(--dg-font-body); }
.select2-container--open .select2-dropdown--below { margin-top: 6px; }
.select2-container--open .select2-dropdown--above { margin-top: -6px; }
.select2-search--dropdown .select2-search__field { border: 2px solid var(--line-2, rgba(27,27,27,.16)) !important; border-radius: 10px; min-height: 42px; padding: 0 12px; outline: 0; }
.select2-results__option { padding: 10px 16px; font-size: 15.5px; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--dg-yellow); color: var(--dg-ink); }
.select2-container--default .select2-results__option[aria-selected="true"] { background: var(--dg-yellow-soft); color: var(--dg-ink); }

/* ---------- store: business plan + packages ---------- */
.dg-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dg-plan { margin: 0; cursor: pointer; }
.dg-plan__box { position: relative; display: block; height: 100%; padding: 22px; padding-inline-end: 58px; border: 2px solid var(--line-2); border-radius: 24px; background: var(--dg-white); transition: border-color .2s, background .2s, box-shadow .25s var(--dg-ease), transform .25s var(--dg-ease); }
.dg-plan__box::after { content: ""; position: absolute; top: 22px; inset-inline-end: 22px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(27,27,27,.4); background: var(--dg-white); }
.dg-plan b { display: block; font-family: var(--dg-font-head); font-weight: 700; font-size: 18.5px; line-height: 1.45; }
.dg-plan p { margin-top: 8px; color: var(--dg-muted); font-size: 15px; line-height: 1.65; }
.dg-plan:hover .dg-plan__box { border-color: var(--dg-ink); }
.dg-plan input:checked + .dg-plan__box { border-color: var(--dg-ink); background: var(--dg-yellow); box-shadow: 4px 4px 0 var(--dg-ink); transform: translate(-2px, -2px); }
.dg-plan input:checked + .dg-plan__box p { color: #4A3E1E; }
.dg-plan input:checked + .dg-plan__box::after { border-color: var(--dg-ink); background: var(--dg-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC233' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.dg-plan__tag { display: inline-block; margin-top: 12px; padding: 3px 12px; border-radius: 999px; background: var(--dg-ink); color: var(--dg-yellow); font-weight: 800; font-size: 13px; }

.dg-subplans { margin-top: 30px; }
.dg-subplans[hidden] { display: none; }
.dg-reg .dg-subplans__title { font-family: var(--dg-font-head); font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.dg-pkgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.dg-pkg { margin: 0; cursor: pointer; }
.dg-pkg__box { position: relative; display: flex; flex-direction: column; height: 100%; padding: 22px; border: 2px solid var(--line-2); border-radius: 24px; background: var(--dg-white); overflow: hidden; transition: border-color .2s, box-shadow .25s var(--dg-ease), transform .25s var(--dg-ease); }
.dg-pkg__box::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--dg-yellow) 0 22px, transparent 22px 36px); opacity: 0; transition: opacity .2s; }
.dg-pkg__name { font-weight: 800; font-size: 16px; }
.dg-pkg__price { margin-top: 6px; font-family: var(--dg-font-head); font-weight: 700; font-size: 28px; line-height: 1.3; direction: ltr; text-align: start; }
.dg-pkg__days { align-self: flex-start; margin-top: 6px; padding: 3px 12px; border-radius: 999px; background: var(--dg-sand); font-weight: 700; font-size: 13px; }
.dg-reg .dg-pkg__list { margin-top: 16px; padding-top: 14px; border-top: 2px dashed var(--dg-line); display: grid; gap: 8px; }
.dg-pkg__list li { display: flex; gap: 8px; align-items: center; font-size: 14.4px; font-weight: 600; }
.dg-pkg__list .dg-ico { width: 18px; height: 18px; stroke-width: 3; color: var(--ok); }
.dg-pkg:hover .dg-pkg__box { border-color: var(--dg-ink); }
.dg-pkg input:checked + .dg-pkg__box { border-color: var(--dg-ink); box-shadow: 4px 4px 0 var(--dg-ink); transform: translate(-2px, -2px); }
.dg-pkg input:checked + .dg-pkg__box::before { opacity: 1; }
.dg-empty { display: flex; gap: 12px; align-items: center; padding: 18px 20px; border-radius: 18px; border: 2px dashed var(--line-2); color: var(--dg-muted); font-weight: 600; }
.dg-empty .dg-ico { color: var(--dg-ink); }

/* ---------- store: payment ---------- */
.dg-pays { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.dg-pay { margin: 0; cursor: pointer; }
.dg-pay__box { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 16px; border: 2px solid var(--line-2); border-radius: 18px; background: var(--dg-white); font-weight: 800; font-size: 15.2px; transition: border-color .2s, background .2s; }
.dg-pay__box::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(27,27,27,.4); background: var(--dg-white); }
.dg-pay__box img { margin-inline-start: auto; width: 36px; height: 36px; object-fit: contain; }
.dg-pay:hover .dg-pay__box { border-color: var(--dg-ink); }
.dg-pay input:checked + .dg-pay__box { border-color: var(--dg-ink); background: var(--dg-yellow-soft); }
.dg-pay input:checked + .dg-pay__box::before { border-color: var(--dg-ink); background: var(--dg-yellow); box-shadow: inset 0 0 0 4px var(--dg-ink); }
.dg-pay--trial .dg-pay__box { background: var(--dg-chalk); border-style: dashed; }
.dg-reg .dg-subhead { margin: 26px 0 12px; font-weight: 800; font-size: 16px; }
.dg-reg .dg-subhead small { font-weight: 500; color: var(--dg-muted); font-size: 14px; }

/* ---------- deposit ---------- */
.dg-deposit { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; margin-bottom: 22px; padding: 18px; border-radius: 22px; background: var(--dg-ink); color: var(--dg-chalk); }
.dg-deposit__amount { display: grid; align-content: center; justify-items: center; min-width: 150px; padding: 16px; border-radius: 16px; background: var(--dg-yellow); color: var(--dg-ink); text-align: center; }
.dg-deposit__amount small { font-weight: 700; font-size: 13px; }
.dg-deposit__amount b { font-family: var(--dg-font-head); font-weight: 700; font-size: 30px; line-height: 1.3; }
.dg-deposit__amount span { margin-top: 2px; padding: 2px 10px; border-radius: 999px; background: var(--dg-ink); color: var(--dg-yellow); font-size: 12.5px; font-weight: 800; }
.dg-reg .dg-deposit__rules { display: grid; gap: 10px; align-content: center; }
.dg-deposit__rules li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.6px; line-height: 1.55; color: #E6DFCD; }
.dg-deposit__rules .dg-ico { width: 22px; height: 22px; color: var(--dg-yellow); margin-top: 1px; }
.dg-accounts { margin-bottom: 22px; padding: 16px 18px; border-radius: 18px; border: 2px dashed var(--dg-ink); background: var(--dg-white); }
.dg-accounts b { font-weight: 800; }
.dg-accounts__body { margin-top: 6px; white-space: pre-line; font-size: 15px; line-height: 1.7; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .dg-reg__grid { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
  .dg-fields { grid-template-columns: minmax(0, 1fr); }
  .dg-field--half-keep { grid-column: auto; }
}
@media (max-width: 860px) {
  .dg-reg { padding-top: 16px; }
  .dg-reg::before { width: 420px; top: -180px; inset-inline-start: -160px; }
  .dg-reg::after { display: none; }
  .dg-reg__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .dg-intro__jump { display: inline-flex; margin-top: 22px; width: 100%; }
  .dg-fs { scroll-margin-top: 90px; }
  .dg-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dg-form__bar {
    position: sticky; bottom: 0; z-index: 7; margin-inline: calc(var(--pad) * -1); padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
    background: var(--dg-paper); border-top: 2px solid var(--dg-ink); box-shadow: 0 -14px 24px -18px rgba(27,27,27,.5);
  }
  .dg-reg .dg-form__note { display: none; }
  .dg-form__actions { width: 100%; }
  .dg-form__actions .dg-btn { flex: 1; }
  .dg-card__lane { display: none; }
}
@media (max-width: 600px) {
  .dg-reg { --pad: 18px; --field-h: 54px; }
  .dg-fields { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .dg-card { border-radius: 26px; box-shadow: 4px 4px 0 var(--dg-ink); }
  .dg-intro { border-radius: 26px; }
  .dg-intro--dark { box-shadow: 4px 4px 0 var(--dg-yellow); }
  .dg-intro--yellow { box-shadow: 4px 4px 0 var(--dg-ink); }
  .dg-reg .dg-intro__title { font-size: 29px; }
  .dg-fs__head { gap: 12px; }
  .dg-fs__no { width: 40px; height: 40px; border-radius: 12px; font-size: 13.5px; }
  .dg-reg .dg-fs__title { font-size: 18px; }
  .dg-rail__no { width: 32px; height: 32px; font-size: 13px; }
  .dg-rail li + li::before { top: 14px; inset-inline-start: calc(-50% + 20px); width: calc(100% - 40px); }
  .dg-rail__txt { font-size: 12px; }
  .dg-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .dg-tile__box { min-height: 96px; padding: 12px 6px; border-radius: 16px; gap: 6px; }
  .dg-tile__box .dg-ico { width: 30px; height: 30px; }
  .dg-tile__box b { font-size: 13.6px; }
  .dg-seg { grid-template-columns: minmax(0, 1fr); }
  .dg-plans { grid-template-columns: minmax(0, 1fr); }
  .dg-deposit { grid-template-columns: minmax(0, 1fr); }
  .dg-captcha__img { width: 128px; }
  .dg-time { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dg-time > :last-child { grid-column: 1 / -1; }
  .dg-map-pick #map { height: 300px; }
  .dg-form__actions { flex-wrap: nowrap; }
  .dg-reg .dg-btn--lg { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .dg-intro__lane { animation: none; }
}
.dg-reg .dg-ico--down { transform: rotate(-90deg); }
.dg-reg .iti .iti__flag-container { left: 0 !important; right: auto !important; }
.dg-reg .iti .dg-input { padding-right: 18px !important; }
.dg-reg .dg-pass__hide { display: none; }
.dg-reg .dg-pass__toggle[aria-pressed="true"] .dg-pass__show { display: none; }
.dg-reg .dg-pass__toggle[aria-pressed="true"] .dg-pass__hide { display: block; }
.dg-reg .dg-intro__jump { display: none; }
@media (max-width: 860px) { .dg-reg .dg-intro__jump { display: inline-flex; } }
.dg-reg .dg-form__bar { margin-top: 18px; }
.dg-reg .dg-form__note .dg-ico { width: 20px; height: 20px; margin-top: 2px; color: var(--dg-ink); }
.dg-note__icon--y { background: var(--dg-yellow); color: var(--dg-ink); }
.dg-intro--yellow .dg-intro__road .dg-intro__bike::before { background: var(--dg-ink); }
.dg-intro--yellow .dg-intro__road .dg-intro__target { display: none; }
.dg-reg .dg-btn--ink { --b-bg: var(--dg-ink); --b-fg: var(--dg-chalk); }
.dg-reg .pickup-zone-container { display: none; }
[dir="rtl"] .dg-reg .dg-ico--back { transform: scaleX(-1); }
[dir="ltr"] .dg-reg .dg-ico--back { transform: none; }
.dg-fs__no .dg-ico { width: 24px; height: 24px; }
.dg-reg .dg-tabs__hint { margin: 10px 0 18px; }
.dg-reg .lang_form + .lang_form { margin-top: 0; }
.dg-fields--media { margin-top: 22px; grid-template-columns: auto minmax(0, 1fr); }
@media (max-width: 600px) { .dg-fields--media { grid-template-columns: minmax(0, 1fr); } }
.dg-reg--store::before { inset-inline-start: auto; inset-inline-end: -16vw; top: -260px; }
.dg-reg--single .dg-reg__grid { margin-inline: auto; }
.dg-reg .dg-fs__lead { margin-bottom: 18px; font-size: 15.5px; }
.dg-done__rail { max-width: 560px; margin: calc(var(--pad) * -1) auto 34px; }
.dg-reg .dg-done__rail .dg-rail { border-top: 0; border-radius: 0 0 22px 22px; border-inline: 2px solid var(--dg-ink); margin: 0; }
.dg-reg .dg-rail li.is-failed.is-current .dg-rail__no, .dg-reg .dg-rail li.is-failed .dg-rail__no { background: var(--dg-red); border-color: var(--dg-red); color: var(--dg-white); }
.dg-reg .dg-subhead { font-family: var(--dg-font-body); }
.dg-reg .dg-pay__box small { font-weight: 600; color: var(--dg-muted); margin-inline-start: 6px; }
.dg-reg .dg-form__head .dg-pill { box-shadow: none; padding: 6px 14px; font-size: 13.6px; font-weight: 700; margin-bottom: 10px; }
.dg-reg .dg-trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.dg-trust li { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14.4px; color: var(--dg-muted); }
.dg-trust .dg-ico { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--dg-green); color: var(--dg-white); stroke-width: 3.2; }
.dg-reg .dg-select::after { border: 0; border-right: 2.5px solid var(--dg-ink); border-bottom: 2.5px solid var(--dg-ink); }

/* bootstrap is no longer loaded here; the language tabs and the plan step still toggle this class */
.d-none { display: none !important; }

/* ---------- step-by-step wizard (added by register.js; without JS every section shows) ---------- */
.is-wizard [data-dg-section], .is-wizard [data-dg-review] { display: none; }
.is-wizard .is-step-on { display: block; animation: dg-step-in .35s var(--dg-ease); }
.is-wizard .dg-fs { border-top: 0; margin-top: 0; padding-top: 8px; }
.is-wizard .dg-rail[data-dg-rail] { display: none; }
.is-wiz-hidden { display: none !important; }
[data-dg-review][hidden] { display: none; }
@keyframes dg-step-in { from { opacity: 0; transform: translateX(calc(var(--dg-dir) * -18px)); } to { opacity: 1; transform: none; } }

.dg-wiz { margin: 22px 0 6px; display: grid; gap: 10px; }
.dg-wiz__count { font-weight: 800; font-size: 15.2px; color: var(--dg-ink); }
.dg-wiz__bar { position: relative; height: 10px; border-radius: 999px; background: var(--dg-road); overflow: hidden; }
.dg-wiz__bar::after { /* lane marks along the road */
  content: ""; position: absolute; inset: 4px 6px auto; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,248,231,.35) 0 10px, transparent 10px 18px);
}
.dg-wiz__bar span { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; border-radius: inherit; background: var(--dg-yellow); transition: width .45s var(--dg-ease); z-index: 1; }
.dg-wiz__dots { display: flex; gap: 6px; flex-wrap: wrap; }
.dg-wiz__dots button {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-2, rgba(27,27,27,.16)); background: var(--dg-paper);
  font: 800 13px/1 var(--dg-font-body); color: var(--dg-muted); cursor: pointer; transition: background .2s, border-color .2s, transform .2s;
}
.dg-wiz__dots button:disabled { cursor: default; opacity: .55; }
.dg-wiz__dots .is-done button { background: var(--dg-ink); border-color: var(--dg-ink); color: var(--dg-yellow); }
.dg-wiz__dots .is-current button { background: var(--dg-yellow); border-color: var(--dg-ink); color: var(--dg-ink); transform: scale(1.1); }
.dg-wiz__dots button:not(:disabled):hover { border-color: var(--dg-ink); }

.dg-wiz__nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 28px; padding-top: 18px; border-top: 2px dashed var(--dg-line); }
.dg-wiz__nav [data-wiz-next] { margin-inline-start: auto; min-width: 160px; }
.dg-wiz__nav[hidden], .dg-wiz__nav [hidden] { display: none; }
.dg-form__actions [data-wiz-back][hidden] { display: none; }

/* review */
.dg-review__list { display: grid; gap: 12px; margin-top: 8px; }
.dg-review__group { border: 1.5px solid var(--dg-line); border-radius: 18px; padding: 14px 16px; background: #fff; }
.dg-review__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.dg-review__head h4 { margin: 0; font-size: 16px; font-weight: 800; }
.dg-review__edit { border: 0; background: var(--dg-sand); color: var(--dg-ink); font: 700 13.6px/1 var(--dg-font-body); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.dg-review__edit:hover { background: var(--dg-yellow); }
.dg-review__group dl { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 15.2px; }
.dg-review__group dt { color: var(--dg-muted); }
.dg-review__group dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.dg-review__group dd.is-empty { color: var(--dg-muted); font-weight: 400; }

/* intro details: open on wide screens, a tap-to-open row on phones */
.dg-intro__more > summary { display: none; }
@media (max-width: 860px) {
  .dg-intro__more > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding: 12px 16px; border-radius: 14px;
    font-weight: 800; font-size: 15.2px; cursor: pointer; list-style: none; border: 1.5px solid currentColor;
  }
  .dg-intro__more > summary::-webkit-details-marker { display: none; }
  .dg-intro__more > summary::after { content: "+"; font-size: 22px; line-height: 1; }
  .dg-intro__more[open] > summary::after { content: "−"; }
  .dg-intro__more[open] > summary { margin-bottom: 8px; }
  .dg-wiz__nav {
    position: sticky; bottom: 0; z-index: 7; margin-inline: calc(var(--pad) * -1); padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
    background: var(--dg-paper); border-top: 2px solid var(--dg-ink); box-shadow: 0 -14px 24px -18px rgba(27,27,27,.5);
  }
  .dg-wiz__nav .dg-btn { flex: 1; }
  .dg-wiz__nav [data-wiz-next] { min-width: 0; }
}
@media (max-width: 600px) {
  .dg-review__group dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dg-review__group dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .is-wizard .is-step-on { animation: none; }
  .dg-wiz__bar span { transition: none; }
}

/* the reCAPTCHA badge sits above the sticky action bar on phones */
@media (max-width: 860px) { .grecaptcha-badge { bottom: 104px !important; } }

/* the phone field already shows +970 / +972; skipping the flag sprite saves 70-180 KB on phones */
.iti__flag { background-image: none !important; box-shadow: none !important; width: 0 !important; margin: 0 !important; }
.iti__selected-flag { padding-inline: 12px 8px; }

/* =========================================================
   MOTION PASS — a long form that feels like progress
   Motion only: no field, no rule and no step changed. Transform
   and opacity throughout. landing.css loads first, so the eases
   (--dg-ease-road, --dg-ease-pop) and dg-enter-up come from there.
   Without JS none of this runs: the sections simply stack as
   they do today and the form posts the same way.
   ========================================================= */

/* ---------- step transitions read as forward and back ---------- */
.is-wizard .is-step-on { animation-duration: .3s; animation-timing-function: var(--dg-ease-road); }
[data-dg-way="back"].is-wizard .is-step-on { animation-name: dg-step-back; }
@keyframes dg-step-back { from { opacity: 0; transform: translateX(calc(var(--dg-dir) * 20px)); } to { opacity: 1; transform: none; } }

/* ---------- the progress road ---------- */
/* a scale, not a width: register.js sets scaleX, so nothing is relaid out */
.dg-wiz__bar span { width: 100%; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--dg-ease); }
[dir="ltr"] .dg-wiz__bar span { transform-origin: left; }

@keyframes dg-wiz-dot { from { transform: scale(.65); } 60% { transform: scale(1.24); } to { transform: scale(1.1); } }
.dg-wiz__dots .is-current button { animation: dg-wiz-dot .32s var(--dg-ease-pop); }

/* ---------- validation: the field says no, then the message arrives ---------- */
@keyframes dg-shake {
  12%, 88% { transform: translateX(calc(var(--dg-dir) * -2px)); }
  32%, 68% { transform: translateX(calc(var(--dg-dir) * 3px)); }
  50% { transform: translateX(calc(var(--dg-dir) * -3px)); }
}
.dg-field.is-invalid > .dg-input,
.dg-field.is-invalid > .dg-select,
.dg-field.is-invalid > .dg-upload { animation: dg-shake .3s var(--dg-ease); }

@keyframes dg-err-in { from { opacity: 0; transform: translateY(-5px); } }
.dg-field.is-invalid > .dg-err:not(:empty) { animation: dg-err-in .22s var(--dg-ease-road) both; }
.dg-alert[data-dg-summary]:not([hidden]) { animation: dg-err-in .26s var(--dg-ease-road) both; }

/* ---------- sending ---------- */
.dg-reg .dg-btn[aria-busy="true"] { transform: scale(.985); }

/* ---------- the success card: the badge lands, then the next steps ---------- */
@keyframes dg-done-pop { 0% { opacity: 0; transform: scale(.35); } 65% { transform: scale(1.1); } 100% { opacity: 1; transform: none; } }
@keyframes dg-done-ring { from { opacity: .55; transform: scale(1); } to { opacity: 0; transform: scale(2); } }
.dg-done__badge { position: relative; animation: dg-done-pop .5s var(--dg-ease-pop) both; }
.dg-done__badge::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--dg-green);
  animation: dg-done-ring .9s var(--dg-ease) .3s 2 backwards;
}
.dg-done--fail .dg-done__badge::after { border-color: var(--dg-red); }
.dg-reg .dg-done__title { animation: dg-enter-up .36s var(--dg-ease-road) .14s both; }
.dg-reg .dg-done__text { animation: dg-enter-up .36s var(--dg-ease-road) .2s both; }
.dg-reg .dg-track-steps li { animation: dg-enter-up .34s var(--dg-ease-road) calc(.26s + var(--i, 0) * .07s) both; }
.dg-reg .dg-track-steps li:nth-child(2) { --i: 1; }
.dg-reg .dg-track-steps li:nth-child(3) { --i: 2; }
.dg-reg .dg-track-steps li:nth-child(4) { --i: 3; }
.dg-reg .dg-track-steps li:nth-child(n+5) { --i: 4; }
.dg-done__actions { animation: dg-enter-up .34s var(--dg-ease-road) .6s both; }

@media (prefers-reduced-motion: reduce) {
  [data-dg-way="back"].is-wizard .is-step-on { animation: none; }
  .dg-wiz__bar span { transition: none; }
  .dg-wiz__dots button,
  .dg-field.is-invalid > .dg-input, .dg-field.is-invalid > .dg-select, .dg-field.is-invalid > .dg-upload,
  .dg-field.is-invalid > .dg-err, .dg-alert[data-dg-summary],
  .dg-done__badge, .dg-done__badge::after, .dg-reg .dg-done__title, .dg-reg .dg-done__text,
  .dg-reg .dg-track-steps li, .dg-done__actions {
    animation: none; opacity: 1; transform: none;
  }
  .dg-done__badge::after { display: none; }
}
