/* ============================================================
   Novahair Booking widget
   ============================================================ */
.novahair-booking {
  max-width: 920px;
  margin: 0 auto;
  font-family: inherit;
  color: inherit;
}
.novahair-booking * {
  box-sizing: border-box;
}

.nhb-hidden {
  display: none !important;
}

/* Steps */
.nhb-step {
  padding: 24px 0;
}
.nhb-step h3 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}
.nhb-step h4 {
  margin: 0 0 12px;
  font-size: 1rem;
}

/* Back button */
.nhb-back {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  font-size: 0.9rem;
  padding: 0 0 10px;
}
.nhb-back:hover {
  color: #333;
}
.nhb-calendar-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
/* Calendar */
.nhb-calendar-shell {
  width: calc(60% - 6px);
  background: linear-gradient(180deg, #fffdf8 0%, #fff 100%);
  border: 1px solid #eadfcd;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(92, 68, 31, 0.08);
}

.nhb-selection-group {
  margin-bottom: 22px;
  width: calc(40% - 6px);
}

.nhb-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.nhb-calendar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #3e2f1c;
  text-align: center;
  flex: 1;
}
.nhb-calendar-nav {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #dbc7a2;
  background: #fff;
  color: #6e5530;
  cursor: pointer;
  font-size: 1rem;
}
.nhb-calendar-nav:hover {
  background: #f7efdf;
}
.nhb-calendar-weekdays,
.nhb-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.nhb-calendar-weekdays {
  margin-bottom: 8px;
}
.nhb-calendar-weekday {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #8f7a58;
  padding: 8px 0;
}

.nhb-text-center {
  text-align: center;
}

.nhb-calendar-day {
  min-height: 64px;
  border-radius: 14px;
  border: 1px solid #eadfcd;
  background: #fff;
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: #3f3021;
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.nhb-calendar-day:hover {
  border-color: #c9a96e;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(92, 68, 31, 0.08);
}
.nhb-calendar-day.nhb-selected {
  background: #c9a96e;
  border-color: #c9a96e;
  color: #fff;
}
.nhb-calendar-day.is-muted {
  opacity: 0.35;
  cursor: default;
}
.nhb-calendar-day.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #f6f1e9;
}
.nhb-calendar-day.is-loading {
  opacity: 0.45;
  animation: nhb-loading-pulse 1.4s ease-in-out infinite;
}
.nhb-calendar-day.is-loading:hover {
  transform: none;
  box-shadow: none;
  border-color: #eadfcd;
  background: #f6f1e9;
}
.nhb-calendar-day.is-today {
  border-color: #8b6a37;
}
.nhb-calendar-day-number {
  font-size: 1rem;
  font-weight: 700;
}

.nhb-summary-inline {
  max-width: 100%;
}

/* Cards (service / employee selection) */
.nhb-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.nhb-card {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 14px 20px;
  cursor: pointer;
  min-width: calc(50% - 12px);
  transition:
    border-color 0.2s,
    background 0.2s;
  background: #fff;
  text-align: left;
}
.nhb-card:hover,
.nhb-card.nhb-selected {
  border-color: #c9a96e;
  background: #fdf8f0;
}

.nhb-service-card-skeleton {
  min-height: 96px;
  pointer-events: none;
}

.nhb-service-card-skeleton:hover {
  background: #fff;
}

.nhb-service-card-skeleton-line {
  background: linear-gradient(180deg, #f4ecdf 0%, #ebdfcb 100%);
  border-radius: 999px;
  animation: nhb-loading-pulse 1.4s ease-in-out infinite;
}

.nhb-service-card-skeleton-title {
  width: 62%;
  height: 18px;
  margin-top: 6px;
}

.nhb-service-card-skeleton-meta {
  width: 38%;
  height: 12px;
  margin-top: 14px;
}
.nhb-card-name {
  font-weight: 600;
  font-size: 1rem;
}
.nhb-card-description {
  margin-top: 6px;
  color: #5c5143;
  font-size: 0.92rem;
  line-height: 1.45;
}
.nhb-card-meta {
  color: #888;
  font-size: 0.85rem;
  margin-top: 4px;
  margin-bottom: 0;
}
.nhb-card-description {
  font-style: italic;
}
.nhb-employee-card {
  min-width: 260px;
  flex: 0 1 280px;
  border: none;
  background: transparent;
  padding: 8px 8px 18px;
  text-align: center;
}

.nhb-employee-card:hover,
.nhb-employee-card.nhb-selected {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.nhb-employee-card-photo-wrap {
  width: 220px;
  height: 220px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(180deg, #f6f1e9 0%, #ece2d3 100%);
  box-shadow: 0 16px 34px rgba(92, 68, 31, 0.12);
}

.nhb-employee-card-photo,
.nhb-employee-card-placeholder {
  width: 100%;
  height: 100%;
}

.nhb-employee-card-photo {
  object-fit: cover;
  display: block;
}

.nhb-employee-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: #7c6540;
  font-weight: 700;
}

.nhb-employee-card-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-style: italic;
  color: #2f271f;
  line-height: 1.2;
}

.nhb-employee-card-position {
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-style: italic;
  color: #7a6242;
  line-height: 1.3;
  min-height: 1.3em;
}

.nhb-employee-card.nhb-selected .nhb-employee-card-photo-wrap {
  box-shadow:
    0 0 0 5px rgba(201, 169, 110, 0.2),
    0 18px 36px rgba(92, 68, 31, 0.18);
}

.nhb-employee-card.nhb-selected .nhb-employee-card-name,
.nhb-employee-card.nhb-selected .nhb-employee-card-position {
  color: #8b6a37;
}

.nhb-employee-card-skeleton {
  pointer-events: none;
}

.nhb-employee-card-skeleton:hover {
  background: transparent;
}

.nhb-employee-card-skeleton .nhb-employee-card-photo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: none;
}

