/**
 * ITClub Appointments - Modern Amelia-style Front-End Booking Wizard
 */

:root {
  --itclub-book-primary: #4f46e5;
  --itclub-book-primary-hover: #4338ca;
  --itclub-book-primary-light: #eef2ff;
  --itclub-book-success: #10b981;
  --itclub-book-dark: #0f172a;
  --itclub-book-text: #1e293b;
  --itclub-book-muted: #64748b;
  --itclub-book-border: #e2e8f0;
  --itclub-book-bg: #ffffff;
  --itclub-book-radius: 14px;
}

.itclub-wizard-wrapper {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 820px;
  margin: 40px auto;
  background: var(--itclub-book-bg);
  border-radius: var(--itclub-book-radius);
  border: 1px solid var(--itclub-book-border);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.07), 0 5px 15px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  color: var(--itclub-book-text);
  box-sizing: border-box;
}

.itclub-wizard-wrapper * {
  box-sizing: border-box;
}

/* Stepper Header */
.itclub-wizard-stepper {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid var(--itclub-book-border);
  padding: 16px 24px;
  gap: 12px;
  overflow-x: auto;
}

.itclub-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--itclub-book-muted);
  white-space: nowrap;
}

.itclub-step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--itclub-book-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.itclub-step-item.active {
  color: var(--itclub-book-primary);
}

.itclub-step-item.active .itclub-step-number {
  background: var(--itclub-book-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}

.itclub-step-item.completed {
  color: var(--itclub-book-success);
}

.itclub-step-item.completed .itclub-step-number {
  background: var(--itclub-book-success);
  color: #ffffff;
}

.itclub-step-separator {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: auto 8px;
  min-width: 16px;
}

/* Wizard Content */
.itclub-wizard-content {
  padding: 32px 36px;
  min-height: 420px;
}

.itclub-step-pane {
  display: none;
  animation: itclubFadeIn 0.25s ease-out;
}

.itclub-step-pane.active {
  display: block;
}

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

.itclub-wizard-heading {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--itclub-book-dark);
}

.itclub-wizard-subheading {
  margin: 0 0 24px 0;
  font-size: 14px;
  color: var(--itclub-book-muted);
}

/* Service / Option Cards */
.itclub-cards-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.itclub-select-card {
  border: 2px solid var(--itclub-book-border);
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.itclub-select-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.itclub-select-card.selected {
  border-color: var(--itclub-book-primary);
  background: #fafafa;
  box-shadow: 0 0 0 1px var(--itclub-book-primary), 0 6px 16px rgba(79, 70, 229, 0.08);
}

.itclub-select-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.itclub-select-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--itclub-book-dark);
  margin: 0 0 4px 0;
}

.itclub-select-card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--itclub-book-primary);
}

.itclub-select-card-meta {
  font-size: 12px;
  color: var(--itclub-book-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Time Slots Grid */
.itclub-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.itclub-slot-btn {
  background: #f8fafc;
  border: 1px solid var(--itclub-book-border);
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--itclub-book-dark);
  cursor: pointer;
  transition: all 0.15s ease;
}

.itclub-slot-btn:hover {
  border-color: var(--itclub-book-primary);
  background: #ffffff;
  color: var(--itclub-book-primary);
}

.itclub-slot-btn.selected {
  background: var(--itclub-book-primary);
  border-color: var(--itclub-book-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* Form Controls */
.itclub-input-group {
  margin-bottom: 18px;
}

.itclub-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--itclub-book-dark);
}

.itclub-input-group input,
.itclub-input-group textarea,
.itclub-input-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--itclub-book-border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.itclub-input-group input:focus,
.itclub-input-group textarea:focus,
.itclub-input-group select:focus {
  border-color: var(--itclub-book-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Coupon Box */
.itclub-coupon-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.itclub-coupon-row input {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Summary Box */
.itclub-summary-box {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--itclub-book-border);
  margin-bottom: 24px;
}

.itclub-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
}

.itclub-summary-row.total {
  border-top: 1px solid var(--itclub-book-border);
  padding-top: 12px;
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--itclub-book-dark);
}

/* Footer Navigation Buttons */
.itclub-wizard-footer {
  padding: 18px 36px;
  background: #f8fafc;
  border-top: 1px solid var(--itclub-book-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.itclub-btn-back {
  background: #ffffff;
  border: 1px solid var(--itclub-book-border);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: var(--itclub-book-muted);
  transition: all 0.15s ease;
}

.itclub-btn-back:hover {
  background: #f1f5f9;
  color: var(--itclub-book-dark);
}

.itclub-btn-next {
  background: var(--itclub-book-primary);
  border: 1px solid transparent;
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.itclub-btn-next:hover {
  background: var(--itclub-book-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

/* Confirmation Success State */
.itclub-success-card {
  text-align: center;
  padding: 36px 20px;
}

.itclub-success-icon {
  width: 68px;
  height: 68px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--itclub-book-success);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .itclub-wizard-content { padding: 20px; }
  .itclub-wizard-footer { padding: 16px 20px; }
  .itclub-step-text { display: none; }
}
