.page { min-height: 100vh; background: linear-gradient(180deg, var(--sage-50) 0%, white 50%, var(--sage-50) 100%); display: flex; flex-direction: column; padding-bottom: 96px; }

/* Header */
.header {
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sage-100);
  padding: 0 16px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
  transition: all 0.3s ease;
}
.headerLogo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--sage-500); text-decoration: none; transition: all 0.2s; }
.headerLogo:hover { transform: translateX(4px); }
.headerTitle { font-weight: 600; color: var(--text-dark); font-size: 0.875rem; }

/* Steps */
.stepWrap {
  background: var(--white);
  border-bottom: 1px solid var(--sage-100);
  padding: 0 24px;
  overflow-x: auto;
  box-shadow: 0 2px 8px rgba(113,131,85,0.05);
}
.stepRow { display: flex; align-items: center; }

/* Step Indicator Animations */
.step-indicator .step-item { transition: all 0.3s ease; }
.step-indicator .step-circle {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.step-indicator .step-circle.active {
  animation: stepPulse 2s ease-in-out infinite;
}
@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(113,131,85,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(113,131,85,0); }
}

/* Content */
.content { flex: 1; max-width: 640px; width: 100%; margin: 0 auto; padding: 28px 20px; }
.stepContent {
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.stepTitle { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--sage-500); margin-bottom: 20px; }

/* Category Tabs */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 16px; -ms-overflow-style: none; margin-bottom: 4px; }
.tabs::-webkit-scrollbar { display: none; }
@supports (scrollbar-width: none) { .tabs { scrollbar-width: none; } }
.tabs .pill-option {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.tabs .pill-option::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.4s ease;
}
.tabs .pill-option.selected::before { left: 100%; }
.tabs .pill-option:hover { transform: translateY(-2px); }

