:root {
  --w: rgba(255, 255, 255, .92);
  --w75: rgba(255, 255, 255, .75);
  --w60: rgba(255, 255, 255, .60);
  --w45: rgba(255, 255, 255, .45);
  --w30: rgba(255, 255, 255, .30);

  --accent: rgba(0, 214, 177, .95);
  --fieldBorder: rgba(255, 255, 255, .14);
  --fieldBorderHover: rgba(255, 255, 255, .22);
  --fieldBorderFocus: rgba(0, 214, 177, .55);
}

/* PAGE BG */
.ncxiiPage {
  min-height: 100vh;
  background: url("../Podklady/BG.jpg") center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.ncxiiPage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(0, 0, 0, .55), rgba(0, 0, 0, .88));
  pointer-events: none;
}

.ncxiiWrap {
  position: relative;
  z-index: 1;
  width: min(1360px, calc(100% - 64px));
  margin: 0 auto;
  padding-top: 110px;
  padding-bottom: 26px;
  /* len čistý spacing, rezervu rieši global */

}

.ncxiiGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* LEFT - FORMULÁR */
.left {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 180px);
}

@media (min-width: 981px) {
  .formWrap {
    transform: translateX(36px);
  }
}

.formWrap {
  width: min(840px, 100%);
}

.formHead {
  text-align: center;
  margin-bottom: 18px;
}

.miniTag {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--w45);
  margin-bottom: 10px;
}

.formTitle {
  margin: 0;
  font-size: clamp(30px, 2.4vw, 42px);
  font-weight: 950;
  letter-spacing: .01em;
  color: var(--w);
}

.formSub {
  margin: 10px auto 0;
  max-width: 560px;
  color: var(--w75);
  line-height: 1.75;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.check-full {
  grid-column: span 2;
}

/* Full width for grid items */

.field label {
  display: block;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--w45);
  margin-bottom: 8px;
}

/* ✅ DÔLEŽITÉ: file input NEštýlovať ako normálny input */
.field input:not([type="file"]),
.field textarea {
  width: 100%;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
  border: 1px solid var(--fieldBorder);
  color: var(--w);
  padding: 14px 14px;
  outline: none;
  font-size: 15px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.field input:not([type="file"]):hover,
.field textarea:hover {
  border-color: var(--fieldBorderHover);
}

.field input:not([type="file"]):focus,
.field textarea:focus {
  border-color: var(--fieldBorderFocus);
  background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .24));
  box-shadow: 0 0 0 6px rgba(0, 214, 177, .06), 0 22px 80px rgba(0, 0, 0, .38);
}

.field textarea {
  height: 220px;
  resize: none;
  line-height: 1.9;
}

/* ==========================================
   NAHRÁVANIE FOTKY – + presne v strede
   ========================================== */
.photo-upload-container {
  position: relative;
}

.photo-upload-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  /* menšie pole */
  padding: 16px;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: all 0.22s ease;
}

.photo-upload-box:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 4px rgba(0, 214, 177, 0.08);
}

.photo-upload-box.active {
  border: 2px solid rgba(0, 214, 177, 0.52);
  background: rgba(0, 214, 177, 0.09);
  box-shadow: 0 0 0 6px rgba(0, 214, 177, 0.15);
}

.upload-empty-state,
.upload-filled-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
}

.upload-info {
  line-height: 1.3;
}

.upload-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--w);
  margin-bottom: 4px;
  margin-top: 17px;
}

.upload-subtitle {
  font-size: 12px;
  color: var(--w60);
}

.file-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 214, 177, 0.17);
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 214, 177, 0.38);
  margin-bottom: 12px;
}

.file-check {
  font-size: 26px;
  font-weight: bold;
  color: var(--accent);
}

.file-name-display {
  font-size: 14px;
  font-weight: 500;
  color: var(--w);
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.change-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.9;
  cursor: pointer;
}

.change-link:hover {
  opacity: 1;
}

/* checkbox */
.check {
  display: flex;
  gap: 10px;
  justify-content: center;
  color: var(--w75);
  line-height: 1.55;
}

