@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700;800&family=Rubik:wght@500;600;700;800&display=swap');

/* =========================================================================
   Public event page — conditions strip, step indicator, form notices
   =========================================================================
   Report §5.6 screen 2 requires the event page to show the conditions
   (אישור הורים / לינה / מכסה) and a clear indication of the process stages
   (הרשמה – תשלום – אישור). §5.6 principle 7 requires errors in red.

   Scoped to .daniel-* selectors only — it cannot affect Elementor or the theme.
   ========================================================================= */

.daniel-conditions,
.daniel-steps,
.daniel-event-notice,
.daniel-event-form,
.daniel-payment-shell {
  direction: rtl;
  text-align: right;
  font-family: "Alef", "Assistant", "Rubik", system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
}
.daniel-conditions *, .daniel-steps *, .daniel-payment-shell * { box-sizing: border-box; }

/* -------------------------------------------------------------------------
   Conditions strip
   ---------------------------------------------------------------------- */

.daniel-conditions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}

.daniel-condition {
  display: flex; align-items: center; gap: 10px;
  background: #f6f8fa;
  border: 1px solid #e3e9ee;
  border-inline-start: 3px solid #3f5be6;
  border-radius: 12px;
  padding: 10px 12px;
}
.daniel-condition.tone-good { border-inline-start-color: #12805c; background: #f3f5ff; }
.daniel-condition.tone-warn { border-inline-start-color: #e8a33d; background: #fdf6e9; }
.daniel-condition.tone-bad  { border-inline-start-color: #c0342b; background: #fdeceb; }
.daniel-condition.tone-pay  { border-inline-start-color: #1b4f8a; background: #eaf1f9; }

/* Inline SVG, not an emoji: one shape on every device, and it takes the tone
   colour of the chip it sits in. */
.daniel-condition-ico  { display: inline-flex; flex: none; line-height: 0; color: inherit; }
.daniel-condition-ico .dk-i,
.daniel-meta-ico .dk-i,
.daniel-payment-lock .dk-i,
.daniel-payment-trust .dk-i {
  width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -.15em;
}
.daniel-condition-ico .dk-i { width: 20px; height: 20px; }
.daniel-payment-trust span { display: inline-flex; align-items: center; gap: .35rem; }
.daniel-payment-head .daniel-payment-lock .dk-i { width: 19px; height: 19px; }
.daniel-condition-body { display: flex; flex-direction: column; min-width: 0; }
.daniel-condition-label { font-size: 12.5px; font-weight: 600; color: #6b7a89; }
.daniel-condition-value { font-size: 15px; font-weight: 700; color: #22313f; line-height: 1.35; }

/* -------------------------------------------------------------------------
   Step indicator — הרשמה › תשלום › אישור
   ---------------------------------------------------------------------- */

.daniel-steps {
  list-style: none;
  margin: 0 0 26px;
  padding: 16px 18px;
  background: #f6f7fc;
  border: 1px solid #e1e6f7;
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  counter-reset: none;
  position: relative;
}

.daniel-step {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 4px;
  position: relative;
}
/* Connector line between steps (RTL: draw toward the start edge). */
.daniel-step + .daniel-step::before {
  content: "";
  position: absolute;
  top: 22px;
  inset-inline-end: 100%;
  width: 10px;
  border-top: 2px dashed #ccd4f4;
}

.daniel-step-num {
  flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: #526aff;
  border: 2px solid #ccd4f4;
  font-weight: 800; font-size: 15px;
}
.daniel-step.is-current .daniel-step-num {
  background: #526aff; color: #fff; border-color: #526aff;
  box-shadow: 0 0 0 4px rgba(79,102,255,.15);
}

.daniel-step-text  { display: flex; flex-direction: column; min-width: 0; }
.daniel-step-title { font-size: 15px; font-weight: 700; color: #14202b; line-height: 1.3; }
.daniel-step-sub   { font-size: 12.5px; color: #5a6b7a; margin-top: 2px; line-height: 1.35; }

/* -------------------------------------------------------------------------
   Notices around the registration form
   ---------------------------------------------------------------------- */

.daniel-event-notice {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid #e3e9ee;
  background: #f6f8fa;
  margin: 18px 0;
  font-size: 16px;
  line-height: 1.55;
}
.daniel-event-notice strong { font-size: 17px; }
.daniel-event-notice span   { font-size: 14.5px; color: #5a6b7a; }

.daniel-event-notice.is-closed { background: #f4f6f8; border-color: #dde3e9; }
.daniel-event-notice.is-full   { background: #fdf6e9; border-color: #f0dcb4; color: #7a4a06; }
.daniel-event-notice.is-full span { color: #8a5a12; }
/* Report §5.6 principle 7 — errors in red. */
.daniel-event-notice.is-error  { background: #fdeceb; border-color: #f0c4c1; color: #c0342b; }
.daniel-event-notice.is-error span { color: #a4302a; }

.daniel-event-form { margin: 8px 0 28px; }
.daniel-form-urgency {
  margin: 0 0 10px;
  padding: 10px 14px;
  background: #fdf6e9;
  border: 1px solid #f0dcb4;
  border-radius: 10px;
  color: #7a4a06;
  font-size: 14.5px;
  font-weight: 700;
  text-align: center;
}

/* -------------------------------------------------------------------------
   Payment page shell
   ---------------------------------------------------------------------- */

.daniel-payment-shell {
  max-width: 900px;
  margin: 32px auto;
  padding: 0 16px;
}
.daniel-payment-card {
  background: #fff;
  border: 1px solid #e3e9ee;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(20,32,43,.05), 0 12px 34px rgba(20,32,43,.08);
  padding: 26px 26px 30px;
}
.daniel-payment-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px; margin-bottom: 20px;
  border-bottom: 1px solid #eef1f4;
}
.daniel-payment-head h1 { margin: 0; font-size: 23px; font-weight: 800; color: #14202b; }
.daniel-payment-head .daniel-payment-lock {
  width: 40px; height: 40px; border-radius: 50%;
  background: #f3f5ff; color: #12805c;
  display: flex; align-items: center; justify-content: center; font-size: 19px; flex: none;
}
.daniel-payment-sub { margin: 4px 0 0; font-size: 14px; color: #5a6b7a; }

.daniel-payment-error {
  background: #fdeceb; border: 1px solid #f0c4c1; color: #c0342b;
  border-radius: 12px; padding: 14px 16px; margin-bottom: 18px;
  font-size: 15px; line-height: 1.55;
}
.daniel-payment-error strong { display: block; margin-bottom: 4px; font-size: 16px; }
.daniel-payment-error code {
  background: rgba(192,52,43,.1); padding: 1px 6px; border-radius: 5px; font-size: 13px;
}

.daniel-payment-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.daniel-payment-actions a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: .7rem 1.4rem; border-radius: 999px;
  background: #526aff; color: #fff; text-decoration: none; font-weight: 700; font-size: 16px;
}
.daniel-payment-actions a.is-ghost { background: #fff; color: #14202b; border: 1px solid #dfe6ec; }
.daniel-payment-actions a:hover { filter: brightness(.95); }

.daniel-payment-trust {
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed #e3e9ee;
  font-size: 13px; color: #6b7a89; display: flex; gap: 14px; flex-wrap: wrap;
}

/* -------------------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------------- */

@media (max-width: 720px) {
  .daniel-steps { grid-template-columns: 1fr; gap: 4px; padding: 14px; }
  .daniel-step + .daniel-step::before {
    top: -4px; inset-inline-end: 15px; width: 0; height: 10px;
    border-top: none; border-inline-end: 2px dashed #ccd4f4;
  }
  .daniel-conditions { grid-template-columns: 1fr 1fr; }
  .daniel-payment-card { padding: 20px 18px 24px; border-radius: 14px; }
}

@media (max-width: 420px) {
  .daniel-conditions { grid-template-columns: 1fr; }
  .daniel-condition-value { font-size: 14.5px; }
}


/* -------------------------------------------------------------------------
   Payment page — completed step + order summary
   ----------------------------------------------------------------------
   The payment page reuses the event page's step strip, with the first step
   marked done. A tick rather than a "1" is what tells a parent that the long
   form they just filled actually went through.
   ---------------------------------------------------------------------- */

/* A completed step is acknowledged, not celebrated: the current step has to
   stay the loudest thing in the strip, or the eye lands on what is already
   finished. Tinted fill and a coloured tick, against the solid current step. */
.daniel-step.is-done .daniel-step-num {
  background: #eaf6f1;
  border-color: #a9d5c6;
  color: #12805c;
}
.daniel-step.is-done .daniel-step-num .dk-i { width: 14px; height: 14px; }
.daniel-step.is-done .daniel-step-title { color: #3d5361; }
.daniel-step.is-done .daniel-step-sub   { color: #12805c; font-weight: 650; }

.daniel-payment-summary {
  margin: 0 0 24px;
  padding: 16px 18px;
  background: #f6f8fa;
  border: 1px solid #e3e9ee;
  border-radius: 12px;
}
.daniel-payment-summary h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #14202b;
}
.daniel-payment-summary dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 18px;
  margin: 0;
}
.daniel-payment-summary dt {
  font-size: 13px;
  font-weight: 700;
  color: #5a6b7a;
}
.daniel-payment-summary dd {
  margin: 0;
  font-size: 14.5px;
  color: #14202b;
  overflow-wrap: anywhere;
}
.daniel-payment-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #5a6b7a;
}

@media (max-width: 560px) {
  .daniel-payment-summary dl { grid-template-columns: 1fr; gap: 2px; }
  .daniel-payment-summary dd { margin-bottom: 8px; }
}

/* -------------------------------------------------------------------------
   Live Elementor Loop Grid
   -------------------------------------------------------------------------
   The production events archive uses an Elementor loop template rather than
   the plugin widget. These rules target its semantic dlts-* hooks and repair
   the template's full-viewport inner container, which otherwise makes every
   card thousands of pixels wide and overlap its grid column on large screens.
   ---------------------------------------------------------------------- */

.elementor-loop-container .e-loop-item {
  min-width: 0;
  height: 100%;
}

.elementor-loop-container .dlts-event-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-inline: 0 !important;
  box-sizing: border-box;
}

.elementor-loop-container .dlts-event-card > .e-con-inner {
  width: 100% !important;
  min-width: 0;
  max-width: 100% !important;
  box-sizing: border-box;
}

.elementor-loop-container .dlts-event-card > .e-con-inner > *,
.elementor-loop-container .dlts-card-content,
.elementor-loop-container .event-meta {
  min-width: 0;
  max-width: 100%;
}

/* Preserve the original Elementor card artwork. Only add a keyboard focus
   affordance; colours, radius, spacing, image treatment and CTA all continue
   to come from the site's own loop template. */
.elementor-loop-container .dlts-event-card:focus-within {
  outline: 3px solid rgba(94, 116, 255, .35);
  outline-offset: 3px;
}

/* =========================================================================
   Precision-glass public registration and payment surfaces.
   ========================================================================= */
.daniel-conditions,
.daniel-steps,
.daniel-event-notice,
.daniel-event-form,
.daniel-payment-shell {
  font-family: "Heebo", "Noto Sans Hebrew", "Segoe UI", system-ui, sans-serif;
}

.daniel-payment-shell {
  background:
    radial-gradient(circle at 86% 6%, rgba(101,122,255,.16), transparent 24rem),
    radial-gradient(circle at 7% 88%, rgba(60,119,163,.10), transparent 26rem),
    linear-gradient(145deg, #eff2fb, #e8ebf8);
}

.daniel-conditions,
.daniel-steps,
.daniel-event-notice,
.daniel-payment-card,
.daniel-payment-summary {
  border-color: rgba(65,83,170,.14);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(242,244,253,.70));
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
  box-shadow: 0 18px 48px rgba(23,33,82,.10), inset 0 1px 0 rgba(255,255,255,.94);
}

.daniel-condition {
  border-color: rgba(65,83,170,.11);
  border-inline-start-width: 1px;
  border-radius: 14px;
  background: rgba(255,255,255,.52);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.daniel-condition.tone-good { background: rgba(232,248,241,.72); }
.daniel-condition.tone-warn { background: rgba(253,246,233,.76); }
.daniel-condition.tone-bad { background: rgba(253,236,235,.76); }
.daniel-condition.tone-pay { background: rgba(234,241,249,.76); }

.daniel-step-num {
  border-radius: 11px;
  border-color: rgba(65,83,170,.14);
  background: rgba(255,255,255,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.80);
}

.daniel-step.is-current .daniel-step-num,
.daniel-step.is-done .daniel-step-num {
  border-color: rgba(39,61,167,.48);
  background: linear-gradient(135deg, #3454e8, #4f66ff);
  color: #fff;
  box-shadow: 0 8px 20px rgba(48,71,190,.18), inset 0 1px 0 rgba(255,255,255,.20);
}

.daniel-payment-card {
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 25px;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(235,247,245,.82));
  -webkit-backdrop-filter: blur(30px) saturate(155%);
  backdrop-filter: blur(30px) saturate(155%);
  box-shadow: 0 30px 80px rgba(22,31,72,.18), inset 0 1px 0 #fff;
}

.daniel-payment-head h1,
.daniel-payment-summary h2,
.daniel-event-notice strong {
  font-family: "Rubik", "Heebo", "Noto Sans Hebrew", sans-serif;
  letter-spacing: -.025em;
}

.daniel-payment-actions a,
.daniel-payment-shell :is(button, .button, input[type="submit"]) {
  min-height: 46px;
  padding: .72rem 1.18rem;
  border: 1px solid rgba(39,61,167,.52);
  border-radius: 14px;
  background: linear-gradient(135deg, #3454e8, #4f66ff);
  color: #fff;
  font-family: "Heebo", "Noto Sans Hebrew", sans-serif;
  font-weight: 650;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.20), 0 12px 28px rgba(48,71,190,.22);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}

.daniel-payment-actions a:hover,
.daniel-payment-shell :is(button, .button, input[type="submit"]):hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #2743cf, #4259e8);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 15px 34px rgba(48,71,190,.27);
}

.daniel-payment-actions a.is-ghost {
  border-color: rgba(65,83,170,.16);
  background: rgba(255,255,255,.66);
  color: #17303c;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.90), 0 7px 20px rgba(24,35,86,.08);
}

.daniel-payment-summary dl {
  border-color: rgba(65,83,170,.11);
  border-radius: 15px;
  background: rgba(255,255,255,.50);
}

.elementor-loop-container .dlts-event-card {
  border-color: rgba(255,255,255,.70) !important;
  border-radius: 24px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.90), rgba(240,242,252,.70)) !important;
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
  box-shadow: 0 20px 52px rgba(23,33,82,.12), inset 0 1px 0 #fff !important;
}
