/* ==========================================================================
   DSI Visitor Registration — preview form
   Scoped styles for /panama/dsi-registration/. Reuses global form-control,
   form-label and btn-submit from style.css; everything here is .dsi-* prefixed.
   ========================================================================== */

.dsi-form-section {
  padding-top: 60px;
  padding-bottom: 56px;
}

.dsi-form-section .container {
  max-width: 900px;
}

/* ---- Preview banner -------------------------------------------------- */
.dsi-preview-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff8ec;
  border: 1px solid #f3d9a8;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #6b4d12;
}
.dsi-preview-banner i {
  color: var(--tertiary-color);
  margin-top: 2px;
}

/* ---- Form shell ------------------------------------------------------ */
.dsi-form-shell {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
  padding: 32px;
}

/* ---- Wizard progress ------------------------------------------------- */
.dsi-wizard {
  margin-bottom: 28px;
}
.dsi-wizard-compact {
  display: none;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0;
}
.dsi-wizard-steps {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  counter-reset: dsi-step;
}
.dsi-wizard-step {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  font-size: 13px;
  color: #9a9ab0;
  text-align: center;
}
/* connecting line */
.dsi-wizard-step::before {
  content: "";
  position: absolute;
  top: 15px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #e4e4ee;
  z-index: 0;
}
.dsi-wizard-step:first-child::before { display: none; }
.dsi-wizard-dot {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: #e4e4ee;
  color: #7a7a90;
  transition: background 0.2s, color 0.2s;
}
.dsi-wizard-name { font-weight: 600; }
.dsi-wizard-step.is-current .dsi-wizard-dot {
  background: var(--tertiary-color);
  color: #fff;
}
.dsi-wizard-step.is-current { color: var(--primary-color); }
.dsi-wizard-step.is-done .dsi-wizard-dot {
  background: var(--primary-color);
  color: #fff;
}
.dsi-wizard-step.is-done::before,
.dsi-wizard-step.is-current::before { background: var(--primary-color); }

/* ---- Draft restore bar ----------------------------------------------- */
/* Inline notices — the draft "resume" bar, the booking-prefill prompt, and its
   confirmation all share one look so the form's alerts stay consistent.
   (Bootstrap's global [hidden]{display:none!important} handles show/hide.) */
.dsi-draft-bar,
.dsi-booking-bar,
.dsi-booking-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--light-blue);
  border: 1px solid #d7e1f7;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--primary-color);
}
.dsi-draft-bar > i,
.dsi-booking-bar > i,
.dsi-booking-confirm > i { color: var(--secondary-color); }
/* The confirmation keeps the same container, just a success-tinted icon. */
.dsi-booking-confirm > i { color: #2e9e5b; }

/* ---- Booking prefill provenance tag ---------------------------------- */
.dsi-prefill-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--secondary-color);
}
.dsi-prefill-tag i { font-size: 11px; }

