html {
  scroll-behavior: smooth;
}

.card-service .header {
  margin-bottom: 24px;
  text-align: center;
}

.card-service .header img {
  display: inline-block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dropdownB {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropbtn {
  padding: 8px 12px;
  line-height: 1;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
}

.current-lang {
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  margin-left: 4px;
}

.dropdownB-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 170px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(19, 23, 61, 0.12);
  z-index: 2000;
}

.dropdownB-content::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.dropdownB-content a {
  display: block;
  padding: 9px 16px;
  color: #645f88;
}

.dropdownB-content a:hover {
  color: #5439f8;
  text-decoration: none;
  background: #f7f8fe;
}

.dropdownB:hover .dropdownB-content,
.dropdownB:focus-within .dropdownB-content,
.dropdownB.is-open .dropdownB-content {
  display: block;
}

.booking-card,
.result-panel {
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(19, 23, 61, 0.08);
}

.booking-note {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 20px;
  margin-top: 24px;
}

.feature-list {
  padding-left: 18px;
  margin-bottom: 0;
}

.feature-list li {
  margin-bottom: 10px;
}

.booking-form .form-step {
  display: none;
}

.booking-form .form-step.is-active {
  display: block;
}

.booking-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 24px;
}

.booking-status {
  display: none;
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 16px;
  font-size: 0.95rem;
}

.booking-status.is-visible {
  display: block;
}

.booking-status.is-success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.booking-status.is-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.booking-status.is-info {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.booking-total-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f8fe;
  border-radius: 14px;
  padding: 14px 16px;
}

.ticket-code-row {
  margin-bottom: 12px;
}

.ticket-code-row label {
  font-weight: 600;
  margin-bottom: 6px;
}

.polling-panel {
  border: 1px solid #e7ebf4;
  border-radius: 16px;
  padding: 18px;
  background: #fbfcff;
}

.polling-result {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: #f7f8fe;
  border-radius: 12px;
}

.result-panel {
  margin-top: 24px;
  background: #fbfcff;
  border: 1px solid #e7ebf4;
  padding: 18px;
}

.result-code {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f8fe;
  margin-bottom: 8px;
  word-break: break-all;
}

.terms-body h3 {
  margin-top: 28px;
  color: #5439F8;
}

code {
  color: #4f46e5;
  background: #f4f4ff;
  padding: 2px 6px;
  border-radius: 6px;
}

@media (max-width: 991.98px) {
  .dropdownB {
    margin-bottom: 8px;
  }

  .dropdownB-content {
    position: static;
    display: block;
    box-shadow: none;
    padding: 6px 0 0;
    min-width: 0;
  }

  .dropbtn {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .booking-actions {
    flex-direction: column;
  }

  .booking-actions .btn {
    width: 100%;
  }
}


.code-step {
  display: none;
}

.code-step.is-active {
  display: block;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f0edff;
  color: #5439F8;
  font-weight: 700;
  font-size: 0.85rem;
}

.code-actions {
  justify-content: space-between;
}

input[type="date"].form-control,
input[type="time"].form-control {
  min-height: 46px;
}

input[readonly].form-control {
  background-color: #f7f8fe;
}

.booking-ticket-section {
  margin-top: 12px;
}

.booking-ticket-section ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.booking-ticket-section li {
  margin-bottom: 4px;
}

.booking-ticket-section code {
  font-size: 0.9em;
  word-break: break-word;
}

.ticket-code-input-wrap {
  position: relative;
}

.ticket-code-secret-input {
  padding-right: 48px;
}

.ticket-code-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  border-radius: 999px;
}

.ticket-code-toggle:hover,
.ticket-code-toggle:focus {
  color: #5439F8;
  background: rgba(84, 57, 248, 0.08);
  outline: none;
}

.ticket-code-toggle svg {
  display: block;
}

.ticket-code-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
  align-items: center;
}

.ticket-code-amount-input {
  text-align: right;
}

.booking-total-result {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e7ebf4;
  font-size: 1rem;
}

.polling-panel.is-complete {
  background: #ecfdf3;
  border-color: #bbf7d0;
}

.polling-panel.is-complete .polling-result {
  background: #f0fdf4;
}

.polling-panel.is-rejected {
  background: #fff7ed;
  border-color: #fed7aa;
}

.polling-panel.is-rejected .polling-result {
  background: #fffbeb;
}

.polling-panel.is-error {
  background: #fef2f2;
  border-color: #fecaca;
}

.polling-panel.is-error .polling-result {
  background: #fff1f2;
}

@media (max-width: 575.98px) {
  .ticket-code-fields {
    grid-template-columns: 1fr;
  }

  .ticket-code-amount-input {
    text-align: left;
  }
}
.unfreeze-step {
  display: none;
}

.unfreeze-step.is-active {
  display: block;
}

/* Manual unfreeze: keep large ticket lists inside the card instead of pushing into the footer. */
#unfreezeTicketCodesContainer {
  max-height: min(420px, 52vh);
  overflow-y: auto;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid #e7ebf4;
  border-radius: 14px;
  background: #f7f8fe;
  overscroll-behavior: contain;
}

#unfreezeTicketCodesContainer .ticket-code-row:last-child {
  margin-bottom: 0;
}

#unfreezeTicketCodesContainer .ticket-code-input-wrap {
  background: #fff;
  border-radius: 14px;
}

.unfreeze-form .booking-actions,
#unfreezeVerifyForm .booking-actions,
#unfreezeResultPanel .booking-actions {
  flex-wrap: wrap;
}

@media (max-width: 991.98px) {
  #unfreezeTicketCodesContainer {
    max-height: min(360px, 48vh);
  }
}

@media (max-width: 575.98px) {
  #unfreezeTicketCodesContainer {
    max-height: 320px;
    padding: 10px;
  }
}

/* Manual unfreeze page: the original theme forces .home-banner to 540px on desktop.
   The unfreeze card can become taller when many tickets are selected, so let this
   page grow naturally and keep the footer below the form. */
.unfreeze-page .page-banner.home-banner {
  height: auto !important;
  min-height: 540px;
  overflow: visible;
  padding-bottom: 32px;
}

.unfreeze-page .page-banner.home-banner .row {
  align-items: flex-start !important;
}

.unfreeze-page .booking-card {
  margin-bottom: 24px;
}

@media (max-width: 767.98px) {
  .unfreeze-page .page-banner.home-banner {
    min-height: 0;
    padding-bottom: 20px;
  }
}


