.hc-booking-widget {
  --hc-accent: #ed1d48;
  --hc-accent-rgb: 237, 29, 72;
  --hc-accent-soft: rgba(var(--hc-accent-rgb), 0.16);
  --hc-panel: rgba(11, 14, 23, 0.92);
  --hc-panel-2: rgba(17, 21, 33, 0.82);
  --hc-border: rgba(255, 255, 255, 0.1);
  --hc-text: rgba(255, 255, 255, 0.96);
  --hc-muted: rgba(255, 255, 255, 0.68);
  position: relative;
  overflow: hidden;
  min-height: 500px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 8% 14%, rgba(var(--hc-accent-rgb), 0.28), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
    linear-gradient(145deg, rgba(9, 12, 19, 0.98), rgba(16, 20, 32, 0.98));
  box-shadow: 0 36px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--hc-text);
}

.hc-booking-widget[data-theme="blue"] {
  --hc-accent: #1282b2;
  --hc-accent-rgb: 18, 130, 178;
}

.hc-booking-widget::before,
.hc-booking-widget::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
}

.hc-booking-widget::before {
  width: 280px;
  height: 280px;
  right: -96px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(var(--hc-accent-rgb), 0.22), transparent 68%);
  filter: blur(12px);
  animation: hcFloatGlow 8s ease-in-out infinite;
}

.hc-booking-widget::after {
  inset: 0;
  background:
    linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.04) 28%, transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 14%);
  opacity: 0.6;
}

.hc-booking-widget * {
  box-sizing: border-box;
}

.hc-booking-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.hc-booking-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hc-live-pill,
.hc-summary-badge,
.hc-fallback-badge,
.hc-empty-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}

.hc-live-pill::before,
.hc-summary-badge::before,
.hc-fallback-badge::before,
.hc-empty-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--hc-accent);
  box-shadow: 0 0 0 6px rgba(var(--hc-accent-rgb), 0.13);
}

.hc-live-pill::before {
  animation: hcPulse 1.8s ease-in-out infinite;
}

.hc-widget-title {
  margin: 0;
  font-size: clamp(1.15rem, 0.95rem + 0.7vw, 1.55rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hc-widget-sub {
  margin: 4px 0 0;
  color: var(--hc-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

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

.hc-progress-step {
  position: relative;
  overflow: hidden;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  transform: translateY(0);
  transition: transform 240ms ease, border-color 240ms ease, background-color 240ms ease;
}

.hc-progress-step.is-active {
  border-color: rgba(var(--hc-accent-rgb), 0.44);
  background: linear-gradient(135deg, rgba(var(--hc-accent-rgb), 0.18), rgba(255, 255, 255, 0.05));
  transform: translateY(-4px);
}

.hc-progress-step strong,
.hc-progress-step span {
  display: block;
}

.hc-progress-step strong {
  margin-bottom: 3px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.hc-progress-step span {
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.86rem;
  line-height: 1.3;
}

.hc-booking-panels {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
}

.hc-stage-card {
  animation: hcStageIn 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hc-panel {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--hc-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    linear-gradient(180deg, var(--hc-panel), var(--hc-panel-2));
  backdrop-filter: blur(10px);
}

.hc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hc-panel-label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.hc-month-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hc-month-nav button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.hc-month-nav button:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--hc-accent-rgb), 0.44);
  background: rgba(var(--hc-accent-rgb), 0.12);
}

.hc-month-title {
  min-width: 132px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hc-weekdays,
.hc-day-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.hc-weekdays {
  margin-bottom: 8px;
}

.hc-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.hc-day {
  position: relative;
  min-height: 56px;
  padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.hc-day:hover,
.hc-day:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(var(--hc-accent-rgb), 0.4);
  outline: none;
}

.hc-day.is-outside {
  visibility: hidden;
  pointer-events: none;
}

.hc-day.is-disabled {
  cursor: default;
  opacity: 0.36;
}

.hc-day.is-available {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.hc-day.is-selected {
  border-color: rgba(var(--hc-accent-rgb), 0.7);
  background: linear-gradient(160deg, rgba(var(--hc-accent-rgb), 0.34), rgba(255, 255, 255, 0.06));
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.hc-day-number {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.hc-day-slots {
  display: inline-flex;
  margin-top: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.hc-time-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hc-time-list.is-loading {
  min-height: 220px;
}

.hc-time-skeleton,
.hc-day-skeleton {
  border-radius: 16px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.04)
  );
  background-size: 200% 100%;
  animation: hcShimmer 1.35s linear infinite;
}

.hc-time-skeleton {
  height: 54px;
}

.hc-day-skeleton {
  height: 66px;
}

.hc-time-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transform: translateY(10px);
  opacity: 0;
  animation: hcRiseIn 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--slot-index, 0) * 32ms);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.hc-time-card:hover,
.hc-time-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(var(--hc-accent-rgb), 0.44);
  background: rgba(var(--hc-accent-rgb), 0.12);
  outline: none;
}

.hc-time-card.is-selected {
  border-color: rgba(var(--hc-accent-rgb), 0.72);
  background: linear-gradient(145deg, rgba(var(--hc-accent-rgb), 0.26), rgba(255, 255, 255, 0.05));
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
}

.hc-time-copy strong,
.hc-time-copy span {
  display: block;
}

.hc-time-copy strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.hc-time-copy span {
  margin-top: 2px;
  color: var(--hc-muted);
  font-size: 0.74rem;
}

.hc-time-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hc-summary-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.hc-success-card {
  position: relative;
  overflow: hidden;
  gap: 18px;
}

.hc-success-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(var(--hc-accent-rgb), 0.22), transparent 30%),
    linear-gradient(135deg, rgba(var(--hc-accent-rgb), 0.1), transparent 40%);
  pointer-events: none;
}

.hc-success-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.hc-success-copy h3 {
  margin: 8px 0 6px;
  font-size: clamp(1.2rem, 1rem + 0.5vw, 1.55rem);
  letter-spacing: -0.03em;
}

.hc-success-copy p {
  margin: 0;
  color: var(--hc-muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.hc-success-seal {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.28), transparent 40%),
    linear-gradient(145deg, rgba(var(--hc-accent-rgb), 1), rgba(var(--hc-accent-rgb), 0.56));
  box-shadow:
    0 24px 50px rgba(var(--hc-accent-rgb), 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: hcSuccessPop 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hc-success-seal::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(var(--hc-accent-rgb), 0.28);
  border-radius: 30px;
  opacity: 0;
  animation: hcSuccessRing 1.6s ease-out 160ms forwards;
}

.hc-success-seal span {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.hc-summary-copy h3 {
  margin: 0 0 6px;
  font-size: clamp(1.08rem, 0.96rem + 0.42vw, 1.34rem);
  letter-spacing: -0.03em;
}

.hc-summary-copy p {
  margin: 0;
  color: var(--hc-muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.hc-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hc-summary-chip {
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hc-summary-chip strong,
.hc-summary-chip span {
  display: block;
}

.hc-summary-chip strong {
  margin-bottom: 4px;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.54);
}

.hc-summary-chip span {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
  font-size: 0.88rem;
}

.hc-summary-cta,
.hc-summary-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
}

.hc-summary-cta {
  background: linear-gradient(135deg, rgba(var(--hc-accent-rgb), 1), rgba(var(--hc-accent-rgb), 0.78));
  color: #fff;
  box-shadow: 0 18px 34px rgba(var(--hc-accent-rgb), 0.22);
  cursor: pointer;
}

.hc-summary-cta:hover,
.hc-summary-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 40px rgba(var(--hc-accent-rgb), 0.28);
  outline: none;
}

.hc-summary-cta[aria-disabled="true"],
.hc-summary-cta:disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: wait;
}

.hc-summary-fallback {
  min-height: 44px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.82);
}

.hc-summary-fallback:hover,
.hc-summary-fallback:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(var(--hc-accent-rgb), 0.32);
  outline: none;
}

