:root {
  /* PLANEO Elektro - modrá / červená / biela paleta */
  --mdz-bg-light: #f7f9fc;
  --mdz-gradient-start: #e6ebf4;
  --mdz-gradient-end: #f7f9fc;
  --mdz-primary: #0d3b8f;   /* Planeo modrá */
  --mdz-accent: #ed1c24;    /* Planeo červená */
  --mdz-dark: #1c2533;
  --white: #ffffff;
  --shadow-soft: 0 25px 50px rgba(20, 30, 50, 0.12);
  --shadow-glow: 0 10px 25px rgba(237, 28, 36, 0.28);
}

body {
  font-family: 'Outfit', sans-serif !important;
  background: linear-gradient(135deg, #eef1f6 0%, #f7f9fc 100%) !important;
  color: var(--mdz-dark) !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px;
}

.lego-wrapper {
  background: var(--white);
  border-radius: 40px;
  box-shadow: var(--shadow-soft);
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: row;
  min-height: 720px;
  position: relative;
}

/* ĽAVÁ STRANA - VIZUÁL */
.visual-side {
  flex: 0 0 45%;
  background: linear-gradient(160deg, #0d3b8f 0%, #0a2e6e 100%);
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  border-radius: 40px 0 0 40px;
}

/* Jemné dekoračné prvky na pozadí pre MDZ feel */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  opacity: 0.6;
}
.shape-1 {
  width: 300px;
  height: 300px;
  background: rgba(237, 28, 36, 0.22);
  top: -50px;
  left: -50px;
}
.shape-2 {
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.4);
  bottom: 50px;
  right: -50px;
}

.logos-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  z-index: 2;
}

.logo-lego {
  max-width: 170px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
}

.logo-planeo {
  max-width: 200px;
  height: auto;
}

.hero-image {
  max-width: 110%;
  margin-right: 0;
  margin-top: 20px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.30));
  animation: float 6s ease-in-out infinite;
  z-index: 1;
}

.visual-text {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 25px;
  z-index: 2;
  color: var(--white);
}

.mdz-badge {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: var(--white);
  color: var(--mdz-primary);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* PRAVÁ STRANA - FORMULÁR */
.form-side {
  flex: 1;
  padding: 60px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  background: var(--white);
}

.form-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--mdz-primary);
  letter-spacing: -0.5px;
}

.form-subtitle {
  font-size: 1.05rem;
  margin-bottom: 35px;
  color: #5b6473;
  font-weight: 400;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--mdz-primary);
  border-bottom: 2px solid var(--mdz-gradient-start);
  padding-bottom: 10px;
  margin: 30px 0 20px 0;
  display: block;
  width: 100%;
}

/* Vylepšené Inputy */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: block;
  color: var(--mdz-dark);
}

.form-custom {
  width: 100%;
  background: #f7f9fc;
  border: 2px solid #d7dce6;
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 1rem;
  color: var(--mdz-dark);
  font-family: 'Outfit', sans-serif;
  transition: all 0.3s ease;
}

.form-custom::placeholder {
  color: #9aa3b2;
}

.form-custom:focus {
  background: #fff;
  border-color: var(--mdz-accent);
  box-shadow: 0 0 0 5px rgba(237, 28, 36, 0.15);
  outline: none;
  transform: translateY(-2px);
}

/* Select2 — zladenie s .form-custom */
.select2-container--default .select2-selection--single {
  background: #f7f9fc;
  border: 2px solid #d7dce6;
  border-radius: 16px;
  height: auto;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  color: var(--mdz-dark);
  transition: all 0.3s ease;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0;
  line-height: 1.5;
  color: var(--mdz-dark);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #9aa3b2;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  background: #fff;
  border-color: var(--mdz-accent);
  box-shadow: 0 0 0 5px rgba(237, 28, 36, 0.15);
  outline: none;
}
.select2-dropdown {
  border: 2px solid var(--mdz-accent);
  border-radius: 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  overflow: hidden;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--mdz-accent);
}

/* Checkboxy */
.custom-checkbox {
  display: flex;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 12px;
  margin-left: 24px;
}

.custom-control-input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--mdz-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.custom-control-label {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--mdz-dark);
  cursor: pointer;
}

.odkaz a, a, .odkaz {
  color: var(--mdz-primary);
  font-weight: 700;
  text-decoration: none;
  position: relative;
}

.odkaz a::after, .odkaz::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--mdz-primary);
  transition: width .3s ease;
  position: absolute;
  bottom: -2px;
  left: 0;
}

.odkaz a:hover::after, .odkaz:hover::after {
  width: 100%;
}

/* Tlačidlo */
.btn-submit {
  background: linear-gradient(135deg, var(--mdz-accent) 0%, #c41119 100%);
  color: white;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 18px 50px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Pružný efekt */
  width: 100%;
  margin-top: 25px;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #c41119 0%, #a10e15 100%);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px rgba(237, 28, 36, 0.35);
}

.required { color: var(--mdz-accent); font-weight: bold; margin-left: 3px; }

/* Newsletter opt-in box (Planeo) */
.newsletter-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px 0 22px 0;
  padding: 16px 20px;
  background: #f7f9fc;
  border: 2px solid #d7dce6;
  border-radius: 18px;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.newsletter-box:hover {
  border-color: #ff6600;
  box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.12);
}

.newsletter-box:has(.newsletter-check:checked) {
  border-color: #ff6600;
  background: #fff8f2;
  box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.15);
}

.newsletter-box:has(.newsletter-check:focus-visible) {
  box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.30);
}

/* natívny checkbox skrytý, stav signalizuje oranžový border + ikona */
.newsletter-check {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.newsletter-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 102, 0, 0.10);
  color: #ff6600;
  transition: background 0.3s ease, color 0.3s ease;
}

.newsletter-box:has(.newsletter-check:checked) .newsletter-icon {
  background: #ff6600;
  color: #fff;
}

.newsletter-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.newsletter-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.newsletter-label {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--mdz-dark);
}

.newsletter-subtext {
  font-size: 0.82rem;
  line-height: 1.4;
  color: #5b6473;
}

.newsletter-subtext a {
  color: #ff6600;
  font-weight: 700;
}

.newsletter-subtext a::after {
  background: #ff6600;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* Responzivita */
@media (max-width: 992px) {
  .lego-wrapper {
    flex-direction: column;
    height: auto;
    max-width: 600px;
    border-radius: 30px;
  }

  .visual-side {
    padding: 40px 20px;
    flex: none;
    position: relative;
    top: auto;
    height: auto;
    min-height: 400px;
    border-radius: 30px 30px 0 0;
  }

  .hero-image {
    max-width: 280px;
    margin-top: 30px;
  }

  .form-side {
    padding: 40px 30px;
  }

  .form-title { font-size: 2rem; }
}

.modal {
  top: 0 !important
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  margin-left: 4px;
  cursor: pointer;
  vertical-align: middle;
  color: #999;
  position: relative;
  line-height: 1;
}
.info-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
}
.info-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.info-icon:hover { color: #555; }

.cislo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cislo-modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 480px;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.cislo-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #555;
  line-height: 1;
}
.cislo-modal-close:hover { color: #d6336c; }

@media (max-width: 576px) {
  .form-side { padding: 30px 20px; }
  .row { display: flex; flex-direction: column; }
  .col-md-6 { width: 100%; }
}
