/* =========================================================
   SEPTA.CZ | Velkoobchodni registrace | verze 5.0
   Zobrazuje se pouze pri /registrace/?vo=1
   ========================================================= */

body.septa-vo-page {
  --vo-accent: #327bbd; /* Modra tlacitka, oranžova po najeti */
  --vo-accent-hover: #f47700;
  --vo-dark: #182631;
  --vo-muted: #52606c;
  --vo-light: #f7f9fb;
}

/* Vypnuti postranniho panelu pouze na VO LP. */
body.septa-vo-page .content-wrapper .sidebar,
body.septa-vo-page #sidebar {
  display: none !important;
}

body.septa-vo-page .content-wrapper .content,
body.septa-vo-page #content {
  width: 100%;
  max-width: 100%;
  flex: 1 1 100%;
}

/* HERO */
body.septa-vo-page .vo-hero {
  box-sizing: border-box;
  background: var(--vo-dark);
  color: #fff;
  padding: clamp(32px, 5vw, 65px);
  border-radius: 13px;
  margin: 0 0 35px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Natahovani CTA pres cely hero bylo zpusobeno flex stretch */
  justify-content: center;
  min-height: 370px;
}

/* Fotografie a ztmaveni vlevo jsou ve vrstve pod obsahem.
   Obe fotografie lezi v /user/documents/assets/img/. */
body.septa-vo-page .vo-hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg,
      rgba(24, 38, 49, .99) 0%,
      rgba(24, 38, 49, .96) 24%,
      rgba(24, 38, 49, .75) 44%,
      rgba(24, 38, 49, .26) 73%,
      rgba(24, 38, 49, .05) 100%),
    url('/user/documents/assets/img/septa-vo-hero-desktop.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Vzdy udrzi text a CTA nad fotkou. */
body.septa-vo-page .vo-hero > * {
  position: relative;
  z-index: 1;
}

body.septa-vo-page .vo-eyebrow {
  display: block;
  color: #c4d1db;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  margin: 0 0 18px;
}

body.septa-vo-page .vo-hero h1.vo-title {
  display: block !important;
  position: static !important;
  transform: none !important;
  clip: auto !important;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 0 20px !important;
  color: #fff !important;
  font-size: clamp(30px, 4vw, 46px) !important;
  font-weight: 800 !important;
  line-height: 1.24 !important;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: normal !important;
  max-width: 58%;
}

body.septa-vo-page .vo-hero p {
  color: #e0e8ee;
  font-size: 16px;
  line-height: 1.7;
  max-width: 54%;
  margin: 0 0 25px;
}

body.septa-vo-page .vo-hero-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 22px;
  max-width: 65%;
  padding-top: 15px;
  color: #e6ecf0;
  font-size: 12px;
  font-weight: 600;
}
body.septa-vo-page .vo-hero-details span::before {
  content: '✓';
  color: #fc8c23;
  font-size: 15px;
  margin-right: 7px;
}

body.septa-vo-page .vo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: flex-start;
  width: auto !important;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--vo-accent) !important;
  border: 1px solid var(--vo-accent) !important;
  color: #fff !important;
  border-radius: 6px;
  padding: 15px 27px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

body.septa-vo-page .vo-button:hover,
body.septa-vo-page .vo-button:focus-visible {
  background: var(--vo-accent-hover) !important;
  border-color: var(--vo-accent-hover) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* BENEFITY */
body.septa-vo-page .vo-benefits {
  margin: 35px 0 45px;
}

body.septa-vo-page .vo-benefits h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  margin: 0 0 25px;
}

body.septa-vo-page .vo-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body.septa-vo-page .vo-benefit {
  position: relative;
  min-width: 0;
  box-sizing: border-box;
  background: var(--vo-light);
  border: 1px solid #e6e9ed;
  border-radius: 11px;
  padding: 25px;
}

/* Jemne SVG ikony v pravem hornim rohu jsou mimo tok textu.
   Nadpisu neodebiraji misto a nevynucuji zalomeni dalsiho radku. */
body.septa-vo-page .vo-benefit-icon {
  position: absolute;
  top: 13px;
  right: 15px;
  width: 38px;
  height: 38px;
  color: #327bbd;
  opacity: .18;
  pointer-events: none;
}
body.septa-vo-page .vo-benefit-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.septa-vo-page .vo-benefit h3,
body.septa-vo-page .vo-benefit p {
  position: relative;
  z-index: 1;
}

