:root {
  --hfb-bg: #0D0D0D;
  --hfb-surface: #161616;
  --hfb-surface-hover: #1F1F1F;
  --hfb-border: #2A2A2A;
  --hfb-primary: #04D9D9;
  --hfb-primary-dim: rgba(4, 217, 217, 0.12);
  --hfb-primary-glow: rgba(4, 217, 217, 0.25);
  --hfb-text: #F0F0F0;
  --hfb-muted: #888888;
  --hfb-blocked: #2A2A2A;
  --hfb-blocked-text: #444444;
}
button.hfb-close{
  display:flex;
}
span.current{
  color:black
}
.nice-select .option{
  color:black
}

button.hfb-cal-nav{
  display:flex;
}

#hfb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#hfb-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

#hfb-modal {
  background: var(--hfb-bg);
  border: 1px solid var(--hfb-border);
  border-radius: 16px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.25s ease-out;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.9);
  font-family: 'Inter', 'DM Sans', system-ui, sans-serif;
}

#hfb-overlay.is-open #hfb-modal {
  transform: translateY(0);
}

@media (max-width: 640px) {
  #hfb-modal {
    max-height: 100%;
    border-radius: 0;
  }
}

.hfb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--hfb-border);
  background: var(--hfb-surface);
}

.hfb-header .hfb-logo {
  height: 34px;
  width: auto;
}

.hfb-header .hfb-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--hfb-text);
}

.hfb-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--hfb-border);
  background: transparent;
  color: var(--hfb-muted);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: border-color 0.15s, color 0.15s;
}

.hfb-close:hover {
  border-color: var(--hfb-primary);
  color: var(--hfb-primary);
}

.hfb-steps-bar {
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--hfb-border);
  background: var(--hfb-surface);
}

.hfb-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--hfb-blocked-text);
}

.hfb-step-item.active {
  color: var(--hfb-primary);
}

.hfb-step-item.done {
  color: var(--hfb-muted);
}

.hfb-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  border: 1.5px solid currentColor;
  flex-shrink: 0;
}

.hfb-step-item.active .hfb-step-num {
  background: var(--hfb-primary);
  color: var(--hfb-bg);
  border-color: var(--hfb-primary);
}

.hfb-step-item.done .hfb-step-num {
  background: var(--hfb-surface-hover);
  border-color: var(--hfb-border);
  color: var(--hfb-muted);
}

.hfb-step-divider {
  flex: 1;
  height: 1px;
  background: var(--hfb-border);
  margin: 0 16px;
}

.hfb-progress-bar {
  height: 2px;
  background: var(--hfb-border);
  position: relative;
}

.hfb-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--hfb-primary), rgba(4, 217, 217, 0.5));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--hfb-primary-glow);
  transition: width 0.4s ease;
}

.hfb-body {
  min-height: 400px;
  overflow-y: auto;
}

.hfb-step-content {
  display: none;
  padding: 24px;
  animation: hfb-fade 0.2s ease;
}

.hfb-step-content.is-visible {
  display: block;
}

@keyframes hfb-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Step 1: Packages */
.hfb-packages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .hfb-packages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hfb-package-card {
  background: var(--hfb-surface);
  border: 2px solid var(--hfb-border);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: left;
}

.hfb-package-card:hover {
  border-color: var(--hfb-primary);
  box-shadow: 0 0 12px var(--hfb-primary-glow);
}

.hfb-package-card.selected {
  border-color: var(--hfb-primary);
  box-shadow: 0 0 14px var(--hfb-primary-glow);
  position: relative;
}

.hfb-package-card.selected::after {
  content: '\2713';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: var(--hfb-primary);
  color: var(--hfb-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.hfb-package-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--hfb-text);
  margin-bottom: 4px;
}

.hfb-package-tagline {
  font-size: 12px;
  color: var(--hfb-muted);
  margin-bottom: 12px;
}

