/* =========================================================================
   REKTOR UNTAD CUP III 2026 — Registration (Pendaftaran) Stylesheet
   Scoped to template-registration.php (enqueued conditionally in functions.php).
   Reuses the theme design tokens declared in style.css (:root).
   ========================================================================= */

.reg-page {
  background:
    linear-gradient(to bottom, rgba(248, 249, 250, 0.90) 0%, rgba(248, 249, 250, 0.96) 100%),
    url('http://rektoruntadcup.untad.ac.id/wp-content/uploads/2026/07/background_index.png') no-repeat top center;
  background-size: cover;
  background-attachment: scroll;
  padding-block: clamp(2.5rem, 6vw, 5rem) var(--section-y);
}

.reg-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(1.8rem, 4vw, 3rem);
}

.reg-section-head__title {
  font-size: var(--fs-h2);
  color: var(--navy);
  margin-top: 0.4rem;
}

.reg-section-head__sub {
  color: var(--muted);
  margin-top: 0.7rem;
  font-size: var(--fs-lead);
}

/* =========================================================================
   1. MASTHEAD
   ========================================================================= */
.reg-masthead {
  position: relative;
  overflow: hidden;
  padding-top: clamp(7rem, 12vw, 10rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  background:
    linear-gradient(to bottom, rgba(6, 14, 29, 0.88) 0%, rgba(11, 29, 58, 0.96) 100%),
    url('http://rektoruntadcup.untad.ac.id/wp-content/uploads/2026/07/gedung-rektorat-untad.png') no-repeat center center;
  background-size: cover;
}

.reg-masthead__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 320px at 12% 0%, rgba(232, 160, 32, 0.20), transparent 60%),
    radial-gradient(680px 360px at 92% 30%, rgba(13, 115, 119, 0.26), transparent 62%);
  pointer-events: none;
}

.reg-masthead .container {
  position: relative;
  z-index: 1;
}

.reg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  margin-top: 1rem;
}

.reg-masthead__title {
  font-size: clamp(2.1rem, 5.4vw, 3.8rem);
  color: var(--white);
  margin-top: 0.6rem;
  max-width: 18ch;
}

.reg-masthead__lead {
  color: rgba(255, 255, 255, 0.78);
  max-width: 60ch;
  margin-top: 1rem;
  font-size: var(--fs-lead);
}

.reg-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.reg-fact {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.reg-fact:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(232, 160, 32, 0.4);
}

.reg-fact i {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 8px;
  color: var(--gold-light);
  background: rgba(232, 160, 32, 0.12);
  border-radius: 10px;
}

.reg-fact span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.reg-fact strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.98rem;
}

/* =========================================================================
   1b. MASTHEAD TWO-COLUMN LAYOUT
   ========================================================================= */
.reg-masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.reg-masthead__left {
  min-width: 0;
}

.reg-masthead__right {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .reg-masthead__inner {
    grid-template-columns: 1fr;
  }
  .reg-masthead__right {
    justify-content: flex-start;
  }
}

/* =========================================================================
   1c. COUNTDOWN TIMER
   ========================================================================= */

/* Fix: ensure HTML [hidden] attribute always wins over display declarations */
.ruc-countdown__expired[hidden],
.ruc-countdown__deadline[hidden] {
  display: none !important;
}

.ruc-countdown {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.5rem 1.4rem 1.3rem;
  /* Match existing reg-fact glass card */
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius, 12px);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  min-width: 280px;
  max-width: 320px;
  overflow: hidden;
}

.ruc-countdown:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(232, 160, 32, 0.4);
}

/* Subtle ambient top-glow matching masthead palette */
.ruc-countdown::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 200px 60px at 50% 0%, rgba(232, 160, 32, 0.15), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.ruc-countdown > * {
  position: relative;
  z-index: 1;
}

/* Badge / header label — gold pill, same style family as reg-eyebrow */
.ruc-countdown__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.8rem;
  background: rgba(232, 160, 32, 0.15);
  border: 1px solid rgba(232, 160, 32, 0.32);
  border-radius: 100px;
  color: var(--gold-light, #f5c842);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-display);
}