.hc-summary-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.76rem;
  line-height: 1.45;
}

.hc-confirm-form {
  display: grid;
  gap: 10px;
}

.hc-confirm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hc-field {
  display: grid;
  gap: 6px;
}

.hc-field-full {
  grid-column: 1 / -1;
}

.hc-field span {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.54);
}

.hc-field input,
.hc-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.94);
  padding: 12px 14px;
  font: inherit;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.hc-field input::placeholder,
.hc-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.hc-field input:hover,
.hc-field textarea:hover,
.hc-field input:focus-visible,
.hc-field textarea:focus-visible {
  outline: none;
  border-color: rgba(var(--hc-accent-rgb), 0.44);
  background: rgba(var(--hc-accent-rgb), 0.08);
  box-shadow: 0 0 0 4px rgba(var(--hc-accent-rgb), 0.12);
}

.hc-field textarea {
  min-height: 80px;
  resize: vertical;
}

.hc-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.hc-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--hc-accent);
}

.hc-consent span {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
  font-size: 0.86rem;
}

.hc-form-alert {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(var(--hc-accent-rgb), 0.34);
  background: rgba(var(--hc-accent-rgb), 0.12);
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.55;
}

.hc-success-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hc-success-actions .hc-summary-fallback {
  width: auto;
  min-width: 148px;
}

.hc-summary-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.hc-stage-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 14px;
}

.hc-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  text-align: center;
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
}

.hc-empty h4 {
  margin: 12px 0 6px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.hc-empty p {
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .hc-booking-panels {
    grid-template-columns: 1fr;
  }

  .hc-summary-card {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .hc-booking-widget {
    min-height: 0;
    padding: 16px;
    border-radius: 22px;
  }

  .hc-progress {
    grid-template-columns: 1fr;
  }

  .hc-panel {
    padding: 14px;
    min-height: 0;
  }

  .hc-weekdays,
  .hc-day-grid {
    gap: 8px;
  }

  .hc-day {
    min-height: 56px;
    padding: 8px 6px;
    border-radius: 14px;
  }

  .hc-time-list,
  .hc-summary-grid,
  .hc-summary-actions,
  .hc-confirm-grid {
    grid-template-columns: 1fr;
  }

  .hc-success-hero {
    grid-template-columns: 1fr;
  }

  .hc-success-actions .hc-summary-fallback {
    width: 100%;
  }
}

@keyframes hcPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.76; }
}

@keyframes hcShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes hcRiseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hcFloatGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-10px, -12px, 0) scale(1.06); }
}

@keyframes hcStageIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hcSuccessPop {
  from {
    opacity: 0;
    transform: scale(0.78) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes hcSuccessRing {
  0% {
    opacity: 0.7;
    transform: scale(0.85);
  }
  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}
