/* ============================================================
   Hero Story — Divi full-page form components
   All scoped under .hwdt-divi-* to avoid theme conflicts
   ============================================================ */

/* CSS variable fallbacks for Divi page context
   (form.css defines these inside .hwdt-root; here we expose
   them globally so the shared review card styles work) */
:root {
  --hwdt-bg-soft: #f1ece2;
  --hwdt-ink:     #1a1a1a;
  --hwdt-border:  #e6e1d6;
}

/* ---- Step badge ---- */
.hwdt-divi-step-badge {
  display: inline-block;
  background: var(--hwdt-accent, #4a2d8a);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---- Hero details (Step 1 left col) ---- */
.hwdt-divi-details { padding: 8px 0; }
.hwdt-divi-hero-h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--hwdt-heading-color, #1a1a1a);
}
.hwdt-divi-lede {
  color: #6a6a6a;
  font-size: 16px;
  margin: 0 0 28px;
  line-height: 1.6;
}

/* =====================================================================
   Photo upload — matches popup form style exactly + kid avatar bg
   ===================================================================== */

/* Divi column containing the upload wrap:
   — kill its own border, allow glow to bleed outside,
   — carry the animated colorful glow on the column edge */
.et_pb_column:has(.hwdt-divi-upload-wrap) {
  border: none !important;
  overflow: visible !important;
  border-radius: 20px !important;
  animation: hwdt-upload-glow 3s ease-in-out infinite;
}
@keyframes hwdt-upload-glow {
  0%, 100% {
    box-shadow:
      0 0 0  3px rgba(236,72,153,0.70),
      0 0 55px 22px rgba(236,72,153,0.40);
  }
  33% {
    box-shadow:
      0 0 0  3px rgba(168,85,247,0.70),
      0 0 55px 22px rgba(168,85,247,0.40);
  }
  66% {
    box-shadow:
      0 0 0  3px rgba(6,182,212,0.70),
      0 0 55px 22px rgba(6,182,212,0.40);
  }
}

/* Outer wrap: kid avatar watermark only — no glow here */
.hwdt-divi-upload-wrap {
  padding: 8px 0;
  position: relative;
}
.hwdt-divi-upload-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://hwdeet.com/wp-content/uploads/2026/05/Kid-Avatar.webp') center bottom / contain no-repeat;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
  border-radius: var(--hwdt-card-radius, 16px);
}

