/* ═══════════════════════════════════════════════════════════════════════
   MDYD Youth Registration Form
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --reg-bg:       #050507;
  --reg-panel:    rgba(255,255,255,.045);
  --reg-line:     rgba(255,255,255,.16);
  --reg-muted:    #c7c6d2;
  --reg-yellow:   #ffe100;
  --reg-pink:     #e9008a;
  --reg-cyan:     #00d8ff;
  --reg-error:    #ff4d6d;
  --reg-input-bg: rgba(0,0,0,.45);
  --reg-display:  Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  --reg-body:     Arial, Helvetica, sans-serif;
  --reg-trans:    .18s ease;
}

/* ── Wrapper ───────────────────────────────────────────────────────────────── */
.mdyd-reg-wrap {
  font-family: var(--reg-body);
  color: #fff;
  max-width: 720px;
  margin: 0 auto;
}

/* ── Form ──────────────────────────────────────────────────────────────────── */
.reg-form {
  border: 1px solid var(--reg-line);
  background: var(--reg-panel);
  padding: 40px 44px 36px;
  position: relative;
}

/* Corner accents */
.reg-form::before,
.reg-form::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  pointer-events: none;
}
.reg-form::before { top:-1px; left:-1px; border-top:3px solid var(--reg-yellow); border-left:3px solid var(--reg-yellow); }
.reg-form::after  { bottom:-1px; right:-1px; border-bottom:3px solid var(--reg-pink); border-right:3px solid var(--reg-pink); }

/* ── Sections ──────────────────────────────────────────────────────────────── */
.reg-section {
  margin-bottom: 0;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--reg-line);
  margin-bottom: 28px;
}
.reg-section:last-of-type { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

/* ── Fields ────────────────────────────────────────────────────────────────── */
.reg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.reg-field:last-child { margin-bottom: 0; }

.reg-field label {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--reg-muted);
}
.reg-req { color: var(--reg-pink); margin-left: 2px; }

.reg-field input[type="text"],
.reg-field input[type="tel"],
.reg-field input[type="date"] {
  background: var(--reg-input-bg);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-family: var(--reg-body);
  font-size: .96rem;
  padding: 12px 14px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color var(--reg-trans), box-shadow var(--reg-trans);
}
.reg-field input::placeholder { color: rgba(199,198,210,.3); }
.reg-field input:focus {
  border-color: var(--reg-cyan);
  box-shadow: 0 0 0 3px rgba(0,216,255,.1);
}
.reg-field input.is-error {
  border-color: var(--reg-error) !important;
  box-shadow: 0 0 0 3px rgba(255,77,109,.1) !important;
}
.reg-field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); cursor: pointer; }

/* ── Errors ─────────────────────────────────────────────────────────────────── */
.reg-error {
  font-size: .8rem;
  color: var(--reg-error);
  min-height: 1em;
  display: block;
}
.reg-error:empty { display: none; }
.reg-error--locations { display: block; margin-top: 4px; margin-bottom: 10px; }

/* ── Location checkboxes ─────────────────────────────────────────────────────── */
.reg-locations-label {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--reg-muted);
  margin: 0 0 14px;
}

.reg-locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.reg-location-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 12px 14px;
  border: 1px solid var(--reg-line);
  background: rgba(0,0,0,.22);
  transition: border-color var(--reg-trans), background var(--reg-trans);
  font-size: .86rem;
  color: var(--reg-muted);
  line-height: 1.45;
}
.reg-location-check:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.04); }
.reg-location-check.is-checked { border-color: rgba(0,216,255,.45); background: rgba(0,216,255,.06); color: #fff; }
.reg-location-check.is-error-state { border-color: var(--reg-error) !important; }

.reg-location-check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--reg-yellow);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Consent inline fillable line ───────────────────────────────────────────── */
.reg-consent-inline-line {
  font-size: .86rem;
  color: var(--reg-muted);
  line-height: 1.9;
  margin: 0 0 14px;
  display: block;
}
.reg-consent-inline-field-wrap {
  display: inline-block;
  vertical-align: middle;
  width: clamp(180px, 46%, 380px);
  margin: 0 4px;
  position: relative;
}
.reg-consent-inline-input {
  width: 100%;
  box-sizing: border-box;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid rgba(255,255,255,.4) !important;
  border-radius: 0 !important;
  color: #fff !important;
  font-family: var(--reg-body) !important;
  font-size: .86rem !important;
  padding: 2px 4px 4px !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color var(--reg-trans) !important;
  -webkit-appearance: none;
}
.reg-consent-inline-input::placeholder { color: rgba(199,198,210,.35); font-style: italic; }
.reg-consent-inline-input:focus { border-bottom-color: var(--reg-cyan) !important; }
.reg-consent-inline-input.is-error { border-bottom-color: var(--reg-error) !important; }

/* ── Consent block ─────────────────────────────────────────────────────────── */
.reg-section--consent p {
  font-size: .86rem;
  color: var(--reg-muted);
  line-height: 1.7;
  margin: 0 0 14px;
}
.reg-section--consent p:last-child { margin-bottom: 0; }
.reg-consent-important {
  color: #fff !important;
  font-weight: 700 !important;
}

/* ── Submit ──────────────────────────────────────────────────────────────────── */
.reg-submit-row {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--reg-line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.reg-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 40px;
  background: var(--reg-yellow);
  color: #050507;
  border: 2px solid var(--reg-yellow);
  font-family: var(--reg-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  box-shadow: 6px 6px 0 var(--reg-pink);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  min-height: 54px;
  min-width: 220px;
}
.reg-btn-submit:hover:not(:disabled) { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--reg-pink); }
.reg-btn-submit:disabled { opacity:.6; cursor:not-allowed; }
.reg-btn__spinner { display: flex; align-items: center; }

/* ── Alert ──────────────────────────────────────────────────────────────────── */
.reg-alert--error {
  background: rgba(255,77,109,.1);
  border: 1px solid var(--reg-error);
  border-left: 4px solid var(--reg-error);
  color: #fff;
  padding: 14px 18px;
  font-size: .9rem;
  line-height: 1.55;
  margin-top: 16px;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .reg-form { padding: 24px 18px 20px; }
  .reg-locations-grid { grid-template-columns: 1fr; }
  .reg-btn-submit { width: 100%; justify-content: center; }
}
