html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
}

.section-title {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid #1e40af;
  color: #1e293b;
  font-weight: 700;
}

.form-input {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #fff;
  font-size: 0.875rem;
}

.form-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.payment-panel {
  border: 2px solid #1d4ed8;
  border-radius: 0.75rem;
  background: #eff6ff;
  padding: 1.25rem;
}

.payment-panel h3 {
  color: #1e3a8a;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.payment-account {
  margin-top: 0.75rem;
  border-left: 4px solid #2563eb;
  background: #fff;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
}

.identity-result {
  min-height: 2.5rem;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

/* The remittance remark belongs in the bank/payment app, not this form. */
label:has(> #payment-remarks) {
  display: none;
}

/* Hide the former credential inputs until the session status replaces them. */
#payment-form > div:has(#registration-binding-reference) {
  display: none;
}

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.payment-modal.hidden {
  display: none;
}

.payment-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.64);
}

.payment-modal-content {
  position: relative;
  width: min(100%, 44rem);
  max-height: calc(100dvh - 3rem);
  overflow: auto;
  border-radius: 0.75rem;
  background: #fff;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.payment-modal-close {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  color: #334155;
}

.payment-modal-close:hover {
  border-color: #2563eb;
  color: #1d4ed8;
}

.wechat-registration-modal-content {
  width: min(100%, 28rem);
}

.wechat-registration-qr {
  display: block;
  width: min(100%, 18rem);
  height: auto;
  margin: 1.25rem auto 0;
  border: 1px solid #d1fae5;
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.5rem;
}

.qr-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.qr-payment-grid figure {
  margin: 0;
  border: 1px solid #dbeafe;
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
}

.qr-payment-grid img {
  width: 100%;
  max-width: 14rem;
  margin-inline: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.qr-payment-grid figcaption {
  margin-top: 0.75rem;
  color: #1e3a8a;
  font-size: 0.875rem;
  font-weight: 700;
}

@media (max-width: 30rem) {
  .payment-modal { padding: 0.75rem; }
  .qr-payment-grid { grid-template-columns: 1fr; }
}

@media (min-width: 48rem) {
  .payment-method-grid > label {
    display: grid;
    grid-template-rows: 2.75rem auto 1fr;
    align-content: start;
    gap: 0.45rem;
  }

  .payment-method-grid .payment-field-label {
    align-self: end;
  }

  .payment-method-grid > label > .form-input {
    margin-top: 0;
  }

  .payment-evidence-grid > label {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }

  .payment-evidence-grid > label > .form-input {
    margin-top: auto;
  }
}

#mobile-menu {
  transition: transform 0.3s ease-in-out;
}

#mobile-menu.menu-open {
  transform: translateX(0) !important;
}

.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

.committee-card {
  padding: 2rem;
  border: 1px solid rgb(226 232 240);
  border-radius: 1.25rem;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.chair-card {
  border: 1px solid rgb(226 232 240);
  border-radius: 1.5rem;
  background: linear-gradient(
    180deg,
    rgb(255, 255, 255) 0%,
    rgb(248, 250, 252) 100%
  );
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

section[aria-labelledby="partner-hotels-title"] article {
  display: grid;
  grid-template-columns: clamp(7rem, 34vw, 24rem) minmax(0, 1fr);
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
}

section[aria-labelledby="partner-hotels-title"] article > img {
  width: 100%;
  max-width: 24rem;
  height: clamp(11rem, 36vw, 18rem);
  max-height: 18rem;
  padding: 0.5rem;
  background: #f8fafc;
  object-fit: contain;
  align-self: start;
}

section[aria-labelledby="partner-hotels-title"] article > div {
  min-width: 0;
  padding: 1rem;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  section[aria-labelledby="partner-hotels-title"] article > div {
    padding: 1.5rem;
  }
}

body.page-redirect {
  display: grid;
  min-height: 100vh;
  margin: 0;
  place-items: center;
  background: #f8fafc;
  color: #334155;
  font-family: "Inter", system-ui, sans-serif;
}

.page-redirect main {
  max-width: 32rem;
  padding: 2rem;
  text-align: center;
}

.page-redirect a {
  color: #1d4ed8;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #mobile-menu {
    transition: none;
  }
}
