/* Flight search inside the existing glass search bar. Theme: #1A6FBF / #15233f */
.tp-flight-search[hidden] {
  display: none !important;
}

.tp-flight-search {
  padding-top: 2px;
}

.tp-flight-trip {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 14px;
}

.tp-flight-trip-btn {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tp-flight-trip-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.tp-flight-trip-btn.is-active {
  background: #1A6FBF;
  border-color: #1A6FBF;
  color: #fff;
}

.tp-flight-trip-btn:focus-visible,
.tp-flight-search-btn:focus-visible,
.tp-flight-btn:focus-visible,
.tp-flight-modal-close:focus-visible,
.tp-flight-counter button:focus-visible {
  outline: 2px solid #1A6FBF;
  outline-offset: 2px;
}

.tp-flight-fields {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tp-flight-field {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.tp-flight-field.is-open {
  z-index: 8;
}

.tp-flight-field.is-hidden {
  display: none;
}

.tp-flight-label {
  display: block;
  margin: 0 0 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.tp-flight-input {
  width: 100%;
  height: 54px;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #071516;
  font-size: 14px;
  font-weight: 600;
  padding: 0 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button.tp-flight-input {
  text-align: left;
  cursor: pointer;
  font-weight: 600;
}

.tp-flight-input::placeholder {
  color: #8b939c;
  font-weight: 500;
}

.tp-flight-input:hover {
  border-color: #fff;
}

.tp-flight-input:focus {
  outline: none;
  border-color: #1A6FBF;
  box-shadow: 0 0 0 3px rgba(26, 111, 191, 0.28);
  background: #fff;
}

.tp-flight-input.is-invalid {
  border-color: #8eb4d4;
  box-shadow: 0 0 0 3px rgba(26, 111, 191, 0.18);
}

.tp-flight-error,
.tp-flight-reserve-error {
  min-height: 16px;
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  color: #f7921f;
}

.tp-flight-error:empty,
.tp-flight-reserve-error:empty {
  display: none;
}

.tp-flight-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 14px);
  z-index: 20;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(7, 21, 22, 0.2);
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  animation: tpFlightDrop 0.16s ease;
}

.tp-flight-suggest.is-up {
  top: auto;
  bottom: calc(100% - 22px);
}

.tp-flight-suggest[hidden] {
  display: none !important;
}

.tp-flight-option,
.tp-flight-suggest-note {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.tp-flight-suggest-note {
  cursor: default;
  color: #667085;
  font-size: 13px;
  font-weight: 600;
}

.tp-flight-option-name {
  display: block;
  color: #071516;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.tp-flight-option-meta {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
}

.tp-flight-option-meta strong {
  color: #1A6FBF;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.tp-flight-option:hover,
.tp-flight-option.is-active {
  background: #eef5fc;
}

.tp-flight-search .tp-flight-search-btn {
  margin-top: 32px;
  height: 54px;
  width: auto;
  min-width: 118px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
}

.tp-flight-search-btn:hover {
  transform: translateY(-1px);
}

@keyframes tpFlightDrop {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

@keyframes tpFlightIn {
  from { opacity: 0; transform: scale(0.98) translateY(8px); }
  to { opacity: 1; transform: none; }
}

body.tp-flight-lock {
  overflow: hidden;
}

.sky-book-processing {
  z-index: 12000;
}

.swal2-container {
  z-index: 13000 !important;
}

.tp-flight-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.tp-flight-modal[hidden] {
  display: none !important;
}

.tp-flight-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 21, 22, 0.58);
}

.tp-flight-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: #fff;
  color: #071516;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(7, 21, 22, 0.28);
  animation: tpFlightIn 0.22s ease;
}

.tp-flight-dialog::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.tp-flight-dialog--review {
  width: min(920px, 100%);
  max-height: calc(100vh - 24px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tp-flight-dialog--review .tp-flight-modal-head {
  flex-shrink: 0;
  padding: 12px 16px;
}

.tp-flight-dialog--review .tp-flight-modal-head h2 {
  font-size: 20px;
}

.tp-flight-modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: #1A6FBF;
  color: #fff;
  border-radius: 18px 18px 0 0;
}

.tp-flight-modal-head h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tp-flight-modal-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.tp-flight-modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.tp-flight-modal-body {
  padding: 18px 18px 8px;
}

.tp-flight-counters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tp-flight-counter-card {
  background: #f6f7f9;
  border-radius: 14px;
  padding: 16px 14px 14px;
  text-align: center;
}

.tp-flight-counter-card h3,
.tp-flight-cabin-heading {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #071516;
}

.tp-flight-counter-card p {
  margin: 4px 0 12px;
  color: #667085;
  font-size: 13px;
}

.tp-flight-counter {
  display: flex;
  align-items: center;
  border: 1.5px solid #d7dbe2;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.tp-flight-counter button {
  width: 42px;
  height: 42px;
  border: 0;
  background: #1A6FBF;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tp-flight-counter button:hover:not(:disabled) {
  background: #155a9c;
}

.tp-flight-counter button:disabled {
  background: #9ec4e4;
  cursor: not-allowed;
}

.tp-flight-counter span {
  flex: 1;
  font-size: 18px;
  font-weight: 800;
}

.tp-flight-cabin-heading {
  margin: 18px 0 10px;
}

.tp-flight-cabins {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tp-flight-cabin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  margin: 0;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tp-flight-cabin--wide {
  grid-column: 1 / -1;
}

.tp-flight-cabin input {
  accent-color: #1A6FBF;
  width: 16px;
  height: 16px;
}

.tp-flight-cabin:has(input:checked),
.tp-flight-cabin.is-selected {
  border-color: #1A6FBF;
  background: #eef5fc;
}

.tp-flight-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 18px 18px;
}

.tp-flight-btn {
  height: 48px;
  border-radius: 8px;
  border: 1.5px solid #1A6FBF;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tp-flight-btn--solid {
  background: #1A6FBF;
  color: #fff;
}

.tp-flight-btn--solid:hover:not(:disabled) {
  background: #155a9c;
}

.tp-flight-btn--ghost {
  background: #fff;
  color: #071516;
  border-color: #d7dbe2;
}

.tp-flight-btn--ghost:hover {
  border-color: #1A6FBF;
  color: #1A6FBF;
}

.tp-flight-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.tp-flight-review-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  padding: 14px 16px 16px;
  align-items: start;
}

.tp-flight-dialog--review .tp-flight-summary th,
.tp-flight-dialog--review .tp-flight-summary td {
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.9;
}

.tp-flight-dialog--review .tp-flight-summary tr:first-child th,
.tp-flight-dialog--review .tp-flight-summary tr:first-child td {
  padding-top: 16px;
  padding-bottom: 16px;
}

.tp-flight-dialog--review .tp-flight-reserve h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.tp-flight-dialog--review .tp-flight-reserve-copy {
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.35;
}

.tp-flight-dialog--review .tp-flight-reserve-label {
  margin: 6px 0 3px;
}

.tp-flight-dialog--review .tp-flight-reserve-input {
  height: 38px;
}

.tp-flight-dialog--review .tp-flight-reserve-message {
  height: 52px;
  resize: none;
}

.tp-flight-dialog--review .tp-flight-submit {
  margin-top: 10px;
  height: 42px;
}

.tp-flight-summary {
  width: 100%;
  border-collapse: collapse;
}

.tp-flight-summary th,
.tp-flight-summary td {
  border: 1px solid #e5e7eb;
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.tp-flight-summary th {
  width: 42%;
  font-weight: 600;
  color: #475467;
  background: #fff;
}

.tp-flight-summary td {
  font-weight: 800;
  color: #0B1220;
}

.tp-flight-reserve h3,
.tp-flight-success h3 {
  margin: 0 0 8px;
  color: #1A6FBF;
  font-size: 22px;
  font-weight: 800;
}

.tp-flight-reserve-copy,
.tp-flight-success p {
  margin: 0 0 14px;
  color: #344054;
  font-size: 14px;
  line-height: 1.55;
}

.tp-flight-reserve-label {
  display: block;
  margin: 10px 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #344054;
}

.tp-flight-reserve-input {
  width: 100%;
  height: 46px;
  border: 1.5px solid #d7dbe2;
  border-radius: 8px;
  padding: 0 12px;
  color: #071516;
  background: #fff;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tp-flight-reserve-message {
  height: 84px;
  padding: 10px 12px;
  resize: vertical;
}

.tp-flight-reserve-input:focus {
  outline: none;
  border-color: #1A6FBF;
  box-shadow: 0 0 0 3px rgba(26, 111, 191, 0.18);
}

.tp-flight-reserve-input.is-invalid {
  border-color: #d92d20;
}

.tp-flight-reserve-error {
  color: #d92d20;
}

.tp-flight-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tp-flight-submit {
  width: 100%;
  margin-top: 14px;
}

.tp-flight-form-error {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #eef5fc;
  border: 1px solid #c5daf0;
}

.tp-flight-form-error p {
  margin: 0 0 10px;
  color: #1A4F86;
  font-size: 14px;
  font-weight: 600;
}

.tp-flight-form-error[hidden],
.tp-flight-success[hidden] {
  display: none !important;
}

.tp-flight-success {
  text-align: left;
  padding-top: 8px;
}

.tp-flight-success-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1A6FBF;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.tp-flight-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.tp-flight-success-actions .tp-flight-btn {
  padding: 0 16px;
}

@media (max-width: 1199px) {
  .tp-flight-fields {
    flex-wrap: wrap;
  }
  .tp-flight-field {
    flex: 1 1 calc(33.33% - 12px);
  }
  .tp-flight-search-btn {
    margin-top: 24px;
  }
}

@media (max-width: 767px) {
  .tp-flight-trip {
    flex-wrap: wrap;
  }
  .tp-flight-field,
  .tp-flight-search-btn {
    flex: 1 1 100%;
    width: 100%;
  }
  .tp-flight-search .tp-flight-search-btn {
    margin-top: 4px;
    width: 100%;
  }
  .tp-flight-counters,
  .tp-flight-review-grid,
  .tp-flight-modal-actions {
    grid-template-columns: 1fr;
  }
  .tp-flight-cabin--wide {
    grid-column: auto;
  }
  .tp-flight-dialog,
  .tp-flight-dialog--review {
    width: 100%;
    overflow: auto;
    max-height: calc(100vh - 16px);
  }
  .tp-flight-modal {
    padding: 10px;
    align-items: flex-end;
  }
  .tp-flight-modal-head h2,
  .tp-flight-reserve h3 {
    font-size: 20px;
  }
}
