/* ============================================================
   APPC Team Registrations — Frontend Styles
   Version: 1.0.0
   ============================================================ */

/* ============================================================
   0. Custom Properties
   ============================================================ */
:root {
  --appc-purple:          #6C3EB8;
  --appc-purple-dark:     #5a33a0;
  --appc-purple-mid:      #8a5cc5;
  --appc-purple-soft:     rgba(108, 62, 184, 0.07);
  --appc-purple-border:   #e6ddff;
  --appc-purple-border2:  #d4c8f5;

  --appc-text:            #2b2440;
  --appc-text-muted:      #7a6d8a;
  --appc-text-light:      #a899ba;

  --appc-bg:              #faf8ff;
  --appc-white:           #ffffff;
  --appc-border:          #efe9ff;
  --appc-border-dark:     #d8cfef;

  --appc-success:         #16a34a;
  --appc-success-bg:      #f0fdf4;
  --appc-success-border:  #86efac;

  --appc-error:           #dc2626;
  --appc-error-bg:        #fef2f2;
  --appc-error-border:    #fca5a5;

  --appc-r-xs:            6px;
  --appc-r-sm:            8px;
  --appc-r:               12px;
  --appc-r-lg:            16px;
  --appc-r-xl:            24px;

  --appc-shadow-sm:       0 2px 8px rgba(108, 62, 184, 0.06);
  --appc-shadow:          0 4px 24px rgba(108, 62, 184, 0.10);
  --appc-shadow-md:       0 8px 40px rgba(108, 62, 184, 0.15);

  --appc-ease:            0.2s ease;
}


/* ============================================================
   1. Wrapper & Reset
   ============================================================ */

.appc-reg-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
               Ubuntu, sans-serif;
  color: var(--appc-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.appc-reg-wrap *,
.appc-reg-wrap *::before,
.appc-reg-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.appc-reg-wrap a {
  color: var(--appc-purple);
  text-decoration: none;
}


/* ============================================================
   2. Success Screen
   ============================================================ */

.appc-success-screen {
  text-align: center;
  padding: 64px 32px;
  background: var(--appc-white);
  border: 1.5px solid var(--appc-success-border);
  border-radius: var(--appc-r-xl);
  box-shadow: var(--appc-shadow-md);
}

.appc-success-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 24px;
  color: var(--appc-success);
}

.appc-success-icon svg {
  width: 100%;
  height: 100%;
}

.appc-success-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--appc-text);
  margin-bottom: 12px;
  line-height: 1.25;
}

.appc-success-msg {
  font-size: 1rem;
  color: var(--appc-text-muted);
  line-height: 1.65;
  max-width: 440px;
  margin: 0 auto;
}


/* ============================================================
   3. Error Banner
   ============================================================ */

.appc-error-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  background: var(--appc-error-bg);
  border: 1.5px solid var(--appc-error-border);
  border-radius: var(--appc-r);
  color: #991b1b;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 20px;
}

.appc-error-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--appc-error);
}


/* ============================================================
   4. Stepper
   ============================================================ */

.appc-stepper {
  display: flex;
  align-items: center;
  padding: 20px 28px 18px;
  background: var(--appc-white);
  border: 1.5px solid var(--appc-purple-border);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}

.appc-stepper::-webkit-scrollbar { display: none; }

/* Each step node */
.appc-stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Numbered circle */
.appc-stepper-circle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--appc-border-dark);
  background: var(--appc-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--appc-ease), background var(--appc-ease),
              box-shadow var(--appc-ease);
}

.appc-stepper-num,
.appc-stepper-check {
  position: absolute;
  transition: opacity var(--appc-ease), transform var(--appc-ease);
}

.appc-stepper-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--appc-text-light);
  letter-spacing: 0.03em;
}

.appc-stepper-check {
  opacity: 0;
  transform: scale(0.4);
}

.appc-stepper-check svg {
  width: 14px;
  height: 14px;
  stroke: var(--appc-white);
  display: block;
  color: white;
}

/* Step label */
.appc-stepper-label {
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--appc-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: color var(--appc-ease);
}

/* Connector line */
.appc-stepper-line {
  flex: 1;
  min-width: 24px;
  height: 2px;
  background: var(--appc-border);
  border-radius: 2px;
  margin-bottom: 26px; /* vertically align with circle center */
  overflow: hidden;
  transition: background var(--appc-ease);
}