.hfb-package-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--hfb-primary);
  margin-bottom: 12px;
}

.hfb-package-card .hfb-btn-select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--hfb-primary);
  background: transparent;
  color: var(--hfb-primary);
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.hfb-package-card:hover .hfb-btn-select,
.hfb-package-card.selected .hfb-btn-select {
  background: var(--hfb-primary);
  color: var(--hfb-bg);
}

/* Step 2: Date & Time */
.hfb-datetime-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 640px) {
  .hfb-datetime-layout {
    flex-direction: row;
  }
}

.hfb-sidebar {
  flex: 0 0 200px;
  padding: 16px;
  background: var(--hfb-surface);
  border-radius: 12px;
  border: 1px solid var(--hfb-border);
}

.hfb-sidebar-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hfb-muted);
  margin-bottom: 8px;
}

.hfb-pkg-chip {
  background: var(--hfb-primary-dim);
  border: 1px solid rgba(4, 217, 217, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.hfb-pkg-chip-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--hfb-text);
}

.hfb-pkg-chip-sub {
  font-size: 11px;
  color: var(--hfb-primary);
}

.hfb-cal-panel {
  flex: 1;
  min-width: 0;
}

.hfb-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.hfb-cal-month {
  font-size: 15px;
  font-weight: 500;
  color: var(--hfb-text);
}

.hfb-cal-nav {
  width: 32px;
  height: 32px;
  background: var(--hfb-surface);
  border: 1px solid var(--hfb-border);
  border-radius: 8px;
  color: var(--hfb-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}

.hfb-cal-nav:hover {
  border-color: var(--hfb-primary);
  color: var(--hfb-primary);
}

.hfb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.hfb-cal-dow {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--hfb-muted);
}

.hfb-cal-day {
  aspect-ratio: 1;
  max-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 8px;
  cursor: default;
  color: var(--hfb-muted);
  user-select: none;
}

.hfb-cal-day.available {
  color: var(--hfb-text);
  cursor: pointer;
}

.hfb-cal-day.available:hover {
  background: var(--hfb-primary-dim);
  color: var(--hfb-primary);
}

.hfb-cal-day.selected {
  background: var(--hfb-primary);
  color: var(--hfb-bg);
  font-weight: 700;
  box-shadow: 0 0 14px var(--hfb-primary-glow);
}

.hfb-cal-day.today::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hfb-primary);
}

.hfb-cal-day.today.selected::after {
  background: var(--hfb-bg);
}

.hfb-cal-day.past {
  opacity: 0.35;
}

.hfb-cal-day.fully-booked {
  opacity: 0.5;
  color: var(--hfb-blocked-text);
}

.hfb-cal-day.empty {
  visibility: hidden;
}

.hfb-slots-panel {
  flex: 1;
  min-width: 0;
}

.hfb-slots-header {
  margin-bottom: 12px;
}

.hfb-slots-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hfb-muted);
}

.hfb-slots-date {
  font-size: 14px;
  font-weight: 500;
  color: var(--hfb-text);
  margin-left: 6px;
}

.hfb-slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.hfb-slot {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--hfb-border);
  font-size: 13px;
  font-weight: 500;
  color: var(--hfb-text);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  background: var(--hfb-surface);
}

.hfb-slot:hover:not(.blocked) {
  border-color: var(--hfb-primary);
  background: var(--hfb-primary-dim);
  color: var(--hfb-primary);
}

.hfb-slot.selected {
  background: var(--hfb-primary);
  border-color: var(--hfb-primary);
  color: var(--hfb-bg);
  font-weight: 700;
  box-shadow: 0 0 14px var(--hfb-primary-glow);
}

.hfb-slot.blocked {
  background: var(--hfb-blocked);
  color: var(--hfb-blocked-text);
  cursor: default;
  font-size: 11px;
  opacity: 0.7;
}

.hfb-tz-note {
  margin-top: 12px;
  font-size: 11px;
  color: var(--hfb-muted);
}