/* ---- Social handle inputs (Step 2) — type the username, prefix is fixed - */
.dsi-handle {
  display: flex;
  align-items: stretch;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.dsi-handle:focus-within {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.15rem rgba(181, 0, 97, 0.15);
}
.dsi-handle-prefix {
  display: flex;
  align-items: center;
  padding: 0 8px 0 12px;
  background: var(--light-blue);
  color: #6b6b7d;
  font-size: 13px;
  white-space: nowrap;
  border-right: 1px solid #e2e2ee;
}
.dsi-handle-input.form-control {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding-left: 6px;
  min-width: 0; /* allow the input to shrink inside the flex group */
  flex: 1;
}
.dsi-handle-input.form-control:focus { box-shadow: none; }
.dsi-social .form-label .fab { color: var(--secondary-color); margin-right: 4px; }

/* ---- Camera capture (mobile) ----------------------------------------- */
/* In-tile launch button. z-index lifts it above the full-tile file-input
   overlay so it opens the camera, while the rest of the tile still opens the
   file picker (choose an existing photo). */
.dsi-cam-launch {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 18px;
  background: var(--secondary-color);
  color: #fff;
  border: 0;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.dsi-cam-launch:hover,
.dsi-cam-launch:focus-visible { background: var(--tertiary-color); }
/* The button is injected inside dropzone containers (.dsi-file-empty,
   .dsi-batch-inner) whose `i` rules (pink, 24-26px) would otherwise paint this
   icon pink-on-pink and oversize it. The `button` type qualifier raises
   specificity above those rules so this wins regardless of source order. */
button.dsi-cam-launch i { color: inherit; font-size: 1em; }

/* Full-screen viewfinder modal. */
.dsi-cam {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #000;
  display: flex;
  flex-direction: column;
}
.dsi-cam[hidden] { display: none; }
.dsi-cam-stage { position: relative; flex: 1; overflow: hidden; }
.dsi-cam-video,
.dsi-cam-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.dsi-cam-video[hidden],
.dsi-cam-still[hidden] { display: none; }
.dsi-cam-stage.is-mirror .dsi-cam-video { transform: scaleX(-1); }

/* Alignment guide: a bright frame with a dimmed surround (box-shadow spill). */
.dsi-cam-guide { position: absolute; inset: 0; pointer-events: none; }
.dsi-cam-frame {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.45);
}
.dsi-cam-stage.is-rect .dsi-cam-frame {
  width: min(88vw, 540px);
  aspect-ratio: 1.42 / 1; /* passport photo page, landscape */
  border-radius: 12px;
}
.dsi-cam-stage.is-circle .dsi-cam-frame {
  width: min(72vw, 340px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}
/* MRZ hint band (passport only) — the two code lines belong here. */
.dsi-cam-mrz {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 7%;
  height: 22%;
  border: 2px dashed rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  display: none;
}
.dsi-cam-stage.is-rect .dsi-cam-mrz { display: block; }

.dsi-cam-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 88%;
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
.dsi-cam-x {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.dsi-cam-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 100px;
  padding: 18px;
  background: #000;
}
.dsi-cam-shutter {
  width: 68px;
  height: 68px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.1s ease;
}
.dsi-cam-shutter:active { transform: scale(0.93); }
.dsi-cam-retake,
.dsi-cam-use {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.dsi-cam-retake { background: rgba(255, 255, 255, 0.18); color: #fff; }
.dsi-cam-use { background: var(--secondary-color); color: #fff; }
.dsi-cam-retake[hidden],
.dsi-cam-use[hidden],
.dsi-cam-shutter[hidden] { display: none; }

/* ---- Steps ----------------------------------------------------------- */
.dsi-step {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0; /* fieldset min-width fix for flex/grid children */
}
.dsi-step[hidden] { display: none; }
.dsi-step-title {
  font-family: "Quicksand", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}
.dsi-step-intro {
  color: #5c5c70;
  font-size: 15px;
  margin-bottom: 22px;
}
.dsi-subhead {
  font-family: "Quicksand", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 28px 0 4px;
  padding-top: 18px;
  border-top: 1px solid #eef0f6;
}
.dsi-hint {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  color: #8a8a9c;
}

/* ---- Buttons --------------------------------------------------------- */
/* style.css only defines .btn-submit under .contact-form-card / .contact-page,
   so it never reaches this page — restyle our CTAs here. */
.dsi-form-section .btn-submit {
  background: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  color: var(--neutral-color);
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 5px;
  transition: background 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.dsi-form-section .btn-submit:hover {
  background: var(--tertiary-color);
  border-color: var(--tertiary-color);
}

/* ---- Date of birth (day / month / year) ------------------------------ */
.dsi-dob-row {
  display: flex;
  gap: 10px;
}
.dsi-dob-row .dsi-dob-day { flex: 0.8; min-width: 0; }
.dsi-dob-row .dsi-dob-year { flex: 1; min-width: 0; }
/* the month autocomplete is wrapped in .dsi-month-wrap, so the wrapper flexes */
.dsi-dob-row .dsi-month-wrap { flex: 1.4; min-width: 0; position: relative; }
.dsi-dob-row .dsi-month-wrap .form-control { width: 100%; }
.dsi-dob-feedback { display: none; }
.dsi-dob-feedback.is-shown { display: block; }

/* ---- Radio / checkbox rows ------------------------------------------- */
.dsi-radio-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.dsi-radio,
.dsi-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--divider-color, #dcdce6);
  border-radius: 8px;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.15s, background 0.15s;
  margin: 0;
}
.dsi-radio:hover,
.dsi-check:hover { border-color: var(--secondary-color); }
.dsi-radio input,
.dsi-check input { accent-color: var(--secondary-color); }
.dsi-radio:has(input:checked),
.dsi-check:has(input:checked) {
  border-color: var(--secondary-color);
  background: rgba(181, 0, 97, 0.05);
}
.dsi-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.dsi-check { align-items: flex-start; }
.dsi-check-sub {
  display: block;
  font-size: 12px;
  color: #8a8a9c;
}

/* ---- Institution picker --------------------------------------------- */
.dsi-institution {
  align-items: center;
  padding: 12px 14px;
}
.dsi-institution-text {
  flex: 1 1 auto;
  min-width: 0;
}
.dsi-institution-name {
  display: block;
  font-weight: 600;
  line-height: 1.25;
}
.dsi-institution-tag {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ececf4;
  color: #5a5a72;
}
.dsi-institution-tag--chabad {
  background: rgba(228, 91, 1, 0.12);
  color: var(--tertiary-color, #e45b01);
}
.dsi-institution-tag--sephardi {
  background: rgba(30, 29, 73, 0.08);
  color: var(--primary-color, #1e1d49);
}
.dsi-institution-tag--ashkenazi {
  background: rgba(181, 0, 97, 0.10);
  color: var(--secondary-color, #b50061);
}
.dsi-radio-feedback,
.dsi-file-feedback,
.dsi-institutions-feedback,
.dsi-visitors-feedback { display: none; }
.dsi-radio-feedback.is-shown,
.dsi-file-feedback.is-shown,
.dsi-institutions-feedback.is-shown,
.dsi-visitors-feedback.is-shown,
.dsi-phone-feedback.is-shown { display: block !important; }
.dsi-visitors-feedback { margin-top: 8px; }

/* ---- Family cards ---------------------------------------------------- */
.dsi-family-card {
  border: 1px solid #e7e7f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  background: #fcfcfe;
}
.dsi-family-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.dsi-family-card-title {
  font-weight: 700;
  color: var(--primary-color);
}
.dsi-remove-btn {
  background: none;
  border: 0;
  color: var(--secondary-color);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
}
.dsi-remove-btn:disabled { color: #c0c0cc; cursor: not-allowed; }
.dsi-visitor-intro {
  font-size: 13.5px;
  color: #5c5c70;
  margin: 0 0 14px;
}
.dsi-visitor-details {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #e4e4ee;
  animation: dsi-fade-in 0.25s ease;
}
.dsi-visitor-details[hidden] { display: none; }
.dsi-visitor-confirm {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0 0 12px;
}
@keyframes dsi-fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.dsi-add-btn {
  background: none;
  border: 1.5px dashed var(--secondary-color);
  color: var(--secondary-color);
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
}
.dsi-add-btn:hover { background: rgba(181, 0, 97, 0.05); }
.dsi-add-btn[hidden] { display: none; }

/* ---- Batch passport drop (Step 1 shortcut) --------------------------- */
.dsi-batch {
  position: relative;
  border: 1.5px dashed var(--secondary-color);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  cursor: pointer;
  background: rgba(181, 0, 97, 0.03);
  transition: border-color 0.15s, background 0.15s;
}
.dsi-batch:hover,
.dsi-batch.is-dragover {
  border-color: var(--tertiary-color);
  background: rgba(181, 0, 97, 0.06);
}
.dsi-batch .dsi-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.dsi-batch-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #5c5c70;
  font-size: 14px;
}
.dsi-batch-inner i { font-size: 26px; color: var(--secondary-color); }
.dsi-batch-inner strong { color: var(--primary-color); }
.dsi-batch-inner small { color: #9a9aac; font-size: 12px; }
/* spacing below the batch drop before the first visitor card */
.dsi-batch { margin-bottom: 20px; }

/* ---- Identity block: inputs stacked left, photo spanning right --------
   A file tile is taller than a single input, so rather than pairing it with
   one field we stack the fields in a left column and let the photo column
   stretch to match (align-items: stretch is the grid default), with the tile
   flex-filling that height. Robust to the number of fields. */
.dsi-id-grid { display: grid; gap: 1rem; }
.dsi-id-fields { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) {
  .dsi-id-grid { grid-template-columns: 1fr 1fr; }
  .dsi-id-photo { display: flex; flex-direction: column; }
  .dsi-id-photo .dsi-file {
    flex: 1 1 auto;       /* tile grows to fill the column height */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ---- File upload ----------------------------------------------------- */
.dsi-file {
  position: relative;
  border: 1.5px dashed #c9c9d8;
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dsi-file:hover,
.dsi-file.is-dragover {
  border-color: var(--secondary-color);
  background: rgba(181, 0, 97, 0.03);
}
.dsi-file.is-invalid { border-color: #dc3545; }
.dsi-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.dsi-file-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #6c6c80;
  font-size: 14px;
}
.dsi-file-empty i { font-size: 24px; color: var(--secondary-color); }
.dsi-file-empty small { color: #9a9aac; font-size: 12px; }
/* Upload status ("Saving…" / "Saved") on a file tile. */
.dsi-file-status {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-green, #1a8a3a);
  white-space: nowrap;
}
.dsi-turnstile:empty { margin: 0; }
.dsi-turnstile { margin: 4px 0; }
/* "Re-add after restore" prompt — files aren't saved with a draft. */
.dsi-file.dsi-file-readd-on { border-color: var(--tertiary-color, #e45b01); }
.dsi-file-readd {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tertiary-color, #e45b01);
}
.dsi-file-readd i { font-size: 12px; color: inherit; }
.dsi-file-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.dsi-file-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}
.dsi-file-doc i { font-size: 32px; color: var(--secondary-color); }
.dsi-file-meta { flex: 1; font-size: 13px; color: var(--primary-color); word-break: break-word; }
.dsi-file-remove {
  position: relative;
  z-index: 1;
  background: #f1f1f6;
  border: 0;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: #6c6c80;
}
.dsi-file-remove:hover { background: #e2e2ec; color: var(--secondary-color); }
.dsi-file-list { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.dsi-file-list .dsi-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  background: #f6f6fb;
  border-radius: 8px;
  padding: 8px 10px;
}
.dsi-file-list .dsi-file-row i { color: var(--secondary-color); }
.dsi-file-list .dsi-file-row .dsi-file-meta { flex: 1; }

/* ---- Passport autofill status --------------------------------------- */
.dsi-autofill-status {
  margin-top: 8px;
  font-size: 13px;
  border-radius: 7px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dsi-autofill-status[hidden] { display: none; }
.dsi-autofill-status.is-loading {
  background: var(--light-blue);
  color: var(--primary-color);
}
.dsi-autofill-status.is-loading::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid rgba(30, 29, 73, 0.25);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: dsi-spin 0.7s linear infinite;
}
.dsi-autofill-status.is-ok { background: #e8f7ee; color: #1d7a3a; }
.dsi-autofill-status.is-ok::before { content: "\2713"; font-weight: 700; }
.dsi-autofill-status.is-warn { background: #fff5e6; color: #b3690a; }
@keyframes dsi-spin { to { transform: rotate(360deg); } }

/* ---- Combobox -------------------------------------------------------- */
.dsi-combo-wrap { position: relative; }
.dsi-combo-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #dcdce6;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 4px;
}
.dsi-combo-panel[hidden] { display: none; }
.dsi-combo-option {
  padding: 9px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.dsi-combo-option small { color: #9a9aac; }
.dsi-combo-option.is-active,
.dsi-combo-option:hover {
  background: rgba(181, 0, 97, 0.08);
  color: var(--secondary-color);
}
.dsi-combo-empty {
  padding: 10px 12px;
  font-size: 13px;
  color: #9a9aac;
}

/* ---- Phone widget ---------------------------------------------------- */
.dsi-phone {
  display: flex;
  position: relative;
}
.dsi-phone-country {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f6f6fb;
  border: 0.5px solid var(--divider-color, #dcdce6);
  border-right: 0;
  border-radius: 4px 0 0 4px;
  padding: 0 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--primary-color);
  white-space: nowrap;
}
.dsi-phone-country i { font-size: 10px; color: #9a9aac; }
.dsi-phone-flag { font-size: 16px; }
.dsi-phone-number {
  border-radius: 0 4px 4px 0 !important;
  flex: 1;
}
.dsi-phone-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  width: 280px;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #dcdce6;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 4px;
}
.dsi-phone-panel[hidden] { display: none; }
.dsi-phone-search {
  width: 100%;
  border: 1px solid #e4e4ee;
  border-radius: 7px;
  padding: 8px 10px;
  margin-bottom: 4px;
  font-size: 13px;
}
.dsi-phone-option {
  padding: 8px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.dsi-phone-option:hover,
.dsi-phone-option.is-active { background: rgba(181, 0, 97, 0.08); }
.dsi-phone-option .dsi-phone-option-dial { margin-left: auto; color: #9a9aac; font-size: 13px; }

/* ---- Social profiles (optional, always visible) --------------------- */
.dsi-social {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #eef0f6;
}
.dsi-social-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.dsi-social-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(181, 0, 97, 0.08);
  color: var(--secondary-color);
  font-size: 16px;
}
.dsi-social-title {
  margin: 1px 0 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "Quicksand", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
}
.dsi-optional {
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a8a9c;
  background: #f0f1f6;
  border-radius: 20px;
  padding: 2px 9px;
}
.dsi-social-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6c6c80;
}

/* ---- Consent --------------------------------------------------------- */
.dsi-consent {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #eef0f6;
}
.dsi-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 0;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.45;
}
.dsi-consent-check:has(input:checked) { background: none; }
.dsi-consent-check input { margin-top: 3px; }

.dsi-soft-warning {
  margin-top: 6px;
  font-size: 13px;
  color: #b3690a;
  background: #fff5e6;
  border-radius: 7px;
  padding: 7px 10px;
}
.dsi-soft-warning[hidden] { display: none; }

/* ---- Submit error ---------------------------------------------------- */
.dsi-submit-error {
  margin: 18px 0 0;
  padding: 12px 16px;
  border: 1px solid #f2c2c2;
  border-radius: 10px;
  background: #fdf2f2;
  color: #b42318;
  font-size: 14px;
  font-weight: 600;
}
.dsi-submit-error[hidden] { display: none; }

/* ---- Actions --------------------------------------------------------- */
.dsi-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #eef0f6;
}
.dsi-actions-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.dsi-btn-back {
  background: none;
  border: 1.5px solid #d4d4e0;
  color: var(--primary-color);
  border-radius: 5px;
  padding: 11px 22px;
  font-weight: 600;
  cursor: pointer;
}
.dsi-btn-back:hover { border-color: var(--primary-color); }
.dsi-btn-back[hidden],
.dsi-btn-next[hidden],
.dsi-btn-submit[hidden] { display: none; }
.dsi-link {
  background: none;
  border: 0;
  color: var(--secondary-color);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.dsi-link-muted { color: #9a9aac; }
.dsi-link[hidden] { display: none; }

/* ---- Success --------------------------------------------------------- */
.dsi-success { text-align: center; padding: 30px 10px; }
.dsi-success[hidden] { display: none; }
.dsi-success-icon i { font-size: 56px; color: #25a244; }
.dsi-success h2 {
  font-family: "Quicksand", sans-serif;
  color: var(--primary-color);
  margin: 16px 0 10px;
}
.dsi-success p {
  max-width: 520px;
  margin: 0 auto 22px;
  color: #5c5c70;
}

/* ---- Mobile ---------------------------------------------------------- */
@media (max-width: 767px) {
  .dsi-form-shell { padding: 20px 16px; }
  .dsi-wizard-steps { display: none; }
  .dsi-wizard-compact { display: block; }
  /* Stack the actions vertically: Back (secondary), Continue/Submit (primary,
     full-width, centered), then the Clear link as a small centered link. */
  .dsi-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .dsi-actions-right {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-left: 0;
    gap: 12px;
  }
  .dsi-btn-next,
  .dsi-btn-submit {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    order: 0;
  }
  .dsi-btn-back {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
  }
  .dsi-actions-right .dsi-link { order: 1; align-self: center; }
  .dsi-phone-panel { width: 100%; }
}

/* ---- About + FAQ (below the form; crawlable SEO content) -------------- */
.dsi-faq-section {
  padding: 56px 0 80px;
}
.dsi-faq-section .container {
  max-width: 900px;
}
.dsi-about {
  margin-bottom: 40px;
}
.dsi-about h2,
.dsi-faq-title {
  font-family: "Quicksand", sans-serif;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 16px;
}
.dsi-about p {
  color: #4a4a5e;
  line-height: 1.7;
  margin: 0;
}
.dsi-faq-title {
  margin-bottom: 18px;
}
.dsi-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dsi-faq-item {
  background: #fff;
  border: 1px solid #e7e7ef;
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.dsi-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--primary-color);
}
.dsi-faq-item summary::-webkit-details-marker { display: none; }
.dsi-faq-item summary:hover { background: var(--light-blue); }
.dsi-faq-item summary:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: -2px;
}
.dsi-faq-q { flex: 1; }
.dsi-faq-item summary i {
  color: var(--secondary-color);
  font-size: 14px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.dsi-faq-item[open] summary i { transform: rotate(180deg); }
.dsi-faq-a {
  padding: 0 20px 18px;
}
.dsi-faq-a p {
  margin: 0;
  color: #4a4a5e;
  line-height: 1.7;
}
