/* =============================================
   Webform
   ============================================= */

.webform-submission-form,
form.webform-submission-form {
  counter-reset: details-counter;
}

html {
  scroll-behavior: auto !important;
}

.form-item label,
.facility-flights-title,
label,
label.form-required {
  font-size: 14px !important;
  font-family: OpenSansMedium, sans-serif !important;
  font-weight: 600 !important;
  color: var(--sata-navy) !important;
  margin-bottom: 0.5rem !important;
}

.form-required {
  font-size: 14px !important;
  font-family: OpenSansMedium, sans-serif !important;
  font-weight: 600 !important;
  color: var(--sata-navy) !important;
  margin-bottom: 0.5rem !important;
}

label.form-required::after,
.facility-flights-title.form-required::after {
  content: ' *' !important;
  color: var(--sata-navy) !important;
  background-image: none !important;
  margin: 0 0.3em;
  vertical-align: unset !important;
}

th .form-required {
  background-image: none !important;
  background-size: 0 !important;
  color: var(--sata-navy) !important;
}

th .form-required::after {
  content: ' *' !important;
  color: var(--sata-navy-dark) !important;
  margin-left: 0.3em;
  vertical-align: unset !important;
  background-image: none !important;
}

.webform-element-description {
  font-size: 14px;
}

.form-control:not(.btn),
.form-select:not(.btn) {
  background-color: #F9FAFB !important;
  border-radius: 8px !important;
  border: 1px solid #F9FAFB !important;
  font-size: 14px;
  height: 39px;
}

.form-check-input[type=checkbox]:focus,
.form-check-input[type=radio]:focus {
  box-shadow: unset !important;
}

.form-check .form-check-label {
  line-height: 1.25;
  font-weight: 400 !important;
  margin-bottom: 0 !important;
}

.consent-radio .form-check,
.form-item-consent-privacy-policy {
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
  padding-left: 0 !important;
}

.consent-radio .form-check .form-check-input,
.form-item-consent-privacy-policy .form-check-input {
  margin: 0 !important;
  margin-left: 0 !important;
}

.form-control:focus:not(.btn),
.form-select:focus:not(.btn) {
  border: 1px solid var(--sata-teal) !important;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15) !important;
}

.form-select-enhanced {
  position: relative;
}

.form-select-enhanced__trigger {
  width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.form-select-enhanced__trigger:disabled {
  color: var(--sata-gray-mid);
  cursor: default;
}

.form-select-enhanced:has(.ajax-progress-throbber) .form-select-enhanced__trigger {
  padding-right: 3.25rem !important;
}

.form-select-enhanced .ajax-progress-throbber {
  position: absolute;
  top: 50%;
  right: 2.25rem;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  z-index: 2;
  pointer-events: none;
}

.form-select-enhanced .ajax-progress-throbber .message {
  display: none;
}

.form-select-enhanced select.visually-hidden:focus {
  outline: none;
}

.form-select-enhanced:focus-within .form-select-enhanced__trigger {
  border-color: var(--sata-teal) !important;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15) !important;
}