.appc-stepper-line.is-filled {
  background: var(--appc-purple);
}

/* --- Active state --- */
.appc-stepper-item.is-active .appc-stepper-circle {
  border-color: var(--appc-purple);
  background: var(--appc-purple-soft);
  box-shadow: 0 0 0 4px rgba(108, 62, 184, 0.1);
}

.appc-stepper-item.is-active .appc-stepper-num {
  color: var(--appc-purple);
}

.appc-stepper-item.is-active .appc-stepper-label {
  color: var(--appc-purple);
}

/* --- Completed state --- */
.appc-stepper-item.is-completed .appc-stepper-circle {
  border-color: var(--appc-purple);
  background: var(--appc-purple);
}

.appc-stepper-item.is-completed .appc-stepper-num {
  opacity: 0;
  transform: scale(0.4);
}

.appc-stepper-item.is-completed .appc-stepper-check {
  opacity: 1;
  transform: scale(1);
}

.appc-stepper-item.is-completed .appc-stepper-label {
  color: var(--appc-purple);
}


/* ============================================================
   5. Form Card & Step Panels
   ============================================================ */

.appc-form {
  background: var(--appc-white);
  border: 1.5px solid var(--appc-purple-border);
  border-top: none;
  border-radius: 0 0 24px 24px;
  box-shadow: var(--appc-shadow);
}

/* All steps hidden */
.appc-step {
  display: none;
  padding: 36px 32px 32px;
}

/* Shown step */
.appc-step.is-active {
  display: block;
  animation: appcSlideIn 0.28s ease forwards;
}

@keyframes appcSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* Step header */
.appc-step-header {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1.5px solid var(--appc-border);
}

.appc-step-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--appc-purple);
  background: var(--appc-purple-soft);
  border: 1px solid var(--appc-purple-border);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.appc-step-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: var(--appc-purple);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.appc-step-desc {
  font-size: 0.88rem;
  color: var(--appc-text-muted);
  line-height: 1.55;
  margin-bottom: auto !important;
}

/* Two-column grid for form fields */
.appc-step-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-bottom: 32px;
}

/* Span full width */
.appc-field-full {
  grid-column: 1 / -1;
}

/* Players use a flex column */
.appc-players-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}


/* ============================================================
   6. Field Group, Label, Hint
   ============================================================ */

.appc-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.appc-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--appc-text);
  line-height: 1.3;
}

.appc-required {
  color: var(--appc-error);
  font-size: 0.8em;
  line-height: 1;
}

.appc-hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--appc-text-light);
  margin-left: auto;
}

.appc-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}


/* ============================================================
   7. Inputs & Select
   ============================================================ */

.appc-input,
.appc-select {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--appc-text);
  background: var(--appc-white);
  border: 1.5px solid var(--appc-border-dark);
  border-radius: 14px;
  outline: none;
  transition: border-color var(--appc-ease), box-shadow var(--appc-ease),
              background var(--appc-ease);
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.4;
  height: auto;
}

.appc-input::placeholder {
  color: var(--appc-text-light);
  font-weight: 400;
}

.appc-input:hover,
.appc-select:hover {
  border-color: var(--appc-purple-mid);
}

.appc-input:focus,
.appc-select:focus {
  border-color: var(--appc-purple);
  box-shadow: 0 0 0 3.5px rgba(108, 62, 184, 0.13);
  background: var(--appc-white);
}

/* Error state */
.appc-input.has-error,
.appc-select.has-error {
  border-color: var(--appc-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10);
}

/* Field-level error message */
.appc-field-error {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--appc-error);
  line-height: 1.4;
  margin-top: 1px;
}

.appc-field-error::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  background: var(--appc-error);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  border-radius: 50%;
}

/* Select wrapper with custom arrow */
.appc-select-wrap {
  position: relative;
}

.appc-select-wrap .appc-select {
  padding-right: 38px;
  cursor: pointer;
}

.appc-select-arrow {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--appc-text-muted);
  display: flex;
}

.appc-select-arrow svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
}


/* ============================================================
   8. Radio Cards — Team Type
   ============================================================ */

.appc-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.appc-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.appc-radio-card {
  cursor: pointer;
  display: block;
}

/* Visually hidden native input */
.appc-radio-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.appc-radio-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  background: var(--appc-bg);
  border: 2px solid var(--appc-border-dark);
  border-radius: var(--appc-r-lg);
  transition: border-color var(--appc-ease), background var(--appc-ease),
              box-shadow var(--appc-ease);
}