.ruc-countdown__badge i {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* Decorative pulsing ring (subtle, top-right corner) */
.ruc-countdown__ring-wrap {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  pointer-events: none;
  opacity: 0.1;
}

.ruc-countdown__ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid var(--gold-light, #f5c842);
  animation: rucRingPulse 3.5s ease-in-out infinite;
}

@keyframes rucRingPulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.15); opacity: 0.4; }
}

/* Divider between badge and digits */
.ruc-countdown__divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* Units row */
.ruc-countdown__units {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

/* Separator colon */
.ruc-countdown__sep {
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1;
  padding-top: 0.15rem;
  user-select: none;
  align-self: center;
}

/* Individual unit block */
.ruc-cu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

/* Digit box — matches reg-fact icon box feel */
.ruc-cu__flip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s, box-shadow 0.35s;
}

/* horizontal midline */
.ruc-cu__flip::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.ruc-cu__val {
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white, #fff);
  letter-spacing: -0.02em;
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), opacity 0.18s;
  display: block;
  line-height: 1;
}

/* Flip animation toggled by JS */
.ruc-cu__val.is-flipping {
  transform: translateY(-55%) scale(0.82);
  opacity: 0;
}

/* Brief highlight on digit change */
.ruc-cu__flip.is-changed {
  border-color: rgba(232, 160, 32, 0.5);
  box-shadow: 0 0 10px rgba(232, 160, 32, 0.18);
}

.ruc-cu__label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* Deadline footer */
.ruc-countdown__deadline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
  width: 100%;
  justify-content: center;
}

.ruc-countdown__deadline i {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* Expired state — only visible when JS removes [hidden] */
.ruc-countdown__expired {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ff8080;
  margin: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-display);
  animation: rucExpiredPulse 2s ease-in-out infinite;
}

@keyframes rucExpiredPulse {
  0%, 100% { opacity: 1;   }
  50%       { opacity: 0.5; }
}

.ruc-countdown__expired i {
  width: 15px;
  height: 15px;
}

/* Urgent state (< 24 h remaining) */
.ruc-countdown.is-urgent .ruc-cu__flip {
  border-color: rgba(255, 100, 100, 0.32);
  box-shadow: 0 0 14px rgba(255, 80, 80, 0.1);
}

.ruc-countdown.is-urgent .ruc-cu__val {
  color: #ffb3b3;
}

.ruc-countdown.is-urgent .ruc-countdown__badge {
  background: rgba(255, 80, 80, 0.14);
  border-color: rgba(255, 100, 100, 0.38);
  color: #ffb3b3;
}

/* =========================================================================
   2. CATEGORY REFERENCE CARDS
   ========================================================================= */
.reg-cats {
  margin-bottom: clamp(3rem, 7vw, 5rem);
}


/* =========================================================================
   3. FORM SHELL + STEP INDICATOR
   ========================================================================= */
.reg-form-section {
  margin-bottom: clamp(3rem, 7vw, 5rem);
  scroll-margin-top: 90px;
}

.reg-form-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.3rem, 3.5vw, 2.6rem);
  max-width: 880px;
  margin-inline: auto;
}

.reg-steps {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  margin: 0 0 2rem;
  position: relative;
}

.reg-steps::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 7%;
  right: 7%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.reg-step-dot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  text-align: center;
  cursor: pointer;
  outline: none;
}

.reg-step-dot span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--muted);
  transition: all 0.4s var(--ease);
}

.reg-step-dot b {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
  transition: color 0.3s var(--ease);
}

.reg-step-dot:hover span,
.reg-step-dot:focus-visible span {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(232, 160, 32, 0.15);
}

.reg-step-dot:hover b,
.reg-step-dot:focus-visible b {
  color: var(--navy);
}

.reg-step-dot.is-active span {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 0 0 5px rgba(232, 160, 32, 0.18);
}

.reg-step-dot.is-active:hover span,
.reg-step-dot.is-active:focus-visible span {
  transform: none;
  box-shadow: 0 0 0 5px rgba(232, 160, 32, 0.18);
}

.reg-step-dot.is-active b {
  color: var(--navy);
}