.form-select-enhanced .dropdown-option[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-select-enhanced .dropdown-option:has(.badge-sata) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.year.new:not(.disabled),
.year.old:not(.disabled) {
  color: inherit !important;
}

.phone-number-field {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 0.5rem !important;
}

.phone-number-field > label {
  flex: 1 0 100% !important;
  margin: 0 !important;
}

.phone-number-field .form-type-select {
  flex: 0 0 auto !important;
}

.phone-number-field .form-type-textfield {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

.phone-number-field .local-number,
.phone-number-field .extension {
  width: 100% !important;
  height: 39px !important;
  border-bottom: none !important;
}

.phone-number-field .country-select {
  display: flex !important;
  align-items: center !important;
  height: 39px !important;
  box-sizing: border-box !important;
  background-color: #F9FAFB !important;
  border: 1px solid #F9FAFB !important;
  border-bottom: none !important;
  border-radius: 8px !important;
  padding: 0 14px !important;
}

.phone-number-field .country-select .phone-number-flag {
  margin: 0 5px 0 0 !important;
}

.phone-number-field .country-select .prefix {
  line-height: normal !important;
  margin: 0 !important;
  min-width: auto !important;
}

.phone-number-field .country-select .arrow {
  margin: 0 0 0 5px !important;
}

details.row {
  display: block;
  overflow: hidden;
  margin-bottom: 2rem;
  counter-increment: details-counter;
}

fieldset.row {
  display: block !important;
  overflow: visible;
  margin: 0 0 2rem !important;
  padding: 0 !important;
  border: 1px solid var(--sata-gray);
  border-radius: 16px;
  background: var(--sata-white);
  box-shadow: var(--shadow-card);
}

fieldset.row > legend {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1rem 1.5rem !important;
  background: var(--sata-gray-light);
  border-bottom: 1px solid var(--sata-gray);
  border-radius: 16px 16px 0 0;
}

fieldset.row > legend .fieldset-legend {
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: var(--sata-navy);
}

fieldset.row > .fieldset-wrapper {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem 1.5rem;
  padding: 1.5rem;
}

fieldset.row > .fieldset-wrapper > * {
  grid-column: span 12;
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  margin: 0 !important;
}

fieldset.row > .fieldset-wrapper > .col-md-4 {
  grid-column: span 4;
}

fieldset.row > .fieldset-wrapper > .col-md-6,
fieldset.row > .fieldset-wrapper > .phone-number-field {
  grid-column: span 6;
}

fieldset.row > .fieldset-wrapper > .col-md-8 {
  grid-column: span 8;
}

fieldset.row > .fieldset-wrapper > .col-md-12 {
  grid-column: span 12;
}

@media (max-width: 767.98px) {
  fieldset.row > .fieldset-wrapper > [class*="col-md-"],
  fieldset.row > .fieldset-wrapper > .phone-number-field {
    grid-column: span 12;
  }
}

.iti {
  width: 100%;
}

.iti input.form-control {
  padding-left: 60px !important;
}

#edit-actions input[type="submit"],
.form-actions input[type="submit"],
.submit-button-wrapper input[type="submit"],
.redirect-btn,
.webform-actions input[type="submit"] {
  background-color: var(--sata-teal) !important;
  color: var(--sata-navy) !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 0 1.75rem !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 48px !important;
  width: fit-content !important;
  cursor: pointer;
  box-shadow: none !important;
  transform: none !important;
  transition: background var(--transition), color var(--transition) !important;
}

#edit-actions input[type="submit"]:hover,
.form-actions input[type="submit"]:hover,
.submit-button-wrapper input[type="submit"]:hover,
.redirect-btn:hover,
.webform-actions input[type="submit"]:hover {
  color: var(--sata-white) !important;
  background-color: var(--sata-teal-dark) !important;
}

.form-control:not(.btn) {
  border: none !important;
}

form .form-actions {
  display: flex;
  justify-content: flex-end;
}

details.row > summary {
  padding: 1rem;
  border-radius: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: var(--sata-navy);
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-required::after {
  content: '*';
  background-image: unset !important;
}

input.form-check-input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  padding: 0 !important;
  margin: 0;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: #F9FAFB;
  cursor: pointer;
  border: 1px solid #D1D5DB;
  transition: background-color var(--transition), border-color var(--transition);
}

.form-check {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding-left: 0 !important;
}

.webform-options-display-side-by-side > .form-check {
  display: inline-flex;
}

input.form-check-input[type="radio"]:checked {
  background-color: var(--sata-white);
  border: 4px solid var(--sata-link);
}

input.form-check-input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: auto;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  margin-left: 0px !important;
  accent-color: var(--sata-teal);
  cursor: pointer;
}

legend {
  line-height: 1.15;
}

h2 {
  margin-top: 0 !important;
}

details.row > summary::before {
  content: counter(details-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: var(--sata-navy);
  color: var(--sata-white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

details.row > summary::marker {
  display: none;
}

details.row > summary::-webkit-details-marker {
  display: none;
}

details.row .details-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.75rem;
}

details.row .details-wrapper > .row {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
}

details.row .details-wrapper > .row:has(> .col-md-6) {
  gap: 1rem;
}

details.row .details-wrapper > fieldset.consent-radio {
  flex: 0 0 100%;
  width: 100%;
}

summary {
  padding: 1rem 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: var(--sata-navy);
  cursor: pointer;
}

summary::marker {
  margin-right: 6px;
}

details.row .col-md-6,
details.row .phone-number-field {
  flex: 0 0 calc(50% - 0.5rem);
}

details.row .phone-number-field {
  padding-top: 0 !important;
}

details.row .col-md-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 !important;
}

.webform-submission-form strong.error.form-item--error-message {
  color: red;
}

.sata-submit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sata-submit-overlay__spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--sata-white);
  border-radius: 50%;
  animation: sata-submit-overlay-spin 0.8s linear infinite;
}

@keyframes sata-submit-overlay-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 767.98px) {
  details.row .col-md-6,
  details.row .phone-number-field {
    flex: 0 0 100%;
  }
}

.facility-request-companion-box {
  border: 1px solid #D0D0D0;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 0 !important;
}

.facility-request-form .form-disabled label,
.facility-request-form .disabled label {
  color: var(--sata-gray-mid) !important;
}

.facility-request-form .form-disabled label.form-required::after,
.facility-request-form .disabled label.form-required::after {
  color: var(--sata-gray-mid) !important;
}

