@font-face {
  font-family: "Anakotmai";
  src: url("./font/anakotmai-light.woff2") format("woff2"),
    url("./font/anakotmai-light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Anakotmai";
  src: url("./font/anakotmai-medium.woff2") format("woff2"),
    url("./font/anakotmai-medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Anakotmai";
  src: url("./font/anakotmai-bold.woff2") format("woff2"),
    url("./font/anakotmai-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060911;
  --bg-soft: #0d121d;
  --panel: rgba(16, 22, 34, 0.92);
  --panel-strong: rgba(19, 26, 40, 0.97);
  --panel-border: rgba(104, 137, 194, 0.18);
  --text: #eef3ff;
  --text-muted: #b7c2d8;
  --text-soft: #8290aa;
  --blue: #69a5ff;
  --cyan: #66d7ed;
  --violet: #8c88ff;
  --success: #49cf9b;
  --danger: #ff7591;
  --warning: #f0be72;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --glow: 0 0 0 1px rgba(113, 150, 218, 0.08), 0 18px 44px rgba(6, 9, 17, 0.42);
  --accent-wash: linear-gradient(
    135deg,
    rgba(105, 165, 255, 0.08),
    rgba(102, 215, 237, 0.05) 40%,
    rgba(140, 136, 255, 0.08)
  );
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1380px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Anakotmai", "Segoe UI", Tahoma, sans-serif;
  font-weight: 300;
  background:
    radial-gradient(circle at 0% 0%, rgba(102, 215, 237, 0.08), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(140, 136, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #0a0f18 0%, #070a12 44%, #05070d 100%);
  overflow-x: hidden;
}

strong {
  font-weight: 500;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.55), transparent 92%);
  pointer-events: none;
  opacity: 0.28;
}

[hidden] {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin-top: 30px;
  padding: 22px 26px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(102, 215, 237, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(18, 24, 38, 0.96), rgba(10, 14, 23, 0.98));
  border: 1px solid rgba(114, 146, 203, 0.14);
  box-shadow: var(--glow);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.site-footer__logo {
  width: 92px;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.28));
}

.site-footer__copy {
  display: grid;
  gap: 4px;
}

.site-footer__eyebrow {
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.site-footer__copy strong {
  color: #f3f7ff;
  font-size: 1.12rem;
}

.site-footer__meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
  color: var(--text-muted);
}

.site-footer__meta p {
  margin: 0;
  line-height: 1.55;
}

.portal-hero,
.register-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(114, 146, 203, 0.16);
  border-radius: 36px;
  background:
    radial-gradient(circle at top left, rgba(102, 215, 237, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(140, 136, 255, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(18, 24, 38, 0.96), rgba(10, 14, 23, 0.98));
  box-shadow: var(--shadow);
}

.portal-hero {
  padding: 34px 38px 36px;
  margin-bottom: 28px;
}

.register-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.72fr);
  align-items: start;
  gap: 18px 28px;
  padding: 30px 34px 32px;
  margin-bottom: 28px;
  text-align: left;
}

.register-hero__content {
  display: grid;
  justify-items: start;
  gap: 14px;
  min-width: 0;
}

.register-hero__visual {
  width: 100%;
}

.register-hero__visual-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(102, 215, 237, 0.16), transparent 34%),
    linear-gradient(160deg, rgba(22, 29, 44, 0.98), rgba(10, 15, 24, 0.98));
  border: 1px solid rgba(116, 147, 202, 0.16);
  box-shadow: var(--glow);
}

.register-hero__visual-frame--poster {
  aspect-ratio: 16 / 9;
  background: rgba(8, 12, 20, 0.98);
}

.register-hero__visual-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.24;
  pointer-events: none;
}

.register-hero__visual-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.register-hero__visual-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--text-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 300;
  text-align: center;
}

.portal-hero__copy {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.portal-hero__topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-bottom: 20px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-lockup--center {
  justify-content: center;
  margin-bottom: 0;
}

.brand-logo {
  width: 138px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.34));
}

.brand-lockup__text {
  display: grid;
  gap: 4px;
  text-align: left;
  justify-items: start;
}

.eyebrow,
.section-step,
.detail-card__label {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 300;
  font-size: 0.9rem;
}

.brand-lockup__sub {
  color: var(--text-soft);
  font-size: 0.96rem;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(12, 17, 27, 0.76);
  border: 1px solid rgba(116, 147, 202, 0.16);
}

.language-switcher button {
  min-height: 34px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-weight: 500;
}

