/* ─────────────────────────────────────────────
   tour-booking-widget.css  —  Sourri AI
   Inline tour-scheduling card rendered inside
   the chat message thread.
   All rules scoped to .tour-booking-card to
   avoid polluting the surrounding chat page.
───────────────────────────────────────────── */

/* ── Card wrapper ─────────────────────────── */
.tour-booking-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.3rem;
  position: relative;
  overflow: hidden;
  max-width: 380px;
}

/* Gloss overlay — matches global .card::before */
.tour-booking-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,0.025) 0%, transparent 55%);
  pointer-events: none;
}

/* ── Card header row ──────────────────────── */
.tbw-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 0.9rem;
}

.tbw-header-icon {
  width: 28px;
  height: 28px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--accent);
  flex-shrink: 0;
}

.tbw-title {
  font-size: 12.5px;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin: 0;
}

/* ── Agent contact line ───────────────────── */
.tbw-agent {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── Form labels ──────────────────────────── */
.tour-booking-card .form-label {
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tour-booking-card .form-label .tbw-optional {
  color: var(--text-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 10px;
  opacity: 0.7;
}

/* ── Form inputs ──────────────────────────── */
.tour-booking-card .form-control {
  background: var(--bg-input) !important;
  border: 1px solid var(--border-medium) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  font-size: 12px;
  font-family: var(--font-mono);
  padding: 0.45rem 0.65rem;
  transition: var(--transition);
}

.tour-booking-card .form-control:focus {
  background: var(--bg-input) !important;
  border-color: var(--border-accent) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 0 0 3px var(--accent-glow) !important;
  outline: none;
}

.tour-booking-card .form-control::placeholder {
  color: var(--text-muted);
  font-style: italic;
  font-size: 11px;
}

/* Tint the system date picker arrow to match dark theme */
.tour-booking-card input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(0.65) sepia(0.15) saturate(0.6);
  cursor: pointer;
  opacity: 0.7;
}
.tour-booking-card input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* ── Submit button ────────────────────────── */
.tour-booking-card .btn-primary {
  background: var(--accent-dim) !important;
  border: 1px solid var(--border-accent) !important;
  color: var(--accent) !important;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm) !important;
  padding: 6px 14px;
  transition: var(--transition);
  box-shadow: none !important;
}

.tour-booking-card .btn-primary:hover:not(:disabled) {
  background: rgba(156, 220, 240, 0.18) !important;
  border-color: var(--accent) !important;
  color: var(--text-primary) !important;
}

.tour-booking-card .btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── Status / feedback alerts ─────────────── */
/* Override Bootstrap's light alert colors inside the widget */
.tour-booking-card .alert {
  font-size: 12px;
  font-family: var(--font-mono);
  border-radius: var(--radius-sm) !important;
  padding: 0.55rem 0.85rem;
  line-height: 1.55;
}

.tour-booking-card .alert-success {
  background: var(--success-dim) !important;
  border-color: rgba(74, 222, 128, 0.25) !important;
  color: var(--success) !important;
}

.tour-booking-card .alert-danger {
  background: var(--danger-dim) !important;
  border-color: rgba(248, 113, 113, 0.25) !important;
  color: var(--danger) !important;
}

/* Ensure <strong> inside alerts inherits semantic color */
.tour-booking-card .alert strong { color: inherit; }

/* ── Spinner ──────────────────────────────── */
/* Bootstrap spinner inherits button text color — no override needed */

/* ── Divider between card and timestamp ───── */
.tour-booking-card + small {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}
