/* =============================================================
   The Voice 2026 — Online Audition — pixel-faithful clone
   Rules derived by measurement from the original site at
   mobile / tablet / desktop viewports.
   ============================================================= */

@font-face {
  font-family: "KanitFont";
  src: url("../assets/fonts/kanit-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "KanitFont";
  src: url("../assets/fonts/kanit-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TradeMarkerFont";
  src: url("../assets/fonts/trademarker-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TradeMarkerFont";
  src: url("../assets/fonts/trademarker-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-text-1: #000000;
  --color-text-2: #ffffff;
  --color-text-3: #b80000;
  --color-text-4: #8e8e8e;
  --color-border-2: #ffffff8c;
  --color-border-3: #0b63b2;
  --color-background-1: #000000;
  --color-background-2: #b80000;
  --color-background-3: #ffffff;
  --color-background-5: #ffffff94;
  --color-shadow-1: #00000033;
  --color-hint: rgb(56, 176, 255);
  --color-hint-pill-bg: rgba(142, 138, 146, 0.66);
  --color-hint-pill-text: rgb(232, 231, 234);

  --font-family-default: "KanitFont", "TradeMarkerFont", sans-serif;
  --font-family-thevoice: "TradeMarkerFont", sans-serif;

  --font-size-xs: clamp(11px, 0.25vw + 10px, 12px);
  --font-size-sm: clamp(12px, 0.3vw + 12px, 14px);
  --font-size-md: clamp(14px, 0.4vw + 12px, 16px);
  --font-size-lg: clamp(16px, 0.5vw + 14px, 18px);
  --font-size-xl: clamp(16px, 0.5vw + 14px, 20px);
  --font-size-2xl: clamp(18px, 0.75vw + 15px, 22px);
  --font-size-3xl: clamp(20px, 1vw + 16px, 24px);
  --font-size-5xl: clamp(28px, 1.5vw + 20px, 32px);

  --font-weight-normal: 400;
  --font-weight-bold: 700;
}

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

html,
body {
  padding: 0;
  margin: 0;
  width: 100%;
  color: var(--color-text-1);
  overflow-x: hidden;
}

body {
  font-family: var(--font-family-default);
  font-size: var(--font-size-md);
  background-color: var(--color-background-1);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(0 0 99.9% 99.9%);
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
}

/* ---------- Page wrapper ---------- */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 80px;
  min-height: 80px;
  flex-shrink: 0;
  padding: 0 4em;
}
@media (max-width: 1024px) {
  .site-header {
    padding: 0 2em;
    height: 55px;
    min-height: 55px;
  }
}

.brand {
  flex-shrink: 0;
  width: 107px;
  aspect-ratio: 500 / 223;
  background-image: url("../assets/images/brand-trueid.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
}
@media (max-width: 1024px) {
  .brand {
    width: 72px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  column-gap: 0.5em;
}

.lang-wrap {
  display: flex;
  align-items: center;
  z-index: 99;
}

.lang-btn {
  display: flex;
  align-items: center;
  column-gap: 0.5em;
  padding: 4px 8px;
  border: none;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-2);
  font-size: var(--font-size-md);
  font-family: inherit;
  letter-spacing: 0.75px;
  transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
}
.lang-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}
.lang-btn:active {
  opacity: 0.9;
}

.lang-flag {
  display: flex;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  border-radius: 50%;
  padding: 0;
}
.lang-flag--th {
  background-image: url("../assets/images/flag-th.webp");
}
.lang-flag--en {
  background-image: url("../assets/images/flag-en.webp");
}

/* ---------- Hero ---------- */

.hero-wrap {
  display: flex;
  flex: 1 1 0%;
  margin-top: 0;
}

.hero {
  width: 100%;
  padding: 1.5em 1em 1em;
  display: flex;
  flex-direction: row;
  background-image: url("../assets/images/hero-bg.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}
.hero.center-page {
  align-items: center;
  justify-content: center;
}
@media (max-width: 1024px) {
  .hero {
    padding: 2em 1em 1em;
  }
}

.hero-col {
  width: 100%;
  max-width: 33rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 0.75rem;
}
@media (max-width: 768px) {
  .hero-col {
    max-width: 30rem;
  }
}
@media (max-width: 576px) {
  .hero-col {
    max-width: 100%;
    gap: 0.875rem;
  }
}

.hero-logo {
  width: min(100%, 18.5rem);
  height: auto;
  margin-top: 0.25rem;
}
@media (max-width: 576px) {
  .hero-logo {
    width: min(100%, 16.25rem);
  }
}

/* ---------- Prep section ---------- */

.prep {
  width: min(100%, 40rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (max-width: 576px) {
  .prep {
    width: min(100%, 22rem);
    gap: 0.5rem;
  }
}

.prep-title {
  margin: 0 auto;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  color: var(--color-text-2);
  font-size: var(--font-size-5xl);
  line-height: 1;
  font-weight: var(--font-weight-bold);
  text-shadow:
    -0.1875rem -0.1875rem 0 var(--color-border-3),
    0.1875rem -0.1875rem 0 var(--color-border-3),
    -0.1875rem 0.1875rem 0 var(--color-border-3),
    0.1875rem 0.1875rem 0 var(--color-border-3),
    -0.25rem 0 0 var(--color-border-3),
    0.25rem 0 0 var(--color-border-3),
    0 -0.25rem 0 var(--color-border-3),
    0 0.25rem 0 var(--color-border-3);
}
@media (max-width: 576px) {
  .prep-title {
    text-shadow:
      -0.125rem -0.125rem 0 var(--color-border-3),
      0.125rem -0.125rem 0 var(--color-border-3),
      -0.125rem 0.125rem 0 var(--color-border-3),
      0.125rem 0.125rem 0 var(--color-border-3),
      -0.1875rem 0 0 var(--color-border-3),
      0.1875rem 0 0 var(--color-border-3),
      0 -0.1875rem 0 var(--color-border-3),
      0 0.1875rem 0 var(--color-border-3);
  }
}

.prep-cards {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.prep-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
}

.prep-card-head {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.prep-card-icon {
  width: 1.7rem;
  height: 1.7rem;
  display: block;
  position: absolute;
  top: 20px;
  left: -5px;
  transform: translate(-32%, -48%);
  z-index: 1;
  background-size: contain;
  background-repeat: no-repeat;
}
@media (max-width: 576px) {
  .prep-card-icon {
    width: 1.35rem;
    height: 1.35rem;
    transform: translate(-28%, -48%);
  }
}
.prep-card-icon--photo {
  background-image: url("../assets/images/icon-image.svg");
}
.prep-card-icon--video {
  background-image: url("../assets/images/icon-movie.svg");
}

.prep-card-pill {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0.5em 1em;
  border-radius: 0.3rem;
  background: linear-gradient(
    90deg,
    #7c0000 0%,
    var(--color-background-2) 54%,
    #ff1400 100%
  );
  color: var(--color-text-2);
  font-size: var(--font-size-xl);
  line-height: 1;
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}
@media (max-width: 576px) {
  .prep-card-pill {
    font-size: var(--font-size-2xl);
    padding: 0.5em 1em;
  }
}

.prep-card-body {
  --bevel-size: 0.7rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  border-radius: 0.2rem;
  background: linear-gradient(
    360deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.58) 50%,
    rgba(0, 0, 0, 0.59) 100%
  );
  clip-path: polygon(
    var(--bevel-size) 0,
    100% 0,
    calc(100% - var(--bevel-size)) 100%,
    0 100%
  );
  width: 100%;
  padding: 0.2em 1.5em;
}
@media (max-width: 576px) {
  .prep-card-body {
    --bevel-size: 1rem;
    padding: 0.2em 1.5em;
  }
}

.prep-card-line {
  margin: 0;
  color: var(--color-text-2);
  font-size: var(--font-size-xl);
  line-height: 1.1;
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
}
@media (max-width: 576px) {
  .prep-card-line {
    font-size: var(--font-size-lg);
    white-space: normal;
  }
}

.prep-card-hint {
  margin: 0;
  color: var(--color-hint);
  font-size: var(--font-size-sm);
  line-height: 1.1;
  font-weight: var(--font-weight-normal);
}
@media (max-width: 576px) {
  .prep-card-hint {
    font-size: var(--font-size-xs);
  }
}

/* ---------- CTA card (glass) ---------- */

.cta-card {
  width: min(100%, 22rem);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-width: 500px;
  max-width: 500px;
  background-color: var(--color-background-5);
  border: 1px solid var(--color-border-2);
  border-radius: 16px;
  box-shadow: 0 8px 24px 0 var(--color-shadow-1);
  backdrop-filter: blur(0);
}
@media (max-width: 768px) {
  .cta-card {
    min-width: 400px;
  }
}
@media (max-width: 576px) {
  .cta-card {
    width: 100%;
    padding: 2rem 1.25rem;
    min-width: 250px;
  }
}

.cta-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cta-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}

.cta-btn {
  height: auto;
  width: 100%;
  white-space: normal;
  padding: 0.5em 1.5em;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-normal);
  border-radius: 32px;
  border: 1px solid transparent;
  font-family: inherit;
  line-height: 1.5;
  transition: all 0.1s linear;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cta-btn--solid {
  color: #fff;
  background: rgba(0, 0, 0, 0.88);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
}
.cta-btn--solid:hover {
  background: rgba(0, 0, 0, 0.75);
}
.cta-btn--solid:active {
  background: rgba(0, 0, 0, 0.95);
}

.cta-btn--ghost {
  color: var(--color-text-1);
  background: transparent;
  border-color: var(--color-text-1);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
}
.cta-btn--ghost:hover {
  color: var(--color-text-3);
  border-color: var(--color-text-3);
}

.cta-hint {
  margin: 0;
  width: fit-content;
  max-width: 92%;
  border-radius: 0.2rem;
  background-color: var(--color-hint-pill-bg);
  color: var(--color-hint-pill-text);
  font-size: var(--font-size-sm);
  line-height: 1.12;
  font-weight: var(--font-weight-normal);
  text-align: center;
  clip-path: polygon(3% 0%, 100% 0%, 97% 100%, 0% 100%);
  padding: 0.25em 1.5em;
}
@media (max-width: 576px) {
  .cta-hint {
    max-width: 96%;
    font-size: var(--font-size-xs);
    line-height: 1.14;
  }
}

/* ---------- Rules modal ---------- */

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.modal-root[aria-hidden="true"] {
  display: none;
}

.modal-mask {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

.modal-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  pointer-events: none;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 736px;
  pointer-events: auto;
  margin: auto;
}

.modal-content {
  position: relative;
  background: #fff;
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow:
    0 6px 16px 0 rgba(0, 0, 0, 0.08),
    0 3px 6px -4px rgba(0, 0, 0, 0.12),
    0 9px 28px 8px rgba(0, 0, 0, 0.05);
  color: var(--color-text-1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(0, 0, 0, 0.45);
  font-size: 20px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}
.modal-close:hover {
  color: rgba(0, 0, 0, 0.88);
  background: rgba(0, 0, 0, 0.06);
}

.modal-body {
  display: block;
}

.modal-title {
  margin: 0 0 0.5em;
  color: var(--color-text-1);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.35;
}

.modal-tabs-nav {
  display: flex;
  align-items: center;
  margin: 0 0 16px;
  border-bottom: 1px solid rgba(5, 5, 5, 0.06);
}

.modal-tab {
  flex: 1 1 0%;
  padding: 12px 0;
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.88);
  font-family: inherit;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.5;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-tab:hover {
  color: var(--color-text-3);
}
.modal-tab.is-active {
  color: var(--color-text-3);
}
.modal-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--color-background-2);
}

.modal-tab-panels {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-tab-panel[hidden] {
  display: none;
}

.modal-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-section h3 {
  margin: 0;
  color: var(--color-text-1);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-normal);
  line-height: 1.4;
}

.modal-section ol,
.modal-section ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-1);
  font-size: var(--font-size-md);
  line-height: 1.5;
}
.modal-section ol > li + li,
.modal-section ul > li + li {
  margin-top: 0.5rem;
}
.modal-section li ul {
  margin-top: 0.5rem;
  padding-left: 1.5rem;
  list-style-type: disc;
}
.modal-section li strong {
  font-weight: var(--font-weight-bold);
}
.modal-section li a {
  color: inherit;
  text-decoration: underline;
  font-weight: var(--font-weight-bold);
}

.modal-footer {
  margin-top: 1.5rem;
}
.modal-footer .cta-btn {
  font-size: var(--font-size-md);
}

@media (max-width: 576px) {
  .modal-wrap {
    padding: 8px;
  }
  .modal-content {
    padding: 16px;
  }
  .modal-tab-panels {
    max-height: 55vh;
  }
}

/* lock body scroll while modal open */
body.modal-open {
  overflow: hidden;
}

/* =============================================================
   Registration page
   ============================================================= */

.page--register {
  background: var(--color-background-1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page--register::before {
  display: none;
}

.site-header--plain {
  background: transparent;
  position: relative;
  z-index: 3;
}

.register-hero {
  width: 100%;
  min-height: 232px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px 32px;
  background: linear-gradient(180deg, #000 0%, #b80000 100%);
  color: #fff;
}
.register-hero__logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 16px;
}
.register-hero__title {
  margin: 0 0 8px;
  font-size: 36px;
  font-weight: 600;
  color: #fff;
}
.register-hero__sub {
  margin: 0;
  font-size: 18px;
  color: #fff;
}
@media (max-width: 768px) {
  .register-hero__logo {
    max-width: 150px;
  }
  .register-hero__title {
    font-size: 24px;
  }
  .register-hero__sub {
    font-size: 16px;
  }
}

.register-main {
  width: 100%;
  margin: 0;
  padding: 28px;
  background: #fff;
  color: var(--color-text-1);
}
.register-main > * {
  max-width: 1190px;
  margin-inline: auto;
}
@media (max-width: 576px) {
  .register-main {
    padding: 28px 12px;
  }
}

.register-tabs {
  display: flex;
  width: 100%;
  max-width: 586px;
  margin: -20px auto 20px;
  position: relative;
  z-index: 2;
}
.register-tab {
  flex: 1 1 0%;
  text-align: center;
  padding: 12px 0;
  font-family: inherit;
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: #000;
  background: transparent;
  border: none;
  border-bottom: 4px solid #e0e0e0;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.register-tab.is-active {
  border-bottom-color: #d0021b;
}
.register-tab:not(.is-active):hover {
  color: #666;
}
@media (max-width: 576px) {
  .register-tabs {
    margin: -40px auto 16px;
  }
  .register-tab {
    font-size: var(--font-size-xl);
    padding: 10px 0;
  }
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contestants {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contestant-panel {
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
}

.contestant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #555;
  color: #fff;
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  border-radius: 8px;
  cursor: pointer;
}
.contestant-header__chevron {
  font-size: 16px;
  transition: transform 0.2s;
}
.contestant-panel.is-collapsed .contestant-header__chevron {
  transform: rotate(-90deg);
}
.contestant-panel.is-collapsed .contestant-body {
  display: none;
}
.contestant-body {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contestants[data-mode="solo"] .contestant-header {
  display: none;
}
.contestants[data-mode="solo"] .contestant-body {
  padding-top: 0;
}

.form-section {
  border: none;
  padding: 0;
  margin: 0;
}
.form-section__title {
  margin: 20px 0 0;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-section__title::before {
  content: attr(data-number);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-background-2);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 14px;
  flex-shrink: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background-color: #f5f5f5;
  padding: 20px 40px 32px;
  border-radius: 20px;
  margin-top: 16px;
}
@media (max-width: 1024px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 16px 20px 24px;
  }
}
@media (max-width: 576px) {
  .form-grid {
    grid-template-columns: 1fr;
    padding: 14px 14px 20px;
    gap: 1rem;
  }
}

.form-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.form-item label {
  padding-bottom: 0.5rem;
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  color: var(--color-text-1);
}
.form-item .req {
  color: var(--color-text-3);
  margin-left: 2px;
}
.form-item input[list] {
  padding-right: 28px;
  background-image: none;
}
.form-item input[type="text"],
.form-item input[type="tel"],
.form-item input[type="email"],
.form-item select,
.form-item textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 4px 11px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5714285714285714;
  color: rgba(0, 0, 0, 0.88);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-item select {
  height: 35.14px;
}
.form-item textarea {
  resize: vertical;
  min-height: 88px;
  padding: 8px 11px;
}
.form-item input:focus,
.form-item select:focus,
.form-item textarea:focus {
  outline: none;
  border-color: #4096ff;
  box-shadow: 0 0 0 2px rgba(64, 150, 255, 0.1);
}
.form-item input:disabled,
.form-item select:disabled {
  background: #f5f5f5;
  color: rgba(0, 0, 0, 0.5);
  cursor: not-allowed;
}
.form-item input[readonly] {
  background: #fafafa;
}
.form-item.is-invalid input,
.form-item.is-invalid select,
.form-item.is-invalid textarea {
  border-color: var(--color-state-danger, #d94f4f);
}
.form-item .form-error {
  margin-top: 0.25rem;
  font-size: var(--font-size-xs);
  color: var(--color-text-3);
}
.form-item .form-hint {
  margin: 0.25rem 0 0;
  font-size: var(--font-size-xs);
  color: var(--color-text-4);
}

.form-item--wide {
  grid-column: span 4;
}
.form-item--wide-3 {
  grid-column: span 3;
}
.form-item--wide-2 {
  grid-column: span 2;
}
.form-item--empty {
  pointer-events: none;
}
@media (max-width: 1024px) {
  .form-item--wide,
  .form-item--wide-3,
  .form-item--wide-2 {
    grid-column: span 2;
  }
  .form-item--empty {
    display: none;
  }
}
@media (max-width: 576px) {
  .form-item--wide,
  .form-item--wide-3,
  .form-item--wide-2 {
    grid-column: span 1;
  }
}

.form-input-group {
  display: inline-flex;
  align-items: center;
  width: 100%;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 4px 11px;
  gap: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input-group:focus-within {
  border-color: #4096ff;
  box-shadow: 0 0 0 2px rgba(64, 150, 255, 0.1);
}
.form-input-group__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #bfbfbf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.form-input-group__icon svg,
.form-input-group__icon img {
  width: 100%;
  height: 100%;
  display: block;
}
.form-input-group input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5714285714285714;
  color: rgba(0, 0, 0, 0.88);
  outline: none !important;
  box-shadow: none !important;
}
.form-item.is-invalid .form-input-group {
  border-color: var(--color-state-danger, #d94f4f);
}

.form-radio-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 8px 0 0;
}
.form-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 16px;
  color: var(--color-text-1);
}
.form-radio input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-background-2);
  cursor: pointer;
}

/* Photo upload */
.photo-upload {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background-color: #f5f5f5;
  padding: 20px 40px 32px;
  border-radius: 20px;
  margin-top: 16px;
}
@media (max-width: 768px) {
  .photo-upload {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 20px;
  }
}
.photo-upload__intro {
  flex: 1 1 0%;
  max-width: 250px;
}
.photo-upload__intro h4 {
  margin: 0 0 1rem;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}
.photo-upload__intro ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #666;
  font-size: 14px;
}
.photo-upload__intro ul li {
  margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
  .photo-upload__intro {
    max-width: 100%;
    width: 100%;
    text-align: center;
  }
  .photo-upload__intro ul {
    display: inline-block;
    text-align: left;
  }
}
.photo-upload__tiles {
  display: flex;
  gap: 1.5rem;
  flex: 2 1 0%;
  width: 100%;
}
@media (max-width: 576px) {
  .photo-upload__tiles {
    flex-direction: column;
    align-items: center;
  }
}

.photo-tile {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  flex: 1 1 0%;
  max-width: 220px;
  width: 100%;
}
@media (max-width: 576px) {
  .photo-tile {
    max-width: 100%;
  }
}
.photo-tile__label {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: #777;
  font-size: 15px;
  text-align: center;
}
.photo-tile__dropzone {
  aspect-ratio: 3 / 4;
  width: 100%;
  background-color: #f5f9ff;
  border: 1px dashed #abd3fd;
  border-radius: 8px;
  padding: 12px 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
}
.photo-tile__dropzone:hover {
  border-color: #4b85fc;
}
.photo-tile__dropzone--halfbody {
  background-image: url("../assets/images/placeholder-halfbody.png");
}
.photo-tile__dropzone--fullbody {
  background-image: url("../assets/images/placeholder-fullbody.png");
}
.photo-tile__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #111;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #111;
  position: relative;
  z-index: 1;
}
.photo-tile__btn {
  margin-top: 1rem;
  min-width: 130px;
  padding: 8px 32px;
  background: #666;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-family: inherit;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}
.photo-tile__btn:hover {
  background: #555;
}

/* Consent block */
.register-consent {
  max-width: 882px;
  margin: 2rem auto 0;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-text-1);
  font-size: var(--font-size-md);
  line-height: 1.6;
  cursor: pointer;
}
.consent-row input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--color-background-2);
  cursor: pointer;
  flex-shrink: 0;
}
.consent-link {
  background: none;
  border: none;
  padding: 0 0.25ch;
  font-family: inherit;
  font-size: inherit;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-1);
  text-decoration: underline;
  cursor: pointer;
}
.recaptcha-placeholder {
  margin-top: 4px;
  padding: 12px 16px;
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 304px;
}
.recaptcha-brand {
  font-size: 10px;
  color: #555;
  letter-spacing: 0.5px;
}

