/* Calendar Specific Styles */

/* ============================================
   CALENDAR HERO
   ============================================ */
.calendar-hero {
  padding: 140px 0 80px;
  background: 
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(233,69,96,0.08) 0%, transparent 70%),
    linear-gradient(180deg, #fafafa 0%, #f0f0f5 100%);
  text-align: center;
}

.calendar-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.calendar-hero-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.info-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  color: var(--text-light);
  box-shadow: var(--shadow);
}

.info-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ============================================
   SERVICE SELECTOR
   ============================================ */
.service-selector {
  background: var(--card-bg);
}

.service-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.service-tab {
  padding: 10px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.service-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.service-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(233,69,96,0.3);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card-select {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.service-card-select:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.service-card-select.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(233,69,96,0.2);
}

.service-card-select.hidden {
  display: none;
}

.service-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.service-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(233,69,96,0.1) 0%, rgba(78,204,163,0.1) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.service-card-info {
  flex: 1;
}

.service-card-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.service-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.service-card-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

.service-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

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

.service-card-meta .meta-item strong {
  color: var(--text);
  font-weight: 600;
}

.service-card-select.selected::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-select.selected::after {
  content: '✓';
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

/* ============================================
   CALENDAR VIEW
   ============================================ */
.calendar-view {
  background: var(--bg);
}

.calendar-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 0 4px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calendar-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  min-width: 200px;
  text-align: center;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 13px;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-light);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-item.available .legend-dot {
  background: var(--success);
}

.legend-item.booked .legend-dot {
  background: var(--accent);
}

.legend-item.past .legend-dot {
  background: var(--text-muted);
}

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.calendar-day-header {
  background: var(--primary);
  color: #fff;
  padding: 12px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar-day {
  min-height: 100px;
  padding: 8px;
  background: var(--card-bg);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.calendar-day:nth-child(7n) {
  border-right: none;
}

.calendar-day:hover:not(.past):not(.other-month) {
  background: rgba(233,69,96,0.05);
}

.calendar-day.past {
  opacity: 0.4;
  cursor: not-allowed;
}

.calendar-day.other-month {
  opacity: 0.2;
  cursor: default;
}

.calendar-day.today {
  background: rgba(233,69,96,0.1);
}

.calendar-day.today .day-number {
  background: var(--accent);
  color: #fff;
}

.day-number {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.day-slots {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.day-slot {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-slot.available {
  background: rgba(78,204,163,0.15);
  color: var(--success);
  font-weight: 600;
}

.day-slot.booked {
  background: rgba(233,69,96,0.15);
  color: var(--accent);
}

.day-slot.more {
  background: var(--bg);
  color: var(--text-muted);
  font-weight: 500;
}

/* Slots View */
.calendar-slots {
  animation: fadeIn 0.3s ease;
}

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

.slots-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.slots-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.time-slot {
  padding: 16px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.time-slot:hover:not(.booked):not(.past) {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.time-slot.booked {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg);
}

.time-slot.past {
  opacity: 0.3;
  cursor: not-allowed;
}

.time-slot.selected {
  border-color: var(--accent);
  background: rgba(233,69,96,0.05);
  box-shadow: 0 0 0 2px rgba(233,69,96,0.2);
}

.slot-time {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-mono);
}

.slot-status {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.slot-status.available {
  color: var(--success);
}

.slot-status.booked {
  color: var(--accent);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--card-bg);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
  animation: slideUp 0.3s ease;
}

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

.modal-success .modal {
  max-width: 480px;
  text-align: center;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.modal-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.modal-body {
  padding: 24px;
}

.modal-service-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(233,69,96,0.05) 0%, rgba(78,204,163,0.05) 100%);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  border: 1px solid rgba(233,69,96,0.15);
}

.modal-service-summary .service-card-icon {
  width: 40px;
  height: 40px;
}

.modal-service-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.modal-service-info p {
  font-size: 13px;
  color: var(--text-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: var(--card-bg);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233,69,96,0.15);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-hint {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.payment-option {
  cursor: pointer;
}

.payment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.payment-option:hover .payment-option-card {
  border-color: var(--accent);
}

.payment-option input:checked + .payment-option-card {
  border-color: var(--accent);
  background: rgba(233,69,96,0.05);
  box-shadow: 0 0 0 2px rgba(233,69,96,0.15);
}

.payment-option-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.payment-option.zelle .payment-option-icon {
  background: rgba(233,69,96,0.1);
  color: var(--accent);
}

.payment-option.cash .payment-option-icon {
  background: rgba(78,204,163,0.1);
  color: var(--success);
}

.payment-option-icon svg {
  width: 20px;
  height: 20px;
}

.payment-option-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.payment-option-details strong {
  font-size: 14px;
  color: var(--primary);
}

.payment-option-details span {
  font-size: 12px;
  color: var(--text-light);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: var(--transition);
}

.checkbox-label input:checked + .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-label input:checked + .checkmark::after {
  content: '✓';
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.modal-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.modal-price strong {
  color: var(--accent);
  font-size: 24px;
}

.btn-full {
  width: 100%;
}

.btn-primary .btn-loading {
  display: none;
}

.btn-primary.loading .btn-text {
  display: none;
}

.btn-primary.loading .btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success Modal */
.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--success) 0%, #3dbd92 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(78,204,163,0.4);
}

.success-icon svg {
  width: 40px;
  height: 40px;
  color: #fff;
}

.modal-success .modal-body > p {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.6;
}

.success-details {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.success-details p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.success-details strong {
  color: var(--primary);
}

.payment-instructions {
  background: linear-gradient(135deg, rgba(233,69,96,0.05) 0%, rgba(78,204,163,0.05) 100%);
  border: 1px solid rgba(233,69,96,0.2);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.payment-instructions h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(233,69,96,0.2);
}

.zelle-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 14px;
}

.zelle-row {
  display: contents;
}

.zelle-row span {
  color: var(--text-light);
}

.zelle-row strong {
  color: var(--text);
}

.zelle-row code {
  background: var(--card-bg);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.payment-instructions .form-hint {
  text-align: center;
  margin-top: 16px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .calendar-day {
    min-height: 80px;
    padding: 6px 4px;
  }
  
  .day-number {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  
  .day-slot {
    font-size: 9px;
    padding: 1px 4px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .payment-options {
    grid-template-columns: 1fr;
  }
  
  .slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .calendar-hero {
    padding: 120px 0 60px;
  }
  
  .modal {
    margin: 12px;
    max-height: calc(100vh - 24px);
  }
  
  .calendar-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .calendar-nav {
    justify-content: center;
  }
  
  .calendar-legend {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .slots-grid {
    grid-template-columns: 1fr;
  }
  
  .service-tabs {
    gap: 6px;
  }
  
  .service-tab {
    padding: 8px 14px;
    font-size: 12px;
  }
}