/* ── Reset scoped to root ── */
#hhb-wiz-root,
#hhb-wiz-root *,
#hhb-wiz-root *::before,
#hhb-wiz-root *::after {
  box-sizing: border-box !important;
}

#hhb-wiz-root {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1a1a1a;
  width: 100%;
}

/* ── CSS custom properties ── */
#hhb-wiz-root {
  --hhb-primary: #007879;
  /* wsf-form-color-primary */
  --hhb-primary-h: #005a5b;
  --hhb-danger: #bb0000;
  /* wsf-form-color-danger */
  --hhb-border: #e2e8f0;
  --hhb-bg: #ffffff;
  --hhb-bg2: #f8fafc;
  --hhb-text2: #5b616b;
  /* wsf-form-color-secondary */
  --hhb-radius: 10px;
  --hhb-shadow: 0 1px 3px rgba(0, 0, 0, .07), 0 6px 24px rgba(0, 0, 0, .06);
}

/* ── Card ── */
#hhb-wiz-root .hhb-card {
  background: var(--hhb-bg);
  border-radius: var(--hhb-radius);
  border: 1px solid rgba(0, 25, 49, 0.10);
  box-shadow: var(--hhb-shadow);
  padding: 36px 48px;
  width: 100% !important;
  max-width: 850px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  min-height: 420px;
}

@media (max-width: 600px) {
  #hhb-wiz-root .hhb-card {
    padding: 22px 16px !important;
    width: calc(100% - 32px) !important;
    margin-top: 16px !important;
    margin-bottom: 24px !important;
  }

  #hhb-wiz-root .hhb-alert {
    font-size: 13px !important;
    padding: 10px 12px !important;
  }

  #hhb-wiz-root .hhb-toggle {
    flex-direction: column !important;
  }

  #hhb-wiz-root .hhb-toggle .tbtn {
    padding: 10px 16px !important;
  }

  #hhb-wiz-root .hhb-footer {
    flex-direction: column-reverse !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  #hhb-wiz-root .hhb-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 20px !important;
  }

  #hhb-wiz-root .btn-add-row {
    padding: 14px 16px !important;
  }

  #hhb-wiz-root .hhb-footer span {
    display: none !important;
    /* Hide empty spacer in column layout */
  }

  #hhb-wiz-root .hhb-auth-wrap .step-title,
  #hhb-wiz-root .hhb-auth-wrap .step-subtitle {
    text-align: center !important;
  }
}

/* ── Progress bar ── */
#hhb-wiz-root .hhb-progress {
  height: 6px;
  background: #e5e7eb;
  border-radius: 6px;
  margin-bottom: 20px;
  overflow: hidden;
  display: none;
  /* hidden on step 0 */
}

#hhb-wiz-root.hhb-started .hhb-progress {
  display: block;
}

#hhb-wiz-root .hhb-progress-fill {
  height: 100%;
  background: var(--hhb-primary);
  border-radius: 6px;
  transition: width 0.4s ease;
}

/* ── Step tabs ── */
#hhb-wiz-root .hhb-tabs {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  margin: 0 0 28px 0 !important;
  padding: 0 !important;
  border-bottom: 2px solid var(--hhb-border) !important;
  overflow-x: auto;
  scrollbar-width: none;
  list-style: none !important;
}

#hhb-wiz-root .hhb-tabs::-webkit-scrollbar {
  display: none;
}

#hhb-wiz-root .hhb-tab {
  display: inline-block !important;
  padding: 10px 16px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--hhb-text2) !important;
  white-space: nowrap !important;
  cursor: default;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -2px !important;
  line-height: 1.4 !important;
  transition: color 0.2s;
  flex-shrink: 0 !important;
}

#hhb-wiz-root .hhb-tab.hhb-active {
  color: var(--hhb-primary) !important;
  border-bottom-color: var(--hhb-primary) !important;
  font-weight: 600 !important;
}

#hhb-wiz-root .hhb-tab.hhb-done {
  color: #059669 !important;
}

/* ── Step title/subtitle ── */
#hhb-wiz-root .step-title {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.3 !important;
}

#hhb-wiz-root .step-subtitle {
  font-size: 16px !important;
  color: var(--hhb-text2) !important;
  margin: 0 0 20px 0 !important;
  line-height: 1.5 !important;
}

/* ── Property badge ── */
#hhb-wiz-root .prop-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 0.35rem 0.85rem !important;
  border-radius: 6px;
  font-size: 16px !important;
  font-weight: 500 !important;
  margin-bottom: 14px !important;
}

#hhb-wiz-root .prop-badge a {
  color: inherit;
  text-decoration: underline;
}

/* ── Form groups ── */
#hhb-wiz-root .hhb-fg {
  margin-bottom: 22px !important;
}

