.bmg-mount {
  --bmg-ink: #172033;
  --bmg-muted: #667085;
  --bmg-blue: #1477ff;
  --bmg-violet: #6c5ce7;
  --bmg-pink: #ef36bd;
  --bmg-line: #e3e5ec;
  color: var(--bmg-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bmg-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.bmg-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--bmg-ink);
  font-size: 14px;
  font-weight: 750;
}

.bmg-optional {
  color: var(--bmg-muted);
  font-weight: 500;
}

.bmg-helper {
  margin: -2px 0 10px;
  color: var(--bmg-muted);
  font-size: 13px;
  line-height: 1.5;
}

.bmg-field select,
.bmg-field input,
.bmg-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 14px 15px;
  border: 1px solid #d7dae2;
  border-radius: 12px;
  background: #fff;
  color: var(--bmg-ink);
  font: inherit;
}

.bmg-field textarea {
  min-height: 112px;
  resize: vertical;
}

.bmg-field select:focus,
.bmg-field input:focus,
.bmg-field textarea:focus {
  border-color: var(--bmg-violet);
  outline: 3px solid rgba(108, 92, 231, .14);
}

.bmg-field-tone,
.bmg-field-full {
  grid-column: 1 / -1;
}

.bmg-form-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
}

.bmg-note {
  margin: 0;
  color: var(--bmg-muted);
  font-size: 13px;
}

.bmg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.bmg-button:hover {
  transform: translateY(-1px);
}

.bmg-button-primary {
  background: linear-gradient(135deg, var(--bmg-blue), var(--bmg-violet) 62%, var(--bmg-pink));
  color: #fff;
  box-shadow: 0 10px 24px rgba(108, 92, 231, .2);
}

.bmg-button-secondary {
  border-color: var(--bmg-line);
  background: #fff;
  color: var(--bmg-ink);
}

.bmg-results {
  margin-top: 38px;
  padding-top: 34px;
  border-top: 1px solid var(--bmg-line);
}

.bmg-results[hidden] {
  display: none;
}

.bmg-results h3 {
  margin: 0 0 18px;
  color: var(--bmg-ink);
  font-size: clamp(27px, 3vw, 36px);
  letter-spacing: -.8px;
}

.bmg-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bmg-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 22px;
  border: 1px solid rgba(108, 92, 231, .18);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(23, 32, 51, .07);
}

.bmg-card-number {
  margin-bottom: 12px;
  color: var(--bmg-violet);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.bmg-message {
  flex: 1;
  margin: 0 0 20px;
  color: #252c40;
  font-size: 17px;
  line-height: 1.65;
}

.bmg-card-actions {
  display: flex;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--bmg-line);
}

.bmg-card-actions .bmg-button {
  min-height: 40px;
  flex: 1;
  padding: 0 12px;
  font-size: 13px;
}

.bmg-results-footer {
  margin-top: 18px;
  text-align: center;
}

.bmg-retention {
  max-width: 720px;
  margin: 20px auto 0;
  padding: 18px 20px;
  border: 1px solid rgba(108, 92, 231, .18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(108, 92, 231, .07), rgba(255, 118, 168, .06));
  text-align: left;
}

.bmg-retention-title {
  margin: 0 0 6px;
  color: var(--bmg-ink);
  font-size: 18px;
  line-height: 1.35;
}

.bmg-retention-title-tail {
  white-space: nowrap;
}

.bmg-retention-text,
.bmg-retention-secondary {
  margin: 0;
  color: var(--bmg-muted);
  font-size: 14px;
  line-height: 1.55;
}

.bmg-retention-secondary {
  margin-top: 3px;
  font-size: 13px;
}

.bmg-retention-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.bmg-retention-button {
  min-height: 40px;
  flex: 0 0 auto;
  border-color: rgba(108, 92, 231, .32);
  color: var(--bmg-violet);
}

.bmg-save-instruction {
  flex: 1 1 260px;
  margin: 0;
  color: var(--bmg-ink);
  font-size: 13px;
  line-height: 1.5;
}

.bmg-save-instruction[hidden] {
  display: none;
}

.bmg-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--bmg-muted);
  font-size: 13px;
  text-align: center;
}

.bmg-page-intro {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--bmg-muted);
  font-size: 19px;
  line-height: 1.7;
}

.bmg-page-shell {
  margin: 0 0 64px;
  padding: 30px;
  border: 1px solid var(--bmg-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(23, 32, 51, .08);
}

.bmg-how {
  max-width: 760px;
  margin: 20px 0 72px;
  padding: 30px;
  border-radius: 20px;
  background: #faf9ff;
}

.bmg-how h2 {
  margin-top: 0;
}

.bmg-how ol {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .bmg-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bmg-field-tone {
    grid-column: auto;
  }

  .bmg-cards {
    grid-template-columns: 1fr;
  }

  .bmg-card {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .bmg-form-grid {
    grid-template-columns: 1fr;
  }

  .bmg-field-tone,
  .bmg-field-full {
    grid-column: auto;
  }

  .bmg-form-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .bmg-button-primary,
  .bmg-results-footer .bmg-button,
  .bmg-retention-button {
    width: 100%;
  }

  .bmg-retention {
    padding: 16px;
  }

  .bmg-retention-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .bmg-save-instruction {
    flex-basis: auto;
  }

  .bmg-page-shell {
    padding: 20px;
    border-radius: 18px;
  }
}
