/* =============================================
   Buttons (global overrides)
   ============================================= */

.btn-primary {
  background: var(--sata-navy);
  border-color: var(--sata-navy);
  color: var(--sata-white);
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1.4rem;
  transition: background var(--transition), border-color var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--sata-navy-dark);
  border-color: var(--sata-navy-dark);
  color: var(--sata-white);
  text-decoration: none;
  transform: none;
}

.btn-primary:disabled,
.btn-primary.disabled {
  background: var(--sata-navy);
  border-color: var(--sata-navy);
  color: var(--sata-white);
  opacity: 0.85;
}

.booking-form__submit {
  position: relative;
}

.booking-form__submit.is-loading {
  color: transparent;
  pointer-events: none;
}

.card-header .btn-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-header .btn-link svg {
  float: none !important;
  margin-left: auto;
}

.booking-form__submit.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--sata-white);
  border-radius: 50%;
  animation: booking-form-spin 0.7s linear infinite;
}

@keyframes booking-form-spin {
  to { transform: rotate(360deg); }
}

.booking-form__messages {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  width: auto;
  max-width: min(420px, calc(100vw - 2rem));
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.booking-form__messages .alert {
  display: flex;
  align-items: center;
  border-radius: var(--bs-border-radius-lg);
  box-shadow: var(--shadow-card-hover);
  border: none;
  background-color: #fff;
  color: var(--bs-body-color, #1d2f4d);
  padding: 1rem !important;
  margin-bottom: 0;
}

.booking-form__messages .alert-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.booking-form__messages .alert svg {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  padding: 0.5rem;
  border-radius: var(--bs-border-radius-lg);
  box-sizing: border-box;
  fill: currentColor;
  margin-right: 0.75rem;
}

.booking-form__messages .alert-danger svg,
.booking-form__messages .alert-warning svg {
  color: var(--bs-danger, #dc3545);
  background-color: rgba(220, 53, 69, 0.15);
}

.booking-form__messages .alert-success svg {
  color: var(--bs-success, #198754);
  background-color: rgba(25, 135, 84, 0.15);
}

.booking-form__messages .alert-info svg {
  color: var(--bs-info, #0dcaf0);
  background-color: rgba(13, 202, 240, 0.15);
}

.booking-form__messages .alert .btn-close {
  position: relative;
  padding: 0.5rem;
  margin-left: 0.5rem;
}

.sata-imagine-buttons.btn-primary {
  background-color: var(--sata-navy) !important;
  border-color: var(--sata-navy) !important;
  color: var(--sata-white) !important;
}

input[type="submit"].sata-imagine-buttons,
input[type="button"].sata-imagine-buttons,
button.sata-imagine-buttons {
  height: auto !important;
  padding: 0.55rem 1.4rem !important;
  border: 1px solid var(--sata-navy) !important;
  border-radius: 4px !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
}

.sata-imagine-buttons.btn-primary:hover,
.sata-imagine-buttons.btn-primary:focus {
  background-color: var(--sata-navy-dark) !important;
  border-color: var(--sata-navy-dark) !important;
}

.sata-imagine-button-col,
.submit-button-wrapper {
  position: relative;
}

.submit-button-wrapper {
  display: flex;
  justify-content: flex-end;
}

.sata-imagine-button-col .ajax-progress-throbber,
.submit-button-wrapper .ajax-progress-throbber {
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
}

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

.submit-button-wrapper .ajax-progress-throbber {
  display: none;
}

.user-register-form.is-submitting .submit-button-wrapper .ajax-progress-throbber {
  display: block;
}

.user-register-form.is-submitting input,
.user-register-form.is-submitting select,
.user-register-form.is-submitting textarea,
.user-register-form.is-submitting button {
  pointer-events: none;
  opacity: 0.6;
}

.btn-secondary {
  background: var(--sata-teal);
  border-color: var(--sata-teal);
  color: var(--sata-white);
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--sata-teal-dark);
  border-color: var(--sata-teal-dark);
  color: var(--sata-white);
}

.btn-outline-primary {
  border-color: var(--sata-navy);
  color: var(--sata-navy);
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
}

.btn-outline-primary:hover {
  background: var(--sata-navy);
  color: var(--sata-white);
}

.form-control:not(.btn),
.form-select:not(.btn) {
  border-color: var(--sata-gray);
  color: var(--sata-text);
  border-radius: 4px;
  font-size: 0.875rem;
}

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

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sata-text-muted);
  margin-bottom: 0.4rem;
}

.badge-sata {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
}

a {
  color: var(--sata-teal);
  transition: color var(--transition);
}

a:hover {
  color: var(--sata-teal-dark);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--sata-teal);
}

.link-arrow::after {
  content: '→';
  transition: transform var(--transition);
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

.breadcrumb {
  font-size: 0.8rem;
  background: transparent;
  padding: 0.5rem 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--sata-gray-mid);
}

.breadcrumb-item a {
  color: var(--sata-teal);
}

.breadcrumb-item.active {
  color: var(--sata-text-muted);
}

.pagination .page-link {
  color: var(--sata-navy);
  border-color: var(--sata-gray);
  font-size: 0.875rem;
}

.pagination .page-item.active .page-link {
  background: var(--sata-teal);
  border-color: var(--sata-teal);
  color: var(--sata-white);
}

.pagination .page-link:hover {
  background: var(--sata-teal-light);
  color: var(--sata-teal-dark) !important;
}

body.path-search .pagination {
  margin-top: 2rem;
}

.messages {
  border-radius: var(--bs-border-radius-lg);
  font-size: 0.875rem;
}

.alert-wrapper {
  position: fixed;
  width: auto !important;
  max-width: min(420px, calc(100vw - 2rem));
  left: 1rem !important;
  bottom: 1rem !important;
  max-height: none;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease;
}

.alert-wrapper[data-stack-index="1"] {
  transform: translate(10px, -10px);
  z-index: 9998;
}

.alert-wrapper[data-stack-index="2"] {
  transform: translate(20px, -20px);
  z-index: 9997;
}

.alert-wrapper .alert {
  border-radius: var(--bs-border-radius-lg);
  box-shadow: var(--shadow-card-hover);
  border: none;
  background-color: #fff;
  color: var(--bs-body-color, #1d2f4d);
  padding: 1rem;
}

.alert-wrapper .alert.col-12 {
  width: auto;
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

.alert-wrapper .alert .btn-close {
  position: relative;
  padding: 0.5rem;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.alert-wrapper .alert-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem !important;
}

.alert-wrapper .messages__item {
  font-size: 1rem;
}

.alert-wrapper .messages__item a {
  line-height: 1.1 !important;
}

.alert-wrapper .alert svg {
  width: 2.25rem;
  height: 2.25rem;
  max-width: none;
  max-height: none;
  padding: 0.5rem;
  border-radius: var(--bs-border-radius-lg);
  box-sizing: border-box;
  fill: currentColor;
  margin-right: 0.75rem !important;
}

.alert-wrapper .alert-success svg {
  color: var(--bs-success, #198754);
  background-color: rgba(25, 135, 84, 0.15);
}

.alert-wrapper .alert-danger svg,
.alert-wrapper .alert-warning svg {
  color: var(--bs-danger, #dc3545);
  background-color: rgba(220, 53, 69, 0.15);
}

.alert-wrapper .alert-info svg {
  color: var(--bs-info, #0dcaf0);
  background-color: rgba(13, 202, 240, 0.15);
}

.view-pagination-wrapper {
  margin-top: 3rem;
}

.view-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.view-pager .pager__summary {
  color: var(--sata-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.view-pager .pager__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.view-pager .pager__items li {
  display: inline-flex;
}

.view-pager .pager__items li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  min-width: 36px;
  border: 1px solid var(--sata-navy);
  border-radius: 10px;
  height: 36px;
  background: transparent;
  color: var(--sata-navy);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all var(--transition);
}

.view-pager .pager__items li a:hover,
.view-pager .pager__items li a:focus {
  background: var(--sata-navy);
  color: var(--sata-white);
}

.view-pager .pager__items li a.pager__arrow {
  width: 36px;
  padding: 0;
}

@media (max-width: 767.98px) {
  .view-pager {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .view-pager .pager__items {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .view-pager .pager__items li a {
    height: auto;
    min-width: 32px;
    padding: 8px 10px;
    font-size: 14px;
  }

  .view-pager .pager__items li a.pager__arrow {
    width: 32px;
    padding: 8px 0;
  }
}

.view-other-resources {
  margin-top: 4rem;
}

.other-resources__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sata-navy);
  margin-bottom: 2.5rem;
}

.other-resources__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.other-resources__card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--sata-gray-light);
  border-radius: 12px;
  text-decoration: none;
  transition: all var(--transition);
}

.other-resources__card:hover {
  background: #F0F5FA;
  box-shadow: var(--shadow-card-hover) !important;
  transform: translateY(-2px);
  text-decoration: none !important;
}

.other-resources__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  width: 3rem;
  height: 3rem;
}

.other-resources__card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--sata-navy);
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.other-resources__card p {
  font-size: 16px;
  color: var(--sata-text-muted);
  flex: 1;
  font-weight: 100;
  margin-bottom: 1rem;
}

.other-resources__link {
  color: var(--sata-navy);
  font-weight: 600;
  font-size: 16px;
}

.other-resources__arrow {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 22px;
}

@media (max-width: 1199.98px) {
  .other-resources__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .other-resources__title {
    font-size: 1.5rem;
  }

  .other-resources__cards {
    grid-template-columns: 1fr;
  }
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 16px;
  border: 1px solid var(--sata-navy);
  border-radius: 10px;
  height: 37px;
  background: transparent;
  color: var(--sata-navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
}

.back-button:hover,
.back-button:focus {
  text-decoration: none !important;
  background: var(--sata-navy);
  color: var(--sata-white);
}

.back-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 4px;
  font-weight: 700;
}

.back-button__text {
  display: inline;
}

@media (min-width: 992px) {
  .back-button-col {
    flex: 0 0 320px;
    width: 320px;
    max-width: 320px;
  }

  .detail-content-col {
    flex: 1 1 0%;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 991.98px) {
  .back-button-col {
    margin-bottom: 2rem;
  }
}

[role="tablist"],
[role="tablist"] li {
  list-style: none !important;
}

[role="tablist"] {
  padding-left: 0 !important;
  margin-bottom: 0 !important;
}
