/* 
 * Amo Massage & Bodywork - Booking Portal & Interactive Body Map Styles
 */

/* Booking & Auth Modal Overlays */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 20, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.35s ease;
}

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

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-body);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h3 {
  font-size: 1.75rem;
  margin: 0;
  color: var(--text-main);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-main);
}

.modal-body {
  padding: 2rem;
  flex-grow: 1;
}

/* Multi-Step Wizard Progress */
.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
  padding: 0 1rem;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 2rem;
  right: 2rem;
  height: 3px;
  background: var(--border);
  z-index: 1;
}

.wizard-step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.wizard-step-item.active .step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.wizard-step-item.completed .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-white);
}

.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.wizard-step-item.active .step-label {
  color: var(--primary);
}

/* Interactive SVG Body Map Engine */
.body-map-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-body);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.body-map-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.control-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-main);
}

.gender-toggle-btn {
  display: inline-flex;
  background: var(--bg-surface);
  padding: 0.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.gender-btn {
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  border: none;
  background: none;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.gender-btn.active {
  background: var(--primary);
  color: var(--text-white);
  box-shadow: 0 2px 8px rgba(61, 90, 76, 0.25);
}

.view-btn-group {
  display: inline-flex;
  gap: 0.4rem;
}

.view-btn {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.view-btn.active {
  background: var(--accent);
  color: var(--text-white);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(197, 160, 89, 0.25);
}

.body-map-info-banner {
  width: 100%;
  background: rgba(61, 90, 76, 0.07);
  border: 1px dashed rgba(61, 90, 76, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.body-svg-wrapper {
  display: flex;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.body-svg-box {
  width: 250px;
  height: 440px;
  position: relative;
  background: radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, rgba(246,244,240,0.4) 100%);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  border: 1px solid rgba(0,0,0,0.04);
}

.body-svg-box svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.muscle-group {
  cursor: pointer;
}

.muscle-zone {
  fill: #DFD7CB;
  stroke: #FFFFFF;
  stroke-width: 1.2;
  stroke-linejoin: round;
  cursor: pointer;
  transition: all 0.22s ease-in-out;
}

.muscle-group:hover .muscle-zone {
  fill: #A0B9AB;
  stroke: #FFFFFF;
  stroke-width: 1.8;
  filter: drop-shadow(0 2px 6px rgba(61, 90, 76, 0.45));
}

.muscle-zone.selected {
  fill: var(--primary) !important;
  stroke: var(--accent) !important;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 10px rgba(197, 160, 89, 0.65));
}

.zone-svg-label {
  font-size: 8px;
  font-weight: 600;
  font-family: inherit;
  fill: #4A4A4A;
  text-anchor: middle;
  pointer-events: none;
  opacity: 0.75;
  transition: opacity 0.2s ease, fill 0.2s ease;
  user-select: none;
}

.muscle-group:hover .zone-svg-label {
  opacity: 1;
  fill: #111111;
  font-weight: 700;
}

.muscle-zone.selected + .zone-svg-label {
  fill: #FFFFFF;
  font-weight: 700;
  opacity: 1;
}

.view-indicator-tag {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.25rem;
  letter-spacing: 0.3px;
}

.selected-zones-list {
  width: 100%;
  margin-top: 1.25rem;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
}

.clear-all-btn {
  background: none;
  border: none;
  color: #C0392B;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: opacity 0.2s;
}

.clear-all-btn:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.zone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.empty-zones-prompt {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chip {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(61, 90, 76, 0.2);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.chip .chip-remove {
  cursor: pointer;
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
  margin-left: 0.2rem;
  transition: transform 0.15s ease;
}

.chip .chip-remove:hover {
  transform: scale(1.25);
  color: #C0392B;
}

/* Time Slot Picker Grid */
.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.time-slot-btn {
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.time-slot-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.time-slot-btn.selected {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Clover Payment Form */
.clover-box {
  background: var(--bg-body);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Customer Portal Dashboard */
.portal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

.portal-sidebar {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.portal-nav {
  list-style: none;
}

.portal-nav-item {
  margin-bottom: 0.5rem;
}

.portal-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.portal-nav-link:hover, .portal-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
}

.appointment-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.appointment-info h4 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.appointment-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.badge-status {
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-confirmed { background: #D1FAE5; color: #065F46; }
.badge-completed { background: #E0E7FF; color: #3730A3; }

@media (max-width: 768px) {
  .portal-grid { grid-template-columns: 1fr; }
  .body-svg-wrapper { flex-direction: column; align-items: center; }
}
