﻿.booking-hero {
  padding-bottom: 2.4rem;
}

.trust-row {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.status-pill {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.78rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.status-pill.online {
  border-color: rgba(73, 199, 129, 0.5);
  color: #74e0a4;
}

.status-pill.available {
  border-color: rgba(47, 105, 255, 0.5);
}

.booking-section {
  padding-top: 1.6rem;
}

.booking-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.calendar-card,
.slots-card,
.success-card,
.booking-modal-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.calendar-card,
.slots-card {
  padding: 1rem;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.cal-month {
  margin: 0;
  font-size: 1.2rem;
}

.cal-nav {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}

.calendar-loader {
  display: none;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(47, 105, 255, 0.88), transparent);
  margin-bottom: 0.7rem;
  animation: shimmer 0.9s linear infinite;
}

.calendar-loader.show {
  display: block;
}

@keyframes shimmer {
  0% { transform: translateX(-28%); opacity: 0.35; }
  50% { opacity: 1; }
  100% { transform: translateX(28%); opacity: 0.35; }
}

.weekday-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  min-height: 268px;
}

.day-cell {
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.day-cell:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(47, 105, 255, 0.56);
}

.day-cell:disabled,
.day-cell.muted {
  opacity: 0.35;
  cursor: not-allowed;
}

.day-cell.selected {
  border-color: rgba(47, 105, 255, 0.78);
  background: rgba(47, 105, 255, 0.2);
}

.calendar-grid.slide-next {
  animation: monthInNext 0.24s ease;
}

.calendar-grid.slide-prev {
  animation: monthInPrev 0.24s ease;
}

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

@keyframes monthInPrev {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: translateX(0); }
}

.timezone-panel h3,
.duration-panel h3,
.slot-panel h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.timezone-panel p,
.trust-mini p {
  margin: 0.25rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.timezone-alt strong {
  color: var(--text);
}

.duration-panel {
  margin-top: 1.1rem;
}

.duration-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.duration-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-radius: 12px;
  padding: 0.56rem 0.4rem;
  font-weight: 600;
  cursor: pointer;
}

.duration-btn.active {
  background: rgba(47, 105, 255, 0.2);
  border-color: rgba(47, 105, 255, 0.75);
}

.slot-panel {
  margin-top: 1rem;
}

.slots-list {
  display: grid;
  gap: 0.45rem;
  max-height: 300px;
  overflow: auto;
  padding-right: 0.15rem;
}

.slot-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-radius: 12px;
  padding: 0.64rem 0.8rem;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.slot-btn:hover {
  border-color: rgba(47, 105, 255, 0.65);
  transform: translateY(-1px);
}

.slot-btn.active {
  background: rgba(47, 105, 255, 0.2);
  border-color: rgba(47, 105, 255, 0.8);
}

.slot-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.trust-mini {
  margin-top: 0.9rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.7rem;
}

.success-wrap {
  padding-top: 1rem;
}

.success-card {
  padding: 1.2rem;
}

.success-card h2 {
  margin: 0;
}

.success-card > p {
  margin: 0.45rem 0 0.8rem;
  color: var(--muted);
}

.booking-summary {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
}

.booking-summary p {
  margin: 0.3rem 0;
  color: var(--muted);
}

.booking-summary strong {
  color: var(--text);
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
}

.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 15, 0.72);
  backdrop-filter: blur(4px);
}

.booking-modal-card {
  position: relative;
  width: min(620px, 94vw);
  padding: 1.1rem;
  max-height: 90vh;
  overflow: auto;
}

.modal-close {
  position: absolute;
  right: 0.7rem;
  top: 0.6rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-slot-summary {
  margin: 0.4rem 0 0.8rem;
  color: var(--muted);
}

.booking-form {
  display: grid;
  gap: 0.32rem;
}

.booking-form label {
  margin-top: 0.45rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.booking-form input,
.booking-form textarea,
.booking-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.74rem;
  font: inherit;
}

.booking-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(16, 20, 35, 0.96);
  background-image:
    linear-gradient(45deg, transparent 50%, #9db2ff 50%),
    linear-gradient(135deg, #9db2ff 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}

.booking-form select option {
  background-color: #0f1730;
  color: #edf2ff;
}

.booking-form select option:checked {
  background-color: #244ecf;
  color: #ffffff;
}

html[data-theme="light"] .booking-form select {
  background-color: var(--surface-strong);
  color: var(--text);
}

.booking-form input:focus,
.booking-form textarea:focus,
.booking-form select:focus {
  outline: 2px solid rgba(47, 105, 255, 0.45);
  border-color: transparent;
}

.booking-form button {
  margin-top: 0.8rem;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1020px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .calendar-card,
  .slots-card,
  .success-card {
    padding: 0.85rem;
  }

  .day-cell {
    height: 38px;
    border-radius: 9px;
  }

  .duration-options {
    grid-template-columns: 1fr;
  }

  .slot-btn {
    text-align: center;
  }

  .success-actions .btn {
    width: 100%;
  }
}