.reg-step-dot.is-done span {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* Disabled/submitted state */
.reg-steps.is-disabled .reg-step-dot {
  cursor: default;
  pointer-events: none;
}

/* ----- Honeypot ----- */
.reg-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ----- Steps ----- */
.reg-step {
  display: none;
}

.reg-step.is-active {
  display: block;
  animation: regStepIn 0.45s var(--ease) both;
}

@keyframes regStepIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reg-step__title {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  color: var(--navy);
}

.reg-step__hint {
  color: var(--muted);
  margin-top: 0.35rem;
  margin-bottom: 1.4rem;
  font-size: 0.95rem;
}

.reg-subhead {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--navy);
  margin: 1.6rem 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

/* =========================================================================
   4. CATEGORY CHOICE (step 1)
   ========================================================================= */
.reg-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.reg-choice {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: 1fr auto;
  column-gap: 0.85rem;
  row-gap: 0.6rem;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--white);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease), background 0.3s var(--ease);
}

.reg-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reg-choice:hover {
  border-color: color-mix(in srgb, var(--cat, var(--gold)) 50%, var(--line));
  transform: translateY(-2px);
}

/* --- Icon --- */
.reg-choice__mark {
  grid-column: 1;
  grid-row: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--cat, var(--gold));
  background: color-mix(in srgb, var(--cat, var(--gold)) 12%, transparent);
  transition: transform 0.3s var(--ease);
  align-self: start;
  flex-shrink: 0;
}

.reg-choice__mark svg {
  width: 22px;
  height: 22px;
}

/* --- Body text --- */
.reg-choice__body {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.reg-choice__name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.3;
  padding-right: 1.5rem;
}

.reg-choice__fee {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.reg-choice__players {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--cat, var(--gold));
  font-weight: 500;
  line-height: 1.3;
}

.reg-choice__players svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Check icon --- */
.reg-choice__check {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--line);
  color: #fff;
  transform: scale(0.6);
  opacity: 0;
  transition: all 0.3s var(--ease);
}

.reg-choice__check svg {
  width: 13px;
  height: 13px;
}

.reg-choice.is-selected {
  border-color: var(--cat, var(--gold));
  background: color-mix(in srgb, var(--cat, var(--gold)) 6%, var(--white));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--cat, var(--gold)) 22%, transparent);
}

.reg-choice.is-selected .reg-choice__mark {
  transform: scale(1.06);
}

.reg-choice.is-selected .reg-choice__check {
  opacity: 1;
  transform: scale(1);
  background: var(--cat, var(--gold));
  border-color: var(--cat, var(--gold));
  color: var(--navy-deep);
}

.reg-junior {
  margin-top: 1.6rem;
  padding: 1.2rem;
  border: 1px dashed color-mix(in srgb, var(--gold) 50%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--gold) 5%, var(--white));
  animation: regStepIn 0.4s var(--ease) both;
}

.reg-junior .reg-subhead {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

/* =========================================================================
   5. FIELDS
   ========================================================================= */
.reg-grid {
  display: grid;
  gap: 1.05rem 1.1rem;
}

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

.reg-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.reg-field {
  display: flex;
  flex-direction: column;
}

.reg-field--full {
  grid-column: 1 / -1;
}

.reg-field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.reg-field .req {
  color: var(--crimson);
}

.reg-field input,
.reg-field select,
.reg-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.reg-field textarea {
  resize: vertical;
  min-height: 64px;
}

.reg-field input:focus,
.reg-field select:focus,
.reg-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(232, 160, 32, 0.16);
}

.reg-field input.is-invalid,
.reg-field select.is-invalid,
.reg-field textarea.is-invalid {
  border-color: #C0392B;
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.12);
}

.reg-field-error {
  color: #C0392B;
  font-size: 0.82rem;
  margin-top: 0.4rem;
  min-height: 1em;
}

.reg-field-error:empty {
  margin-top: 0;
  min-height: 0;
}

/* =========================================================================
   6. PLAYER ROSTER (step 3)
   ========================================================================= */
.reg-roster {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.reg-player {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: start;
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--offwhite);
  animation: regStepIn 0.35s var(--ease) both;
}

.reg-player__num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 2px;
}

.reg-player__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.6rem;
}

.reg-player__grid--team {
  grid-template-columns: 1.2fr 1fr !important;
  align-items: center;
}

.reg-player__file-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.reg-player__file-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 0;
}