/* Custom radio dot */
.appc-radio-indicator {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--appc-border-dark);
  position: relative;
  transition: border-color var(--appc-ease);
}

.appc-radio-indicator::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--appc-purple);
  opacity: 0;
  transform: scale(0.3);
  transition: opacity var(--appc-ease), transform var(--appc-ease);
}

.appc-radio-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--appc-text);
  line-height: 1.2;
}

.appc-radio-desc {
  display: block;
  font-size: 0.76rem;
  color: var(--appc-text-muted);
  margin-top: 2px;
  font-weight: 400;
}

/* Hover */
.appc-radio-card:hover .appc-radio-box {
  border-color: var(--appc-purple-mid);
  background: var(--appc-white);
}

/* Checked */
.appc-radio-input:checked ~ .appc-radio-box {
  border-color: var(--appc-purple);
  background: var(--appc-white);
  box-shadow: 0 0 0 3.5px rgba(108, 62, 184, 0.11);
}

.appc-radio-input:checked ~ .appc-radio-box .appc-radio-indicator {
  border-color: var(--appc-purple);
}

.appc-radio-input:checked ~ .appc-radio-box .appc-radio-indicator::after {
  opacity: 1;
  transform: scale(1);
}

/* Focus-visible ring */
.appc-radio-input:focus-visible ~ .appc-radio-box {
  outline: 2.5px solid var(--appc-purple);
  outline-offset: 2px;
}

/* Error */
.appc-fieldset.has-error .appc-radio-box {
  border-color: var(--appc-error-border);
}


/* ============================================================
   9. Fee Card
   ============================================================ */

.appc-fee-card {
  padding: 18px 22px;
  background: linear-gradient(
    135deg,
    rgba(108, 62, 184, 0.07) 0%,
    rgba(108, 62, 184, 0.03) 100%
  );
  border: 1.5px solid var(--appc-purple-border);
  border-radius: var(--appc-r-lg);
}

.appc-fee-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.appc-fee-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--appc-text-muted);
}

.appc-fee-value {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.appc-fee-currency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--appc-purple);
}

.appc-fee-amount {
  font-size: 2rem;
  font-weight: 900;
  color: var(--appc-purple);
  line-height: 1;
  letter-spacing: -0.02em;
}

.appc-fee-unit {
  font-size: 0.82rem;
  color: var(--appc-text-muted);
  font-weight: 500;
}

.appc-fee-note {
  font-size: 0.78rem;
  color: var(--appc-text-muted);
  line-height: 1.55;
}


/* ============================================================
   10. Player Rows
   ============================================================ */

.appc-player-row {
  background: var(--appc-bg);
  border: 1.5px solid var(--appc-border);
  border-radius: var(--appc-r-lg);
  overflow: hidden;
  transition: border-color var(--appc-ease), box-shadow var(--appc-ease);
}

.appc-player-row:hover {
  border-color: var(--appc-purple-border2);
  box-shadow: var(--appc-shadow-sm);
}

.appc-player-row-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--appc-white);
  border-bottom: 1.5px solid var(--appc-border);
}

.appc-player-index {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--appc-purple);
  color: var(--appc-white);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.appc-player-row.is-optional .appc-player-index {
  background: var(--appc-border-dark);
  color: var(--appc-text-muted);
}

.appc-player-row-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--appc-text);
  flex: 1;
}

.appc-optional-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--appc-text-muted);
  background: var(--appc-border);
  padding: 2px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Two columns inside player row */
.appc-player-row-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
}


/* ============================================================
   11. File Upload Area
   ============================================================ */

.appc-upload-area {
  position: relative;
}

/* Visually hidden native input */
.appc-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

/* Clickable drop-zone */
.appc-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 108px;
  padding: 20px 16px;
  background: var(--appc-white);
  border: 2px dashed var(--appc-border-dark);
  border-radius: var(--appc-r);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--appc-ease), background var(--appc-ease);
}

.appc-upload-zone:hover {
  border-color: var(--appc-purple);
  background: var(--appc-purple-soft);
}

.appc-upload-icon {
  color: var(--appc-purple-mid);
  opacity: 0.75;
  transition: opacity var(--appc-ease);
}

.appc-upload-zone:hover .appc-upload-icon {
  opacity: 1;
}

