/* Blue-and-white web glassmorphism, scoped to the public event pages. */
.expired-page {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  justify-items: center;
  padding: 36px 24px 100px;
  text-align: center;
  background: #f7fafc;
}
.expired-page .expired-brand { margin: 0; font-size: 13px; letter-spacing: 2px; color: #526d86; }
.expired-card {
  width: min(100%, 440px);
}
.expired-content { padding: 48px 0; }
.expired-scene { display: block; width: 112px; height: 112px; margin: 0 auto 32px; border-radius: 50%; object-fit: cover; object-position: center; }
.expired-page h1 { color: #173454; font-size: clamp(28px, 6vw, 34px); font-weight: 500; line-height: 1.5; letter-spacing: 1px; margin: 0 0 14px; }
.expired-description { color: #64758a; font-size: 14px; line-height: 1.9; margin: 0; }
@media (max-width: 480px) {
  .expired-page { padding: 28px 20px 80px; }
  .expired-content { padding: 40px 0; }
}
.event-body {
  --ink: #173454;
  --muted: #647b94;
  --line: #d6e3f1;
  --accent: #2564da;
  --accent-dark: #164cad;
  --soft: #edf4fc;
  --ok: #24785d;
  --warn: #a53c42;
  background: #edf4fc;
  color: var(--ink);
  min-height: 100dvh;
  background-image:
    radial-gradient(ellipse at 95% 45%, #c7ddf8 0, transparent 48%),
    linear-gradient(130deg, #f9fcff, #edf4fc 60%, #e0edfc);
  font-family:
    "Helvetica Neue",
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
.event-body [hidden] {
  display: none !important;
}
.event-body button,
.event-body a,
.event-body input {
  -webkit-tap-highlight-color: transparent;
}
.event-body :focus-visible {
  outline: 3px solid #367cec;
  outline-offset: 4px;
}
.event-form-page {
  width: min(1440px, 100%);
  min-height: 100dvh;
  padding: 0 64px;
  margin: auto;
  background: none;
}
.event-header {
  height: 104px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  color: #163e6b;
  text-decoration: none;
  font-size: 18px;
  letter-spacing: 2px;
  font-weight: 700;
}
.brand i {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 23px;
  color: #5886bd;
}
.header-note {
  font-size: 12px;
  letter-spacing: 3px;
  color: #657f9c;
}
.event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(430px, 1fr);
  align-items: center;
  gap: 0;
  position: relative;
  padding: 0 0 0;
}
.event-hero {
  min-height: 730px;
  align-self: stretch;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #83b4d4;
  isolation: isolate;
}
.ocean-image {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: 48% center;
  z-index: -2;
}
.event-hero::before {
  inset: 0;
  width: auto;
  height: auto;
  opacity: 1;
  background: linear-gradient(
    180deg,
    rgba(233, 246, 255, 0.96),
    rgba(206, 231, 247, 0.6) 41%,
    rgba(12, 75, 120, 0.03) 70%,
    rgba(6, 44, 74, 0.45)
  );
  z-index: -1;
}
.event-hero::after {
  display: none;
}
.event-hero-inner {
  width: 100%;
  display: block;
  margin: 0;
  text-align: left;
  padding: 58px 55px;
}
.hero-copy {
  display: block;
}
.hero-mark {
  font-size: 12px;
  letter-spacing: 4px;
  color: #426c91;
  font-weight: 500;
  margin: 0 0 28px;
}
.hero-mark::before {
  display: none;
}
.event-hero h1 {
  font-size: clamp(35px, 3.4vw, 51px);
  line-height: 1.3;
  letter-spacing: -1.5px;
  font-weight: 600;
  color: #123e66;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.hero-line {
  margin-top: 25px;
  color: #234f77;
  font-size: clamp(24px, 2.6vw, 37px);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 1px;
}
.hero-description {
  color: #4d7494;
  font-size: 14px;
  line-height: 1.9;
  margin: 24px 0 0;
}
.hero-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 38px 48px;
  color: white;
  gap: 20px;
}
.hero-bottom > span:first-child {
  font-size: 11px;
  letter-spacing: 2.4px;
  line-height: 1.7;
}
.hero-bottom-note {
  font-size: 12px;
  letter-spacing: 2px;
}
.registration-card {
  width: auto;
  margin: 26px 0 26px -26px;
  z-index: 2;
  border-radius: 24px;
  background: linear-gradient(
    130deg,
    rgba(255, 255, 255, 0.87),
    rgba(255, 255, 255, 0.57)
  );
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px) saturate(130%);
  -webkit-backdrop-filter: blur(30px) saturate(130%);
  box-shadow:
    0 24px 80px #315b8a12,
    inset 0 1px 0 white;
}
.registration-card form {
  display: grid;
  padding: 36px 40px 25px;
  gap: 0;
}
.form-eyebrow {
  font-size: 10px;
  font-weight: 600;
  color: #5983b5;
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.form-heading h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.form-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 11px 0 28px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px 18px;
  margin: 0;
}
.plain-field {
  gap: 9px;
  min-width: 0;
}
.plain-field > span {
  font-size: 13px;
  font-weight: 500;
  color: #355575;
}
.plain-field b {
  font-size: 12px;
  color: #678cbc;
  font-weight: 400;
}
.gender-stack {
  display: contents;
}
.gender-field {
  max-width: none;
}
.birth-date-field {
  min-width: 0;
}
.gender-stack:last-child > .plain-field {
  grid-column: 1/-1;
}
.registration-card input[type="text"],
.registration-card input[type="tel"],
.custom-select-trigger {
  width: 100%;
  height: 49px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid #d3e1ef;
  border-radius: 9px;
  box-shadow: inset 0 1px 2px #54749603;
  color: #294d73;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 400;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.registration-card input::placeholder {
  color: #8295aa;
}
.custom-select-trigger {
  padding-right: 38px;
  color: #8295aa;
}
.custom-select-trigger::after {
  width: 7px;
  height: 7px;
  border: 0;
  border-right: 1.5px solid #7390b3;
  border-bottom: 1.5px solid #7390b3;
  right: 17px;
  transform: translateY(-70%) rotate(45deg);
}
.custom-select.open .custom-select-trigger::after {
  transform: translateY(-30%) rotate(225deg);
}
.custom-select-trigger:hover {
  background: #fff;
  border-color: #a5c3e5;
  color: #355575;
}
.custom-select.open .custom-select-trigger,
.custom-select-trigger:focus,
.registration-card input:focus {
  background: #fff;
  border-color: #5d96e3;
  box-shadow: 0 0 0 3px #377ddb14;
  outline: none;
}
.custom-select-menu {
  background: #f9fcff;
  border-color: #d6e4f4;
  border-radius: 12px;
  box-shadow: 0 16px 36px #20446d23;
}
.custom-select-menu button {
  font-size: 14px;
  font-weight: 400;
  color: #335575;
}
.custom-select-menu button:hover,
.custom-select-menu button:focus {
  background: #e8f1fe;
  color: #1857b4;
}
.custom-select-menu button[aria-selected="true"] {
  background: #2564da;
  color: white;
}
.custom-select-menu::-webkit-scrollbar-thumb {
  background: #b5cce8;
}
.birth-date-menu {
  grid-template-columns: 1.2fr 1fr 1fr;
  min-width: 240px;
  left: auto;
  width: 100%;
}
.birth-date-menu::before {
  background: #e6f0fd;
  border-color: #d3e3f8;
}
.birth-date-column:not(:last-child) {
  border-color: #dce7f4;
}
.birth-date-column button,
.birth-date-column button[aria-selected="true"],
.birth-date-column button:hover,
.birth-date-column button:focus {
  background: transparent;
  color: #335575;
}
.amount-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-top: 1px solid #d8e4f0;
  border-radius: 0;
  background: none;
  margin: 26px 0 22px;
  padding: 23px 0 0;
  gap: 20px;
}
.amount-field > div {
  display: grid;
  gap: 7px;
}
.amount-field span {
  font-size: 13px;
  color: #476580;
  font-weight: 500;
}
.amount-field small {
  font-size: 11px;
  color: #768da5;
}
.amount-field strong {
  color: #215ec4;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -1px;
  white-space: nowrap;
}
.submit-button {
  height: 53px;
  margin: 0;
  border-radius: 10px;
  background: linear-gradient(115deg, #347ae9, #235acb);
  font-size: 15px;
  letter-spacing: 2px;
  font-weight: 500;
  box-shadow: 0 9px 20px #245ece25;
  position: relative;
}
.submit-button::after {
  content: "↗";
  position: absolute;
  right: 20px;
  font-size: 21px;
  top: 13px;
  font-weight: 400;
}
.submit-button:hover {
  background: linear-gradient(115deg, #216ce0, #184fbf);
  box-shadow: 0 12px 26px #245ece38;
  transform: translateY(-1px);
}
.submit-button:disabled {
  transform: none;
}
.privacy-note {
  font-size: 11px;
  color: #778ca1;
  margin: 16px 0 0;
  line-height: 1.6;
}
.form-message {
  font-size: 13px;
  margin: 10px 0 0;
  min-height: 0;
}
.form-message:empty {
  display: none;
}
.event-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 2px 30px;
  color: #7890a9;
  font-size: 11px;
  letter-spacing: 1px;
}
.event-footer > span:first-child {
  font-size: 10px;
  letter-spacing: 2px;
}
.success-page {
  background: none;
  min-height: 100dvh;
  padding-top: 50px;
}
.success-ticket {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid white;
  box-shadow: 0 24px 75px #315b8a14;
  border-radius: 24px;
}
.success-ticket::before,
.success-ticket::after {
  display: none;
}
.success-mark {
  background: #e5f0ff;
  border-color: #c4d9f3;
  box-shadow: 0 12px 30px #245ece15;
}
.success-hero h1 {
  font-weight: 600;
}
.ticket-head strong,
.ticket-details dd {
  font-weight: 500;
}
.ticket-details div {
  background: #f6faff;
}
.wechat-contact {
  background: #eaf3ff;
  border-color: #d6e5f7;
  box-shadow: none;
}
.wechat-contact-copy strong {
  font-weight: 500;
}
.ticket-footer .secondary-button {
  border-radius: 10px;
  font-weight: 500;
}
.event-hero-inner {
  animation: arrive 0.8s ease both;
}
.registration-card {
  animation: arrive 0.8s 0.12s ease both;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1500px) {
  .event-form-page {
    padding-top: 22px;
  }
  .event-hero {
    min-height: 780px;
  }
  .registration-card form {
    padding: 46px 48px 35px;
  }
  .field-grid {
    gap: 25px 20px;
  }
}
@media (max-width: 1100px) {
  .event-form-page {
    padding: 0 32px;
  }
  .event-layout {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 1fr);
  }
  .event-hero-inner {
    padding: 48px 32px;
  }
  .hero-bottom {
    padding: 32px;
  }
  .registration-card form {
    padding: 30px;
  }
  .event-hero {
    min-height: 700px;
  }
  .hero-bottom-note {
    display: none;
  }
}
@media (max-width: 760px) {
  .event-form-page {
    padding: 0 20px;
  }
  .event-header {
    height: 76px;
  }
  .brand {
    font-size: 15px;
    letter-spacing: 1.5px;
  }
  .header-note {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .event-layout {
    display: block;
  }
  .event-hero {
    min-height: 380px;
    border-radius: 22px;
  }
  .event-hero-inner {
    padding: 31px 27px 85px;
    text-align: left;
  }
  .hero-copy {
    display: block;
  }
  .hero-mark {
    font-size: 10px;
    letter-spacing: 3px;
    margin-bottom: 18px;
  }
  .event-hero h1 {
    font-size: 34px;
    max-width: 100%;
    letter-spacing: -0.8px;
  }
  .hero-line {
    font-size: 23px;
    line-height: 1.5;
    margin-top: 14px;
  }
  .hero-line br {
    display: none;
  }
  .hero-description {
    font-size: 12px;
    margin-top: 16px;
  }
  .hero-description br {
    display: none;
  }
  .ocean-image {
    object-position: center 56%;
  }
  .event-hero::before {
    background: linear-gradient(180deg, #e8f5fff2, #d7ebf4a8 50%, #e9f4ff00);
  }
  .hero-bottom {
    display: none;
  }
  .registration-card {
    margin: -66px 10px 0;
    border-radius: 20px;
  }
  .registration-card form {
    padding: 27px 23px 24px;
  }
  .form-eyebrow {
    font-size: 9px;
    margin-bottom: 10px;
  }
  .form-heading h2 {
    font-size: 23px;
  }
  .form-heading p {
    font-size: 12px;
    margin: 10px 0 25px;
  }
  .field-grid {
    gap: 20px 14px;
    grid-template-columns: 1fr 1fr;
  }
  .plain-field > span {
    font-size: 12px;
  }
  .registration-card input[type="text"],
  .registration-card input[type="tel"],
  .custom-select-trigger {
    font-size: 16px;
    height: 48px;
    padding-left: 12px;
  }
  .birth-date-menu {
    min-width: 246px;
  }
  .amount-field {
    margin-top: 24px;
  }
  .amount-field strong {
    font-size: 30px;
  }
  .privacy-note {
    font-size: 10px;
  }
  .event-footer {
    font-size: 9px;
    letter-spacing: 0;
    padding: 25px 10px;
  }
  .event-footer > span:first-child {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .success-page {
    padding: 28px 20px;
  }
  .success-ticket {
    padding: 24px 20px;
  }
  .ticket-head {
    grid-template-columns: 1fr auto;
  }
  .wechat-contact {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .wechat-contact img {
    width: 180px;
  }
}
@media (max-width: 370px) {
  .event-form-page {
    padding: 0 12px;
  }
  .registration-card {
    margin-left: 6px;
    margin-right: 6px;
  }
  .registration-card form {
    padding: 24px 18px;
  }
  .header-note {
    letter-spacing: 0;
  }
  .event-hero h1 {
    font-size: 30px;
  }
  .hero-line {
    font-size: 21px;
  }
  .ticket-head {
    grid-template-columns: 1fr;
  }
  .ticket-amount {
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .event-body * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .registration-card,
  .success-ticket {
    background: #f8fbff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@supports not (backdrop-filter: blur(1px)) {
  .registration-card,
  .success-ticket {
    background: #f8fbff;
  }
}
/* Explicit alignment also avoids legacy justify-items affecting block children. */
.event-hero-inner {
  justify-items: normal;
}
.hero-copy {
  width: 100%;
}
@media (max-width: 760px) {
  .hero-line br {
    display: block;
  }
  .hero-description {
    max-width: 100%;
    font-size: 11px;
  }
  .event-hero-inner {
    padding-bottom: 80px;
  }
}
.hero-copy {
  justify-items: normal;
}
.birth-date-select .custom-select-trigger {
  font-size: 14px;
}
.custom-select-trigger span {
  white-space: nowrap;
}
