/* Modern Mobile-First Calendar CSS inspired by Image 2 */
:root {
  --primary-color: #0b6bcb;
  --primary-hover: #08529c;
  --primary-light: #e8f3ff;
  --success-color: #198754;
  --text-main: #1d2939;
  --text-muted: #667085;
  --border-color: #eaecf0;
  --bg-page: #f8fafc;
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

body {
  background-color: var(--bg-page);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  padding-bottom: 2rem;
}

/* App Header Section */
.app-header {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.header-icon-box {
  width: 72px;
  height: 72px;
  background-color: #e3effd;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(11, 107, 203, 0.12);
}

.header-icon-box svg, .header-icon-box img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.app-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #101828;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.app-subtitle {
  font-size: 0.925rem;
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto 1.5rem;
  line-height: 1.45;
}

/* Step Wizard Indicator */
.stepper-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 320px;
  margin: 0 auto 1.75rem;
  position: relative;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  position: relative;
  cursor: pointer;
}

.step-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #f2f4f7;
  color: #98a2b3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.25s ease;
  border: 3px solid #f8fafc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.step-item.active .step-icon-circle {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(11, 107, 203, 0.3);
}

.step-item.completed .step-icon-circle {
  background-color: var(--success-color);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(25, 135, 84, 0.3);
}

.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.35rem;
  transition: color 0.2s ease;
}

.step-item.active .step-label,
.step-item.completed .step-label {
  color: var(--text-main);
}

.stepper-line {
  position: absolute;
  top: 22px;
  left: 30px;
  right: 30px;
  height: 2px;
  background-color: #eaecf0;
  z-index: 1;
}

/* Main Container Card */
.booking-card {
  max-width: 460px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(234, 236, 240, 0.8);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  padding: 1.75rem 1.5rem;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #344054;
  margin-bottom: 0.85rem;
}

/* Month Calendar Box */
.calendar-box {
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.25rem;
  background: #ffffff;
}

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

.calendar-month-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #101828;
}

.btn-month-nav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #d0d5dd;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #344054;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-month-nav:hover {
  background: #f9fafb;
  border-color: #98a2b3;
}

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.weekday-header {
  font-size: 0.8rem;
  font-weight: 600;
  color: #667085;
  padding-bottom: 0.5rem;
}

.day-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: #101828;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  position: relative;
}

.day-cell.other-month {
  color: #d0d5dd;
  cursor: default;
}

.day-cell.disabled {
  color: #d0d5dd;
  cursor: not-allowed;
  background-color: transparent;
}

.day-cell.available {
  font-weight: 600;
  color: #0b6bcb;
  cursor: pointer;
}

.day-cell.available:hover {
  background-color: var(--primary-light);
}

.day-cell.selected {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(11, 107, 203, 0.3);
}

/* Time Slot Pills Grid */
.time-slots-container {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.time-slots-header {
  font-size: 0.95rem;
  font-weight: 600;
  color: #344054;
  margin-bottom: 0.85rem;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 400px) {
  .time-slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.time-pill {
  padding: 0.65rem 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background-color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  color: #344054;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.time-pill:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: var(--primary-light);
}

.time-pill.selected {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(11, 107, 203, 0.25);
}

/* Form Styles */
.form-step-card {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.form-group-title {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #101828;
  margin-bottom: 0.35rem;
}

.form-group-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.custom-input-group {
  position: relative;
  display: flex;
  margin-bottom: 1.25rem;
}

.custom-input-group .form-control {
  border-radius: 12px 0 0 12px;
  border: 1px solid var(--border-color);
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
}

.custom-input-group .btn-search {
  border-radius: 0 12px 12px 0;
  background-color: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
  padding: 0 1.25rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.form-control-custom {
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  width: 100%;
}

.form-control-custom:focus, .custom-input-group .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(11, 107, 203, 0.15);
  outline: none;
}

/* Action Footer Buttons */
.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.btn-action {
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-action-outline {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  color: #344054;
}

.btn-action-outline:hover {
  background-color: #f9fafb;
  border-color: #d0d5dd;
}

.btn-action-primary {
  background-color: var(--primary-color);
  color: white;
  flex: 1;
}

.btn-action-primary:hover {
  background-color: var(--primary-hover);
}

.btn-action-success {
  background-color: var(--success-color);
  color: white;
  flex: 1;
}

.btn-action-success:hover {
  background-color: #146c43;
}