.reg-player__file {
  width: 100%;
  font-size: 0.8rem !important;
  border: 1.5px dashed var(--line) !important;
  border-radius: 8px;
  padding: 0.45rem 0.6rem !important;
  background: var(--white) !important;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.reg-player__file:hover {
  border-color: var(--gold) !important;
  background: color-mix(in srgb, var(--gold) 4%, var(--white)) !important;
}

.reg-player__file.is-invalid {
  border-color: #C0392B !important;
  background: rgba(192, 57, 43, 0.02) !important;
}

.reg-player__file::file-selector-button {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: background 0.25s var(--ease);
}

.reg-player__file::file-selector-button:hover {
  background: var(--gold);
  color: var(--navy-deep);
}

.reg-player__grid input,
.reg-player__grid select {
  width: 100%;
  font-size: 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  background: var(--white);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.reg-player__grid input:focus,
.reg-player__grid select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 160, 32, 0.15);
}

.reg-player__grid input.is-invalid {
  border-color: #C0392B;
}

.reg-player__name {
  grid-column: 1 / -1;
}

.reg-player__grid--team .reg-player__name {
  grid-column: span 1 !important;
}

.reg-player__kontrak {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.reg-player__kontrak input {
  width: auto;
}

.reg-player__remove {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #C0392B;
  background: rgba(192, 57, 43, 0.08);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.reg-player__remove:hover {
  background: rgba(192, 57, 43, 0.16);
  transform: scale(1.05);
}

.reg-player__remove svg {
  width: 17px;
  height: 17px;
}

.reg-add-player {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--crimson);
  border: 1.5px dashed color-mix(in srgb, var(--crimson) 45%, var(--line));
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.05rem;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.reg-add-player:hover {
  background: color-mix(in srgb, var(--crimson) 7%, transparent);
  border-color: var(--crimson);
}

.reg-add-player svg {
  width: 17px;
  height: 17px;
}

.reg-add-player[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* =========================================================================
   7. PAYMENT (step 4 — Manual BNI Transfer)
   ========================================================================= */
.manual-transfer-card {
  background: radial-gradient(circle at 100% 0%, rgba(232, 160, 32, 0.07) 0%, transparent 60%),
    linear-gradient(135deg, #0e1d33 0%, #060d1b 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px rgba(6, 13, 27, 0.25);
  border: 1px solid rgba(232, 160, 32, 0.18);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.manual-transfer-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(232, 160, 32, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.manual-transfer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(6, 13, 27, 0.35);
  border-color: rgba(232, 160, 32, 0.35);
}

.manual-transfer-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.9rem;
  margin-bottom: 1.3rem;
}

.bank-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bank-badge {
  background: #ff5e00;
  color: var(--white);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  letter-spacing: 0.05em;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(255, 94, 0, 0.25);
}

.bank-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.02em;
}

.manual-transfer-card__header i {
  color: var(--gold-light);
  width: 22px;
  height: 22px;
  opacity: 0.85;
}

.manual-transfer-card__body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 576px) {
  .manual-transfer-card__body {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

.transfer-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.transfer-field label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
}

.transfer-field strong {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-display);
  font-weight: 600;
  margin-top: 0.1rem;
}

.copyable-field {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.1rem;
}

.copyable-field strong {
  font-size: 1.45rem;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  padding: 0 0.75rem;
  height: 30px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  box-sizing: border-box;
  line-height: 1;
}

.btn-copy:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 10px rgba(232, 160, 32, 0.2);
  transform: translateY(-1px);
}

.btn-copy:active {
  transform: translateY(0);
}

.btn-copy i {
  width: 12px;
  height: 12px;
}

.btn-copy.is-copied {
  background: #0A7055 !important;
  border-color: #0A7055 !important;
  color: var(--white) !important;
  box-shadow: 0 4px 12px rgba(10, 112, 85, 0.3) !important;
  transform: scale(1.05) !important;
}

.payment-flexibility-note {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--gold) 6%, var(--white));
  border: 1px solid color-mix(in srgb, var(--gold) 20%, var(--line));
  margin-bottom: 1.5rem;
}

.payment-flexibility-note i {
  flex: 0 0 auto;
  color: var(--gold);
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.payment-flexibility-note p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.45;
  margin: 0;
}

.reg-upload-proof {
  background: var(--bg-light);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  text-align: center;
  position: relative;
  transition: all 0.25s var(--ease);
  margin-bottom: 0.5rem;
}

