.jdc-app {
  --jdc-ink: #17151f;
  --jdc-muted: #686675;
  --jdc-purple: #2110b8;
  --jdc-purple-dark: #160a82;
  --jdc-cyan: #43e4e4;
  --jdc-paper: #fff;
  --jdc-wash: #f5f5fa;
  --jdc-line: #dedde7;
  position: relative;
  isolation: isolate;
  z-index: 0;
  width: 100%;
  max-width: none;
  overflow: visible;
  margin: 0;
  padding: clamp(32px, 6vw, 84px) 20px;
  color: var(--jdc-ink);
  background: var(--jdc-wash);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  letter-spacing: 0;
  box-sizing: border-box;
}

.jdc-app *, .jdc-app *::before, .jdc-app *::after { box-sizing: border-box; }
.jdc-app :where(h1,h2,h3,p,fieldset,legend) { margin: 0; padding: 0; color: inherit; font-family: inherit; letter-spacing: 0; text-transform: none; }
.jdc-app button, .jdc-app input, .jdc-app textarea, .jdc-app select { font: inherit; letter-spacing: 0; }
.jdc-app button { margin: 0; }
.jdc-shell { position: relative; z-index: 1; width: min(100%, 1120px); margin: 0 auto; overflow: visible; }

.jdc-header { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(28px, 5vw, 76px); align-items: center; padding: 0 0 44px; }
.jdc-brand { display: block; width: 190px; height: auto; image-rendering: auto; }
.jdc-header-copy { max-width: 650px; }
.jdc-kicker { margin-bottom: 8px !important; color: var(--jdc-purple); font-size: 12px; line-height: 1.2; font-weight: 800; letter-spacing: 1.6px !important; text-transform: uppercase !important; }
.jdc-header h1 { font-size: clamp(42px, 6vw, 72px); line-height: .96; font-weight: 800; }
.jdc-header-copy > p:last-child { max-width: 610px; margin-top: 18px; color: var(--jdc-muted); font-size: 18px; }

