/* ═══════════════════════════════════════════════════════════════
   Calendar Booking Modal — 22i Digital
   ═══════════════════════════════════════════════════════════════ */

#calendarBookingModal .modal-dialog {
  max-width: 500px;
}

#calendarBookingModal .modal-content {
  border: none !important;
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.22) !important;
  font-family: 'Poppins', sans-serif;
}

/* ── Header ─────────────────────────────────────────────────── */
#calendarBookingModal .modal-header {
  background: linear-gradient(135deg, #0f1923 0%, #1a252f 60%, #1e2d3d 100%) !important;
  padding: 22px 24px 20px !important;
  border-bottom: none !important;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#calendarBookingModal .modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e55400, #ff8c42, #e55400);
  background-size: 200% 100%;
  animation: cal-shimmer 2.5s linear infinite;
}

@keyframes cal-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

#calendarBookingModal .cal-header-text {
  flex: 1;
  min-width: 0;
}

#calendarBookingModal .modal-title {
  color: #fff !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 5px !important;
  line-height: 1.3;
}

#calendarBookingModal .modal-title i {
  color: #e55400 !important;
  font-size: 1.1rem;
  flex-shrink: 0;
}

#calendarBookingModal .cal-subtitle {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.4;
}

#calendarBookingModal .btn-close {
  flex-shrink: 0;
  filter: invert(1) grayscale(1) brightness(2);
  opacity: 0.5;
  transition: opacity 0.2s;
  margin: 0;
  padding: 4px;
  align-self: flex-start;
  border: none !important;
  background: none;
}

#calendarBookingModal .btn-close:hover {
  opacity: 1;
}

/* ── Trust strip ─────────────────────────────────────────────── */
.cal-trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #f8f9fc;
  border-bottom: 1px solid #eef0f6;
  padding: 10px 20px;
  gap: 0;
}

.cal-trust-strip span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.cal-trust-strip i {
  color: #e55400;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.cal-trust-strip span+span {
  border-left: 1px solid #e2e8f0;
  padding-left: 14px;
  margin-left: 14px;
}

/* ── Body ────────────────────────────────────────────────────── */
#calendarBookingModal .modal-body {
  padding: 20px 24px 8px !important;
  background: #fff;
}

/* ── Form labels ─────────────────────────────────────────────── */
#calendarBookingModal .form-label {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #374151 !important;
  margin-bottom: 5px !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

#calendarBookingModal .form-label .text-danger,
#calendarBookingModal .form-label span.text-danger {
  color: #e55400 !important;
}

/* ── Inputs & selects ────────────────────────────────────────── */
#calendarBookingModal .form-control,
#calendarBookingModal .form-select {
  border: 1.5px solid #e5e7eb !important;
  border-radius: 10px !important;
  font-size: 0.875rem !important;
  padding: 10px 13px !important;
  color: #111827 !important;
  background: #fafbfd !important;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  font-family: 'Poppins', sans-serif;
}

#calendarBookingModal .form-control:focus,
#calendarBookingModal .form-select:focus {
  border-color: #e55400 !important;
  box-shadow: 0 0 0 3px rgba(229, 84, 0, 0.1) !important;
  background: #fff !important;
  outline: none !important;
}

#calendarBookingModal .form-control::placeholder {
  color: #9ca3af;
  font-size: 0.82rem;
}

#calendarBookingModal textarea.form-control {
  resize: none;
  min-height: 72px;
}

/* ── ₹99 fee notice ──────────────────────────────────────────── */
#calendarBookingModal .cal-fee-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(229, 84, 0, 0.05);
  border: 1px solid rgba(229, 84, 0, 0.18);
  margin-bottom: 8px;
}

#calendarBookingModal .cal-fee-notice .fee-amount {
  margin-left: auto;
  font-weight: 800;
  font-size: 1.1rem;
  color: #e55400;
  white-space: nowrap;
}

/* ── Alerts ──────────────────────────────────────────────────── */
#calendarBookingModal .alert-danger {
  border-radius: 10px !important;
  border: none !important;
  background: #fff1f0 !important;
  color: #c0392b !important;
  font-size: 0.82rem;
  padding: 10px 14px !important;
}

#calendarBookingModal .alert-success {
  border-radius: 10px !important;
  border: none !important;
  background: #f0fdf4 !important;
  color: #166534 !important;
  font-size: 0.82rem;
}

/* ── Footer ──────────────────────────────────────────────────── */
#calendarBookingModal .modal-footer {
  background: #fff !important;
  padding: 12px 24px 20px !important;
  border-top: 1px solid #f0f1f7 !important;
  gap: 10px;
  display: flex;
}

/* Cancel button */
#calendarBookingModal .btn-cal-cancel,
#calendarBookingModal .btn.btn-cal-cancel {
  background: transparent !important;
  border: 1.5px solid #e5e7eb !important;
  color: #6b7280 !important;
  border-radius: 10px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  transition: all 0.18s;
  font-family: 'Poppins', sans-serif;
}

#calendarBookingModal .btn-cal-cancel:hover {
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
  color: #374151 !important;
}

/* Primary CTA */
#calendarBookingModal .btn-cal-primary,
#calendarBookingModal .btn.btn-cal-primary {
  background: linear-gradient(135deg, #e55400 0%, #cc4b00 100%) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
  box-shadow: 0 4px 16px rgba(229, 84, 0, 0.32) !important;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
}

#calendarBookingModal .btn-cal-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(229, 84, 0, 0.42) !important;
}

#calendarBookingModal .btn-cal-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Google Calendar pill inside button */
.cal-gcal-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ── Step 2 success ──────────────────────────────────────────── */
#calStep2 .text-center {
  padding: 16px 0 8px;
}

/* ── Inline calendar link ────────────────────────────────────── */
.cal-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #e55400;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border-bottom: 1.5px dashed rgba(229, 84, 0, 0.35);
  padding-bottom: 1px;
  transition: color 0.18s, border-color 0.18s;
}

.cal-inline-link:hover {
  color: #c44a00;
  border-color: #c44a00;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 576px) {
  #calendarBookingModal .modal-dialog {
    margin: 10px;
  }

  #calendarBookingModal .modal-header,
  #calendarBookingModal .modal-body,
  #calendarBookingModal .modal-footer {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .cal-trust-strip {
    padding: 8px 14px;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
  }

  .cal-trust-strip span+span {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }

  #calendarBookingModal .modal-footer {
    flex-direction: column;
  }

  #calendarBookingModal .btn-cal-cancel {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}