.appc-upload-icon svg { display: block; }

.appc-upload-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--appc-purple);
}

.appc-upload-sub {
  font-size: 0.7rem;
  color: var(--appc-text-light);
}

/* File selected: hide zone, show preview */
.appc-upload-area.has-file .appc-upload-zone {
  display: none;
}

/* Preview container */
.appc-upload-preview {
  background: var(--appc-white);
  border: 1.5px solid var(--appc-purple-border);
  border-radius: var(--appc-r);
  overflow: hidden;
}

.appc-preview-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

.appc-preview-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--appc-r-sm);
  border: 1.5px solid var(--appc-border);
  flex-shrink: 0;
  background: var(--appc-bg);
}

.appc-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.appc-preview-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--appc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.appc-preview-size {
  font-size: 0.7rem;
  color: var(--appc-text-muted);
}

.appc-preview-change {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--appc-purple);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-top: 1px;
}

.appc-preview-change:hover {
  color: var(--appc-purple-dark);
}

/* Upload error state */
.appc-upload-area.has-error .appc-upload-zone {
  border-color: var(--appc-error-border);
  background: var(--appc-error-bg);
}

.appc-upload-area.has-error .appc-upload-icon {
  color: var(--appc-error);
  opacity: 0.8;
}

.appc-upload-area.has-error .appc-upload-cta {
  color: var(--appc-error);
}


/* ============================================================
   12. Review Summary — Step 5
   ============================================================ */

.appc-review-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.appc-review-section {
  background: var(--appc-bg);
  border: 1.5px solid var(--appc-border);
  border-radius: var(--appc-r-lg);
  overflow: hidden;
}

.appc-review-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--appc-purple);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 11px 16px;
  background: var(--appc-white);
  border-bottom: 1.5px solid var(--appc-border);
}

.appc-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.appc-review-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-right: 1px solid var(--appc-border);
  border-bottom: 1px solid var(--appc-border);
}

.appc-review-row:nth-child(even)       { border-right: none; }
.appc-review-row:nth-last-child(-n+2)  { border-bottom: none; }

/* Single-row layout when odd total */
.appc-review-row:only-child,
.appc-review-row:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: none;
  border-bottom: none;
}

.appc-review-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--appc-text-muted);
}

.appc-review-value {
  font-size: 0.91rem;
  font-weight: 600;
  color: var(--appc-text);
  word-break: break-word;
}

/* Players grid inside review section */
.appc-review-players {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
  padding: 12px 16px;
}

.appc-review-player {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--appc-white);
  border: 1.5px solid var(--appc-border);
  border-radius: var(--appc-r);
}

.appc-review-player-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--appc-purple);
  color: var(--appc-white);
  font-size: 0.68rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.appc-review-player-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.appc-review-player-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--appc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appc-review-player-file {
  font-size: 0.7rem;
  color: var(--appc-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ============================================================
   12b. Step 5 — single-column layout so confirm sits below review
   ============================================================ */

.appc-step[data-step="5"] .appc-step-body {
  grid-template-columns: 1fr;
}

/* ============================================================
   13. Confirmation Checkbox
   ============================================================ */

.appc-confirm-block {
  padding: 20px 22px;
  background: var(--appc-purple-soft);
  border: 1.5px solid var(--appc-purple-border);
  border-radius: 14px;
  transition: border-color var(--appc-ease), background var(--appc-ease);
}

.appc-confirm-block.has-error {
  background: var(--appc-error-bg);
  border-color: var(--appc-error-border);
}

.appc-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  cursor: pointer;
  user-select: none;
}

/* Hidden native input */
.appc-checkbox-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* Custom checkbox box */
.appc-checkbox-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: var(--appc-r-xs);
  border: 2px solid var(--appc-border-dark);
  background: var(--appc-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: border-color var(--appc-ease), background var(--appc-ease),
              box-shadow var(--appc-ease);
}

.appc-checkbox-box svg {
  width: 11px;
  height: 11px;
  stroke: var(--appc-white);
  opacity: 0;
  transform: scale(0.3);
  transition: opacity var(--appc-ease), transform var(--appc-ease);
}

.appc-checkbox-input:checked ~ .appc-checkbox-box {
  background: var(--appc-purple);
  border-color: var(--appc-purple);
  box-shadow: 0 0 0 3px rgba(108, 62, 184, 0.12);
}

.appc-checkbox-input:checked ~ .appc-checkbox-box svg {
  opacity: 1;
  transform: scale(1);
}

.appc-checkbox-input:focus-visible ~ .appc-checkbox-box {
  outline: 2.5px solid var(--appc-purple);
  outline-offset: 2px;
}

.appc-checkbox-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--appc-text);
  line-height: 1.6;
}