.jdc-tabs { position: relative; z-index: 2; display: flex; gap: 4px; border-bottom: 1px solid var(--jdc-line); }
.jdc-tab { appearance: none; position: relative; min-height: 48px; padding: 0 18px; border: 0; border-radius: 0; color: var(--jdc-muted); background: transparent; font-weight: 700; cursor: pointer; box-shadow: none; }
.jdc-tab::after { content: ""; position: absolute; right: 14px; bottom: -1px; left: 14px; height: 3px; background: transparent; }
.jdc-tab.is-active { color: var(--jdc-purple); }
.jdc-tab.is-active::after { background: var(--jdc-cyan); }
.jdc-tab span { display: inline-grid; min-width: 24px; height: 24px; margin-left: 5px; padding: 0 6px; place-items: center; border-radius: 50%; background: #e7e6ef; color: var(--jdc-ink); font-size: 12px; }
.jdc-panel { position: relative; z-index: 1; padding-top: 36px; overflow: visible; }

.jdc-form { position: relative; width: min(100%, 900px); min-height: 490px; margin: 0 auto; padding: clamp(28px, 5vw, 54px); border: 1px solid var(--jdc-line); border-radius: 6px; background: var(--jdc-paper); box-shadow: 0 18px 50px rgba(24, 17, 71, .08); overflow: visible; }
.jdc-progress { display: grid; grid-template-columns: 32px minmax(32px, 82px) 32px minmax(32px, 82px) 32px; justify-content: center; align-items: center; margin-bottom: 38px; }
.jdc-progress span { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--jdc-line); border-radius: 50%; color: var(--jdc-muted); background: #fff; font-size: 12px; font-weight: 800; }
.jdc-progress span.is-done, .jdc-progress span.is-current { border-color: var(--jdc-purple); color: #fff; background: var(--jdc-purple); }
.jdc-progress i { height: 1px; background: var(--jdc-line); }
.jdc-progress i.is-done { background: var(--jdc-purple); }
.jdc-step { display: none; min-width: 0; border: 0; }
.jdc-step.is-active { display: block; animation: jdc-in .24s ease both; }
@keyframes jdc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.jdc-step legend { display: block; width: 100%; font-size: clamp(26px, 4vw, 36px); line-height: 1.15; font-weight: 800; }
.jdc-step-intro { margin-top: 8px !important; margin-bottom: 26px !important; color: var(--jdc-muted); }
.jdc-type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.jdc-type-card { position: relative; display: grid; min-width: 0; min-height: 150px; padding: 18px; align-content: start; border: 1px solid var(--jdc-line); border-radius: 5px; background: #fff; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.jdc-type-card:hover { border-color: #aaa7c0; transform: translateY(-2px); }
.jdc-type-card:has(input:checked) { border-color: var(--jdc-purple); box-shadow: inset 0 0 0 1px var(--jdc-purple); }
.jdc-type-card input { position: absolute; opacity: 0; }
.jdc-type-icon { display: grid; width: 36px; height: 36px; margin-bottom: 15px; place-items: center; border-radius: 50%; color: var(--jdc-purple); background: #eceaff; font-size: 14px; font-weight: 800; }
.jdc-type-card:has(input:checked) .jdc-type-icon { color: var(--jdc-purple-dark); background: var(--jdc-cyan); }
.jdc-type-card strong { overflow-wrap: anywhere; font-size: 15px; line-height: 1.25; }
.jdc-type-card small { margin-top: 6px; color: var(--jdc-muted); font-size: 12px; line-height: 1.35; }
.jdc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.jdc-fields label { position: relative; display: grid; gap: 7px; min-width: 0; color: var(--jdc-ink); font-size: 13px; font-weight: 700; }
.jdc-fields label > span em { color: var(--jdc-muted); font-weight: 400; }
.jdc-fields .jdc-full { grid-column: 1 / -1; }
.jdc-fields input, .jdc-fields textarea { width: 100%; min-width: 0; margin: 0; padding: 12px 14px; border: 1px solid #cbc9d5; border-radius: 4px; color: var(--jdc-ink); background: #fff; outline: 0; box-shadow: none; }
.jdc-fields textarea { min-height: 132px; resize: vertical; }
.jdc-fields input:focus, .jdc-fields textarea:focus { border-color: var(--jdc-purple); box-shadow: 0 0 0 3px rgba(33,16,184,.11); }
.jdc-count { position: absolute; right: 9px; bottom: 7px; padding: 2px 5px; color: var(--jdc-muted); background: rgba(255,255,255,.9); font-size: 10px; font-weight: 500; }
.jdc-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.jdc-contact-field[hidden] { display: none; }
.jdc-choice-stack { display: grid; gap: 10px; }
.jdc-choice, .jdc-switch { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 17px; border: 1px solid var(--jdc-line); border-radius: 5px; cursor: pointer; }
.jdc-choice:has(input:checked) { border-color: var(--jdc-purple); background: #f8f7ff; box-shadow: inset 0 0 0 1px var(--jdc-purple); }
.jdc-choice input { width: 18px; height: 18px; accent-color: var(--jdc-purple); }
.jdc-choice span, .jdc-switch > span:last-child { display: grid; }
.jdc-choice small, .jdc-switch small { margin-top: 2px; color: var(--jdc-muted); font-size: 12px; }
.jdc-switch { grid-template-columns: 42px 1fr; margin-top: 18px; cursor: pointer; }
.jdc-switch input { position: absolute; opacity: 0; }
.jdc-switch-track { position: relative; display: block; width: 42px; height: 24px; border-radius: 20px; background: #c7c5cf; transition: background .2s ease; }
.jdc-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .2s ease; }
.jdc-switch input:checked + .jdc-switch-track { background: var(--jdc-purple); }
.jdc-switch input:checked + .jdc-switch-track::after { transform: translateX(18px); }
.jdc-switch.is-disabled { opacity: .45; pointer-events: none; }
.jdc-consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin-top: 18px; color: var(--jdc-muted); font-size: 12px; cursor: pointer; }
.jdc-consent input { margin-top: 2px; accent-color: var(--jdc-purple); }
.jdc-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.jdc-actions-end { justify-content: flex-end; }
.jdc-button { appearance: none; display: inline-flex; min-height: 44px; padding: 0 19px; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 4px; font-weight: 750; line-height: 1; text-decoration: none; cursor: pointer; box-shadow: none; }
.jdc-button-primary { border-color: var(--jdc-purple); color: #fff; background: var(--jdc-purple); }
.jdc-button-primary:hover { border-color: var(--jdc-purple-dark); color: #fff; background: var(--jdc-purple-dark); }
.jdc-button-primary:disabled { opacity: .55; cursor: wait; }
.jdc-button-quiet { color: var(--jdc-muted); background: transparent; }
.jdc-button-quiet:hover { color: var(--jdc-ink); background: #f0eff5; }
.jdc-form-error { margin-top: 18px; padding: 11px 14px; border-left: 3px solid #c62b3a; color: #861d28; background: #fff0f1; font-size: 13px; }
.jdc-success { padding: 55px 20px; text-align: center; }
.jdc-success-mark { display: grid; width: 62px; height: 62px; margin: 0 auto 20px; place-items: center; border-radius: 50%; color: var(--jdc-purple-dark); background: var(--jdc-cyan); font-size: 28px; font-weight: 900; }
.jdc-success h2 { font-size: 34px; font-weight: 800; }
.jdc-success p { max-width: 520px; margin: 10px auto 24px; color: var(--jdc-muted); }

.jdc-pot-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 26px; }
.jdc-pot-heading h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 800; }
.jdc-pot-heading > p { color: var(--jdc-muted); font-size: 13px; }
.jdc-slip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.jdc-slip { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 72px; min-width: 0; min-height: 250px; border: 1px solid #d5d3dd; border-radius: 4px; background: #fff; box-shadow: 0 9px 28px rgba(24, 17, 71, .07); overflow: hidden; }
.jdc-slip-main { display: flex; min-width: 0; padding: 25px; flex-direction: column; }
.jdc-slip-top { display: flex; justify-content: space-between; gap: 12px; color: var(--jdc-muted); font-size: 11px; }
.jdc-slip-type { color: var(--jdc-purple); font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.jdc-slip h3 { margin-top: 25px; font-size: 21px; line-height: 1.2; font-weight: 800; overflow-wrap: anywhere; }
.jdc-slip-main > p { margin-top: 9px; color: #4f4c59; font-family: Georgia, serif; font-size: 16px; font-style: italic; line-height: 1.55; overflow-wrap: anywhere; }
.jdc-slip-from { margin-top: auto; padding-top: 22px; color: var(--jdc-muted); font-size: 12px; }
.jdc-slip-from strong { color: var(--jdc-ink); }
.jdc-slip-stub { position: relative; display: flex; padding: 20px 12px; align-items: center; justify-content: space-between; flex-direction: column; border-left: 1px dashed #aaa7b5; background: #2010ad; color: #fff; }
.jdc-slip-stub::before, .jdc-slip-stub::after { content: ""; position: absolute; left: -7px; width: 13px; height: 13px; border-radius: 50%; background: var(--jdc-wash); }
.jdc-slip-stub::before { top: -7px; }.jdc-slip-stub::after { bottom: -7px; }
.jdc-slip-stub img { width: 44px; height: 44px; object-fit: contain; opacity: .95; }
.jdc-slip-stub > span { font-size: 11px; font-weight: 900; letter-spacing: 2px; writing-mode: vertical-rl; transform: rotate(180deg); }
.jdc-slip-stub button { appearance: none; display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: #fff; background: transparent; cursor: pointer; }
.jdc-slip-stub button:hover { border-color: var(--jdc-cyan); color: var(--jdc-purple-dark); background: var(--jdc-cyan); }
.jdc-empty { padding: 65px 20px; border: 1px dashed #c6c4ce; text-align: center; background: rgba(255,255,255,.55); }
.jdc-empty > span { display: block; color: var(--jdc-purple); font-size: 38px; }.jdc-empty h3 { margin-top: 10px; font-size: 24px; }.jdc-empty p { margin: 5px 0 20px; color: var(--jdc-muted); }

@media (max-width: 700px) {
  .jdc-app { padding: 32px 14px 50px; }
  .jdc-header { grid-template-columns: 1fr; gap: 24px; padding-bottom: 30px; }
  .jdc-brand { width: 160px; }
  .jdc-header h1 { font-size: 44px; }
  .jdc-header-copy > p:last-child { font-size: 16px; }
  .jdc-tab { flex: 1; padding: 0 8px; font-size: 13px; }
  .jdc-panel { padding-top: 22px; }
  .jdc-form { min-height: 0; padding: 24px 17px; }
  .jdc-progress { margin-bottom: 28px; }
  .jdc-type-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .jdc-type-card { min-height: 142px; padding: 14px; }
  .jdc-fields { grid-template-columns: 1fr; }
  .jdc-fields .jdc-full { grid-column: auto; }
  .jdc-actions { align-items: stretch; flex-direction: column-reverse; }
  .jdc-actions .jdc-button { width: 100%; }
  .jdc-actions-end { flex-direction: column; }
  .jdc-pot-heading { align-items: start; flex-direction: column; }
  .jdc-slip-grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .jdc-type-grid { grid-template-columns: 1fr; }
  .jdc-type-card { min-height: 118px; }
}

@media (prefers-reduced-motion: reduce) {
  .jdc-app *, .jdc-app *::before, .jdc-app *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