.facility-request-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

.facility-request-actions .btn-cancel {
  background: none;
  border: none;
  border-radius: 10px;
  color: var(--sata-navy);
  font-weight: 700;
  font-size: 16px;
  height: 48px;
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  transition: background var(--transition);
}

.facility-request-actions .btn-cancel:hover {
  background: var(--sata-gray-light);
  color: var(--sata-navy);
  text-decoration: none;
  transform: none;
}

#edit-trip-type-code {
  display: flex;
  gap: 16px;
}

.table-responsive {
  border-radius: 16px;
}

.table-responsive .table {
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.table-responsive .table.sticky-header thead {
  position: static;
  z-index: auto;
}

.table-responsive .table thead th {
  border-bottom: 1px solid #E9EAEB;
}

.table-responsive .table thead th a:hover,
.table-responsive .table thead th a:focus {
  text-decoration: underline;
}

.table-responsive .table thead th,
.table-responsive .table thead th a,
.table-responsive .table thead th a:hover,
.table-responsive .table thead th a:focus {
  background-color: white;
  color: var(--sata-link) !important;
  text-decoration: none;
  font-family: OpenSansMedium, sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 1rem 1.1rem !important;
}

.webform-multiple-table td input[type="image"] {
  background: #fcfcfc;
}

.table-responsive .table tbody td {
  border-bottom: 1px solid #E9EAEB;
  padding: 1rem !important;
  --bs-table-accent-bg: unset !important;
}

.table-responsive .table tbody tr.odd {
  background: white !important;
}

.redirect-btn {
  padding: 0 1.75rem !important;
  text-transform: unset !important;
}

.redirect-btn a {
  color: var(--sata-navy);
  transition: color var(--transition);
  line-height: 1;
}

.redirect-btn a:hover {
  color: var(--sata-white)
}

.table-responsive .table tbody tr {
  background: white !important;
}

.table-responsive .table tbody tr:last-child td {
  border-bottom: none;
}

.table-responsive .table .js-form-item {
  margin-bottom: 0 !important;
}

.table-responsive .table input[type="text"],
.table-responsive .table input[type="number"],
.table-responsive .table input[type="date"],
.table-responsive .table select {
  background-color: #F9FAFB !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  padding: 0.75rem !important;
  width: 100% !important;
}

.webform-multiple-table,
.webform-multiple-table-responsive,
[id$="_table"] {
  width: 100%;
  box-sizing: border-box;
}

.webform-multiple-table table,
.table-responsive table {
  width: 100% !important;
}

td.webform-multiple-table--operations {
  text-align: center !important;
}

td.webform-multiple-table--operations .image-button {
  box-sizing: border-box;
  width: 32px !important;
  height: 32px !important;
  padding: 8px !important;
  border-radius: 50% !important;
  background-color: #E5E7EB !important;
  border: 1px solid #E5E7EB !important;
  display: inline-block !important;
  margin: 0 0.25rem !important;
  object-fit: contain;
  cursor: pointer;
  transition: all 0.2s ease;
}

td.webform-multiple-table--operations .image-button:hover {
  background-color: #E5E7EB !important;
  border-color: var(--sata-navy) !important;
}

@media (max-width: 991.98px) {
  .table-responsive {
    border: none !important;
    border-radius: 0;
    padding: 0;
    width: 100%;
  }

  .table-responsive .table {
    display: block;
    border: none;
    width: 100% !important;
  }

  .table-responsive .table thead {
    display: none;
  }

  .table-responsive .table tbody {
    display: block;
    width: 100%;
  }

  .table-responsive .table tbody tr {
    display: block;
    position: static !important;
    border: 1px solid #0082BB;
    border-radius: 16px;
    margin-bottom: 2rem;
    overflow: visible;
    padding: 1rem;
    width: 100%;
    background-color: white !important;
  }

  .table-responsive .table .tr.odd {
    background: white !important;
  }

  .table-responsive .table tbody td {
    display: block;
    background-color: white;
    position: static !important;
    top: auto !important;
    right: auto !important;
    border: none !important;
    padding: 0.75rem 0 !important;
    width: 100%;
  }

  .table-responsive .table tbody td.webform-multiple-table--operations {
    padding: 1rem 0 0 0 !important;
    margin-top: 1rem;
    border-top: 1px solid #E9EAEB !important;
    text-align: center;
  }

  .table-responsive .table tbody td.webform-multiple-table--operations .image-button {
    width: 40px !important;
    height: 40px !important;
    padding: 10px !important;
    margin: 0 0.5rem !important;
  }

  .table-responsive .table .visually-hidden {
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--sata-navy);
    font-family: OpenSansMedium, sans-serif;
    font-size: 14px;
  }

  .table-responsive .table .js-form-item {
    margin-bottom: 0 !important;
  }

  .table-responsive .table .form-item label:not(.visually-hidden) {
    display: none;
  }
}