.language-switcher button.is-active {
  color: #f4fbff;
  background: rgba(102, 215, 237, 0.18);
  box-shadow: inset 0 0 0 1px rgba(102, 215, 237, 0.18);
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  min-width: 136px;
  border-radius: 999px;
  background: rgba(72, 118, 148, 0.18);
  border: 1px solid rgba(102, 215, 237, 0.12);
  color: #d7edff;
  margin: 0;
  max-width: 100%;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.landing-kicker.is-open {
  color: #e8fff5;
  background: rgba(22, 82, 59, 0.84);
  border-color: rgba(73, 207, 155, 0.42);
  box-shadow:
    0 0 0 1px rgba(73, 207, 155, 0.08),
    0 0 28px rgba(73, 207, 155, 0.18);
}

.landing-kicker.is-coming_soon {
  color: #fff0d6;
  background: rgba(84, 58, 20, 0.82);
  border-color: rgba(240, 190, 114, 0.38);
  box-shadow:
    0 0 0 1px rgba(240, 190, 114, 0.08),
    0 0 24px rgba(240, 190, 114, 0.14);
}

.landing-kicker.is-closed {
  color: #ffe5ea;
  background: rgba(82, 28, 43, 0.82);
  border-color: rgba(255, 117, 145, 0.34);
  box-shadow:
    0 0 0 1px rgba(255, 117, 145, 0.08),
    0 0 24px rgba(255, 117, 145, 0.12);
}

.portal-hero__headline {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-bottom: 22px;
}

.portal-hero__caption {
  color: var(--text-soft);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-title,
.register-hero h1 {
  margin: 0;
  font-size: clamp(2.15rem, 4.8vw, 4.15rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 860px;
  text-wrap: balance;
}

.register-hero h1 {
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  max-width: 840px;
}

.register-hero__title-compact {
  display: block;
  margin-top: 0.08em;
  font-size: 0.8em;
}

.register-hero__title-emphasis {
  display: block;
  font-size: 1.32em;
  line-height: 0.96;
}

.landing-subtitle {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.72;
  text-wrap: pretty;
}

.register-hero .landing-subtitle {
  margin: 0;
  max-width: 760px;
}

.register-hero .brand-lockup,
.register-hero h1,
.register-hero .register-hero__status-row,
.register-hero .landing-subtitle,
.register-hero .hero-badge-row {
  justify-self: start;
}

.register-hero__status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.register-hero .brand-lockup {
  margin-top: 2px;
}

.hero-badge-row,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badge-row {
  justify-content: center;
  margin-top: 18px;
  max-width: 760px;
  margin-inline: auto;
}

.portal-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

.hero-stat {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(14, 20, 31, 0.82);
  border: 1px solid rgba(116, 147, 202, 0.12);
  text-align: left;
}

.hero-stat span {
  display: block;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.hero-stat strong {
  display: block;
  color: #f2f6ff;
  font-size: 1.04rem;
  font-weight: 500;
}

.register-hero .hero-badge-row {
  justify-content: flex-start;
  margin-top: 4px;
  margin-inline: 0;
  max-width: 980px;
}

.register-hero__meta-row {
  gap: 10px;
}

.register-hero__support-row {
  margin-top: -2px;
}

.register-hero__meta-row .hero-badge,
.register-hero__support-row .hero-badge {
  justify-content: flex-start;
  text-align: left;
  min-height: 44px;
  padding-inline: 18px;
}

.hero-badge,
.pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 108px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(19, 25, 39, 0.82);
  border: 1px solid rgba(116, 147, 202, 0.14);
  color: var(--text-muted);
  line-height: 1.15;
  text-align: center;
}

.pill--deadline,
.hero-badge--deadline {
  color: #ffe8ee;
  background: rgba(92, 24, 44, 0.84);
  border-color: rgba(255, 117, 145, 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 117, 145, 0.08),
    0 0 24px rgba(255, 117, 145, 0.14);
}

.status-pill {
  font-weight: 300;
  white-space: nowrap;
}

.status-pill-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.status-pill-row .status-pill {
  width: 100%;
  min-width: 0;
}

.status-pill--deadline {
  color: #ffe8ee;
  border-color: rgba(255, 117, 145, 0.34);
  background: rgba(82, 28, 43, 0.82);
  box-shadow:
    0 0 0 1px rgba(255, 117, 145, 0.08),
    0 0 22px rgba(255, 117, 145, 0.14);
}

.status-pill.is-open {
  color: #dffef2;
  border-color: rgba(73, 207, 155, 0.34);
  background: rgba(22, 62, 49, 0.66);
  box-shadow:
    0 0 0 1px rgba(73, 207, 155, 0.08),
    0 0 22px rgba(73, 207, 155, 0.14);
}

.status-pill.is-coming-soon {
  color: #f8ead1;
  border-color: rgba(240, 190, 114, 0.28);
  background: rgba(69, 51, 22, 0.62);
  box-shadow:
    0 0 0 1px rgba(240, 190, 114, 0.08),
    0 0 22px rgba(240, 190, 114, 0.14);
}

.status-pill.is-closed {
  color: #ffd9e1;
  border-color: rgba(255, 117, 145, 0.26);
  background: rgba(77, 29, 44, 0.6);
  box-shadow:
    0 0 0 1px rgba(255, 117, 145, 0.08),
    0 0 22px rgba(255, 117, 145, 0.14);
}

.portal-main,
.register-layout {
  display: grid;
  gap: 26px;
  align-items: start;
}

.section-card,
.summary-card,
.info-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--glow);
}

.section-card {
  padding: 28px;
}

.section-card--wide {
  padding: 30px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(117, 146, 197, 0.12);
}

.section-head--center {
  align-items: center;
}

.section-head h2,
.modal__dialog h2 {
  margin: 8px 0 0;
  font-size: clamp(1.6rem, 2vw, 2.25rem);
  line-height: 1.15;
  font-weight: 500;
}

.section-head p,
.modal__summary {
  max-width: 560px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.modal__summary {
  white-space: pre-line;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.portal-event-sections {
  display: grid;
  gap: 28px;
}

.portal-event-section {
  display: grid;
  gap: 16px;
}

.portal-event-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.portal-event-section__head h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 500;
}

.event-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  height: 100%;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(26, 34, 51, 0.82), rgba(12, 16, 26, 0.96)),
    var(--accent-wash);
  border: 1px solid rgba(116, 147, 202, 0.14);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.event-card__poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(102, 215, 237, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(21, 27, 41, 0.98), rgba(14, 19, 29, 0.98));
  border: 1px solid rgba(116, 147, 202, 0.14);
}