.reg-upload-proof:hover,
.reg-upload-proof:focus-within {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 3%, var(--white));
}

.upload-proof-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.upload-proof-label i {
  color: var(--muted);
  width: 36px;
  height: 36px;
  transition: color 0.25s var(--ease);
}

.reg-upload-proof:hover .upload-proof-label i {
  color: var(--gold);
}

.upload-proof-label span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.upload-proof-label small {
  font-size: 0.78rem;
  color: var(--muted);
}

.upload-proof-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.upload-proof-preview {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.proof-file-name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: color-mix(in srgb, var(--gold) 15%, var(--white));
  border: 1px solid var(--gold);
  color: var(--navy);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(232, 160, 32, 0.1);
  animation: scaleIn 0.2s var(--ease) forwards;
}

.proof-file-name i {
  width: 16px;
  height: 16px;
  color: #0A7055;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.reg-pay-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem 1.5rem;
  align-items: center;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  margin-top: 1.2rem;
  margin-bottom: 1.6rem;
}

.reg-pay-summary>div {
  display: flex;
  flex-direction: column;
}

.reg-pay-summary span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.55);
}

.reg-pay-summary strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.reg-pay-summary .reg-pay-amount {
  color: var(--gold-light);
  font-size: 1.5rem;
  text-align: right;
}

/* =========================================================================
   8. REVIEW + AGREEMENT (step 5)
   ========================================================================= */
.reg-review {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.3rem;
}

.reg-review__group {
  border-bottom: 1px solid var(--line);
}

.reg-review__group:last-child {
  border-bottom: none;
}

.reg-review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.1rem;
  background: var(--offwhite);
}

.reg-review__head h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
}

.reg-review__edit {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--crimson);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.reg-review__edit svg {
  width: 14px;
  height: 14px;
}

.reg-review__rows {
  padding: 0.6rem 1.1rem 1rem;
}

.reg-review__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.32rem 0;
  font-size: 0.92rem;
}

.reg-review__row span {
  color: var(--muted);
}

.reg-review__row strong {
  color: var(--navy);
  font-weight: 600;
  text-align: right;
}

.reg-review__players {
  margin-top: 0.4rem;
}

.reg-review__player {
  display: flex;
  gap: 0.5rem;
  font-size: 0.88rem;
  padding: 0.25rem 0;
  border-top: 1px dashed var(--line);
}

.reg-review__player b {
  color: var(--navy);
  font-weight: 600;
}

.reg-review__player .tag {
  font-size: 0.7rem;
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  color: #9a6a00;
  border-radius: 5px;
  padding: 0 0.4rem;
  align-self: center;
}

.reg-agree {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--offwhite);
  border: 1px solid var(--line);
  cursor: pointer;
}

.reg-agree input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--gold);
}

.reg-agree span {
  font-size: 0.9rem;
  color: var(--text);
}

/* =========================================================================
   9. ACTIONS + BUTTONS
   ========================================================================= */
.reg-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.9rem;
}

/* Ghost button variant (page-local; registration.css only loads here) */
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
}

.btn--ghost:hover {
  background: var(--offwhite);
  border-color: var(--muted);
}

.reg-submit {
  position: relative;
}

.reg-submit.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.reg-submit.is-loading .reg-submit__label {
  opacity: 0.4;
}

.reg-submit__spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(11, 29, 58, 0.25);
  border-top-color: var(--navy-deep);
  border-radius: 50%;
  opacity: 0;
}

.reg-submit.is-loading .reg-submit__spinner {
  opacity: 1;
  animation: regSpin 0.7s linear infinite;
}

@keyframes regSpin {
  to {
    transform: rotate(360deg);
  }
}

.reg-form-error {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.25);
  color: #962a20;
  font-size: 0.9rem;
  display: none;
}

.reg-form-error.is-visible {
  display: block;
  animation: regStepIn 0.3s var(--ease) both;
}

.reg-noscript {
  margin-top: 1.2rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--gold) 12%, var(--white));
  border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line));
  font-size: 0.9rem;
}

/* =========================================================================
   10. SUCCESS PANEL
   ========================================================================= */
.reg-done {
  text-align: center;
  padding: 1rem 0;
}

.reg-done__check {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 0 0 8px rgba(10, 112, 85, 0.12);
  animation: regPop 0.55s var(--ease) both;
}

