html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
}

/* Global Guard Travel Protection - shared public site styles */

.ggtp-container {
  min-height: 100vh;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ggtp-language-selector {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ggtp-language-form {
  margin: 0;
}

.ggtp-language-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  color: #6c757d;
  cursor: pointer;
}

.ggtp-language-btn.active {
  font-weight: 600;
  color: #212529;
}

.ggtp-logo {
  width: 220px;
  max-width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

.ggtp-text {
  font-size: 0.8rem;
  font-weight: 300;
  color: #212529;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: left;
}

.ggtp-banner {
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 1rem 0 2rem;
}

.ggtp-agree-btn {
  width: 100%;
  max-width: 500px;
  height: 42px;
  margin-bottom: 2rem;
  background-color: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 0.25rem;
  font-weight: 300;
  font-size: 1rem;
  cursor: pointer;
}

.ggtp-agree-btn:hover {
  background-color: #1d4ed8;
}

.ggtp-terms-link {
  font-size: 0.8rem;
  font-weight: 300;
  color: #3b82f6;
  text-decoration: none;
}

.ggtp-terms-link:hover {
  text-decoration: underline;
}

.ggtp-error {
  color: #dc2626;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-align: center;
}

.ggtp-select-label {
  font-size: 0.8rem;
  font-weight: 300;
  color: #6c757d;
  margin: 2rem 0 1rem;
  text-align: center;
}

.ggtp-product-form {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ggtp-product-item {
  width: 100%;
  min-width: 300px;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 0.25rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #3b82f6;
  opacity: 0.2;
  cursor: pointer;
  box-sizing: border-box;
}

.ggtp-product-item.selected {
  opacity: 1;
  text-decoration: underline;
}

.ggtp-price {
  font-weight: 300;
  margin-bottom: 1rem;
}

.ggtp-persons-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ggtp-person-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background-color: #dbeafe;
  color: #fff;
  font-weight: 300;
  cursor: pointer;
}

.ggtp-person-btn.active {
  background-color: #3b82f6;
}

.ggtp-days-stepper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid #6c757d;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  width: 9rem;
  justify-content: space-between;
}

.ggtp-days-stepper button {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
}

.ggtp-agree-btn:disabled {
  background-color: #93c5fd;
  cursor: not-allowed;
}

.ggtp-container-wide {
  max-width: 1120px;
  align-items: stretch;
}

.ggtp-container-wide .ggtp-language-selector {
  margin-bottom: 0.5rem;
}

.ggtp-container-wide .ggtp-logo {
  align-self: center;
  margin-bottom: 1.25rem;
}

.ggtp-container-wide #detailsForm {
  width: 100%;
}

.ggtp-container-wide .ggtp-agree-btn {
  display: block;
  width: min(100%, 280px);
  margin-left: auto;
}

.ggtp-fieldset {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
  padding: 1rem 1.25rem 1.25rem;
  margin-bottom: 1.5rem;
}

.ggtp-legend {
  font-size: 0.9rem;
  font-weight: 600;
  color: #212529;
  padding: 0 0.4rem;
  width: auto;
}

.ggtp-field {
  margin-bottom: 0.9rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ggtp-details-grid {
  display: grid;
  gap: 1rem 1.25rem;
}

.ggtp-general-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ggtp-passenger-grid,
.ggtp-emergency-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ggtp-details-grid .ggtp-field {
  margin-bottom: 0;
}

.ggtp-general-grid .ggtp-field-wide {
  grid-column: span 2;
}

.ggtp-field label {
  font-size: 0.75rem;
  font-weight: 300;
  color: #6c757d;
  margin-bottom: 0.3rem;
}

.ggtp-details-section .ggtp-field > label::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 0.35rem;
  border-radius: 50%;
  background-color: #d96868;
  vertical-align: 0.12rem;
}

.ggtp-input {
  height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 0.2rem;
  padding: 0 0.6rem;
  font-size: 0.9rem;
  outline: none;
}

.ggtp-input:focus {
  border-color: #3b82f6;
}

.ggtp-radio-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  min-height: 42px;
}

.ggtp-radio-group label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 400;
  color: #212529;
}

.ggtp-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 300;
  color: #212529;
  margin-bottom: 1rem;
  width: 100%;
}

.ggtp-emergency-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.15);
}

.ggtp-select-label-left {
  text-align: left;
  margin: 0 0 0.75rem;
}

.ggtp-emergency-input[readonly] {
  background-color: #f1f5f9;
  color: #6c757d;
}

.select2-container {
  width: 100% !important;
}

.select2-container .select2-selection--single {
  height: 42px !important;
  border: 1px solid rgba(0, 0, 0, 0.3) !important;
  border-radius: 0.2rem !important;
  display: flex;
  align-items: center;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  line-height: normal !important;
  padding-left: 0.6rem !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
  height: 40px !important;
}

@media (max-width: 767.98px) {
  .ggtp-container-wide {
    padding: 1rem;
  }

  .ggtp-general-grid,
  .ggtp-passenger-grid,
  .ggtp-emergency-grid {
    grid-template-columns: 1fr;
  }

  .ggtp-general-grid .ggtp-field-wide {
    grid-column: auto;
  }

  .ggtp-details-section {
    padding: 0.85rem 1rem 1rem;
  }

  .ggtp-container-wide .ggtp-agree-btn {
    width: 100%;
  }
}

.ggtp-checkout-title {
  width: 100%;
  max-width: 500px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 2rem;
}

.ggtp-checkout-product {
  width: 100%;
  max-width: 500px;
  color: #3b82f6;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.ggtp-checkout-row {
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.ggtp-checkout-total {
  font-weight: 700;
}

.ggtp-card-container {
  width: 100%;
  max-width: 500px;
  min-height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 0.2rem;
  padding: 0.6rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.ggtp-stripe-btn {
  width: 100%;
  max-width: 500px;
  height: 42px;
  margin-bottom: 1rem;
  background-color: #635bff;
  color: #fff;
  border: none;
  border-radius: 0.25rem;
  font-weight: 300;
  font-size: 1rem;
  cursor: pointer;
}

.ggtp-stripe-btn:hover:not(:disabled) {
  background-color: #4b45cc;
}

.ggtp-stripe-btn:disabled {
  background-color: #c7c4fb;
  cursor: not-allowed;
}

.ggtp-spinner-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.ggtp-spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #dbeafe;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: ggtp-spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

.ggtp-spinner-text {
  font-size: 0.9rem;
  color: #212529;
  font-weight: 500;
}

.ggtp-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.ggtp-thankyou-title {
  text-align: center;
  margin-bottom: 0.75rem;
}

.ggtp-thankyou-message {
  text-align: center;
  margin-bottom: 2rem;
}

.ggtp-voucher-list {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.ggtp-voucher-item {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
  padding: 0.85rem 1rem;
}

.ggtp-voucher-item-name {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.ggtp-voucher-item-number {
  color: #3b82f6;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.ggtp-voucher-item-email {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 0.35rem;
}

.ggtp-voucher-item-pending {
  font-size: 0.85rem;
  color: #dc2626;
}

.ggtp-thankyou-back {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

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