#hhb-wiz-root .hhb-fg label {
  display: block !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  margin: 0 0 5px 0 !important;
  color: #1a1a1a !important;
}

#hhb-wiz-root .hhb-fg .hint {
  font-size: 14px !important;
  color: var(--hhb-text2) !important;
  margin-top: 4px !important;
}

/* ── Grid ── */
#hhb-wiz-root .hhb-grid2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
}

@media (max-width: 520px) {
  #hhb-wiz-root .hhb-grid2 {
    grid-template-columns: 1fr !important;
  }
}

/* ── Section label ── */
#hhb-wiz-root .hhb-sec-lbl {
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--hhb-text2) !important;
  margin: 22px 0 10px 0 !important;
}

/* ── Inputs ── */
#hhb-wiz-root input[type="text"],
#hhb-wiz-root input[type="number"],
#hhb-wiz-root input[type="date"],
#hhb-wiz-root input[type="url"],
#hhb-wiz-root select {
  display: block !important;
  width: 100% !important;
  padding: 14px 16px !important;
  border: 1.5px solid var(--hhb-border) !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-family: inherit !important;
  background: var(--hhb-bg) !important;
  color: #1a1a1a !important;
  transition: border-color 0.15s;
  -webkit-appearance: none !important;
  appearance: none !important;
  outline: none !important;
  margin: 0 !important;
  box-shadow: none !important;
}

#hhb-wiz-root input:focus,
#hhb-wiz-root select:focus {
  border-color: var(--hhb-primary) !important;
}

#hhb-wiz-root input.hhb-err,
#hhb-wiz-root select.hhb-err {
  border-color: var(--hhb-danger) !important;
}

#hhb-wiz-root select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.7rem center !important;
  background-size: 16px !important;
  padding-right: 2.5rem !important;
}

/* ── KM Addon ── */
#hhb-wiz-root .hhb-addon {
  display: flex !important;
  align-items: stretch !important;
}

#hhb-wiz-root .hhb-addon .hhb-pfx {
  display: flex !important;
  align-items: center !important;
  padding: 0 0.85rem !important;
  background: var(--hhb-bg2) !important;
  border: 1.5px solid var(--hhb-border) !important;
  border-right: none !important;
  border-radius: 8px 0 0 8px !important;
  font-size: 16px !important;
  color: var(--hhb-text2) !important;
  white-space: nowrap !important;
}

#hhb-wiz-root .hhb-addon input {
  border-radius: 0 8px 8px 0 !important;
}

/* ── Toggle radio pills ── */
#hhb-wiz-root .hhb-toggle {
  display: flex !important;
  gap: 0.5rem !important;
  margin-top: 10px !important;
}

#hhb-wiz-root .hhb-toggle label {
  flex: 1 !important;
}

#hhb-wiz-root .hhb-toggle input[type="radio"] {
  display: none !important;
}

#hhb-wiz-root .hhb-toggle .tbtn {
  display: block !important;
  text-align: center !important;
  padding: 12px 24px !important;
  border: 1.5px solid var(--hhb-border) !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: 16px !important;
  transition: all 0.15s;
  user-select: none !important;
  color: #374151 !important;
  background: var(--hhb-bg) !important;
}

#hhb-wiz-root .hhb-toggle input:checked+.tbtn {
  background: #009d9f !important;
  border-color: #009d9f !important;
  color: #fff !important;
  font-weight: 600 !important;
}

/* ── Alerts ── */
#hhb-wiz-root .hhb-alert {
  border-radius: 8px !important;
  padding: 0.85rem 1rem !important;
  font-size: 14px !important;
  margin-bottom: 14px !important;
  line-height: 1.5 !important;
}

#hhb-wiz-root .hhb-alert-info {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}

#hhb-wiz-root .hhb-alert-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

#hhb-wiz-root .hhb-alert-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* ── Inline field error ── */
#hhb-wiz-root .hhb-ferr {
  font-size: 16px !important;
  color: var(--hhb-danger) !important;
  margin-top: 4px !important;
  display: none !important;
}

#hhb-wiz-root .hhb-ferr.show {
  display: block !important;
}

/* ── Period card ── */
#hhb-wiz-root .hhb-period-card {
  border: 1.5px solid var(--hhb-border);
  border-radius: var(--hhb-radius);
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--hhb-bg);
}

#hhb-wiz-root .hhb-period-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 16px !important;
  background: rgba(225, 225, 225, 0.23);
  border-bottom: 1px solid var(--hhb-border);
}

#hhb-wiz-root .hhb-period-head h4 {
  font-size: 16px !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

#hhb-wiz-root .hhb-period-body {
  padding: 16px !important;
}