.reg-done__check svg {
  width: 42px;
  height: 42px;
  stroke-width: 3;
}

@keyframes regPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  60% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.reg-done__title {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  color: var(--navy);
}

.reg-done__lead {
  color: var(--muted);
  max-width: 48ch;
  margin: 0.6rem auto 1.6rem;
}

.reg-done__code {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1rem 2.4rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  margin-bottom: 1.6rem;
}

.reg-done__code span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
}

.reg-done__code strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  color: var(--gold-light);
}

.reg-done__pay {
  max-width: 460px;
  margin: 0 auto 1.6rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.reg-done__pay-head {
  padding: 0.7rem 1.1rem;
  background: var(--offwhite);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reg-done__pay-head svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.reg-done__pay-body {
  padding: 0.9rem 1.1rem;
}

.reg-done__pay-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
  font-size: 0.92rem;
}

.reg-done__pay-row span {
  color: var(--muted);
}

.reg-done__pay-row strong {
  color: var(--navy);
}

.reg-done__pay-card {
  margin-top: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--navy-deep);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.reg-done__pay-card-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.reg-done__pay-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.reg-done__pay-card-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  gap: 1rem;
}

.reg-done__pay-card-row span {
  color: rgba(255, 255, 255, 0.6);
}

.reg-done__pay-card-row strong {
  color: var(--white);
}

.reg-done__pay-card-row strong.pay-acc {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.reg-done__pay-note {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}

.reg-done__pay-note svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.reg-done__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

/* =========================================================================
   11. FAQ + HELP
   ========================================================================= */
.reg-faq-section {
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.reg-help__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(120deg, var(--navy), var(--navy-light));
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.5vw, 2.4rem) clamp(1.6rem, 4vw, 2.8rem);
  color: #fff;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* ---- Left column: icon + text ---- */
.reg-help__left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.reg-help__icon {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(232, 160, 32, 0.14);
  border: 1px solid rgba(232, 160, 32, 0.22);
  color: var(--gold-light);
}

.reg-help__icon svg {
  width: 26px;
  height: 26px;
}

.reg-help__text h3 {
  font-size: 1.15rem;
  font-family: var(--font-display);
  color: #fff;
  margin: 0;
}

.reg-help__text p {
  color: rgba(255, 255, 255, 0.62);
  margin-top: 0.35rem;
  font-size: 0.9rem;
  max-width: 42ch;
  line-height: 1.55;
}

/* ---- Right column: contact buttons ---- */
.reg-help__contacts {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.reg-help__contact-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  text-decoration: none;
  color: #fff;
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease), transform 0.28s var(--ease);
  min-width: 190px;
}

.reg-help__contact-btn:hover {
  background: rgba(232, 160, 32, 0.14);
  border-color: rgba(232, 160, 32, 0.38);
  transform: translateY(-2px);
}

.reg-help__contact-btn-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(232, 160, 32, 0.15);
  border-radius: 10px;
  color: var(--gold-light);
}

.reg-help__contact-btn-icon svg {
  width: 18px;
  height: 18px;
}

.reg-help__contact-btn-body {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.reg-help__contact-btn-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-family: var(--font-display);
}