body.septa-vo-page .vo-benefit h3 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 12px;
}

body.septa-vo-page .vo-benefit p {
  color: var(--vo-muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* UVOD REGISTRACE */
body.septa-vo-page .vo-form-intro {
  scroll-margin-top: 110px;
  border-top: 1px solid #e1e5e9;
  padding: 30px 0 15px;
}

body.septa-vo-page .vo-form-intro h2 {
  font-size: clamp(25px, 3vw, 33px);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 12px;
}

body.septa-vo-page .vo-form-intro p {
  color: var(--vo-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* REGISTRACNI LAYOUT */
body.septa-vo-page .vo-registration-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .85fr);
  gap: 45px;
  align-items: start;
  margin: 25px 0 50px;
}

body.septa-vo-page .vo-registration-form {
  min-width: 0;
  width: 100%;
  max-width: none;
}

/* Zachova shopteti validaci a komponenty; pouze zvetsi
   obycena pole, kde jejich rodic ma dost prostoru. */
body.septa-vo-page .vo-registration-form input[type="text"],
body.septa-vo-page .vo-registration-form input[type="email"],
body.septa-vo-page .vo-registration-form input[type="password"],
body.septa-vo-page .vo-registration-form select {
  box-sizing: border-box;
  max-width: min(100%, 420px);
}

/* Vyraznejsi finalni CTA v puvodnim registracnim formulari. */
body.septa-vo-page .vo-registration-form button[type="submit"],
body.septa-vo-page .vo-registration-form input[type="submit"] {
  min-height: 42px;
  min-width: 148px;
  padding: 10px 22px;
  background: var(--vo-accent) !important;
  border-color: var(--vo-accent) !important;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
}
body.septa-vo-page .vo-registration-form button[type="submit"]:hover,
body.septa-vo-page .vo-registration-form input[type="submit"]:hover,
body.septa-vo-page .vo-registration-form button[type="submit"]:focus-visible,
body.septa-vo-page .vo-registration-form input[type="submit"]:focus-visible {
  background: var(--vo-accent-hover) !important;
  border-color: var(--vo-accent-hover) !important;
}

/* PRAVY INFORMACNI PANEL */
body.septa-vo-page .vo-registration-aside {
  box-sizing: border-box;
  background: var(--vo-light);
  border: 1px solid #e5e9ed;
  border-radius: 12px;
  padding: 30px;
}

body.septa-vo-page .vo-registration-aside h3 {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 25px;
}

body.septa-vo-page .vo-step {
  display: flex;
  gap: 15px;
  margin: 0 0 25px;
}

body.septa-vo-page .vo-step-number {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  background: var(--vo-dark);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}

body.septa-vo-page .vo-step strong {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 5px;
}

body.septa-vo-page .vo-step p {
  color: var(--vo-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

body.septa-vo-page .vo-aside-contact {
  border-top: 1px solid #dce2e7;
  padding-top: 23px;
  margin-top: 5px;
}

body.septa-vo-page .vo-aside-contact-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
body.septa-vo-page .vo-aside-contact-heading svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  stroke: var(--vo-accent);
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.septa-vo-page .vo-aside-contact-heading strong {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
}

body.septa-vo-page .vo-aside-contact p {
  color: var(--vo-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 12px;
}

body.septa-vo-page .vo-aside-contact a {
  color: #236da9;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.septa-vo-page .vo-aside-contact a:hover,
body.septa-vo-page .vo-aside-contact a:focus-visible {
  color: var(--vo-accent-hover);
}

/* RESPONSIVITA */
@media (max-width: 991px) {
  body.septa-vo-page .vo-hero { min-height: 340px; }
  body.septa-vo-page .vo-hero h1.vo-title { max-width: 64%; }
  body.septa-vo-page .vo-hero p { max-width: 60%; }
  body.septa-vo-page .vo-hero-details { max-width: 65%; }
  body.septa-vo-page .vo-benefit-grid { gap: 12px; }
  body.septa-vo-page .vo-benefit { padding: 20px; }
  body.septa-vo-page .vo-registration-layout {
    grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr);
    gap: 25px;
  }
  body.septa-vo-page .vo-registration-aside { padding: 22px; }
}

@media (max-width: 767px) {
  body.septa-vo-page .vo-hero {
    display: block;
    min-height: 0;
    padding: 30px 22px 0;
  }
  /* Na mobilu je fotografie samostatne POD textem, nikoliv za nim.
     Nedochazi tak k prekryti titulku ani CTA. */
  body.septa-vo-page .vo-hero::after {
    display: block;
    position: relative;
    inset: auto;
    width: calc(100% + 44px);
    height: clamp(170px, 53vw, 250px);
    margin: 22px -22px 0;
    background-image:
      linear-gradient(180deg, rgba(24,38,49,.35) 0%, rgba(24,38,49,0) 35%),
      url('/user/documents/assets/img/septa-vo-hero-mobile.webp');
    background-size: cover;
    background-position: center top;
  }
  body.septa-vo-page .vo-eyebrow { margin-bottom: 12px; }
  body.septa-vo-page .vo-hero h1.vo-title {
    font-size: clamp(28px, 7vw, 36px) !important;
    line-height: 1.22 !important;
    max-width: 100%;
  }
  body.septa-vo-page .vo-hero p {
    font-size: 15px;
    max-width: 100%;
  }
  body.septa-vo-page .vo-hero-details {
    max-width: 100%;
    padding-top: 14px;
    gap: 6px 14px;
  }
  body.septa-vo-page .vo-button { display: flex; width: 100% !important; align-self: stretch; }
  body.septa-vo-page .vo-benefit-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  body.septa-vo-page .vo-benefit { padding: 23px; }
  body.septa-vo-page .vo-registration-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
    margin-bottom: 35px;
  }
  body.septa-vo-page .vo-registration-aside { padding: 24px; }
}


/* =========================================
   V5 — PLYNULY SKOK A FIREMNI POLE
   ========================================= */
/* Kdyz uzivatel prijde odkazem s #vo-formular, uvidi i nadpis. */
body.septa-vo-page #vo-formular {
  scroll-margin-top: 100px;
}

body.septa-vo-page .vo-company-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 12px;
}
body.septa-vo-page .vo-company-chip {
  display: inline-block;
  box-sizing: border-box;
  padding: 4px 9px;
  border-radius: 4px;
  background: #eaf2fc;
  color: #245e91;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}
body.septa-vo-page .vo-company-note {
  max-width: 520px;
  box-sizing: border-box;
  margin: 11px 0 24px;
  padding: 11px 13px;
  background: #f6f9fd;
  border-left: 3px solid #327bbd;
  border-radius: 0 6px 6px 0;
  color: #495a69;
  line-height: 1.55;
  font-size: 13px;
}
body.septa-vo-page .vo-company-note strong {
  color: #253747;
  font-weight: 700;
}
/* Vizuální hvězdička u všech požadovaných povinných fakturačních polí pouze na VO LP. */
body.septa-vo-page .vo-registration-form label.vo-required-label::after {
  content: ' *';
  color: #d33331;
  font-weight: 800;
  font-size: 15px;
}
body.septa-vo-page .vo-registration-form input[aria-required="true"]:focus {
  border-color: #327bbd;
  box-shadow: 0 0 0 2px rgba(50, 123, 189, .13);
}

/* Pri presunu nativni napovedy Shoptetu zachovame jeho tooltip,
   ale vkladame jej do vodorovneho radku se vstupnim polem. */
body.septa-vo-page .vo-vat-input-with-help {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: min(100%, 440px);
  max-width: 100%;
  min-width: 0;
  vertical-align: middle;
  overflow: visible;
}
body.septa-vo-page .vo-vat-input-with-help > input {
  box-sizing: border-box;
  min-width: 0;
  width: auto !important;
  max-width: none !important;
  flex: 1 1 auto;
}
body.septa-vo-page .vo-vat-input-with-help > .form-group-tooltip,
body.septa-vo-page .vo-vat-input-with-help > .show-tooltip-input {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  margin: 0 !important;
  vertical-align: middle;
  z-index: 5;
  cursor: help;
}

@media (max-width: 767px) {
  body.septa-vo-page #vo-formular { scroll-margin-top: 75px; }
  body.septa-vo-page .vo-company-note { max-width: 100%; }
  body.septa-vo-page .vo-vat-input-with-help { width: min(100%, 420px); }
}