/* ── Remove buttons ── */
#hhb-wiz-root .btn-rm {
  background: none !important;
  border: 1.5px solid #fca5a5 !important;
  color: var(--hhb-danger) !important;
  padding: 0.25rem 0.6rem !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  transition: background 0.15s;
}

#hhb-wiz-root .btn-rm:hover {
  background: #fee2e2 !important;
}

/* ── Collapsible advanced ── */
#hhb-wiz-root .hhb-adv-btn {
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 16px !important;
  color: var(--hhb-primary) !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  margin-top: 10px !important;
  padding: 0 !important;
  font-family: inherit !important;
}

#hhb-wiz-root .hhb-adv-body {
  display: none;
  margin-top: 10px;
}

#hhb-wiz-root .hhb-adv-body.open {
  display: block;
}

/* ── Add row button ── */
#hhb-wiz-root .btn-add-row {
  width: 100% !important;
  padding: 1.1rem !important;
  border: 1.5px dashed var(--hhb-primary) !important;
  border-radius: var(--hhb-radius) !important;
  background: #f0fdf4 !important;
  cursor: pointer !important;
  color: var(--hhb-primary) !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  transition: all 0.2s;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  margin-top: 8px !important;
}

#hhb-wiz-root .btn-add-row:hover {
  background: #dcfce7 !important;
  border-color: var(--hhb-primary-h) !important;
  border-style: solid !important;
}

/* ── iCal card ── */
#hhb-wiz-root .hhb-ical-card {
  border: 1.5px solid var(--hhb-border);
  border-radius: var(--hhb-radius);
  padding: 16px !important;
  margin-bottom: 12px;
  background: rgba(225, 225, 225, 0.15);
  position: relative;
}

#hhb-wiz-root .hhb-ical-card .btn-rm {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
}

/* ── Consent box ── */
#hhb-wiz-root .hhb-consent {
  background: #f0fdf4;
  border-left: 4px solid var(--hhb-primary);
  border-radius: 8px;
  padding: 16px !important;
  margin-bottom: 18px !important;
}

#hhb-wiz-root .hhb-consent p {
  font-size: 16px !important;
  line-height: 1.6 !important;
}

#hhb-wiz-root .hhb-check-row {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin-top: 16px !important;
  cursor: pointer;
  background: #f0fdf4 !important;
  border: 2px dashed var(--hhb-primary) !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  transition: all 0.2s;
}

#hhb-wiz-root .hhb-check-row:hover {
  background: #dcfce7 !important;
  border-style: solid !important;
}

#hhb-wiz-root .hhb-check-row input[type="checkbox"] {
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: var(--hhb-primary) !important;
  cursor: pointer;
  position: relative !important;
  left: 3px !important;
  top: 3px !important;
}




input[type="checkbox"]:checked:before {
  left: 3px !important;
  top: 3px !important;
}




#hhb-wiz-root .hhb-check-row span {
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: var(--hhb-primary) !important;
}

/* ── Summary ── */
#hhb-wiz-root .hhb-summary {
  background: var(--hhb-bg2);
  border-radius: var(--hhb-radius);
  padding: 16px !important;
  font-size: 16px !important;
  line-height: 2 !important;
}

/* ── Footer nav ── */
#hhb-wiz-root .hhb-footer {
  margin-top: 28px !important;
  padding-top: 20px !important;
  border-top: 1px solid var(--hhb-border) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

#hhb-wiz-root .hhb-btn {
  padding: 14px 28px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  border: none !important;
  transition: all 0.15s;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 180px !important;
  gap: 0.4rem !important;
}

#hhb-wiz-root .hhb-btn-sec {
  background: var(--hhb-bg2) !important;
  border: 1.5px solid var(--hhb-border) !important;
  color: #1a1a1a !important;
}

#hhb-wiz-root .hhb-btn-sec:hover {
  background: #e5e7eb !important;
}

#hhb-wiz-root .hhb-btn-pri {
  background: var(--hhb-primary) !important;
  color: #fff !important;
}

#hhb-wiz-root .hhb-btn-pri:hover {
  background: var(--hhb-primary-h) !important;
}

#hhb-wiz-root .hhb-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* ── Spinner ── */
#hhb-wiz-root .hhb-spin {
  display: inline-block !important;
  width: 15px !important;
  height: 15px !important;
  border: 2.5px solid rgba(255, 255, 255, 0.35) !important;
  border-top-color: #fff !important;
  border-radius: 50% !important;
  animation: hhbSpin 0.7s linear infinite !important;
}

@keyframes hhbSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Auth wrap ── */
#hhb-wiz-root .hhb-auth-wrap .hhb-footer {
  border: none !important;
  padding-top: 0 !important;
  margin-top: 16px !important;
  justify-content: flex-end !important;
}