/* Service List */
.serviceList { display: flex; flex-direction: column; gap: 10px; }
.serviceRow {
  display: flex; align-items: center; gap: 14px;
  background: var(--white);
  border: 1.5px solid var(--sage-100);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInLeft 0.4s ease both;
}
.serviceRow:nth-child(1) { animation-delay: 0.05s; }
.serviceRow:nth-child(2) { animation-delay: 0.1s; }
.serviceRow:nth-child(3) { animation-delay: 0.15s; }
.serviceRow:nth-child(4) { animation-delay: 0.2s; }
.serviceRow:nth-child(5) { animation-delay: 0.25s; }
.serviceRow:nth-child(6) { animation-delay: 0.3s; }
.serviceRow:nth-child(7) { animation-delay: 0.35s; }
.serviceRow:nth-child(8) { animation-delay: 0.4s; }

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
.serviceRow:hover { transform: translateX(4px); border-color: var(--sage-300); box-shadow: var(--shadow-sm); }
.serviceRowSelected { border-color: var(--sage-500) !important; background: linear-gradient(135deg, var(--sage-50) 0%, white 100%); transform: scale(1.01); }
.serviceRowEmoji {
  font-size: 1.3rem; flex-shrink: 0;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--sage-100) 0%, var(--sage-50) 100%);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage-500);
  transition: all 0.3s ease;
}
.serviceRow:hover .serviceRowEmoji { transform: scale(1.1) rotate(-5deg); background: var(--sage-200); }
.serviceRowInfo { flex: 1; }
.serviceRowTitle { font-weight: 600; color: var(--text-dark); font-size: 0.9375rem; margin-bottom: 2px; }
.serviceRowMeta { font-size: 0.8125rem; color: var(--sage-400); }
.qtyControl { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.qtyBtn {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--sage-100);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--sage-500);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.qtyBtn:hover { background: var(--sage-200); transform: scale(1.15); }
.qtyBtn:active { transform: scale(0.95); }
.qtyNum { font-weight: 700; color: var(--sage-500); min-width: 20px; text-align: center; animation: popIn 0.3s ease; }
@keyframes popIn { 0% { transform: scale(0); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
.addBtn { white-space: nowrap; transition: all 0.2s ease; }
.addBtn:hover { background: var(--sage-200); transform: translateY(-1px); }

/* Calendar */
.calendarCard {
  background: var(--white);
  border: 1px solid var(--sage-100);
  border-radius: var(--radius-xl);
  padding: 20px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.4s ease;
  transition: all 0.3s ease;
}
.calendarCard:hover { box-shadow: var(--shadow-md); border-color: var(--sage-200); }
.calNav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.calNavBtn {
  background: linear-gradient(135deg, var(--sage-100), var(--sage-50));
  border: none; cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%; font-size: 1.125rem; color: var(--sage-500);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.calNavBtn:hover { transform: scale(1.1); background: var(--sage-200); }
.calNavBtn:active { transform: scale(0.95); }
.calTitle { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--sage-500); }
.calGrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calDayLabel { text-align: center; font-size: 0.6875rem; font-weight: 600; color: var(--sage-300); padding: 4px 0; text-transform: uppercase; }
.calDay {
  width: 100%; aspect-ratio: 1; border-radius: 50%; border: none;
  cursor: pointer; font-size: 0.875rem; font-weight: 500;
  color: var(--sage-400); background: transparent;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex; align-items: center; justify-content: center;
}
.calDay:hover:not(:disabled) { background: var(--sage-100); color: var(--sage-500); transform: scale(1.1); }
.calDayActive { background: linear-gradient(135deg, var(--sage-500), var(--sage-400)) !important; color: white !important; font-weight: 700; transform: scale(1.1); box-shadow: 0 4px 12px rgba(113,131,85,0.4); }
.calDayDisabled { opacity: 0.3; cursor: not-allowed; }

/* Time */
.timeSection { margin-bottom: 24px; animation: fadeInUp 0.4s ease 0.1s both; }
.timeSectionHeader { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2px; }
.timeHours { font-size: 0.72rem; color: var(--sage-400); font-weight: 500; }
.timeLabelNote { font-size: 0.72rem; color: var(--sage-400); font-weight: 400; }
.timeGrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin-top: 10px; }
.timeBtn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px 6px;
  border: 1.5px solid var(--sage-100);
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 0.78rem; font-weight: 500; color: var(--sage-400);
  animation: popIn 0.3s ease both;
}
.timeBtn:nth-child(1) { animation-delay: 0.02s; }
.timeBtn:nth-child(2) { animation-delay: 0.04s; }
.timeBtn:nth-child(3) { animation-delay: 0.06s; }
.timeBtn:nth-child(4) { animation-delay: 0.08s; }
.timeBtn:nth-child(5) { animation-delay: 0.1s; }
.timeBtn:nth-child(6) { animation-delay: 0.12s; }
.timeBtn:nth-child(7) { animation-delay: 0.14s; }
.timeBtn:nth-child(8) { animation-delay: 0.16s; }
.timeBtn:nth-child(9) { animation-delay: 0.18s; }
.timeBtn:nth-child(10) { animation-delay: 0.2s; }
.timeBtn:nth-child(11) { animation-delay: 0.22s; }
.timeBtn:nth-child(12) { animation-delay: 0.24s; }
.timeBtn:nth-child(13) { animation-delay: 0.26s; }
.timeBtn:nth-child(14) { animation-delay: 0.28s; }

@keyframes popIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
.timeBtn:hover:not(:disabled) { border-color: var(--sage-300); color: var(--sage-500); background: var(--sage-50); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.timeBtnActive {
  border-color: var(--sage-500) !important;
  background: linear-gradient(135deg, var(--sage-500), var(--sage-400)) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(113,131,85,0.4);
}
.timeLabel { line-height: 1; }
.timeDot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; display: block; animation: dotPulse 2s infinite; }
@keyframes dotPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.8); } }
.timeBtnActive .timeDot { background: rgba(255,255,255,0.7) !important; }
.timeDisabled { opacity: 0.3 !important; cursor: not-allowed !important; pointer-events: none; }

/* Time Legend */
.timeLegend { display: flex; gap: 14px; margin-top: 8px; font-size: 0.72rem; color: var(--sage-400); }