.datepicker.dropdown-menu {
  width: auto !important;
  min-width: 0 !important;
  padding: 0.75rem !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

.datepicker table {
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
}

.datepicker .table-condensed {
  min-width: 256px;
}

.datepicker table th,
.datepicker table td {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  font-size: 13px !important;
  border-bottom: none !important;
}

.datepicker table tr td.day:hover,
.datepicker table tr td.day.focused {
  background: var(--sata-gray-light) !important;
  color: var(--sata-teal-dark) !important;
  border-radius: 8px !important;
}

.datepicker table tr td.today,
.datepicker table tr td.today:hover {
  background: var(--sata-white) !important;
  background-image: none !important;
  color: var(--sata-navy) !important;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--sata-teal) !important;
  border-radius: 8px !important;
}

.datepicker table tr td.active.day,
.datepicker table tr td.active.day:hover,
.datepicker table tr td.active.day.today {
  background: var(--sata-teal) !important;
  background-image: none !important;
  color: var(--sata-white) !important;
  box-shadow: none !important;
  border-radius: 8px !important;
}

input.datepicker + .input-group-append {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  pointer-events: none;
}

input.datepicker + .input-group-append .field-suffix {
  background: none !important;
  border: none !important;
  padding: 0 0.75rem 0 0 !important;
  display: flex;
}

input.datepicker + .input-group-append .date-field-icon {
  display: flex;
  color: var(--sata-navy);
}

.input-group:has(> input.datepicker) {
  position: relative;
}

input.datepicker {
  padding-right: 2.25rem !important;
}

.facility-flights-row,
.facility-route {
  margin: 0 0 1rem;
}

.facility-flights-title {
  color: var(--sata-navy);
  font-family: OpenSansBold, sans-serif;
  font-size: 15px;
  margin-bottom: 0.75rem;
}

.facility-flights-body {
  position: relative;
  min-height: 56px;
  margin-bottom: 0 !important;
}

.facility-flights-message {
  color: var(--sata-text-muted);
  font-size: 14px;
  margin: 0;
}

.facility-flights-spinner {
  width: 32px;
  height: 32px;
  margin: 12px auto;
  border: 4px solid var(--sata-gray-light);
  border-top-color: var(--sata-teal-dark);
  border-radius: 50%;
  animation: sata-submit-overlay-spin 0.8s linear infinite;
}

.facility-flights-table {
  width: 100%;
}

.facility-flights-header {
  display: flex;
  align-items: center;
  padding: 14px;
  background-color: #FAFAFA;
  border-bottom: 1px solid var(--sata-gray-light);
}

.facility-flights-col {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sata-text-muted);
  white-space: nowrap;
}

.facility-flights-col--carrier {
  width: 100px;
  flex-shrink: 0;
}

.facility-flights-col--number {
  flex: 1;
}

.facility-flights-list {
  display: flex;
  flex-direction: column;
}

.facility-flight-row {
  display: flex;
  align-items: center;
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  padding: 0 1rem;
  background: var(--sata-white);
  border-bottom: 1px solid var(--sata-gray-light);
}

.facility-flight-row .flight-carrier {
  font-family: OpenSansMedium, sans-serif;
  color: var(--sata-navy);
  width: 100px;
  flex-shrink: 0;
}

.facility-flight-row .flight-number {
  font-family: OpenSansMedium, sans-serif;
  color: var(--sata-navy);
  flex: 1;
}

.facility-flight-row .flight-select-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  height: 34px;
  padding: 0 1.25rem;
  box-sizing: border-box;
  border: 1px solid var(--sata-teal-dark);
  border-radius: 10px;
  background: transparent;
  color: var(--sata-teal-dark);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.facility-flight-row .flight-select-pill:hover {
  background: var(--sata-teal-dark);
  border-color: var(--sata-teal-dark);
  color: var(--sata-white);
}

.facility-flight-row .flight-select-pill:focus-visible {
  outline: 2px solid var(--sata-teal-dark);
  outline-offset: 2px;
}

.facility-flight-row.is-selected .flight-select-pill:hover {
  background: var(--sata-navy);
  border-color: var(--sata-navy);
}

.facility-flight-row .flight-select-pill__selected {
  display: none;
  align-items: center;
  gap: 0.375rem;
}

.facility-flight-row.is-selected .flight-select-pill {
  background: var(--sata-navy);
  border-color: var(--sata-navy);
  color: var(--sata-white);
}

.facility-flight-row.is-selected .flight-select-pill__default {
  display: none;
}

.facility-flight-row.is-selected .flight-select-pill__selected {
  display: inline-flex;
}
