/* ═══════════════════════════════════════════════════════════════════
   ALCYONE THEME - Magelan Configurator
   Dark modern aesthetic with orange gradient accents.
   Overrides/extends css/jquery-order-form.css
   Preserves all wizard functionality (fullpage.js, jPrice, ui-spinner)
═══════════════════════════════════════════════════════════════════ */

/* ── BASE ──────────────────────────────────────── */
* { box-sizing: border-box; font-family: 'Inter', sans-serif; line-height: 1.5em; }

body {
  background: #000 !important;
  color: #fff;
  font-size: 16px;
  overflow-x: hidden;
}

/* Kill the old animated orange wave */
body::before { display: none !important; }

::selection { background: #d97706; color: #000; }
:focus-visible { outline: 2px solid #f59e0b; outline-offset: 3px; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #09090b; }
::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #52525b; }

a { color: #f59e0b; transition: color .2s; }
a:hover { color: #fbbf24; }

/* ── ANIMATED BACKGROUND ──────────────────────── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(217,119,6,.10) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(234,179,8,.08) 0%, transparent 60%),
    #000;
  pointer-events: none;
}

/* ── LOGO ──────────────────────────────────────── */
.logo {
  position: fixed;
  top: 20px;
  left: 24px;
  z-index: 50;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.3));
}
.logo svg { width: 200px; }
.logo svg .st0, .logo svg .st2, .logo svg .st5, .logo svg .st6 { fill: #fff !important; }
.logo svg .st1, .logo svg .st3 {
  fill: url(#alcyoneGrad) !important;
}

/* ── SIDEBAR / TOTAL ───────────────────────────── */
.sidebar .total {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 50;
  background: rgba(24, 24, 27, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid #27272a;
  border-radius: 16px;
  padding: 14px 22px;
  text-align: right;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.sidebar .total h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar .total h3 span { font-weight: 800; }
.sidebar .total p {
  margin: 4px 0 0 0;
  font-size: 11px;
  color: #71717a;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sidebar .total p strong { color: #a1a1aa; font-weight: 600; }

/* ── SECTIONS (fullpage.js slides) ─────────────── */
.section { background: transparent !important; }
.section { max-width: 1200px; padding: 80px 24px 40px; margin: 0 auto; }

.section .title {
  margin-bottom: 0;
  padding: 0 0 1rem 0;
  text-align: center;
}
.section .title h2 {
  font-size: clamp(36px, 6vw, 64px);
  margin: 0;
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section .title h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  background: linear-gradient(to right, #d97706, #f59e0b);
  border-radius: 9999px;
  margin: 16px auto 0;
}

/* ── SEKTION CARD ─────────────────────────────── */
.sektion {
  background: linear-gradient(to bottom right, #18181b, rgba(24, 24, 27, 0.6));
  border: 1px solid #27272a;
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(245, 158, 11, 0.05);
  margin-bottom: 40px;
  z-index: 1;
}
.sektion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.4), transparent);
}

/* Description block inside section */
.sektion > .description {
  font-size: 14px;
  color: #a1a1aa;
  line-height: 1.65;
  padding: 1rem 1.25rem;
  background: rgba(9, 9, 11, 0.6);
  border-left: 3px solid #f59e0b;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

/* ── HERO SECTION (first slide) ────────────────── */
.sektion h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 1.5rem 0;
  background: linear-gradient(to right, #fff 40%, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sektion p {
  color: #a1a1aa;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 1rem 0;
}
.sektion p strong { color: #fff; font-weight: 600; }

/* ── IZBIRA (version selection cards) ──────────── */
.group-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin: 2rem 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.group-title:first-of-type { margin-top: 1rem; }
.izbira {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 1.5rem 0 2rem;
  padding: 0;
}
@media (max-width: 960px) { .izbira { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .izbira { grid-template-columns: 1fr; } }
.izbira li {
  display: block;
  list-style: none;
  margin: 0 !important;
}
.izbira li a.content {
  display: block;
  padding: 1.75rem;
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  transition: all .3s cubic-bezier(.16, 1, .3, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.izbira li a.content::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(217, 119, 6, 0.08), rgba(234, 179, 8, 0.04));
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.izbira li a.content:hover,
.izbira li.active a.content {
  border-color: rgba(245, 158, 11, 0.6);
  background: #09090b;
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(217, 119, 6, 0.15);
}
.izbira li a.content:hover::after,
.izbira li.active a.content::after { opacity: 1; }
.izbira li a.content h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 700;
  color: #f59e0b;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}
.izbira li a.content img {
  float: right;
  margin-left: 16px;
  max-width: 120px;
  border-radius: 8px;
  filter: brightness(0.9);
}
.izbira li a.content p {
  color: #a1a1aa;
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 8px 0;
  position: relative;
  z-index: 1;
}
.izbira li a.content strong {
  color: #fbbf24;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
}

/* ── POMOCNIK (helper section) ─────────────────── */
.pomocnik {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(9, 9, 11, 0.7);
  border: 1px solid #27272a;
  border-radius: 16px;
}
.pomocnik img {
  float: right;
  margin: 0 0 1rem 1.5rem;
  max-width: 140px;
  border-radius: 12px;
  border: 1px solid #27272a;
}
.pomocnik p {
  color: #a1a1aa;
  font-size: 13px;
  line-height: 1.65;
}
.pomocnik p strong { color: #f59e0b; font-weight: 600; }
.pomocnik p a { color: #fbbf24; }

/* ── ITEMS (checkbox/radio/number entries) ─────── */
.sektion .item {
  padding: 1.1rem 1rem;
  border-bottom: 1px solid #27272a;
  transition: background .2s;
  border-radius: 8px;
}
.sektion .item:last-child { border-bottom: none; }
.sektion .item:hover { background: rgba(245, 158, 11, 0.03); }

.sektion .item label {
  font-weight: 600;
  padding: 2px 0;
  color: #fff;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.sektion .item label span.oznaka {
  margin-left: 10px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  line-height: 20px;
  display: inline-block;
  font-weight: 600;
  padding: 0 8px;
  color: #000;
  background: linear-gradient(to right, #d97706, #ca8a04);
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sektion .item label .price-tag-wrapper {
  margin: 0 10px;
  color: #fbbf24;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.sektion .item label .price-tag-wrapper .price-tag {
  font-weight: 600;
  color: #f59e0b;
}

/* Number spinner */
.sektion input.i-spinner {
  width: 56px;
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  margin-right: 8px;
  text-align: center !important;
  background: #09090b;
  color: #f59e0b;
  border: 1px solid #27272a;
  border-radius: 6px;
  padding: 6px 4px;
  height: 32px;
}
.sektion input.i-spinner:focus {
  border-color: #f59e0b;
  outline: none;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

/* Item descriptions */
.sektion .description,
.sektion .short_description {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #a1a1aa;
  line-height: 1.7;
  padding: 0.75rem 0 0.25rem;
}
.sektion .description p { margin: 0 0 10px 0; color: #a1a1aa; }
.sektion .description ul { padding-left: 20px; }
.sektion .description ul li { list-style: disc; color: #a1a1aa; margin-bottom: 4px; }

.sektion .description .notice {
  position: relative;
  margin: 16px 0 0 0;
  background: rgba(245, 158, 11, 0.06);
  padding: 1em 1em 1em 2.2em;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  color: #fbbf24;
  font-size: 13px;
}
.sektion .description .notice:before {
  content: '!';
  position: absolute;
  top: 50%;
  margin-top: -14px;
  left: -14px;
  background: linear-gradient(to right, #d97706, #ca8a04);
  color: #000;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  text-align: center;
  line-height: 26px;
  font-size: 15px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

/* Badges (video link, details toggle) */
.sektion .youtube,
.sektion .pod {
  margin-top: 12px;
  margin-right: 8px;
  cursor: pointer;
  background: rgba(39, 39, 42, 0.8);
  color: #a1a1aa;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  display: inline-block;
  border-radius: 6px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #27272a;
  transition: all .2s;
}
.sektion .youtube:hover,
.sektion .pod:hover {
  border-color: rgba(245, 158, 11, 0.4);
  color: #f59e0b;
}
.sektion .youtube {
  background: linear-gradient(to right, #d97706, #ca8a04);
  color: #000 !important;
  border-color: transparent;
  font-weight: 600;
}
.sektion .youtube:hover {
  background: linear-gradient(to right, #f59e0b, #eab308);
  color: #000 !important;
  transform: translateY(-1px);
}

/* ── BUTTONS (Next / Naprej) ───────────────────── */
.btn {
  width: auto;
  min-width: 180px;
  min-height: 52px;
  padding: 0 2rem;
  border: 0;
  border-radius: 12px;
  color: #000 !important;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  background: linear-gradient(to right, #d97706, #ca8a04);
  cursor: pointer;
  overflow: hidden;
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0 0 0;
  float: right;
  text-decoration: none;
  position: relative;
  transition: all .25s cubic-bezier(.16, 1, .3, 1);
  letter-spacing: 0.02em;
  box-shadow: 0 0 32px rgba(217, 119, 6, 0.25);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #f59e0b, #eab308);
  border-radius: 12px;
  opacity: 0;
  transition: opacity .25s;
  z-index: 0;
}
.btn:hover::after { opacity: 1; }
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.4);
}
.btn .text, .btn .icon-container { position: relative; z-index: 2; }
.btn .icon-container {
  --icon-size: 20px;
  width: var(--icon-size);
  height: var(--icon-size);
  margin-left: 12px;
  transition: transform 500ms ease;
}
.btn .icon-container .icon {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--icon-size);
  height: var(--icon-size);
  transition: transform 500ms ease, opacity 250ms ease;
}
.btn .icon-container .icon svg { width: 100%; height: 100%; fill: #000; }
.btn .icon-container .icon--left { transform: translateX(-200%); opacity: 0; }
.btn:hover .icon-container { transform: translateX(125%); }
.btn:hover .icon-container .icon--left { transform: translateX(0); opacity: 1; }
.btn:hover .icon-container .icon--right { transform: translateX(200%); opacity: 0; }

/* ── ORDER FORM (final slide) ──────────────────── */
.order fieldset {
  margin: 1.5rem 0 0 0;
  border: 0;
  background: rgba(9, 9, 11, 0.7);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid #27272a;
}
.order ul { margin: 0; padding: 0; list-style: none; }
.order ul li {
  width: 49%;
  margin-right: 2%;
  float: left;
  margin-bottom: 1rem;
  list-style: none;
}
.order ul li:nth-child(2n) { margin-right: 0; }
.order ul li:nth-child(5) { width: 100%; margin: 0 0 1rem 0; }

.order fieldset label {
  display: block;
  margin: 10px 0 8px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #71717a;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.order fieldset label em { color: #f59e0b; font-style: normal; margin-left: 4px; }
.order fieldset input {
  background: #000;
  border: 1px solid #27272a;
  color: #fff;
  width: 100%;
  padding: 0 14px;
  height: 44px;
  line-height: 44px;
  font-size: 14px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  transition: all .2s;
}
.order fieldset input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
  background: #09090b;
}
.order fieldset select {
  background: #000;
  border: 1px solid #27272a;
  color: #fff;
  width: 100%;
  padding: 0 14px;
  height: 44px;
  font-size: 14px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
}

.order button.btn-large {
  cursor: pointer;
  width: 100%;
  margin: 1.5rem 0 0 0;
  background: linear-gradient(to right, #d97706, #ca8a04);
  color: #000;
  letter-spacing: 0.02em;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 16px;
  border: 0;
  padding: 0 20px;
  height: 56px;
  line-height: 56px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  transition: all .25s;
  box-shadow: 0 0 40px rgba(217, 119, 6, 0.35);
}
.order button.btn-large:hover {
  background: linear-gradient(to right, #f59e0b, #eab308);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(245, 158, 11, 0.5);
}

/* ── FOOTER INSIDE WIZARD ─────────────────────── */
.footer {
  clear: both;
  border-top: 1px solid #27272a;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 11px;
  color: #52525b;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}
.footer p { color: #52525b; margin-bottom: 0.5rem; }

/* ── CUSTOM CHECKBOX/RADIO ────────────────────── */
/* Hide native radio/checkbox inputs */
[type="checkbox"]:not(:checked),
[type="checkbox"]:checked,
[type="radio"]:not(:checked),
[type="radio"]:checked {
  position: absolute;
  left: -9999px;
}

/* Label gets left padding to make room for custom box */
[type="checkbox"]:not(:checked) + label,
[type="checkbox"]:checked + label,
[type="radio"]:not(:checked) + label,
[type="radio"]:checked + label {
  position: relative;
  padding-left: 2.2em;
  cursor: pointer;
  display: inline-block;
  min-height: 1.5em;
  line-height: 1.5em;
}

/* Pseudo-element box */
[type="checkbox"]:not(:checked) + label:before,
[type="checkbox"]:checked + label:before,
[type="radio"]:not(:checked) + label:before,
[type="radio"]:checked + label:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.3em;
  height: 1.3em;
  border: 2px solid #3f3f46;
  background: #09090b;
  border-radius: 6px;
  box-shadow: none;
  transition: all .2s;
}
[type="radio"]:not(:checked) + label:before,
[type="radio"]:checked + label:before { border-radius: 50%; }

[type="checkbox"]:checked + label:before,
[type="radio"]:checked + label:before {
  border-color: #f59e0b;
  background: linear-gradient(to right, #d97706, #ca8a04);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}

/* Checkmark */
[type="checkbox"]:not(:checked) + label:after,
[type="checkbox"]:checked + label:after {
  content: '\2713';
  position: absolute;
  top: 0;
  left: 0.3em;
  font-size: 1.1em;
  line-height: 1.5em;
  color: #000;
  font-weight: 900;
  transition: all .2s;
}
[type="checkbox"]:not(:checked) + label:after {
  opacity: 0;
  transform: scale(0);
}
[type="checkbox"]:checked + label:after {
  opacity: 1;
  transform: scale(1);
}

/* Radio dot */
[type="radio"]:not(:checked) + label:after,
[type="radio"]:checked + label:after {
  content: '';
  position: absolute;
  top: 0.45em;
  left: 0.35em;
  width: 0.6em;
  height: 0.6em;
  background: #000;
  border-radius: 50%;
  transition: all .2s;
}
[type="radio"]:not(:checked) + label:after {
  opacity: 0;
  transform: scale(0);
}
[type="radio"]:checked + label:after {
  opacity: 1;
  transform: scale(1);
}

[type="checkbox"]:hover + label:before,
[type="radio"]:hover + label:before,
[type="checkbox"] + label:hover:before,
[type="radio"] + label:hover:before {
  border-color: #f59e0b !important;
}

/* Only apply hover border to labels that follow checkable inputs */
label:hover:before { border-color: #f59e0b; }

/* Number inputs display inline with label - no pseudo box needed */
input.i-spinner + label,
.i-spinner + label,
.ui-spinner + label {
  padding-left: 0 !important;
}
input.i-spinner + label:before,
input.i-spinner + label:after,
.ui-spinner + label:before,
.ui-spinner + label:after {
  display: none !important;
}

/* ── UI-SPINNER (number increment/decrement) ───── */
.ui-spinner {
  border: 1px solid #27272a !important;
  background: #09090b !important;
  border-radius: 8px !important;
  overflow: hidden;
}
.ui-spinner-button {
  background: #18181b !important;
  border: none !important;
  color: #f59e0b !important;
  transition: all .2s;
}
.ui-spinner-button:hover {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #fbbf24 !important;
}
.ui-spinner-input {
  color: #f59e0b !important;
  background: transparent !important;
}

/* ── FULLPAGE.JS NAVIGATION DOTS ──────────────── */
#fp-nav ul li a span,
.fp-slidesNav ul li a span {
  background: #3f3f46 !important;
  transition: all .3s;
}
#fp-nav ul li a.active span,
.fp-slidesNav ul li a.active span,
#fp-nav ul li:hover a.active span,
.fp-slidesNav ul li:hover a.active span {
  background: linear-gradient(to right, #d97706, #f59e0b) !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6) !important;
}
#fp-nav ul li .fp-tooltip {
  color: #fbbf24 !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 10px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Fullpage arrows */
.fp-controlArrow {
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.4));
}
.fp-controlArrow.fp-prev {
  border-right-color: #f59e0b !important;
}
.fp-controlArrow.fp-next {
  border-left-color: #f59e0b !important;
}

/* ── JPRICE OVERRIDES ──────────────────────────── */
.staticPrice { color: #fbbf24 !important; }
.fpCalc-price,
.price-tag,
.price-tag-wrapper { color: #f59e0b !important; }

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 1330px) {
  .sidebar .total { top: 12px; right: 12px; padding: 10px 16px; }
  .sidebar .total h3 { font-size: 18px; }
  .logo svg { width: 150px; }
}
@media (max-width: 1090px) {
  .section { padding: 80px 20px 20px; }
  .sektion { padding: 1.5rem; }
  .logo { top: 10px; left: 10px; }
  .logo svg { width: 120px; }
  .sidebar .total h3 { font-size: 16px; }
}
@media (max-width: 760px) {
  .section .title h2 { font-size: 36px; }
  .sektion { padding: 1.25rem; border-radius: 16px; }
  .sektion h1 { font-size: 28px; }
  .pomocnik img { float: none; margin: 0 auto 1rem; display: block; }
}
@media (max-width: 620px) {
  .order ul li { width: 100%; margin-right: 0; float: none; }
  .izbira li a.content img { float: none; margin: 0 auto 1rem; display: block; }
  .btn { width: 100%; float: none; min-width: 0; }
}
@media (max-width: 430px) {
  .logo svg { width: 100px; }
  .sidebar .total { padding: 8px 12px; }
  .sidebar .total h3 { font-size: 14px; }
  .sidebar .total p { font-size: 9px; }
}