/* Drop zone — identical to popup form .hwdt-drop */
.hwdt-divi-drop {
  display: block;
  position: relative;
  z-index: 1;
  border: 2px dashed #d8d2c4;
  border-radius: 18px;
  padding: 38px 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(255,255,255,0.90);
  box-shadow: none;
  animation: none;
  transition: border-color .2s, background .2s;
}
.hwdt-divi-drop:hover, .hwdt-divi-drop.is-drag {
  border-color: var(--hwdt-orange, #f97316);
  background: #fffaf3;
}
.hwdt-divi-drop input[type="file"] { display: none; }
.hwdt-divi-drop-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: #ece6d9;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: #6a6a6a;
}
.hwdt-divi-drop-icon svg { width: 24px; height: 24px; }
.hwdt-divi-drop-title  { font-weight: 700; font-size: 16px; margin-bottom: 4px; color: #1a1a1a; }
.hwdt-divi-drop-sub    { font-size: 14px; color: #6a6a6a; margin-bottom: 0; }
.hwdt-divi-drop-formats{ display: none; } /* sub line already covers this */
.hwdt-divi-drop .hwdt-link { color: var(--hwdt-teal, #2d7d6e); text-decoration: underline; cursor: pointer; }

.hwdt-divi-preview {
  display: none;
  margin-top: 18px;
  position: relative;
  z-index: 1;
  padding: 14px 18px;
  background: #fff;
  border-radius: 14px;
  align-items: center; gap: 14px;
  color: #1a1a1a;
  border: 1.5px solid #e6e1d6;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.hwdt-divi-preview.is-shown { display: flex; }
.hwdt-divi-preview img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 3px solid #fff; box-shadow: 0 0 0 2px #e6e1d6; }
.hwdt-divi-preview-meta { flex: 1; min-width: 0; font-size: 13px; color: #555; }
.hwdt-divi-remove-btn {
  display: inline-block;
  background: none; border: 1.5px solid #e0d9cc;
  cursor: pointer; color: #888;
  padding: 6px 16px; border-radius: 999px;
  font-size: 13px; font-family: inherit; font-weight: 600;
  transition: border-color .15s, color .15s;
}
.hwdt-divi-remove-btn:hover { border-color: #c43c3c; color: #c43c3c; }

.hwdt-divi-tip {
  margin-top: 18px;
  position: relative;
  z-index: 1;
  background: var(--hwdt-orange-soft, rgba(249,115,22,0.08));
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px; color: #4a3a28;
}
.hwdt-divi-tip strong { color: var(--hwdt-orange, #f97316); }

/* ---- Section headings (placed by Divi text modules) ---- */
.hwdt-divi-h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 10px;
}

/* ---- Adventure grid ---- */
.hwdt-divi-adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 900px) { .hwdt-divi-adv-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .hwdt-divi-adv-grid { grid-template-columns: repeat(2, 1fr); } }

.hwdt-divi-adv {
  position: relative;
  border-radius: var(--hwdt-card-radius, 16px);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  background-color: #1a0f38;
  background-size: cover;
  background-position: center;
  transition: transform .2s ease, box-shadow .2s ease;
  outline: 3px solid transparent;
  outline-offset: 3px;
}
.hwdt-divi-adv:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.45); }
.hwdt-divi-adv.is-selected {
  outline-color: var(--hwdt-orange, #f97316);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}

.hwdt-divi-adv-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.72) 100%);
  transition: background .2s;
}
.hwdt-divi-adv.is-selected .hwdt-divi-adv-overlay {
  background: linear-gradient(to bottom, rgba(249,115,22,0.18) 0%, rgba(0,0,0,0.72) 100%);
}

.hwdt-divi-adv-check {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--hwdt-orange, #f97316);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s;
  z-index: 2;
}
.hwdt-divi-adv-check svg { width: 14px; height: 14px; color: #fff; }
.hwdt-divi-adv.is-selected .hwdt-divi-adv-check { opacity: 1; }

.hwdt-divi-adv-footer {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 14px; z-index: 2;
}
.hwdt-divi-adv-emoji { font-size: 20px; display: block; margin-bottom: 4px; }
.hwdt-divi-adv-title { display: block; color: #fff; font-weight: 700; font-size: 14px; line-height: 1.3; }

/* ---- Billing toggle ---- */
.hwdt-divi-billing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 36px;
  font-family: inherit;
}
.hwdt-divi-billing-label {
  font-size: 15px;
  font-weight: 500;
  color: #aaa;
  transition: color .2s;
  line-height: 1;
}
.hwdt-divi-billing-label.is-active { color: #1a1a1a; font-weight: 700; }

.hwdt-divi-billing-save {
  display: inline-block;
  background: var(--hwdt-orange, #f97316);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Toggle switch (same style as gift toggle) */
.hwdt-divi-billing-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex: 0 0 auto;
  cursor: pointer;
}
.hwdt-divi-billing-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.hwdt-divi-billing-slider {
  position: absolute;
  inset: 0;
  background: var(--hwdt-orange, #f97316);
  border-radius: 999px;
  transition: background .22s;
  cursor: pointer;
}
.hwdt-divi-billing-slider::before {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .22s;
  box-shadow: 0 1px 5px rgba(0,0,0,0.22);
}
.hwdt-divi-billing-switch input:checked + .hwdt-divi-billing-slider::before { transform: translateX(24px); }

/* ---- Package grid ---- */
.hwdt-divi-pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 20px;        /* no row gap — featured card uses padding to grow */
  max-width: 960px;
  margin: 0 auto;
  align-items: center; /* center-aligns non-featured shorter cards */
  position: relative;
}
@media (max-width: 640px) { .hwdt-divi-pkg-grid { grid-template-columns: 1fr; gap: 16px 0; } }

/* Bokeh blur blobs (#3) */
.hwdt-divi-pkg-grid::before,
.hwdt-divi-pkg-grid::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}
.hwdt-divi-pkg-grid::before {
  width: 320px; height: 320px;
  background: rgba(249,115,22,0.14);
  top: -80px; left: -60px;
}
.hwdt-divi-pkg-grid::after {
  width: 280px; height: 280px;
  background: color-mix(in srgb, var(--hwdt-accent, #4a2d8a) 11%, transparent);
  bottom: -60px; right: -40px;
}

/* ---- Glassmorphism base card (#3) ---- */
.hwdt-divi-pkg-card {
  position: relative;
  z-index: 1;
  /* overflow: visible so the badge at top:-13px is never clipped */
  overflow: visible;
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--hwdt-card-radius, 16px);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform .2s, box-shadow .2s, border-color .15s, background .15s;
}
.hwdt-divi-pkg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px -15px rgba(0,0,0,0.18);
}

/* Featured card — taller to stand out (like the second image) */
.hwdt-divi-pkg-card.is-featured {
  padding-top: 48px;
  padding-bottom: 40px;
  border-color: color-mix(in srgb, var(--hwdt-accent, #4a2d8a) 45%, transparent);
  animation: hwdt-card-glow 3s ease-in-out infinite;
}
@keyframes hwdt-card-glow {
  0%,100% { box-shadow: 0 0  0px 0px transparent,                                                   0 20px 50px -15px color-mix(in srgb, var(--hwdt-accent, #4a2d8a) 20%, transparent); }
  50%      { box-shadow: 0 0 30px 6px color-mix(in srgb, var(--hwdt-accent, #4a2d8a) 14%, transparent), 0 20px 50px -15px color-mix(in srgb, var(--hwdt-accent, #4a2d8a) 34%, transparent); }
}

.hwdt-divi-pkg-card.is-selected {
  border-color: var(--hwdt-orange, #f97316);
  background: rgba(255,250,244,0.90);
  box-shadow: 0 16px 40px -15px rgba(249,115,22,0.30);
  transform: scale(1.02);
  animation: hwdt-card-glow-orange 3s ease-in-out infinite;
}
@keyframes hwdt-card-glow-orange {
  0%,100% { box-shadow: 0 0  0px 0px rgba(249,115,22,0.00), 0 20px 50px -15px rgba(249,115,22,0.28); }
  50%      { box-shadow: 0 0 30px 6px rgba(249,115,22,0.16), 0 20px 50px -15px rgba(249,115,22,0.44); }
}

/* ---- Sparkle layer: overflow:hidden lives HERE, not on the card ---- */
.hwdt-divi-pkg-sparkle-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;          /* above content so sparkles float visibly */
}

/* Sparkle particles (#2) */
.hwdt-divi-sparkle {
  position: absolute;
  font-size: calc(var(--sz, 1) * 13px);
  color: var(--hwdt-orange, #f97316);
  opacity: 0;
  pointer-events: none;
  left: var(--sx, 50%);
  top:  var(--sy, 80%);
  animation: hwdt-sparkle-float var(--dur, 2.4s) var(--delay, 0s) ease-in infinite;
  user-select: none;
  line-height: 1;
}
@keyframes hwdt-sparkle-float {
  0%   { opacity: 0;   transform: translateY(0)    scale(0.5) rotate(0deg);  }
  18%  { opacity: 0.9; transform: translateY(-16px) scale(1.0) rotate(18deg); }
  75%  { opacity: 0.4; transform: translateY(-55px) scale(0.7) rotate(38deg); }
  100% { opacity: 0;   transform: translateY(-80px) scale(0.3) rotate(58deg); }
}

/* ---- Badge with pulsing ring (#2) ---- */
/* Must be outside sparkle-layer so overflow:hidden doesn't clip it */
.hwdt-divi-pkg-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--hwdt-accent, #4a2d8a);
  color: #fff;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 10;           /* always on top */
  animation: hwdt-badge-pulse 2.4s ease-in-out infinite;
}
@keyframes hwdt-badge-pulse {
  0%,100% { box-shadow: 0 0 0 0   color-mix(in srgb, var(--hwdt-accent, #4a2d8a) 50%, transparent); }
  50%      { box-shadow: 0 0 0 8px transparent; }
}
.hwdt-divi-pkg-card.is-selected .hwdt-divi-pkg-badge {
  background: var(--hwdt-orange, #f97316);
  animation: hwdt-badge-pulse-orange 2.4s ease-in-out infinite;
}
@keyframes hwdt-badge-pulse-orange {
  0%,100% { box-shadow: 0 0 0 0   rgba(249,115,22,0.55); }
  50%      { box-shadow: 0 0 0 8px rgba(249,115,22,0.00); }
}

.hwdt-divi-pkg-icon { font-size: 36px; margin-bottom: 12px; display: block; position: relative; z-index: 1; }
.hwdt-divi-pkg-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #1a1a1a; position: relative; z-index: 1; }

/* ---- Price: large number + small superscript currency to the right ---- */
.hwdt-divi-pkg-price {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  margin: 0 auto 6px;
  position: relative;
  z-index: 1;
}
.hwdt-divi-pkg-price-num {
  font-size: 46px;
  font-weight: 900;
  color: #1a1a1a;
  letter-spacing: -0.03em;
  line-height: 1;
  transition: color .2s;
}
.hwdt-divi-pkg-currency {
  font-size: 13px;
  font-weight: 700;
  color: #888;
  margin-top: 8px;      /* aligns to the cap-height of the large number */
  line-height: 1;
  vertical-align: top;
  transition: color .2s;
}
.hwdt-divi-pkg-card.is-selected .hwdt-divi-pkg-price-num { color: var(--hwdt-orange, #f97316); }
.hwdt-divi-pkg-card.is-selected .hwdt-divi-pkg-currency  { color: var(--hwdt-orange, #f97316); opacity: 0.75; }

.hwdt-divi-pkg-desc  { font-size: 13px; color: #888; margin-bottom: 14px; position: relative; z-index: 1; }

/* Feature checklist (#5) */
.hwdt-divi-pkg-features {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  text-align: left;
  position: relative;
  z-index: 1;
}
.hwdt-divi-pkg-features li {
  font-size: 13px;
  color: #3a3a3a;
  padding: 5px 0 5px 22px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: relative;
  line-height: 1.4;
}
.hwdt-divi-pkg-features li:last-child { border-bottom: none; }
.hwdt-divi-pkg-features li::before {
  content: '✦';
  position: absolute;
  left: 2px;
  top: 6px;
  font-size: 9px;
  color: var(--hwdt-orange, #f97316);
}
.hwdt-divi-pkg-features li.is-excluded { color: #bbb; text-decoration: line-through; }
.hwdt-divi-pkg-features li.is-excluded::before { content: '–'; color: #ccc; font-size: 12px; top: 5px; }

.hwdt-divi-pkg-btn {
  width: 100%;
  padding: 12px;
  border: 2px solid #e6e1d6;
  border-radius: var(--hwdt-btn-radius, 999px);
  background: rgba(255,255,255,0.8);
  color: #444;
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  position: relative;
  z-index: 1;
}
.hwdt-divi-pkg-btn:hover { border-color: var(--hwdt-orange, #f97316); color: var(--hwdt-orange, #f97316); }
.hwdt-divi-pkg-card.is-selected .hwdt-divi-pkg-btn {
  background: var(--hwdt-orange, #f97316);
  border-color: var(--hwdt-orange, #f97316);
  color: #fff;
}

/* Social proof micro-copy (#6) */
.hwdt-divi-pkg-social {
  margin-top: 10px;
  font-size: 12px;
  color: #999;
  font-style: italic;
  position: relative;
  z-index: 1;
  line-height: 1.4;
}
.hwdt-divi-pkg-card.is-featured .hwdt-divi-pkg-social { color: var(--hwdt-accent, #4a2d8a); font-weight: 600; font-style: normal; }
.hwdt-divi-pkg-card.is-selected .hwdt-divi-pkg-social { color: var(--hwdt-orange, #f97316); font-weight: 600; font-style: normal; }

/* ---- Submit section ---- */
.hwdt-divi-submit-wrap { text-align: center; }

/* .hwdt-cta (from form.css) is used for the submit button;
   ensure it spans full width inside the Divi column */
.hwdt-divi-submit-wrap .hwdt-cta { width: 100%; }

/* ---- Success / Error state ---- */
.hwdt-divi-state { display: none; text-align: center; padding: 32px 20px; }
.hwdt-divi-state-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.hwdt-divi-state-icon svg { width: 36px; height: 36px; color: #fff; }
.hwdt-divi-state-ok  { background: var(--hwdt-teal, #2d7d6e); }
.hwdt-divi-state-err { background: #c43c3c; }
.hwdt-divi-state h3  { font-size: 22px; font-weight: 800; margin: 0 0 8px; color: #1a1a1a; }
.hwdt-divi-state p   { color: #6a6a6a; margin: 0; font-size: 15px; }

/* ---- Shared overrides for pills/inputs inside Divi page ---- */
.hwdt-divi-page .hwdt-input,
.hwdt-divi-details .hwdt-input {
  background: #fff;
  border: 1.5px solid #e6e1d6;
  border-radius: 12px;
  color: #1a1a1a;
}
.hwdt-divi-page .hwdt-pill,
.hwdt-divi-details .hwdt-pill {
  border-color: #e6e1d6;
  background: #fff;
  color: #1a1a1a;
}
.hwdt-divi-page .hwdt-pill.is-selected,
.hwdt-divi-details .hwdt-pill.is-selected {
  background: var(--hwdt-accent, #4a2d8a);
  border-color: var(--hwdt-accent, #4a2d8a);
  color: #fff;
}

/* ---- Expand pills (Language / Story Goal) ---- */
.hwdt-pillrow--expand { display: flex; gap: 8px; }
.hwdt-pillrow--expand .hwdt-pill { flex: 1; transition: flex .3s ease, background .15s, border-color .15s, color .15s; }
.hwdt-pillrow--expand .hwdt-pill.is-selected { flex: 2; }

/* ---- Adventure counter badge ---- */
.hwdt-divi-adv-counter-wrap {
  text-align: center;
  min-height: 28px;
  margin-bottom: 12px;
}
.hwdt-divi-adv-counter {
  display: inline-block;
  background: rgba(0,0,0,0.06);
  color: #555;
  font-size: 13px; font-weight: 600;
  padding: 4px 16px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.hwdt-divi-adv-counter.is-complete {
  background: color-mix(in srgb, var(--hwdt-orange, #f97316) 12%, transparent);
  color: var(--hwdt-orange, #f97316);
}

/* ---- Multi-select number badge on adventure cards ---- */
.hwdt-divi-adv-check--num {
  font-size: 12px; font-weight: 800; color: #fff;
  font-family: 'Open Sans', sans-serif; line-height: 1;
}

/* ---- Maxed-out dimming (cards that can't be selected anymore) ---- */
.hwdt-divi-adv.is-maxed {
  opacity: 0.38;
  pointer-events: none;
}

/* ---- "Ask a New Story" custom adventure card ---- */
.hwdt-divi-adv-custom {
  background: #fff;
  border: 2px solid transparent;
  animation: hwdt-custom-glow 3.5s ease-in-out infinite;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px 16px;
  cursor: pointer;
  overflow: hidden;
}
.hwdt-divi-adv-custom.is-selected {
  animation: hwdt-custom-glow-active 3s ease-in-out infinite;
}
.hwdt-divi-adv-custom-idle {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; width: 100%;
  transition: opacity .2s;
}
.hwdt-divi-adv-custom.is-selected .hwdt-divi-adv-custom-idle { display: none; }
.hwdt-divi-adv-custom-icon-svg {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(249,115,22,0.10), rgba(139,92,246,0.10));
  display: flex; align-items: center; justify-content: center;
  color: var(--hwdt-accent, #4a2d8a);
}
.hwdt-divi-adv-custom-icon-svg svg { width: 24px; height: 24px; }
.hwdt-divi-adv-custom-label {
  font-size: 14px; font-weight: 700;
  color: #1a1a1a; text-align: center;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.3;
}
.hwdt-divi-adv-custom-active {
  display: none; width: 100%;
}
.hwdt-divi-adv-custom.is-selected .hwdt-divi-adv-custom-active { display: block; }
.hwdt-divi-adv-custom-input {
  width: 100%; box-sizing: border-box;
  background: #f8f6ff;
  border: 1.5px solid #e0d9f7;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px; color: #1a1a1a;
  font-family: 'Open Sans', sans-serif;
  resize: vertical; line-height: 1.5;
  outline: none;
}
.hwdt-divi-adv-custom-input:focus { border-color: var(--hwdt-accent, #4a2d8a); }
/* Override dark overlay on custom card */
.hwdt-divi-adv-custom .hwdt-divi-adv-overlay { display: none; }

/* Magazine toggle is now inside .hwdt-review-card — styled by form.css */

/* ---- Hero Name input override (beat Divi theme specificity) ---- */
.hwdt-divi-details #hwdt-divi-name {
  padding: 10px 16px !important;
  border-radius: 30px !important;
}

/* ---- Registration box — Divi page overrides ---- */
/* Beat Divi's `input[type=text] { padding: 2px }` rule with higher specificity */
.hwdt-divi-submit-wrap .hwdt-reg-box {
  border: 1.5px dashed rgba(0,0,0,0.20);
}
.hwdt-divi-submit-wrap .hwdt-reg-input,
.hwdt-reg-box .hwdt-reg-input {
  padding: 10px 14px !important;
  background: #fff !important;
  border: 1.5px solid var(--hwdt-border, #e0d8cc) !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  font-family: inherit !important;
  color: #1a1a1a !important;
  box-shadow: none !important;
}

/* ============================================================
   [hwdt_order_review] — uses popup form's .hwdt-review-card
   styles (form.css is loaded on Divi page too).
   Only Divi-context tweaks live here.
   ============================================================ */

/* Review card starts hidden (display:none in PHP); JS reveals it when a package is chosen */