.check input {
  margin-top: 2px;
  accent-color: var(--accent);
}

/* submit */
.submit {
  width: 100%;
  padding: 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  cursor: pointer;

  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  color: var(--w);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  font-weight: 950;
  letter-spacing: .22em;
  text-transform: uppercase;

  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.submit:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 214, 177, .25);
  box-shadow: 0 26px 90px rgba(0, 0, 0, .32);
}

.arr {
  width: 16px;
  height: 16px;
  border-right: 2px solid rgba(255, 255, 255, .86);
  border-bottom: 2px solid rgba(255, 255, 255, .86);
  transform: rotate(-45deg);
}

/* message */
.formMsg {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .18);
  color: rgba(255, 255, 255, .75);
  display: none;
}

.formMsg--loading,
.formMsg--ok,
.formMsg--err {
  display: block;
}

.formMsg--ok {
  border-color: rgba(0, 214, 177, .28);
  color: rgba(220, 255, 248, .92);
  background: rgba(0, 214, 177, .08);
}

.formMsg--err {
  border-color: rgba(255, 0, 72, .22);
  color: rgba(255, 220, 228, .92);
  background: rgba(255, 0, 72, .08);
}

/* RIGHT */
.right {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(100vh - 180px);
}

.rightWrap {
  width: min(520px, 100%);
  transform: translateX(40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 36px;
  padding-top: 50px;
}

/* NCXII logo + dátum */
.hoverGroup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  user-select: none;
  margin-top: -10px;
  /* ← len kúsok nižšie */
}

.eventLogo {
  width: clamp(150px, 14vw, 190px);
  height: auto;
  transition: transform .18s ease, filter .18s ease;
}

.eventDate {
  width: clamp(150px, 13.6vw, 185px);
  height: auto;
  opacity: .95;
  transition: transform .18s ease, filter .18s ease;
}

.hoverGroup:hover .eventLogo,
.hoverGroup:hover .eventDate {
  transform: translateY(-2px) scale(1.045);
  filter: drop-shadow(0 18px 45px rgba(0, 0, 0, .70));
}

/* ME link */
.meLink {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  position: relative;
  user-select: none;
  z-index: 3;
  margin-top: -12px;
}

.meLogo {
  width: clamp(190px, 18vw, 235px);
  height: auto;
  transition: transform .18s ease, filter .18s ease;
}

.meHoverTxt {
  position: absolute;
  top: -44px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .30em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
  z-index: 5;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.meLink:hover .meLogo {
  transform: translateY(-2px) scale(1.045);
  filter: drop-shadow(0 18px 45px rgba(0, 0, 0, .70));
}

.meLink:hover .meHoverTxt {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* sponsors */
.sponsors {
  width: 100%;
  margin-top: -12px;
}

.sTitle {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--w30);
}

.sGrid {
  margin-top: 12px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}

.sItem {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  opacity: .82;
  transition: opacity .16s ease, transform .16s ease;
}

.sItem span {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

.sItem:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* MOBILE */
@media (max-width: 980px) {
  .ncxiiWrap {
    width: min(1200px, calc(100% - 34px));
    padding-top: 110px;
  }

  .ncxiiGrid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .left,
  .right {
    min-height: auto;
  }

  .rightWrap {
    transform: none;
    gap: 34px;
    padding-top: 0;
    margin-top: 0;
  }

  .grid2 {
    grid-template-columns: 1fr;
  }

  .check {
    justify-content: flex-start;
  }

  .sGrid {
    grid-template-columns: 1fr;
  }

  .hoverGroup {
    margin-top: 0;
  }

  .meLink,
  .sponsors {
    margin-top: 0;
  }
}

/* =========================================================
   HARD FIX: zabiť default file input úplne (žiadne 2 políčka)
   Daj toto NA ÚPLNÝ KONIEC súboru.
   ========================================================= */
.photo-upload-container input[type="file"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
}

.field input[type="file"] {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  height: 1px !important;
}