/* ============================================================
   14. Navigation Buttons
   ============================================================ */

.appc-step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1.5px solid var(--appc-border);
  margin-top: 4px;
}

.appc-step-nav--right {
  justify-content: flex-end;
}

/* Base button */
.appc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
  border-radius: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--appc-ease), border-color var(--appc-ease),
              box-shadow var(--appc-ease), opacity var(--appc-ease),
              transform var(--appc-ease), color var(--appc-ease);
}

.appc-btn:active { transform: translateY(1px); }

/* Primary — purple fill */
.appc-btn-primary {
  background: var(--appc-purple);
  color: var(--appc-white);
  border-color: var(--appc-purple);
}

.appc-btn-primary:hover {
  background: var(--appc-purple-dark);
  border-color: var(--appc-purple-dark);
  box-shadow: 0 4px 16px rgba(108, 62, 184, 0.36);
  color: var(--appc-white);
}

.appc-btn-primary:focus-visible {
  outline: 2.5px solid var(--appc-purple);
  outline-offset: 3px;
}

/* Ghost — outline */
.appc-btn-ghost {
  background: transparent;
  color: var(--appc-text-muted);
  border-color: var(--appc-border-dark);
}

.appc-btn-ghost:hover {
  border-color: var(--appc-purple-mid);
  color: var(--appc-purple);
  background: var(--appc-purple-soft);
}

.appc-btn-ghost:focus-visible {
  outline: 2.5px solid var(--appc-purple);
  outline-offset: 3px;
}

/* Submit gets full remaining width */
.appc-btn-submit {
  flex: 1;
  padding: 14px 28px;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
}

/* Arrow icon */
.appc-btn-icon {
  font-style: normal;
  font-size: 1em;
  line-height: 1;
}

/* Loading state */
.appc-btn.is-loading {
  opacity: 0.72;
  cursor: not-allowed;
  pointer-events: none;
}

.appc-btn.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: appcSpin 0.55s linear infinite;
  flex-shrink: 0;
}

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


/* ============================================================
   15. Responsive — Tablet (≤ 640px)
   ============================================================ */

@media (max-width: 640px) {

  .appc-stepper {
    padding: 18px 16px 14px;
  }

  .appc-stepper-label {
    display: none;
  }

  .appc-stepper-line {
    min-width: 14px;
    margin-bottom: 0;
  }

  .appc-step {
    padding: 24px 18px 22px;
  }

  .appc-step-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .appc-field-full {
    grid-column: 1;
  }

  .appc-radio-group {
    grid-template-columns: 1fr 1fr;
  }

  .appc-player-row-body {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .appc-review-grid {
    grid-template-columns: 1fr;
  }

  .appc-review-row {
    border-right: none;
  }

  .appc-review-row:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--appc-border);
  }

  .appc-review-row:last-child {
    border-bottom: none;
  }

  .appc-review-players {
    grid-template-columns: 1fr;
  }

  .appc-fee-inner {
    flex-direction: column;
    gap: 4px;
  }

  .appc-fee-amount {
    font-size: 1.6rem;
  }

  .appc-btn-submit {
    width: 100%;
  }

  .appc-step-nav {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .appc-step-nav--right {
    flex-direction: column;
  }

  .appc-btn-ghost {
    text-align: center;
    justify-content: center;
  }
}


/* ============================================================
   16. Responsive — Small phones (≤ 400px)
   ============================================================ */

@media (max-width: 400px) {

  .appc-step {
    padding: 20px 14px 18px;
  }

  .appc-step-title {
    font-size: 1.2rem;
  }

  .appc-stepper-circle {
    width: 34px;
    height: 34px;
  }

  .appc-stepper-num {
    font-size: 0.62rem;
  }

  .appc-radio-group {
    grid-template-columns: 1fr;
  }

  .appc-btn {
    padding: 11px 18px;
    font-size: 0.86rem;
  }

  .appc-success-screen {
    padding: 40px 18px;
  }

  .appc-success-title {
    font-size: 1.25rem;
  }
}
