/* Hive Onboarding Form — scoped styles */

.hive-wrap {
  --ink:          #111110;
  --paper:        #FAFAF8;
  --line:         rgba(0, 0, 0, 0.1);
  --line-strong:  rgba(0, 0, 0, 0.2);
  --muted:        #888884;
  --honey:        #E8A020;
  --success-bg:   #EDFAF3;
  --success-text: #1A6640;
  --error-bg:     #FEF0F0;
  --error-text:   #9B2020;
  --r-sm:         6px;
  --r-md:         10px;
  --r-lg:         16px;

  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

.hive-wrap *, .hive-wrap *::before, .hive-wrap *::after {
  box-sizing: inherit;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.hive-header {
  margin-bottom: 2rem;
}

.hive-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.hive-bee {
  font-size: 20px;
  line-height: 1;
}

.hive-brand-name {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.hive-title {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: var(--ink) !important;
  border: none !important;
}

.hive-subtitle {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 !important;
}

/* ── Toast ───────────────────────────────────────────────────────────────── */

.hive-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  margin-bottom: 1.25rem;
  font-size: 14px;
  line-height: 1.5;
}

.hive-toast.is-success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 0.5px solid #7DD4A8;
}

.hive-toast.is-error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 0.5px solid #F5A0A0;
}

.hive-toast-icon {
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1.5;
}

/* ── Card ────────────────────────────────────────────────────────────────── */

.hive-card {
  background: #fff;
  border: 0.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
}

/* ── Layout helpers ──────────────────────────────────────────────────────── */

.hive-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.hive-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 480px) {
  .hive-row-2 { grid-template-columns: 1fr; }
  .hive-row-3 { grid-template-columns: 1fr; }
  .hive-title { font-size: 28px; }
}

/* ── Fields ──────────────────────────────────────────────────────────────── */

.hive-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hive-label {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--muted) !important;
  letter-spacing: .03em !important;
  margin: 0 !important;
}

.hive-required {
  color: var(--honey);
  margin-left: 3px;
}

.hive-input {
  width: 100%;
  padding: 9px 11px;
  border: 0.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
  appearance: none;
  -webkit-appearance: none;
  line-height: normal;
  margin: 0 !important;
}

.hive-input:focus {
  border-color: var(--line-strong);
}

.hive-input.has-error {
  border-color: #F5A0A0;
}

.hive-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888884' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 32px;
  cursor: pointer;
}

.hive-error {
  font-size: 11px;
  color: var(--error-text);
  min-height: 14px;
  display: block;
}

/* ── Revenue buttons ─────────────────────────────────────────────────────── */

.hive-revenue-btn {
  padding: 9px 6px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  border: 0.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.hive-revenue-btn.is-selected {
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 500;
}

/* ── Checkboxes (channels) ───────────────────────────────────────────────── */

.hive-channel-label {
  display: flex !important;
  align-items: center !important;
  gap: 9px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 13px !important;
  font-weight: 400 !important;
  transition: background .15s, border-color .15s;
  border: 0.5px solid var(--line);
  background: #fff;
  color: var(--ink) !important;
  margin: 0 !important;
  line-height: normal !important;
}

.hive-channel-label:has(input:checked) {
  border-color: var(--line-strong);
  background: #F7F7F5;
}

.hive-channel-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: var(--ink);
  flex-shrink: 0;
  margin: 0 !important;
}

/* ── Divider ─────────────────────────────────────────────────────────────── */

.hive-divider {
  height: 0.5px;
  background: var(--line);
  margin: 16px 0;
}

/* ── Submit ──────────────────────────────────────────────────────────────── */

.hive-submit {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  transition: opacity .15s;
  margin: 0 !important;
  line-height: normal;
}

.hive-submit:disabled,
.hive-submit.is-loading {
  opacity: 0.5;
  cursor: wait;
}

.hive-footer-note {
  margin-top: 12px !important;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