.nhb-employee-card-photo-skeleton,
.nhb-employee-card-line {
  background: linear-gradient(180deg, #f4ecdf 0%, #ebdfcb 100%);
  animation: nhb-loading-pulse 1.4s ease-in-out infinite;
}

.nhb-employee-card-photo-skeleton {
  width: 220px;
  height: 220px;
  border-radius: 50%;
}

.nhb-employee-card-line {
  border-radius: 999px;
  margin: 14px auto 0;
}

.nhb-employee-card-line-name {
  width: 76%;
  height: 28px;
}

.nhb-employee-card-line-position {
  width: 62%;
  height: 18px;
}

@keyframes nhb-loading-pulse {
  0% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.45;
  }
}

.nhb-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  margin-top: 4px;
  color: #000000 !important;
}
.nhb-input:focus {
  outline: none;
  border-color: #c9a96e;
}

.nhb-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  min-height: 48px;
}
.nhb-slot {
  border: 1px solid #c9a96e;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.95rem;
  background: #fff;
  transition: background 0.2s;
}
.nhb-slot:hover,
.nhb-slot.nhb-selected {
  background: #c9a96e;
  color: #fff;
}
.nhb-slot-skeleton {
  min-width: 74px;
  min-height: 38px;
  border-color: #eadfcd;
  background: linear-gradient(180deg, #f4ecdf 0%, #ebdfcb 100%);
  color: transparent;
  cursor: default;
  pointer-events: none;
  animation: nhb-loading-pulse 1.4s ease-in-out infinite;
}
.nhb-slot-skeleton:hover {
  background: linear-gradient(180deg, #f4ecdf 0%, #ebdfcb 100%);
  color: transparent;
}
.nhb-hint,
.nhb-loading {
  color: #aaa;
  font-style: italic;
}

/* Form */
.nhb-summary {
  background: #f9f5ef;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 auto 16px;
  font-size: 0.95rem;
  text-align: center !important;
}

.nhb-small-form {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
.nhb-field {
  margin-bottom: 14px;
}
.nhb-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}
.nhb-field-error {
  color: #c0392b;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* Buttons */
.nhb-btn {
  display: inline-block;
  padding: 10px 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: opacity 0.2s;
}
.nhb-btn:hover {
  opacity: 0.85;
}
.nhb-btn-primary {
  background: #c9a96e;
  color: #fff;
}
.nhb-btn-secondary {
  background: #f0ece4;
  color: #555;
  margin-top: 12px;
}

/* Result */
.nhb-result {
  text-align: center;
  padding: 40px 0;
}
.nhb-success-summary {
  max-width: 520px;
  margin: 20px auto 8px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #f9f5ef;
  border: 1px solid #eadfcd;
  text-align: left;
  box-shadow: 0 14px 30px rgba(92, 68, 31, 0.08);
}
.nhb-success-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(234, 223, 205, 0.9);
}
.nhb-success-summary-row:last-child {
  border-bottom: none;
}
.nhb-success-summary-row span {
  color: #8f7a58;
}
.nhb-success-summary-row strong {
  color: #3e2f1c;
  text-align: right;
}
.nhb-success-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  background: #c9a96e;
  color: #fff;
  font-size: 2rem;
  margin: 0 auto 16px;
}
.nhb-error-msg {
  color: #c0392b;
  font-size: 1rem;
}

@media (max-width: 991px) {
  .nhb-calendar-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .nhb-selection-group {
    width: calc(60% - 6px);
  }
}
@media (max-width: 720px) {
  .nhb-calendar-shell {
    padding: 14px;
    border-radius: 14px;
  }
  .nhb-calendar-shell,
  .nhb-selection-group {
    width: 100%;
  }
  .nhb-calendar-weekdays,
  .nhb-calendar-grid {
    gap: 6px;
  }

  .nhb-calendar-day {
    min-height: 60px;
    padding: 8px;
  }

  .nhb-card {
    min-width: calc(50% - 6px);
    flex: 1 1 calc(50% - 6px);
  }

  .nhb-employee-card {
    min-width: calc(50% - 6px);
    flex: 1 1 calc(50% - 6px);
  }

  .nhb-employee-card-photo-wrap {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .nhb-calendar-day {
    min-height: 36px;
  }
  .nhb-card {
    min-width: 100%;
    flex-basis: 100%;
  }

  .nhb-employee-card-photo-wrap {
    width: 160px;
    height: 160px;
  }

  .nhb-employee-card-name {
    font-size: 1.3rem;
  }

  .nhb-employee-card-position {
    font-size: 1.05rem;
  }
}
