.bsv-vm-dl {
  --vm-blue: #005697;
  --vm-blue-dark: #073665;
  --vm-red: #e51e2a;
  --vm-ink: #10264a;
  --vm-muted: #5d6f84;
  --vm-border: #c8d8e8;
  --vm-soft: #eef5fb;
  max-width: 900px;
  margin: 32px auto;
  color: var(--vm-ink);
  font-family: inherit;
}

.bsv-vm-dl * { box-sizing: border-box; }

.bsv-vm-dl-header {
  padding: 28px 30px;
  border: 1px solid var(--vm-border);
  border-top: 5px solid var(--vm-blue);
  background: #fff;
}

.bsv-vm-dl-kicker {
  margin: 0 0 5px;
  color: var(--vm-red);
  font-weight: 800;
  text-transform: uppercase;
}

.bsv-vm-dl h1,
.bsv-vm-dl h2 { letter-spacing: 0; }

.bsv-vm-dl-header h1 {
  margin: 0 0 8px;
  color: var(--vm-blue-dark);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
}

.bsv-vm-dl-header > p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--vm-muted);
  line-height: 1.55;
}

.bsv-vm-dl-form { margin-top: 18px; }

.bsv-vm-dl-step,
.bsv-vm-dl-success {
  margin-top: 14px;
  padding: 24px;
  border: 1px solid var(--vm-border);
  background: #fff;
}

.bsv-vm-dl-step[hidden],
.bsv-vm-dl-success[hidden] { display: none !important; }

.bsv-vm-dl-step-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.bsv-vm-dl-step-heading > span {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--vm-blue);
  color: #fff;
  font-weight: 800;
}

.bsv-vm-dl-step-heading h2 {
  margin: 0;
  color: var(--vm-blue-dark);
  font-size: 23px;
  line-height: 1.2;
}

.bsv-vm-dl-step-heading p {
  margin: 4px 0 0;
  color: var(--vm-muted);
}

.bsv-vm-dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.bsv-vm-dl label {
  display: grid;
  gap: 7px;
  color: var(--vm-ink);
  font-weight: 700;
}

.bsv-vm-dl input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #aebfd1;
  border-radius: 5px;
  background: #fff;
  color: var(--vm-ink);
  font: inherit;
}

.bsv-vm-dl input:focus {
  border-color: var(--vm-blue);
  outline: 3px solid rgba(0, 86, 151, .16);
}

.bsv-vm-dl input[readonly] { background: #f2f5f8; }

.bsv-vm-dl-phone {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
}

.bsv-vm-dl-phone > span {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #aebfd1;
  border-right: 0;
  border-radius: 5px 0 0 5px;
  background: var(--vm-soft);
  color: var(--vm-blue-dark);
  font-weight: 800;
}

.bsv-vm-dl-phone input { border-radius: 0 5px 5px 0; }

.bsv-vm-dl-primary,
.bsv-vm-dl-secondary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.bsv-vm-dl-primary {
  background: var(--vm-blue);
  color: #fff !important;
}

.bsv-vm-dl-secondary {
  border-color: var(--vm-blue);
  background: #fff;
  color: var(--vm-blue);
}

.bsv-vm-dl-primary:hover,
.bsv-vm-dl-primary:focus { background: var(--vm-blue-dark); }
.bsv-vm-dl-secondary:hover,
.bsv-vm-dl-secondary:focus { background: var(--vm-soft); }
.bsv-vm-dl button:disabled { cursor: not-allowed; opacity: .55; }

.bsv-vm-dl-otp {
  display: grid;
  grid-template-columns: minmax(200px, 320px) auto;
  align-items: end;
  gap: 12px;
}

.bsv-vm-dl-turnstile { min-height: 70px; }

.bsv-vm-dl-turnstile-status {
  margin: 10px 0 0;
  color: var(--vm-muted);
  font-weight: 700;
}

.bsv-vm-dl-turnstile-status.is-complete { color: #08783f; }
.bsv-vm-dl-turnstile-status.is-error { color: #a30d1a; }
.bsv-vm-dl [data-download] { margin-top: 18px; }

.bsv-vm-dl-message {
  margin-top: 14px;
  color: var(--vm-muted);
  font-weight: 700;
}

.bsv-vm-dl-message:not(:empty) {
  padding: 13px 15px;
  border: 1px solid var(--vm-border);
  background: #fff;
}

.bsv-vm-dl-message.is-error {
  border-color: #e8a8ad;
  background: #fff3f4;
  color: #a30d1a;
}

.bsv-vm-dl-message.is-success {
  border-color: #9bd5b8;
  background: #f0fbf5;
  color: #086b3a;
}

.bsv-vm-dl-success {
  border-top: 5px solid #08783f;
  text-align: center;
}

.bsv-vm-dl-success h2 { margin-top: 0; color: #086b3a; }
.bsv-vm-dl-primary.is-link { text-decoration: none; }

.bsv-vm-dl-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 720px) {
  .bsv-vm-dl { margin: 18px 0; }
  .bsv-vm-dl-header,
  .bsv-vm-dl-step,
  .bsv-vm-dl-success { padding: 20px 16px; }
  .bsv-vm-dl-grid,
  .bsv-vm-dl-otp { grid-template-columns: 1fr; }
  .bsv-vm-dl-primary,
  .bsv-vm-dl-secondary { width: 100%; }
  .bsv-vm-dl-turnstile { overflow-x: auto; }
}

