/* Centered card layout */
.mhbo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.mhbo-card {
  position: relative; /* anchor overlay */
  max-width: 820px;
  width: 100%;
  margin: 24px auto;
  padding: 28px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}

.mhbo-title {
  text-align: center;
  margin: 0 0 18px 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}

.mhbo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mhbo-span-2 { grid-column: span 2; }

.mhbo-field {
  display: flex;
  flex-direction: column;
}

.mhbo-field > span {
  font-weight: 800;
  margin-bottom: 6px;
}

.mhbo-field input,
.mhbo-field select,
.mhbo-field textarea {
  border: none;
  border-bottom: 3px solid #111;
  padding: 10px 12px;
  outline: none;
  background: #f8f9fb;
  border-radius: 10px;
  transition: box-shadow 0.2s ease, transform 0.08s ease;
}

.mhbo-field input:focus,
.mhbo-field select:focus,
.mhbo-field textarea:focus {
  box-shadow: 0 0 0 4px rgba(255,165,0,0.25);
}

.mhbo-btn {
  display: inline-block;
  margin: 18px auto 0;
  width: 220px;
  text-align: center;
  font-weight: 900;
  padding: 14px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, #FFA500 0%, #ff7b00 80%);
  color: #111;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 0 #c75a00, 0 18px 30px rgba(255,123,0,.35);
  transform: translateY(0);
  transition: transform .08s ease, box-shadow .08s ease, filter .08s ease;
  text-transform: uppercase;
}

.mhbo-btn:hover {
  filter: brightness(1.05);
}

.mhbo-btn:active {
  transform: translateY(3px);
  box-shadow: 0 7px 0 #c75a00, 0 10px 20px rgba(255,123,0,.35);
}

/* Loading state for button */
.mhbo-btn.is-loading {
  position: relative;
  cursor: not-allowed;
  opacity: 0.9;
}
.mhbo-btn.is-loading::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid rgba(0,0,0,0.15);
  border-top-color: rgba(0,0,0,0.6);
  animation: mhbo-spin 0.8s linear infinite;
}

/* Form overlay loader */
.mhbo-loader {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease-in-out;
}
.mhbo-loader.show {
  opacity: 1;
  pointer-events: all;
}
.mhbo-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 4px solid rgba(0,0,0,0.15);
  border-top-color: rgba(0,0,0,0.6);
  animation: mhbo-spin 0.9s linear infinite;
}
.mhbo-loader-text {
  font-weight: 700;
  color: #111;
}

@keyframes mhbo-spin {
  to { transform: rotate(360deg); }
}

/* Error highlight */
.mhbo-error {
  box-shadow: 0 0 0 4px rgba(255,0,0,0.2) !important;
}

/* Responsive */
@media (max-width: 720px) {
  .mhbo-grid { grid-template-columns: 1fr; }
  .mhbo-span-2 { grid-column: span 1; }
}
