/* =====================================================
   Flight Review Page — Component Styles
   ===================================================== */

/* ---- Step indicator -------------------------------- */
.fb-steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.fb-step {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  position: relative;
  flex: 1;
  min-width: 0;
}

.fb-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #dee2e6;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c757d;
  z-index: 1;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.fb-step.active .fb-circle {
  border-color: var(--color-second, #0d6efd);
  background: var(--color-second, #0d6efd);
  color: #fff;
}

.fb-step.completed .fb-circle {
  border-color: var(--color-second, #0d6efd);
  background: var(--color-second, #0d6efd);
  color: #fff;
}

.fb-label {
  font-size: 0.7rem;
  color: #6c757d;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.fb-step.active .fb-label,
.fb-step.completed .fb-label {
  color: var(--color-second, #0d6efd);
  font-weight: 600;
}

.fb-line {
  flex: 1;
  height: 2px;
  background: #dee2e6;
  margin-bottom: 18px;
  transition: background 0.25s;
}

.fb-line.active {
  background: var(--color-second, #0d6efd);
}

/* ---- Price lock banner ------------------------------ */
.price-lock-banner {
  background: #fff0f3;
  border: 1px solid #ffc9d4;
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 500;
}

/* ---- Flight review card ---------------------------- */
.review-flight-card {
  border: 1px solid #e9ecef;
  overflow: hidden;
}

.review-flight-card-header {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  border-bottom: 1px solid #d0e8f7;
}

.review-flight-pill {
  background: #fff;
  border: 1px solid #dee2e6;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.15s;
}

.review-flight-pill:hover {
  background: #f8f9fa;
}

.review-flight-airline-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-second, #0d6efd);
  flex-shrink: 0;
}

.review-flight-duration {
  border: 1px dashed #ced4da;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.75rem;
  text-align: center;
  min-width: 80px;
}

.review-flight-accordion .accordion-button {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 14px;
  background: transparent;
  color: inherit;
}

.review-flight-accordion .accordion-button:not(.collapsed) {
  background: #f0f7ff;
  box-shadow: none;
}

/* ---- Flight timeline ------------------------------- */
.flight-timeline {
  position: relative;
  padding-left: 26px;
}

.flight-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #dee2e6;
}

.flight-timeline-item {
  position: relative;
  padding-bottom: 16px;
}

.flight-timeline-item:last-child {
  padding-bottom: 0;
}

.flight-timeline-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6c757d;
  border: 2px solid #fff;
  outline: 2px solid #6c757d;
}

.dark-green-dot::before {
  background: #198754 !important;
  outline-color: #198754 !important;
}

.flight-timeline-stop {
  font-size: 0.75rem;
  color: #6c757d;
  background: #f8f9fa;
  border-radius: 6px;
  padding: 4px 10px;
  display: inline-block;
  margin-bottom: 6px;
}

/* ---- Seat map --------------------------------------- */
.seat-wrapper {
  overflow-x: auto;
}

.full-seat-block {
  min-width: 320px;
}

.seat-header,
.seat-row {
  display: grid;
  grid-template-columns: 28px repeat(3, 36px) 16px repeat(3, 36px);
  gap: 4px;
  align-items: center;
  margin-bottom: 2px;
}

.seat-header span,
.row-number {
  text-align: center;
  font-size: 0.7rem;
  color: #6c757d;
}

.aisle {
  width: 16px;
}

.seat {
  width: 36px;
  height: 34px;
  border-radius: 6px 6px 3px 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.1s, box-shadow 0.1s;
  background: #e9f5e9;
  border-color: #a8d5a2;
  color: #1a5c1a;
  user-select: none;
}

.seat.occupied {
  background: #e0e0e0;
  border-color: #bdbdbd;
  color: #9e9e9e;
  cursor: not-allowed;
}

.seat.free {
  background: #e9f5e9;
  border-color: #a8d5a2;
  color: #1a5c1a;
}

.seat.window {
  background: #ede7f6;
  border-color: #b39ddb;
  color: #4527a0;
}

.seat.legroom {
  background: #e3f2fd;
  border-color: #90caf9;
  color: #0d47a1;
}

.seat.emergency {
  background: #fff8e1;
  border-color: #ffe082;
  color: #e65100;
}

.seat.selected {
  background: var(--color-second, #0d6efd);
  border-color: var(--color-second, #0d6efd);
  color: #fff;
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.4);
  transform: scale(1.05);
}

.seat:not(.occupied):hover {
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.seat-legend {
  font-size: 0.72rem;
  flex-wrap: wrap;
}

.seat-type {
  width: 16px;
  height: 14px;
  display: inline-block;
}

.seat-type.occupied  { background: #e0e0e0; border: 1px solid #bdbdbd; }
.seat-type.free      { background: #e9f5e9; border: 1px solid #a8d5a2; }
.seat-type.window    { background: #ede7f6; border: 1px solid #b39ddb; }
.seat-type.legroom   { background: #e3f2fd; border: 1px solid #90caf9; }
.seat-type.emergency { background: #fff8e1; border: 1px solid #ffe082; }
.seat-type.selected  { background: var(--color-second, #0d6efd); border: 1px solid var(--color-second, #0d6efd); }

.passenger-list .passenger {
  background: #f8f9fa;
  border: 1px solid #dee2e6 !important;
  font-size: 0.78rem;
  transition: background 0.15s;
}

.passenger-list .passenger.active {
  background: var(--color-second, #0d6efd);
  color: #fff;
  border-color: var(--color-second, #0d6efd) !important;
}

/* ---- Checkbox/Radio card buttons ------------------- */
.filter-checkbox-buttons {
  position: relative;
}

.filter-checkbox-buttons .btn-check + .btn {
  border: 1.5px solid #dee2e6;
  border-radius: 10px;
  font-size: 0.78rem;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
}

.filter-checkbox-buttons .btn-check:checked + .btn {
  border-color: var(--color-second, #0d6efd);
  background: #f0f7ff;
}

.other-checkbox-buttons .btn-check + .btn {
  border-radius: 10px;
}

.checked-checkbox-icon {
  width: 20px;
  height: 20px;
  bottom: 8px;
  right: 8px;
  background: var(--color-second, #0d6efd);
  opacity: 0;
  transition: opacity 0.15s;
  display: flex;
}

.filter-checkbox-buttons .btn-check:checked + .btn .checked-checkbox-icon {
  opacity: 1;
}

.filter-radio-buttons {
  border: 1.5px solid #dee2e6;
  transition: border-color 0.15s, background 0.15s;
}

.filter-radio-buttons:has(.form-check-input:checked) {
  border-color: var(--color-second, #0d6efd);
  background: #f0f7ff;
}

.filter-radio-label {
  cursor: pointer;
  font-size: 0.78rem;
}

/* ---- Payment --------------------------------------- */
.payment-default-saving {
  background: #fff;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid #e9ecef;
  transition: background 0.15s;
}

.payment-default-saving:last-child {
  border-bottom: 0;
}

.payment-default-saving:hover {
  background: #f9fafb;
}

.payment-method-option-bank {
  width: 44px;
  height: 32px;
  font-size: 0.65rem;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

/* Card-style payment method tabs */
.payment-method-option {
  font-size: 0.82rem;
  border: 1.5px solid #dee2e6 !important;
  color: #495057;
  background: #fff;
  border-radius: 8px !important;
  transition: border-color 0.2s, background 0.15s, color 0.15s;
  min-height: 72px;
}

.payment-method-option:hover {
  border-color: var(--color-second, #e3192a) !important;
  background: #fff5f6;
  color: var(--color-second, #e3192a);
}

.payment-method-option.active,
.payment-method-option:focus {
  border-color: var(--color-second, #e3192a) !important;
  background: #fff !important;
  color: var(--color-second, #e3192a) !important;
  box-shadow: none !important;
}

.payment-method-option.active svg,
.payment-method-option:hover svg {
  stroke: var(--color-second, #e3192a);
}

/* ---- Sticky price summary ------------------------- */
.sticky-payment-summary {
  top: 1rem;
}

/* ---- Color utilities (if not in global theme) ------ */
.bgColor-pink-light   { background-color: #fff0f3 !important; }
.bgColor-blue-50      { background-color: #eff6ff !important; }
.bgColor-orange-50    { background-color: #fff7ed !important; }
.bgColor-gray-50      { background-color: #f9fafb !important; }

.border-color-blue-200   { border-color: #bfdbfe !important; }
.border-color-orange-200 { border-color: #fed7aa !important; }

.color-text-orange-800 { color: #9a3412 !important; }
.color-text-orange-600 { color: #ea580c !important; }
.color-text-green-700  { color: #15803d !important; }

.stroke-orange-500 { stroke: #f97316 !important; }
.stroke-green-600  { stroke: #16a34a !important; }