/* Step 3: Form */
.hfb-form-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 640px) {
  .hfb-form-layout {
    flex-direction: row;
  }
}

.hfb-form-sidebar {
  flex: 0 0 220px;
  padding: 16px;
  background: var(--hfb-surface);
  border-radius: 12px;
  border: 1px solid var(--hfb-border);
}

.hfb-summary-row {
  margin-bottom: 12px;
}

.hfb-summary-key {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hfb-muted);
}

.hfb-summary-val {
  font-size: 13px;
  color: var(--hfb-text);
}

.hfb-summary-val.accent {
  color: var(--hfb-primary);
  font-weight: 600;
}

.hfb-form-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hfb-field-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hfb-muted);
  margin-bottom: 6px;
}

.hfb-field-group select {
  width: 100%;
  padding: 12px 14px;
  background: #111;
  border: 1px solid var(--hfb-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--hfb-text);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--hfb-muted) 50%), linear-gradient(135deg, var(--hfb-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 16px, calc(100% - 13px) 16px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.hfb-field-group select:focus {
  outline: none;
  border-color: var(--hfb-primary);
  box-shadow: 0 0 0 3px var(--hfb-primary-dim);
}

.hfb-field-group input {
  width: 100%;
  padding: 12px 14px;
  background: #111;
  border: 1px solid var(--hfb-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--hfb-text);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hfb-field-group input:focus {
  outline: none;
  border-color: var(--hfb-primary);
  box-shadow: 0 0 0 3px var(--hfb-primary-dim);
}

.hfb-field-group input::placeholder {
  color: var(--hfb-muted);
}

.hfb-field-group input.readonly {
  background: var(--hfb-surface);
  color: var(--hfb-muted);
  cursor: default;
}

.hfb-privacy-note {
  font-size: 12px;
  color: var(--hfb-muted);
  margin-top: 8px;
}

/* Success state */
.hfb-success-state {
  text-align: center;
  padding: 32px 24px;
}

.hfb-success-icon {
  font-size: 48px;
  color: var(--hfb-primary);
  margin-bottom: 16px;
}

.hfb-success-state h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--hfb-text);
}

.hfb-success-state p {
  color: var(--hfb-muted);
  margin-bottom: 8px;
  line-height: 1.6;
}

.hfb-success-state .hfb-resend-btn {
  background: none;
  border: none;
  color: var(--hfb-primary);
  cursor: pointer;
  text-decoration: underline;
  font-size: 14px;
  margin-top: 12px;
}

/* Footer */
.hfb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid var(--hfb-border);
  background: var(--hfb-surface);
}

.hfb-btn-back {
  padding: 10px 18px;
  border: 1px solid var(--hfb-border);
  background: transparent;
  color: var(--hfb-muted);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.hfb-btn-back:hover {
  border-color: var(--hfb-primary);
  color: var(--hfb-primary);
}

.hfb-btn-next {
  padding: 12px 26px;
  background: var(--hfb-primary);
  border: none;
  color: var(--hfb-bg);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 0 20px rgba(4, 217, 217, 0.22);
}

.hfb-btn-next:hover {
  box-shadow: 0 0 32px rgba(4, 217, 217, 0.42);
  transform: translateY(-1px);
}

.hfb-btn-next:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.hfb-fullscreen-loader {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hfb-loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 200px;
  padding: 24px;
}

.hfb-loader-wrap.hfb-loader-inline {
  min-height: 80px;
  flex-direction: row;
}

.hfb-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--hfb-border);
  border-top-color: var(--hfb-primary);
  border-radius: 50%;
  animation: hfb-spin 0.7s linear infinite;
}

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

.hfb-loading {
  text-align: center;
  padding: 24px;
  color: var(--hfb-muted);
}

.hfb-loader-wrap .hfb-loading {
  padding: 0;
}

.hfb-error-msg {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 8px;
}