/* Availability Card */
.availCard {
  margin-top: 12px; border-radius: var(--radius-md);
  padding: 10px 13px; font-size: 0.8375rem; border: 1.5px solid;
  transition: all 0.3s ease;
  animation: slideDown 0.3s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.availOk     { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border-color: #bbf7d0; color: #15803d; }
.availLimited { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #fde68a; color: #92400e; }
.availFull   { background: linear-gradient(135deg, #fef2f2, #fee2e2); border-color: #fecaca; color: #b91c1c; }
.availTitle  { font-weight: 700; margin-bottom: 4px; font-size: 0.875rem; }
.availText   { line-height: 1.5; }
.availAlts   { margin-top: 8px; }
.availAltBtns { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.availAltBtn {
  padding: 4px 12px; border: 1.5px solid #ef4444; border-radius: var(--radius-full);
  background: white; color: #b91c1c; font-size: 0.8125rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s ease;
  animation: popIn 0.3s ease;
}
.availAltBtn:hover { background: #ef4444; color: white; transform: scale(1.05); }

/* Address */
.addressSection { margin-bottom: 24px; animation: fadeInUp 0.4s ease 0.15s both; }
.formGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.formFullCol { grid-column: 1 / -1; }

/* Therapist */
.therapistSection { margin-bottom: 24px; animation: fadeInUp 0.4s ease 0.2s both; }
.therapistList {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0;
  margin-top: 10px;
  -ms-overflow-style: none;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.therapistList::-webkit-scrollbar { display: none; }
@supports (scrollbar-width: none) { .therapistList { scrollbar-width: none; } }
.therapistCard {
  flex-shrink: 0;
  width: 110px;
  padding: 14px 8px;
  border: 1.5px solid var(--sage-100);
  border-radius: var(--radius-lg);
  background: var(--white);
  cursor: pointer;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: slideInUp 0.4s ease both;
}
.therapistCard:nth-child(1) { animation-delay: 0.1s; }
.therapistCard:nth-child(2) { animation-delay: 0.15s; }
.therapistCard:nth-child(3) { animation-delay: 0.2s; }
.therapistCard:nth-child(4) { animation-delay: 0.25s; }
.therapistCard:nth-child(5) { animation-delay: 0.3s; }
.therapistCard:nth-child(6) { animation-delay: 0.35s; }
.therapistCard:nth-child(7) { animation-delay: 0.4s; }
.therapistCard:nth-child(8) { animation-delay: 0.45s; }
.therapistCard:nth-child(9) { animation-delay: 0.5s; }
.therapistCard:nth-child(10) { animation-delay: 0.55s; }
.therapistCard:nth-child(11) { animation-delay: 0.6s; }
.therapistCard:nth-child(12) { animation-delay: 0.65s; }
.therapistCard:nth-child(13) { animation-delay: 0.7s; }
@keyframes slideInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.therapistCard:hover { border-color: var(--sage-300); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.therapistActive { border-color: var(--sage-500) !important; background: linear-gradient(135deg, var(--sage-50), white) !important; box-shadow: 0 0 0 1px var(--sage-400); }
.therapistName { font-size: 0.8125rem; font-weight: 600; color: var(--text-dark); margin-top: 6px; }
.therapistSpec { font-size: 0.6875rem; color: var(--sage-300); margin-top: 2px; }
.therapistEmoji {
  font-size: 1.3rem; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--sage-100), var(--sage-50));
  border-radius: 50%; color: var(--sage-500); margin: 0 auto 6px;
  transition: all 0.3s ease;
}
.therapistCard:hover .therapistEmoji { transform: scale(1.1) rotate(-5deg); background: var(--sage-200); }
.therapistInitials { font-size: 0.95rem; font-weight: 700; color: var(--sage-600); letter-spacing: 0.03em; }

/* Summary */
.summaryCard {
  background: linear-gradient(135deg, white 0%, var(--sage-50) 100%);
  border: 1px solid var(--sage-100); border-radius: var(--radius-xl);
  padding: 24px; box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.4s ease;
  transition: all 0.3s ease;
}
.summaryCard:hover { box-shadow: var(--shadow-md); }
.summarySection { font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; color: var(--sage-500); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; margin-top: 0; }
.summaryRow { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 0.9rem; color: var(--sage-400); margin-bottom: 8px; transition: all 0.2s ease; }
.summaryRow:hover { background: rgba(113,131,85,0.03); padding: 4px 8px; margin: -4px -8px 4px; border-radius: var(--radius-sm); }
.summaryRow span:last-child { font-weight: 600; color: var(--text-dark); text-align: right; }
.summaryDivider { height: 1px; background: linear-gradient(90deg, transparent, var(--sage-200), transparent); margin: 16px 0; }

/* Promo */
.promoToggle {
  background: none; border: none; cursor: pointer;
  font-size: 0.875rem; color: var(--sage-400); font-family: var(--font-body);
  padding: 0; margin-bottom: 10px;
  transition: all 0.2s ease;
}
.promoToggle:hover { color: var(--sage-500); transform: translateX(4px); }
.promoInput { display: flex; gap: 8px; margin-bottom: 10px; animation: slideDown 0.3s ease; }
.promoSuccess {
  font-size: 0.8125rem; color: var(--success); font-weight: 600; margin-bottom: 8px;
  animation: popIn 0.3s ease;
}
.promoError   { font-size: 0.8125rem; color: #dc2626; margin-bottom: 8px; animation: shake 0.3s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Total */
.totalSection { margin-top: 16px; padding-top: 16px; border-top: 1.5px solid var(--sage-100); }
.totalRow { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--sage-400); margin-bottom: 6px; transition: all 0.2s ease; }
.discount { color: var(--success); animation: fadeIn 0.3s ease; }
.totalFinal {
  font-size: 1.125rem; font-weight: 700; color: var(--sage-500);
  margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed var(--sage-200);
  animation: slideInUp 0.4s ease;
}
.totalLabel { font-weight: 700; color: var(--sage-500); font-size: 1rem; }

/* Bottom Bar — safe-area aware */
.bottomBar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.98), rgba(255,255,255,1));
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--sage-100);
  padding: 12px 20px max(12px, env(safe-area-inset-bottom)) 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 -4px 20px rgba(113,131,85,0.15);
  z-index: 20;
  animation: slideUp 0.4s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.bottomSummary { flex: 1; font-size: 0.875rem; font-weight: 500; color: var(--sage-400); min-width: 0; }

/* Responsive */
@media (max-width: 640px) {
  .timeGrid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .content { padding: 20px 16px; }
  .calendarCard { padding: 16px; }
  .summaryCard { padding: 16px; }
  .stepTitle { font-size: 1.25rem; }
  .therapistCard { width: 100px; }
  .therapistList { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .timeGrid { grid-template-columns: repeat(3, 1fr); }
  .formGrid { grid-template-columns: 1fr; }
  .bottomBar { padding: 10px 14px max(10px, env(safe-area-inset-bottom)) 14px; }
  .bottomSummary { font-size: 0.8rem; }
  .calGrid { gap: 2px; }
  .calDay { font-size: 0.8rem; }
  .stepTitle { font-size: 1.125rem; }
  .calendarCard { padding: 12px; }
  .therapistCard { width: 90px; padding: 10px 6px; }
  .therapistName { font-size: 0.75rem; }
  .therapistSpec { font-size: 0.625rem; }
  .therapistInitials { font-size: 0.85rem; }
}

@media (max-width: 375px) {
  .timeGrid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .timeBtn { padding: 6px 2px 4px; font-size: 0.7rem; }
  .content { padding: 16px 12px; }
  .therapistCard { width: 85px; }
}

/* Legend dot color variants */
.dotGreen  { background: #22c55e; }
.dotAmber  { background: #f59e0b; }
.dotRed    { background: #ef4444; }

/* Submit error message */
.submitError { color: #dc2626; font-size: 0.85rem; text-align: center; margin-bottom: 8px; }

/* Payment Method Selector */
.paymentMethods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }

.paymentOption {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--sage-100);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.paymentOption:hover { border-color: var(--sage-300); background: var(--sage-50); }

.paymentActive {
  border-color: var(--sage-500) !important;
  background: var(--sage-50) !important;
  box-shadow: 0 0 0 1px var(--sage-400);
}

.paymentIcon {
  width: 40px;
  height: 40px;
  background: var(--sage-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-500);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.paymentActive .paymentIcon { background: var(--sage-500); color: white; }

.paymentInfo { flex: 1; }
.paymentName  { font-weight: 600; font-size: 0.9rem; color: var(--text-dark); margin-bottom: 2px; }
.paymentDesc  { font-size: 0.75rem; color: var(--sage-400); }

.paymentCheck { color: var(--sage-500); font-size: 1.1rem; margin-left: auto; }