.event-card__poster--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card__poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.28;
  pointer-events: none;
}

.event-card__poster-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.72);
  border: 1px solid rgba(116, 147, 202, 0.14);
  color: #dff5ff;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-card__poster-body {
  position: absolute;
  inset: auto 16px 16px 16px;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.event-card__poster-logo {
  width: 96px;
  opacity: 0.96;
}

.event-card__poster-body strong {
  max-width: 84%;
  font-size: 1.34rem;
  line-height: 1.08;
  font-weight: 500;
}

.event-card__poster-body span {
  max-width: 86%;
  color: #d4dded;
  line-height: 1.5;
  font-size: 0.96rem;
}

.event-card__poster-note {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  max-width: 120px;
  text-align: right;
  color: rgba(232, 240, 255, 0.68);
  font-size: 0.76rem;
  line-height: 1.4;
}

.poster-theme-main {
  background:
    radial-gradient(circle at top right, rgba(91, 137, 255, 0.22), transparent 34%),
    radial-gradient(circle at bottom left, rgba(102, 215, 237, 0.14), transparent 26%),
    linear-gradient(135deg, #171f31, #0e1420);
}

.poster-theme-youth {
  background:
    radial-gradient(circle at top right, rgba(73, 207, 155, 0.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(102, 215, 237, 0.12), transparent 28%),
    linear-gradient(135deg, #142230, #0d1520);
}

.poster-theme-innovation {
  background:
    radial-gradient(circle at top right, rgba(240, 190, 114, 0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(140, 136, 255, 0.16), transparent 26%),
    linear-gradient(135deg, #201a28, #12141e);
}

.poster-theme-workshop {
  background:
    radial-gradient(circle at top right, rgba(73, 207, 155, 0.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(240, 190, 114, 0.14), transparent 28%),
    linear-gradient(135deg, #11231f, #111827);
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 215, 237, 0.24);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

.event-card__head {
  display: grid;
  gap: 12px;
}

.event-card__head > div {
  display: grid;
  align-content: start;
}

.event-card h3 {
  margin: 6px 0 4px;
  font-size: 1.34rem;
  line-height: 1.18;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card__subtitle {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card__description {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.98rem;
  min-height: 76px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card .pill-row {
  align-content: start;
  max-height: 196px;
  overflow: hidden;
}

.event-card__meta {
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;
  padding-top: 2px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.event-card__meta span:last-child {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card__actions,
.submit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.event-card__actions {
  align-items: stretch;
  margin-top: auto;
}

.event-card__actions > .btn,
.event-card__actions > a.btn {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  white-space: normal;
  text-align: center;
}

.btn:hover:not(:disabled):not(.is-disabled) {
  transform: translateY(-1px);
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.btn--primary {
  background: linear-gradient(135deg, #5b89ff, #7b7fff);
  color: #f8fbff;
  box-shadow: 0 14px 28px rgba(73, 117, 255, 0.18);
}

.btn--secondary {
  background: rgba(26, 34, 51, 0.82);
  border-color: rgba(102, 215, 237, 0.16);
  color: #dff5ff;
}

.btn--ghost {
  background: rgba(20, 26, 39, 0.88);
  border-color: rgba(116, 147, 202, 0.14);
  color: var(--text-muted);
}

.btn--danger {
  background: rgba(83, 27, 43, 0.72);
  border-color: rgba(255, 117, 145, 0.22);
  color: #ffe4ea;
}

.btn--large {
  min-height: 54px;
  padding-inline: 24px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 13, 0.78);
  backdrop-filter: blur(10px);
}

.modal__dialog {
  position: relative;
  width: min(100%, 760px);
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(24, 31, 47, 0.98), rgba(12, 16, 25, 0.98));
  border: 1px solid rgba(115, 145, 200, 0.18);
  box-shadow: var(--shadow);
}

.modal__dialog--event {
  width: min(100%, 860px);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 26px;
}

.detail-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(17, 23, 36, 0.92);
  border: 1px solid rgba(116, 147, 202, 0.14);
}

.detail-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.08rem;
  color: #f4f7ff;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.register-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.register-main,
.register-sidebar {
  display: grid;
  gap: 22px;
}

.register-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  max-height: none;
  overflow: visible;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.register-form {
  display: grid;
  gap: 26px;
}

.selector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.selector-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(20, 26, 39, 0.88);
  border: 1px solid rgba(116, 147, 202, 0.12);
  color: var(--text-muted);
  text-align: left;
}

.selector-card strong {
  color: #f3f7ff;
  font-size: 1.2rem;
  font-weight: 500;
}

.selector-card.is-active {
  background: linear-gradient(180deg, rgba(31, 43, 70, 0.92), rgba(18, 25, 39, 0.92));
  border-color: rgba(102, 215, 237, 0.32);
  box-shadow: 0 0 0 1px rgba(102, 215, 237, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field-inline {
  display: grid;
  grid-template-columns: minmax(118px, 0.72fr) minmax(0, 1.40fr);
  gap: 12px;
}

.field-inline__prefix {
  min-width: 0;
}

.field-inline__prefix select {
  font-size: 1rem;
}

.field span {
  color: #dbe6fa;
  font-weight: 300;
}

.field .required-mark,
.upload-trigger .required-mark {
  color: #ff6b8b;
  font-weight: 500;
}

.field-help {
  color: var(--text-soft);
  line-height: 1.6;
}

.field-help--ghost,
.field-error--ghost {
  visibility: hidden;
}

.field-error {
  min-height: 20px;
  color: #ffc1cf;
  font-size: 0.94rem;
}

.field.is-invalid > span:first-child,
.upload-trigger.is-invalid > span:first-child {
  color: #ffd1da;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(116, 147, 202, 0.14);
  border-radius: 16px;
  background: rgba(11, 16, 26, 0.95);
  color: var(--text);
  padding: 14px 15px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea,
.upload-trigger.is-invalid {
  border-color: rgba(255, 107, 139, 0.68);
  box-shadow: 0 0 0 3px rgba(255, 107, 139, 0.12);
}

input[readonly] {
  background: rgba(16, 22, 34, 0.88);
  color: #d8e8ff;
  cursor: default;
}

.field--age input[readonly] {
  text-align: center;
}

select {
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.4;
  color-scheme: dark;
}

select option {
  background: #101826;
  color: #eef3ff;
}

select option:checked,
select option:hover,
select option:focus {
  background: #1f4f8f;
  color: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(102, 215, 237, 0.36);
  box-shadow: 0 0 0 3px rgba(102, 215, 237, 0.1);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"] {
  --bg: #05000d;
  --bg-soft: #10001f;
  --panel: rgba(18, 0, 36, 0.9);
  --panel-strong: rgba(25, 4, 53, 0.96);
  --panel-border: rgba(160, 86, 255, 0.34);
  --text: #f8f2ff;
  --text-muted: #d8b8ff;
  --text-soft: #a985d7;
  --blue: #36d6ff;
  --cyan: #25d7ff;
  --violet: #a56bff;
  --accent: #cf45f7;
  --shadow: 0 28px 86px rgba(20, 0, 42, 0.55);
  --glow: 0 0 0 1px rgba(184, 91, 255, 0.12), 0 22px 54px rgba(69, 0, 125, 0.36);
  --accent-wash: linear-gradient(135deg, rgba(144, 82, 255, 0.22), rgba(210, 63, 246, 0.18), rgba(37, 215, 255, 0.16));
  background:
    radial-gradient(circle at 72% 18%, rgba(184, 84, 255, 0.2), transparent 30%),
    radial-gradient(circle at 28% 36%, rgba(82, 52, 255, 0.16), transparent 30%),
    radial-gradient(circle at 82% 72%, rgba(37, 215, 255, 0.1), transparent 28%),
    linear-gradient(180deg, #07000f 0%, #090014 46%, #04000b 100%);
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"]::before {
  background-image:
    linear-gradient(rgba(197, 91, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 91, 255, 0.04) 1px, transparent 1px);
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"] .register-hero,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] .section-card,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] .summary-card,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] .info-card,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] .site-footer {
  border-color: rgba(164, 77, 255, 0.34);
  background:
    radial-gradient(circle at 76% 16%, rgba(178, 75, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(20, 0, 42, 0.94), rgba(9, 0, 20, 0.96));
  box-shadow:
    0 0 0 1px rgba(208, 80, 255, 0.08),
    0 24px 76px rgba(24, 0, 52, 0.48);
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"] .register-hero__visual-frame,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] .subcard,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] .item-card,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] .summary-stat,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] .payment-bank-detail__item,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] .payment-qr-card,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] .check-card,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] .summary-contact,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] .summary-entry {
  border-color: rgba(172, 84, 255, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(148, 70, 255, 0.18), transparent 42%),
    rgba(14, 0, 31, 0.9);
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"] .register-hero h1,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] .register-hero__title-emphasis {
  color: transparent;
  background: linear-gradient(90deg, #ffffff 0%, #a66dff 38%, #d94af8 66%, #35d6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 32px rgba(180, 72, 255, 0.12);
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"] .landing-subtitle,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] .section-head p,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] .field-help,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] .upload-help {
  color: #b996ff;
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"] .site-footer__eyebrow {
  color: #d64df0;
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"] .site-footer__copy strong {
  color: #ffffff;
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"] .site-footer__meta {
  color: #d8b8ff;
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"] .landing-kicker,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] .hero-badge,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] .pill,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] .status-pill {
  color: #d9b8ff;
  border-color: rgba(173, 75, 255, 0.32);
  background: rgba(55, 15, 92, 0.58);
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"] .landing-kicker.is-open {
  color: #ecdcff;
  border-color: rgba(197, 75, 255, 0.52);
  background: rgba(63, 14, 102, 0.86);
  box-shadow:
    0 0 0 1px rgba(211, 77, 255, 0.12),
    0 0 28px rgba(211, 77, 255, 0.18);
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"] .btn--primary {
  background: linear-gradient(135deg, #8057ff 0%, #a956ff 46%, #d64df0 100%);
  color: #ffffff;
  box-shadow:
    0 14px 34px rgba(191, 68, 246, 0.28),
    inset -18px 0 34px rgba(55, 213, 255, 0.1);
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"] .btn--secondary,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] .btn--ghost {
  color: #d9b8ff;
  border-color: rgba(166, 84, 255, 0.24);
  background: rgba(24, 0, 49, 0.86);
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"] .language-switcher {
  border-color: rgba(174, 84, 255, 0.34);
  background: rgba(21, 0, 43, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(215, 76, 255, 0.06),
    0 10px 24px rgba(26, 0, 54, 0.32);
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"] .language-switcher button {
  color: #c9a1ff;
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"] .language-switcher button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(128, 87, 255, 0.72), rgba(214, 77, 240, 0.68));
  box-shadow:
    inset 0 0 0 1px rgba(246, 190, 255, 0.18),
    0 0 18px rgba(204, 75, 246, 0.18);
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"] .upload-box {
  border-color: rgba(174, 84, 255, 0.34);
  background:
    radial-gradient(circle at 82% 0%, rgba(145, 77, 255, 0.14), transparent 36%),
    rgba(12, 0, 28, 0.78);
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"] .upload-trigger {
  color: #f5eaff;
  border-color: rgba(185, 91, 255, 0.36);
  background: rgba(28, 0, 54, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(220, 84, 255, 0.08),
    0 0 20px rgba(199, 73, 246, 0.1);
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"] input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 1px solid rgba(214, 77, 240, 0.42);
  border-radius: 10px;
  background: linear-gradient(135deg, #8057ff, #d64df0);
  color: #ffffff;
  font: inherit;
  padding: 8px 12px;
  cursor: pointer;
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"] #paymentSlipName {
  color: #f4eaff;
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"] input,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] select,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] textarea,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] .select-shell select {
  color: #f9f3ff;
  border-color: rgba(167, 88, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(24, 0, 48, 0.96), rgba(10, 0, 23, 0.98));
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"] input:focus,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] select:focus,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] textarea:focus {
  border-color: rgba(212, 72, 255, 0.54);
  box-shadow:
    0 0 0 3px rgba(202, 73, 255, 0.14),
    0 0 24px rgba(64, 207, 255, 0.08);
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"] select option {
  background: #130022;
  color: #f8f2ff;
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"] select option:checked,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] select option:hover,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] select option:focus {
  background: #6d35c9;
}

body[data-page="register"][data-event="easykids-robotics-competition-2026"] .summary-stat--highlight,
body[data-page="register"][data-event="easykids-robotics-competition-2026"] .selector-card.is-active {
  border-color: rgba(212, 72, 255, 0.44);
  background: linear-gradient(135deg, rgba(93, 42, 168, 0.9), rgba(24, 0, 49, 0.94));
  box-shadow: 0 0 34px rgba(197, 73, 255, 0.12);
}

.select-shell {
  position: relative;
  display: block;
}

.birthdate-grid {
  display: grid;
  grid-template-columns: minmax(88px, 0.9fr) minmax(132px, 1.35fr) minmax(96px, 1fr);
  gap: 12px;
}

.select-shell::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(180, 205, 255, 0.72);
  border-bottom: 2px solid rgba(180, 205, 255, 0.72);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.select-shell select {
  min-height: 56px;
  padding-top: 15px;
  padding-bottom: 15px;
  padding-right: 48px;
  background:
    linear-gradient(180deg, rgba(19, 27, 41, 0.96), rgba(10, 15, 24, 0.98));
}

.subcard {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(14, 20, 31, 0.88);
  border: 1px solid rgba(116, 147, 202, 0.12);
}

.subcard__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.subcard__head h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
}

.stack-list,
.summary-entry-list {
  display: grid;
  gap: 14px;
}

.empty-state {
  padding: 22px;
  text-align: center;
  color: var(--text-soft);
  border: 1px dashed rgba(116, 147, 202, 0.16);
  border-radius: 18px;
  background: rgba(12, 17, 27, 0.64);
}

.item-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(13, 18, 28, 0.92);
  border: 1px solid rgba(116, 147, 202, 0.12);
}

.item-card__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.item-card__head strong {
  display: block;
  font-size: 1.12rem;
  color: #f3f7ff;
}

.item-card__head > div {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.item-card__actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.item-card__topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}

.item-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(102, 215, 237, 0.18);
  background: rgba(24, 34, 52, 0.9);
  color: #8be9ff;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.item-card__meta,
.item-card__note {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
  align-self: stretch;
  text-align: left;
}

.item-card__note {
  justify-self: stretch;
  text-align: left;
}

.item-card__rule {
  margin: 2px 0 0;
  color: #8be9ff;
  font-size: 0.92rem;
  line-height: 1.55;
}

.entry-eligibility-note {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 12px;
  color: #8be9ff;
  font-size: 0.92rem;
  line-height: 1.55;
}

.item-card__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.entry-grid {
  align-items: start;
}

.checkbox-list {
  display: grid;
  gap: 10px;
}

.check-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(12, 17, 27, 0.86);
  border: 1px solid rgba(116, 147, 202, 0.12);
}

.check-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.check-card span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.check-card strong,
.check-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.check-card small {
  color: var(--text-soft);
}

.summary-card {
  padding: 24px;
}

.summary-card h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 500;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.summary-stat {
  min-width: 0;
  padding: 18px;
  border-radius: 20px;
  background: rgba(13, 18, 28, 0.9);
  border: 1px solid rgba(116, 147, 202, 0.12);
}

.summary-stat span {
  display: block;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.summary-stat strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.3;
}

.summary-stat--event {
  grid-column: 1 / -1;
}

#summaryEventName {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: normal;
}

.summary-stat--highlight {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(37, 49, 82, 0.94), rgba(18, 24, 38, 0.94));
  border-color: rgba(102, 215, 237, 0.22);
}

.summary-breakdown {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.summary-contact {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(12, 17, 27, 0.86);
  border: 1px solid rgba(116, 147, 202, 0.1);
}

.summary-contact__item {
  display: grid;
  gap: 4px;
}

.summary-contact__item span {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.summary-contact__item strong {
  color: #f2f6ff;
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: break-word;
}

.summary-entry {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(12, 17, 27, 0.86);
  border: 1px solid rgba(116, 147, 202, 0.1);
}

.summary-entry__content {
  min-width: 0;
  flex: 1 1 auto;
}

.summary-entry__eyebrow {
  margin-bottom: 8px;
}

.summary-entry__tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(102, 215, 237, 0.18);
  background: rgba(24, 34, 52, 0.9);
  color: #8be9ff;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-entry__title {
  display: block;
  color: #f2f6ff;
}

.summary-entry__meta {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.summary-entry__side {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.summary-entry__fee {
  white-space: nowrap;
}

.summary-entry__count {
  color: var(--text-soft);
  font-size: 0.92rem;
  white-space: nowrap;
}

.upload-box {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(12, 17, 27, 0.8);
  border: 1px dashed rgba(102, 215, 237, 0.18);
}

.upload-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: nowrap;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  background: rgba(29, 39, 59, 0.92);
  border: 1px solid rgba(116, 147, 202, 0.14);
  width: fit-content;
}

.upload-trigger > span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.payment-info-card {
  gap: 20px;
}

.payment-info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 320px);
  gap: 18px;
  align-items: center;
}

.payment-bank-detail {
  display: grid;
  gap: 14px;
}

.payment-bank-detail__item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(12, 17, 27, 0.86);
  border: 1px solid rgba(116, 147, 202, 0.12);
}

.payment-bank-detail__item span {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.payment-bank-detail__item strong {
  font-size: 1.08rem;
  font-weight: 500;
  color: #f3f7ff;
  line-height: 1.5;
  word-break: break-word;
}

.payment-qr-card {
  margin: 0;
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 18px;
  border-radius: 22px;
  background: rgba(12, 17, 27, 0.86);
  border: 1px solid rgba(116, 147, 202, 0.12);
}

.payment-qr-card img {
  width: min(100%, 280px);
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  background: #ffffff;
  padding: 10px;
}

.payment-qr-card figcaption {
  color: var(--text-soft);
  text-align: center;
}

.status-box {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(17, 23, 35, 0.88);
  border: 1px solid rgba(116, 147, 202, 0.14);
  color: var(--text-muted);
}

.status-box.is-loading {
  border-color: rgba(102, 215, 237, 0.24);
  color: #dff6ff;
}

.status-box.is-success {
  border-color: rgba(73, 207, 155, 0.24);
  color: #e0fff4;
}

.status-box.is-error {
  border-color: rgba(255, 117, 145, 0.24);
  color: #ffe5ea;
}

.unavailable-card {
  max-width: 820px;
}

.info-card {
  padding: 12px; /* ลด padding โดยรวมของกรอบลง */
}

.info-card h4 {
  margin: 0; /* ลบ margin เริ่มต้นของ h4 */
  font-size: 1.05rem; /* ปรับขนาดตัวอักษรของหัวข้อให้เล็กลง */
  line-height: 1.3; /* ปรับระยะห่างบรรทัดของหัวข้อให้กระชับขึ้น */
}

.info-card p {
  margin: 4px 0 0; /* ปรับ margin ด้านบนของ p ให้มีช่องว่างเล็กน้อยจาก h4 */
  line-height: 1.4; /* ปรับระยะห่างบรรทัดของข้อความให้กระชับขึ้น */
  color: var(--text-muted);
}

.submit-actions--spacing {
  margin-bottom: 24px;
}

/* Final responsive overrides */
@media (min-width: 1025px) and (max-width: 1180px) {
  .register-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
    gap: 18px;
    align-items: start;
  }

  .register-sidebar {
    order: 0;
    position: sticky;
    top: 16px;
    padding-right: 0;
    z-index: auto;
    transform: none;
  }

  .summary-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .register-grid {
    display: flex;
    flex-direction: column;
  }

  .register-sidebar {
    order: -1;
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    z-index: auto;
    transform: none !important;
    will-change: auto !important;
  }

  .register-sidebar,
  .summary-card,
  .register-sidebar .info-card {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .portal-main,
  .register-layout,
  .register-main,
  .register-sidebar,
  .register-form {
    gap: 18px;
  }

  .register-hero__visual {
    width: 100%;
    max-width: none;
  }

  .summary-entry__tag {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .site-shell {
    width: calc(100% - 20px);
  }

  .portal-hero,
  .register-hero,
  .section-card,
  .section-card--wide,
  .summary-card,
  .site-footer {
    padding: 14px;
  }

  .summary-entry__side {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .summary-entry__count {
    white-space: normal;
  }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .site-shell {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .register-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
    gap: 18px;
    align-items: start;
  }

  .register-sidebar {
    order: 0;
    position: sticky;
    top: 16px;
    padding-right: 0;
    z-index: auto;
  }

  .register-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    padding: 26px;
  }

  .section-card,
  .section-card--wide,
  .summary-card,
  .site-footer {
    padding: 22px;
  }

  .summary-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .register-grid {
    display: flex;
    flex-direction: column;
  }

  .register-main {
    order: 0;
  }

  .register-sidebar {
    order: -1;
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    z-index: auto;
    transform: none !important;
    will-change: auto !important;
  }

  .register-sidebar,
  .summary-card,
  .register-sidebar .info-card {
    width: 100%;
  }

  .summary-entry-list {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 720px) {
  .portal-main,
  .register-layout,
  .register-main,
  .register-sidebar,
  .register-form {
    gap: 18px;
  }

  .register-hero__visual {
    width: 100%;
    max-width: none;
  }

  .register-hero__visual-frame,
  .register-hero__visual-frame--poster {
    width: 100%;
  }

  .section-head {
    gap: 12px;
  }

  .summary-entry__tag {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .site-shell {
    width: calc(100% - 20px);
  }

  .portal-hero,
  .register-hero,
  .section-card,
  .section-card--wide,
  .summary-card,
  .site-footer {
    padding: 14px;
  }

  .summary-entry__side {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .summary-entry__count {
    white-space: normal;
  }
}

.summary-entry {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 10px;
}

.summary-entry__content {
  min-width: 0;
  justify-items: start;
  text-align: left;
}

.summary-entry__tag {
  max-width: 100%;
  text-align: left;
  line-height: 1.15;
}

.summary-entry__title {
  width: 100%;
  max-width: 100%;
  text-align: left;
  line-height: 1.35;
  overflow-wrap: normal;
  word-break: normal;
}

.summary-entry__meta {
  width: 100%;
  text-align: left;
}

.summary-entry__side {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  justify-items: stretch;
  text-align: left;
  width: 100%;
}

.summary-entry__fee,
.summary-entry__count {
  line-height: 1.2;
}

@media (max-width: 1180px) {
  .portal-hero {
    padding-inline: 30px;
  }

  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .register-grid {
    display: flex;
    flex-direction: column;
  }

  .register-sidebar {
    position: sticky;
    top: 12px;
    order: -1;
    max-height: none;
    overflow: visible;
    padding-right: 4px;
    z-index: 5;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__meta {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 860px) {
  .site-shell {
    width: min(calc(100% - 28px), var(--max-width));
    padding-top: 18px;
  }

  .portal-hero,
  .register-hero,
  .section-card,
  .section-card--wide,
  .summary-card,
  .site-footer {
    padding: 22px;
  }

  .brand-lockup {
    gap: 12px;
  }

  .brand-logo {
    width: 122px;
  }

  .site-footer__brand {
    align-items: flex-start;
  }

  .site-footer__logo {
    width: 78px;
  }

  .portal-hero__topbar {
    flex-direction: column;
    align-items: center;
    margin-bottom: 18px;
  }

  .portal-hero__stats {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .landing-title,
  .register-hero h1 {
    max-width: 100%;
  }

  .register-hero {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .register-hero__content {
    gap: 12px;
  }

  .register-hero__visual {
    order: -1;
  }

  .register-hero__visual-frame {
    aspect-ratio: 16 / 9;
  }

  .register-hero__visual-frame--poster {
    aspect-ratio: 16 / 9;
  }

  .section-head,
  .subcard__head,
  .item-card__head {
    flex-direction: column;
  }

  .payment-info-layout {
    grid-template-columns: 1fr;
  }

  .event-grid,
  .selector-grid,
  .form-grid,
  .detail-grid,
  .summary-stats {
    grid-template-columns: 1fr;
  }

  .event-card {
    grid-template-rows: auto;
    height: auto;
  }

  .event-card__head {
    grid-template-rows: auto;
  }

  .event-card .pill-row {
    height: auto;
    overflow: visible;
  }

  .event-card__description {
    min-height: 0;
    display: block;
    overflow: visible;
  }

  .event-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .event-card__meta span:last-child {
    display: inline;
    overflow: visible;
  }

  .event-card__actions > .btn,
  .event-card__actions > a.btn {
    flex-basis: calc(50% - 6px);
  }

  .birthdate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .field-inline {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .site-shell,
  .site-shell * {
    max-width: 100%;
  }

  .site-shell *,
  .site-shell *::before,
  .site-shell *::after {
    min-width: 0;
  }

  .site-shell {
    width: calc(100% - 28px);
    max-width: var(--max-width);
    padding: 10px 0 34px;
  }

  .portal-hero,
  .register-hero,
  .section-card,
  .section-card--wide,
  .summary-card,
  .site-footer,
  .subcard,
  .item-card {
    border-radius: 18px;
  }

  .portal-hero,
  .register-hero,
  .section-card,
  .section-card--wide,
  .summary-card,
  .site-footer {
    padding: 16px;
  }

  .portal-hero__copy {
    text-align: left;
  }

  .brand-lockup {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .brand-lockup--center,
  .hero-badge-row {
    justify-content: flex-start;
  }

  .brand-logo {
    width: 104px;
  }

  .brand-lockup__text {
    flex: 1 1 auto;
    min-width: 0;
  }

  .eyebrow,
  .brand-lockup__sub,
  .portal-hero__caption {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .portal-hero__caption {
    max-width: calc(100vw - 64px);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    line-height: 1.45;
    word-break: break-word;
  }

  .eyebrow,
  .section-step,
  .detail-card__label,
  .site-footer__eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
  }

  .portal-hero__headline {
    width: 100%;
    justify-items: start;
    gap: 10px;
    margin-bottom: 14px;
  }

  .portal-hero__stats {
    margin-left: 0;
    margin-right: 0;
  }

  .landing-title,
  .register-hero h1 {
    width: 100%;
    max-width: calc(100vw - 64px);
    font-size: 1.95rem;
    line-height: 1.12;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: break-word;
  }

  .landing-subtitle {
    width: 100%;
    max-width: calc(100vw - 64px);
    font-size: 1rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .register-hero__visual {
    order: 0;
    justify-self: center;
    width: min(100%, 320px);
  }

  .register-hero__visual-frame,
  .register-hero__visual-frame--poster {
    border-radius: 18px;
  }

  .register-hero__content {
    gap: 11px;
  }

  .register-hero__status-row,
  .hero-badge-row,
  .pill-row,
  .event-card__actions,
  .submit-actions {
    gap: 8px;
  }

  .register-hero__meta-row .hero-badge,
  .register-hero__support-row .hero-badge,
  .hero-badge,
  .status-pill {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .pill {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .status-pill-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .portal-event-section__head,
  .section-head,
  .subcard__head,
  .item-card__head {
    align-items: stretch;
    gap: 10px;
  }

  .section-head {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .section-head h2,
  .modal__dialog h2 {
    font-size: 1.45rem;
  }

  .section-head p {
    line-height: 1.55;
  }

  .event-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .event-card {
    gap: 13px;
    padding: 14px;
  }

  .event-card__head,
  .event-card__head > div {
    width: 100%;
  }

  .event-card__poster {
    border-radius: 14px;
  }

  .event-card h3 {
    max-width: calc(100vw - 92px);
    font-size: 1.18rem;
    line-height: 1.24;
    word-break: break-word;
  }

  .event-card__subtitle,
  .event-card__description {
    width: 100%;
    max-width: calc(100vw - 92px);
    font-size: 0.96rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .event-card .pill-row {
    max-height: none;
  }

  .event-card__poster-body strong,
  .event-card__poster-body span {
    max-width: 100%;
  }

  .event-card__poster-note {
    display: none;
  }

  .event-card__actions > .btn,
  .event-card__actions > a.btn,
  .btn,
  .upload-trigger {
    width: 100%;
  }

  .event-card__actions > .btn,
  .event-card__actions > a.btn {
    flex-basis: 100%;
    min-height: 52px;
  }

  .subcard,
  .item-card,
  .upload-box,
  .payment-qr-card,
  .payment-bank-detail__item,
  .summary-stat,
  .summary-contact,
  .summary-entry {
    padding: 14px;
  }

  .form-grid,
  .entry-grid,
  .birthdate-grid {
    grid-template-columns: 1fr;
  }

  input,
  select,
  textarea {
    min-height: 52px;
    font-size: 16px;
    border-radius: 14px;
  }

  textarea {
    min-height: 98px;
  }

  .select-shell select {
    min-height: 52px;
  }

  .upload-box {
    gap: 10px;
  }

  .upload-trigger {
    min-height: auto;
    padding: 14px;
  }

  .upload-trigger > span {
    white-space: normal;
    min-width: 0;
  }

  .summary-entry {
    display: grid;
    gap: 10px;
  }

  .summary-entry__side {
    justify-items: start;
    text-align: left;
  }

  .payment-qr-card img {
    width: min(100%, 240px);
  }

  .site-footer__brand {
    flex-direction: column;
    gap: 10px;
  }

  .site-footer__copy strong {
    font-size: 1rem;
  }

  .site-footer__meta {
    font-size: 0.94rem;
  }

  .modal {
    padding: 12px;
  }

  .modal__dialog {
    padding: 18px;
    border-radius: 20px;
    max-height: calc(100vh - 24px);
    overflow: auto;
  }
}

@media (max-width: 380px) {
  .landing-title,
  .register-hero h1 {
    font-size: 1.7rem;
  }

  .brand-lockup {
    flex-direction: column;
  }

  .event-card {
    padding: 12px;
  }
}
.submit-actions--spacing {
  margin-bottom: 24px;
}

/* Final responsive overrides */
@media (min-width: 1025px) and (max-width: 1180px) {
  .register-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
    gap: 18px;
    align-items: start;
  }

  .register-sidebar {
    order: 0;
    position: sticky;
    top: 16px;
    padding-right: 0;
    z-index: auto;
    transform: none;
  }

  .summary-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .register-grid {
    display: flex;
    flex-direction: column;
  }

  .register-sidebar {
    order: -1;
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    z-index: auto;
    transform: none !important;
    will-change: auto !important;
  }

  .register-sidebar,
  .summary-card,
  .register-sidebar .info-card {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .portal-main,
  .register-layout,
  .register-main,
  .register-sidebar,
  .register-form {
    gap: 18px;
  }

  .register-hero__visual {
    width: 100%;
    max-width: none;
  }

  .summary-entry__tag {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .site-shell {
    width: calc(100% - 20px);
  }

  .portal-hero,
  .register-hero,
  .section-card,
  .section-card--wide,
  .summary-card,
  .site-footer {
    padding: 14px;
  }

  .summary-entry__side {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .summary-entry__count {
    white-space: normal;
  }
}
