: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(255, 55, 90, .60);
}

/* PAGE BG */
.ncxiiiPage {
  min-height: 100vh;
  background: url("../Podklady/BG.jpg") center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.ncxiiiPage::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;
}

.ncxiiiWrap {
  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 */
}

.ncxiiiGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* ✅ DESKTOP: vľavo brand/sponzori, vpravo form */
.brandCol { order: 1; }
.formCol  { order: 2; }

/* FORM */
.formCol{
  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; }

.field label {
  display: block;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--w45);
  margin-bottom: 8px;
}

/* ✅ file input neštýlovať ako normálny input */
.field input:not([type="file"]), .field textarea, .field select {
  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;
  appearance: none; /* Pre vlastný styling */
}
.field input:not([type="file"]):hover, .field textarea:hover, .field select:hover { border-color: var(--fieldBorderHover); }

.field input:not([type="file"]):focus, .field textarea:focus, .field select:focus {
  border-color: rgba(255, 55, 90, .45);
  background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.24));
  box-shadow:
    0 0 0 6px rgba(255, 55, 90, .06),
    0 22px 80px rgba(0,0,0,.38);
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.field select option {
  background: #1a1a1a;
  color: white;
}

.field textarea {
  height: 220px;
  resize: none;
  line-height: 1.9;
}

/* UPLOAD */
.photo-upload-container { position: relative; }

.photo-upload-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  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, 55, 90, .32);
  background: rgba(255, 55, 90, .045);
  box-shadow: 0 0 0 4px rgba(255, 55, 90, .06);
}

.photo-upload-box.active {
  border: 2px solid rgba(255, 55, 90, .52);
  background: rgba(255, 55, 90, .08);
  box-shadow: 0 0 0 6px rgba(255, 55, 90, .10);
}



.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-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: rgba(255, 55, 90, .95);
  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: rgba(255, 55, 90, .95);
}


/* 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(255, 55, 90, .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);
}

/* BRAND (vľavo) */
.brandCol{
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(100vh - 180px);
}

.brandWrap {
  width: min(520px, 100%);
  transform: translateX(-40px); /* vľavo jemne */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 36px;
  padding-top: 50px;
}

.brand-gap { height: 14px; }

/* logo + dátum */
.hoverGroup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  user-select: none;
  margin-top: -10px;
}

.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) {
  .ncxiiiWrap {
    width: min(1200px, calc(100% - 34px));
    padding-top: 110px;
  }

  .ncxiiiGrid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  /* na mobile idú pod seba; form je v DOM prvý -> bude prvý */
  .brandCol, .formCol { min-height: auto; }
  .brandWrap { 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: nikdy nezobrazovať default file input (2 políčka)
   ========================================================= */
.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;
}

@media (max-width: 980px) {
  .formCol  { order: 1; }
  .brandCol { order: 2; }
}