/* Submit button */
.register-submit {
  margin: 2rem auto 0;
  align-self: center;
  max-width: 842px;
  width: 100%;
  background: linear-gradient(90deg, #7c0000 0%, #b80000 54%, #ff1400 100%);
  color: #fff;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  box-shadow: 0 6px 18px rgba(255, 20, 0, 0.35);
}
.register-submit:disabled {
  background: #ccc;
  box-shadow: none;
  cursor: not-allowed;
}

/* ---------- Consent modal (T&C / Privacy) ---------- */

.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
}
.consent-modal[aria-hidden="true"] {
  display: none;
}
.consent-modal .modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.consent-modal__wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.consent-modal__box {
  position: relative;
  width: 100%;
  max-width: 576px;
  max-height: calc(100vh - 32px);
  background: #fff;
  border-radius: 16px;
  padding: 24px 24px 20px;
  box-shadow:
    0 6px 16px 0 rgba(0, 0, 0, 0.08),
    0 3px 6px -4px rgba(0, 0, 0, 0.12),
    0 9px 28px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.consent-modal__title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: #111;
}
.consent-modal__body {
  width: 100%;
  max-height: 50vh;
  max-height: min(50dvh, 520px);
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-1);
  text-align: left;
  white-space: pre-wrap;
}
/* markdown-style line primitives — mirrors the original consent renderer */
.consent-modal__body .md-line {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}
.consent-modal__body .md-empty {
  height: 0.4rem;
}
.consent-modal__body .md-heading {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}
.consent-modal__body .md-bullet {
  margin: 0;
  /* padding-inline-start is set inline per bullet (1rem top-level, 2.25rem sub) */
}
.consent-modal__body .md-bullet-marker {
  font-weight: 700;
}
.consent-modal__body .md-divider {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--color-border-1, #d9d9d9);
}
.consent-modal__body .md-divider {
  border: 0;
  border-top: 1px solid #d9d9d9;
  margin: 0.5rem 0;
}
.consent-modal__body p {
  margin: 0;
}
.consent-modal__body strong {
  font-weight: 700;
}
.consent-modal__close {
  width: 100%;
  height: 40px;
  padding: 0 15px;
  margin-top: 24px;
  border-radius: 20px;
  background: #111;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.consent-modal__close:hover {
  background: #333;
}
@media (max-width: 576px) {
  .consent-modal__box {
    padding: 20px 18px 16px;
  }
  .consent-modal__body {
    font-size: 13px;
  }
}
