.acb-calculator {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
  background: #fff;
  max-width: 760px;
  margin: 0 auto 24px;
  box-shadow: 0 6px 22px rgba(17, 24, 39, 0.05);
}

.acb-header h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.acb-offer {
  margin: 0 0 16px;
  color: #4b5563;
}

.acb-step-row {
  margin-bottom: 12px;
}

.acb-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.acb-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
}

.acb-actions {
  position: sticky;
  bottom: 10px;
  z-index: 5;
  display: flex;
  gap: 10px;
  margin-top: 18px;
  background: #fff;
  padding: 8px 0 4px;
}

.acb-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #111827;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 15px;
  cursor: pointer;
}

.acb-btn-primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.acb-result {
  margin-top: 14px;
  padding: 14px;
  background: #f8fafc;
  border-radius: 12px;
}

.acb-result-title {
  margin: 0 0 10px;
}

.acb-result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.acb-result-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  background: #fff;
  border-radius: 8px;
}

.acb-result-item span {
  color: #111827;
  font-weight: 400;
}

.acb-result-value {
  color: #111827;
  font-weight: 700;
}

.acb-result-value--accent {
  color: #2563eb;
}

.acb-lead-block {
  margin-top: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
  padding: 14px;
}

.acb-lead-block h4 {
  margin: 0 0 8px;
  word-spacing: normal;
  font-variant-numeric: tabular-nums;
}

.acb-lead-subtitle {
  margin: 0 0 10px;
  color: #334155;
}

.acb-lead-form {
  display: grid;
  gap: 10px;
}

.acb-textarea {
  min-height: 88px;
  resize: vertical;
}

.acb-form-message.ok {
  color: #047857;
}

.acb-form-message.error {
  color: #b91c1c;
}

.acb-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.acb-hidden {
  display: none;
}

body.acb-modal-open {
  overflow: hidden;
}

.acb-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.acb-modal.acb-hidden {
  display: none !important;
}

.acb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 0;
}

.acb-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px 20px;
  text-align: center;
  box-shadow: 0 14px 44px rgba(2, 6, 23, 0.35);
}

.acb-modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  z-index: 3;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.acb-modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 34px;
  line-height: 64px;
  font-weight: 700;
}

.acb-modal-dialog h4 {
  margin: 0 0 8px;
  font-size: 22px;
}

.acb-modal-dialog p {
  margin: 0;
  color: #334155;
}

@media (min-width: 720px) {
  .acb-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