.reg-help__contact-btn-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reg-help__contact-btn-phone {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

/* =========================================================================
   12. RESPONSIVE
   ========================================================================= */

/* Tablet — 2 kolom */
@media (max-width: 960px) {
  .reg-choice-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 900px) {
  .reg-help__card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .reg-help__contacts {
    width: 100%;
  }

  .reg-help__contact-btn {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 760px) {

  .reg-grid--2,
  .reg-grid--3 {
    grid-template-columns: 1fr;
  }

  .reg-steps {
    gap: 0.1rem;
  }

  .reg-step-dot b {
    font-size: 0.62rem;
  }

  .reg-step-dot span {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }

  .reg-steps::before {
    top: 14px;
  }

  /* Category choice — 1 kolom penuh di mobile */
  .reg-choice-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .reg-choice {
    grid-template-columns: 40px 1fr;
    column-gap: 0.75rem;
    row-gap: 0.5rem;
    padding: 0.85rem 1rem;
  }

  .reg-choice__check {
    top: 0.85rem;
    right: 1rem;
  }

  .reg-choice__mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .reg-choice__mark svg {
    width: 20px;
    height: 20px;
  }

  .reg-choice__name {
    font-size: 0.93rem;
  }

  .reg-choice__fee {
    font-size: 0.82rem;
  }

  .reg-choice__players {
    font-size: 0.75rem;
  }

  .reg-player {
    grid-template-columns: 28px 1fr;
  }

  .reg-player__grid {
    grid-template-columns: 1fr;
  }

  .reg-player__remove {
    grid-column: 2;
    justify-self: end;
  }

  .reg-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .reg-actions .btn {
    justify-content: center;
  }

  .reg-help__contacts {
    flex-direction: column;
  }

  .reg-help__contact-btn {
    min-width: unset;
  }
}

@media (max-width: 480px) {
  .reg-step-dot b {
    display: none;
  }

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

  .reg-pay-summary .reg-pay-amount {
    text-align: left;
  }

  /* Masthead lebih kompak */
  .reg-facts {
    grid-template-columns: 1fr 1fr;
  }

  /* Form shell padding lebih kecil */
  .reg-form-shell {
    padding: 1.2rem 1rem;
  }

  /* Choice card: ikon lebih kecil, sesuaikan kolom */
  .reg-choice {
    grid-template-columns: 36px 1fr;
    column-gap: 0.65rem;
    row-gap: 0.4rem;
    padding: 0.8rem 0.9rem;
  }

  .reg-choice__check {
    width: 20px;
    height: 20px;
    top: 0.8rem;
    right: 0.9rem;
  }

  .reg-choice__mark {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .reg-choice__mark svg {
    width: 18px;
    height: 18px;
  }



  .reg-choice__check svg {
    width: 11px;
    height: 11px;
  }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {

  .reg-step.is-active,
  .reg-junior,
  .reg-player,
  .reg-done__check,
  .reg-form-error.is-visible {
    animation: none;
  }

  .reg-fact,
  .reg-choice,
  .reg-pay-option__box {
    transition: none;
  }
}

/* Junior Player Grid Customizations */
.reg-player__grid--junior {
  grid-template-columns: 1fr 1fr !important;
}

.reg-player__grid--junior .reg-player__name,
.reg-player__grid--junior .reg-player__region,
.reg-player__grid--junior .reg-player__file-wrapper {
  grid-column: 1 / -1;
}

/* Inline Editing Styles inside review */
.reg-review__group.is-editing {
  background: rgba(248, 249, 250, 0.4);
}

.reg-review__field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.85rem;
}

.reg-review__field:last-child {
  margin-bottom: 0;
}

.reg-review__field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.reg-review__input,
.reg-review__select,
.reg-review__textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.reg-review__input:focus,
.reg-review__select:focus,
.reg-review__textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 160, 32, 0.12);
}

.reg-review__input.is-invalid,
.reg-review__select.is-invalid,
.reg-review__textarea.is-invalid,
.reg-review__file.is-invalid {
  border-color: var(--crimson);
}

.reg-review__field-error {
  color: var(--crimson);
  font-size: 0.78rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

.reg-review__error-msg {
  color: var(--crimson);
  font-size: 0.85rem;
  padding: 0.5rem 0.8rem;
  background: rgba(220, 53, 69, 0.08);
  border-left: 3px solid var(--crimson);
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
  font-weight: 500;
}

.reg-review__actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.reg-review__edit-sub {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 0.6rem;
  padding: 0.8rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.02);
}

.reg-review__player-edit-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.reg-review__player-edit-card:last-of-type {
  margin-bottom: 0;
}

.reg-review__player-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--offwhite);
}

.reg-review__player-edit-header span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
}

.reg-review__player-remove {
  font-size: 0.76rem;
  color: var(--crimson);
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.reg-review__player-remove:hover {
  opacity: 0.85;
}

.reg-review__player-remove svg {
  width: 13px;
  height: 13px;
}

.reg-review__file-info {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--offwhite);
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  margin-bottom: 0.4rem;
  word-break: break-all;
}

.reg-review__file-info svg {
  width: 14px;
  height: 14px;
  color: var(--green);
  flex-shrink: 0;
}

.reg-review__file {
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.reg-review__player-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

@media (max-width: 600px) {
  .reg-review__player-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .reg-review__edit-sub {
    grid-template-columns: 1fr;
  }
}