* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background: #f7f3f1;
  color: #2a2438;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  padding: 24px 16px 8px;
}

.hero-card {
  background: linear-gradient(135deg, #6d597a 0%, #b56576 100%);
  color: #fff;
  padding: 20px;
  border-radius: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(43, 33, 58, 0.18);
}

.avatar {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.hero-text h1 {
  margin: 4px 0 6px;
  font-size: 20px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  opacity: 0.8;
  margin: 0;
}

.subtitle {
  margin: 0;
  opacity: 0.85;
  font-size: 13px;
}

.content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.block h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.muted {
  color: #6f6676;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

.date-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.date-card {
  min-width: 82px;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  text-align: center;
  border: 1px solid #efe7e2;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.calendar-label {
  font-weight: 600;
  font-size: 15px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid #efe7e2;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  font-size: 12px;
  color: #6f6676;
  margin-bottom: 6px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day {
  height: 40px;
  border-radius: 12px;
  border: 1px solid #efe7e2;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-day.muted {
  background: #f4efec;
  color: #b7adb9;
  cursor: not-allowed;
}

.calendar-day.available {
  border-color: #d9c7df;
}

.calendar-day.active {
  background: #2a2438;
  color: #fff;
  border-color: #2a2438;
}

.calendar-skeleton {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.calendar-skeleton span {
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f0e9e5 0%, #f8f3f1 50%, #f0e9e5 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

.date-card.active {
  background: #2a2438;
  color: #fff;
  border-color: #2a2438;
}

.card-list {
  display: grid;
  gap: 12px;
}

.service-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ddd3cf;
  background: #fff;
  font-size: 14px;
  color: #2a2438;
}

.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid #efe7e2;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.service-card.active {
  border-color: #2a2438;
  box-shadow: 0 6px 20px rgba(42, 36, 56, 0.12);
}

.service-meta {
  font-size: 13px;
  color: #6f6676;
}

.slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.slot-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #efe7e2;
  cursor: pointer;
  font-size: 14px;
}

.slot-pill.active {
  background: #2a2438;
  color: #fff;
  border-color: #2a2438;
}

.form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ddd3cf;
  font-size: 14px;
}

.primary-btn {
  width: 100%;
  background: #2a2438;
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ghost-btn {
  width: 100%;
  background: transparent;
  border: 1px solid #d1c7c1;
  padding: 14px;
  border-radius: 14px;
  font-size: 15px;
  cursor: pointer;
}

.error {
  margin-top: 8px;
  color: #c0392b;
}

.success {
  position: fixed;
  inset: 0;
  background: rgba(42, 36, 56, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.success.hidden {
  display: none !important;
}

.success-card {
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  width: min(420px, 100%);
  text-align: center;
}

.success-actions {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

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

@media (min-width: 720px) {
  .page {
    align-items: center;
  }

  .hero,
  .content {
    width: min(720px, 100%);
  }

  .hero-card {
    padding: 28px;
  }
}
