/* Passenger Details Page Styles */

.section-divider {
  border-bottom: 2px solid #e9ecef;
}

.section-divider h2 {
  margin-bottom: 0;
  color: var(--bs-body-color);
  font-weight: 600;
}

.mrz-capture-section {
  border: 2px solid #e7f1ff !important;
  background-color: #f0f7ff !important;
}

.mrz-guide {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 7%;
  height: 30%;
  border: 3px solid #ffc107;
  border-radius: 4px;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(255, 193, 7, 0.1);
  padding-bottom: 12px;
}

.mrz-guide-text {
  background: rgba(255, 193, 7, 0.9);
  color: #000;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

/* Form Validation Styles */
.form-control:invalid:focus,
.form-select:invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545;
}

/* Name Verification Warning Banner */
#nameWarningBanner {
  border-left: 4px solid #ffc107;
  border-radius: 4px;
  animation: slideDown 0.3s ease-out;
}

#nameWarningBanner.d-none {
  display: none !important;
}

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

#nameWarningBanner svg {
  color: #998404;
}

/* Form Control Sizing - Taller and Consistent */
.form-control,
.form-select {
  min-height: 48px;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 4px;
}

.form-control {
  padding: 0.75rem;
}

.form-select {
  padding: 0.75rem 2.25rem 0.75rem 0.75rem;
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.invalid-feedback {
  display: none;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.was-validated .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback {
  display: block;
}

.form-text {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* Modal Customization */
.modal-content {
  border-radius: 0;
  border: 1px solid var(--bs-border-color);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
  padding: 1.25rem;
}

.modal-body {
  padding: 1.25rem;
}

.modal-footer {
  padding: 1.25rem;
}

/* Video and Image Styling */
#mrzVideo,
#mrzPreviewImg {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

/* Breadcrumb */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.breadcrumb-item a {
  color: var(--bs-link-color);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--bs-secondary-color);
}

/* Button Styling */
.btn {
  border-radius: 0;
  font-weight: 500;
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.btn-primary:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* Alert Styling */
.alert {
  border-radius: 0;
  border-left: 4px solid;
}

.alert-info {
  border-left-color: #0dcaf0;
}

.alert-success {
  border-left-color: #198754;
}

.alert-warning {
  border-left-color: #ffc107;
}

.alert-danger {
  border-left-color: #dc3545;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
  .modal-dialog {
    margin: 0.5rem;
  }

  .card-body {
    padding: 1rem;
  }

  .d-flex.gap-2 {
    flex-direction: column;
  }

  .d-flex.gap-2 .btn {
    width: 100%;
  }
}

/* Accessibility */
.btn:focus-visible,
.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

/* Badge Styling */
.badge {
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35em 0.65em;
}

/* Choices.js Dropdown Styling */
.choices {
  width: 100%;
}

.choices__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.75rem;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 1rem;
  min-height: 48px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.choices__inner:focus-within {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.choices__list--dropdown {
  border-radius: 4px;
  border: 1px solid #dee2e6;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  max-height: 300px;
}

.choices__item {
  padding: 0.75rem;
  margin-right: 0.25rem;
  position: relative;
  user-select: none;
}

.choices[data-type*="select-one"] .choices__item {
  background-color: transparent;
  border: 0;
  padding: 0;
  margin-right: 0;
}

.choices__item--selectable {
  cursor: pointer;
  padding: 0.75rem;
}

.choices__list--dropdown .choices__item--selectable:hover {
  background-color: #f8f9fa;
}

.choices__item--selected {
  background-color: transparent;
}

.choices__placeholder {
  color: #6c757d;
  opacity: 0.7;
}

.choices__item--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Row spacing for side-by-side fields */
.row > .col-md-4,
.row > .col-md-6 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
