/********************************************
 *  ZÁKLADNÍ LAYOUT POPTÁVKY
 ********************************************/

.layout-narrow {
  padding: 0px 0 72px;
}

.layout-narrow .content {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

/* veřejná verze (nepřihlášený) */
.registration-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

/* karta formuláře (veřejná i přihlášená verze) */
.regformar {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 28px 40px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

/********************************************
 *  TYPOGRAFIE – NADPISY, ÚVODNÍ TEXT
 ********************************************/

.layout-narrow h1,
.lead-page-wrapper h1 {
  font-size: 2.0rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

.layout-narrow p.lead,
.lead-page-wrapper p.lead {
  font-size: 0.98rem;
  color: #4b5563;
  margin-bottom: 22px;
}

.reg-vyplnte-udaje-nadpis {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: #111827;
}

/********************************************
 *  ZÁKLADNÍ FORMULÁŘOVÉ STYLY
 ********************************************/

.registration-wrapper *,
.registration-wrapper *::before,
.registration-wrapper *::after,
.lead-page-wrapper *,
.lead-page-wrapper *::before,
.lead-page-wrapper *::after {
  box-sizing: border-box;
}

.fp {
  margin-bottom: 2px;
}

.reg-label,
.reg-label-company {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: #111827;
}

.star {
  color: #dc2626;
  margin-left: 2px;
}

.errreg {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.8rem;
  color: #dc2626;
}

.regformar .form-control {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.92rem;
  padding: 8px 10px;
  background-color: #ffffff;
}

.regformar .form-control:focus {
  border-color: #13b6c7;
  box-shadow: 0 0 0 1px rgba(19, 182, 199, 0.15);
  outline: none;
}

/********************************************
 *  BOX S E-MAILEM A HESLEM DOLE
 ********************************************/

/* box kolem emailu + hesla */
.reg-ohraniceni {
  margin-top: 24px;
  margin-bottom: 4px;
  padding: 16px 18px 12px;
  border-radius: 16px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
}

/* grid pro email + heslo */
.reg-ohraniceni.g-3 {
  display: grid;
  grid-template-columns: 1fr;      /* mobil – všechno pod sebou */
  gap: 14px 24px;
}

@media (min-width: 768px) {
  .reg-ohraniceni.g-3 {
    grid-template-columns: 1.2fr 1.1fr;  /* dva sloupce pro inputy */
  }

  /* první .col-12 (nadpis + text) přes celou šířku boxu */
  .reg-ohraniceni.g-3 > .col-12:first-child {
    grid-column: 1 / -1;
  }
}

/********************************************
 *  TLAČÍTKO ODESLAT
 ********************************************/

.btn_reg {
  display: block;
  margin: 26px auto 0;
  min-width: 220px;
  border-radius: 999px;
  border: none;
  background: #13b6c7;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  padding: 10px 24px;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn_reg:hover,
.btn_reg:focus {
  background: #1093a1;
  transform: translateY(-1px);
}

.btn_reg:active {
  transform: translateY(0);
}

/********************************************
 *  HESLO – OČKO
 ********************************************/

.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 40px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  color: #6b7280;
}

.password-toggle:hover {
  color: #111827;
}

.password-toggle:focus {
  outline: none;
}

/********************************************
 *  TEXTAREA + PŘÍLOHY – FULL WIDTH
 ********************************************/

.registration-wrapper .row.row-poptavka,
.lead-page-wrapper .row.row-poptavka {
  display: block;
}

.registration-wrapper .row.row-poptavka .fp-full,
.lead-page-wrapper .row.row-poptavka .fp-full {
  width: 100%;
}

/********************************************
 *  PŘÍLOHY – SEZNAM A KŘÍŽEK
 ********************************************/

.attachments-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.attachment-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-remove {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.attachment-remove:hover {
  color: #b91c1c;
  transform: scale(1.1);
}

/********************************************
 *  HLÁŠKA PO ÚSPĚŠNÉM ODESLÁNÍ
 ********************************************/

.lead-success {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.lead-success__content {
  flex: 1 1 auto;
}

.lead-success__cta {
  flex: 0 0 auto;
}

.lead-success__cta-link {
  display: inline-block;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #13b6c7;
  color: #0f172a;
}

.lead-success__cta-link:hover {
  background: #13b6c7;
  color: #ffffff;
}

/********************************************
 *  RFQ FORMULÁŘ – UNIVERZÁLNÍ LAYOUT
 ********************************************/

/* wrapper kolem celého RFQ (div.rfq-form kolem fieldsetů) */
.rfq-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* každá sekce (Vaše firma, Kontaktní osoba, …) */
.rfq-section {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 14px;
  padding: 18px 16px 16px;
  margin-bottom: 12px;

  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;  /* mezery mezi poli */
}

/* štítek "Vaše firma", "Kontaktní osoba", … */
.rfq-section legend {
  font-weight: 600;
  font-size: 1.05rem;
  color: #0f172a;

  padding: 0 8px;
  margin: 0 0 10px 10px;
  background: #f9fafb;
}

/* popisek sekce pod legendou – vždy na celý řádek */
.rfq-section .rfq-section-desc {
  flex: 1 1 100%;
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #4b5563;
}

/* jedno pole v sekci = kartička, VEDLE SEBE JAK SE VEJDE */
.rfq-section .rfq-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;

  flex: 1 1 260px;   /* základní šířka políčka */
  min-width: 220px;  /* aby to nebylo moc úzké */
}

/* label uvnitř pole */
.rfq-section .rfq-field > label {
  font-weight: 500;
  font-size: 0.9rem;
  color: #111827;
}

/* hvězdička povinného pole */
.rfq-section .rfq-required {
  color: #e11d48;
  margin-left: 2px;
}

/* vstupy v RFQ bloku */
.rfq-section .rfq-field input,
.rfq-section .rfq-field select,
.rfq-section .rfq-field textarea {
  width: 100%;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  font-family: inherit;
  background-color: #ffffff;
}

.rfq-section .rfq-field textarea {
  min-height: 80px;
}

/* focus efekt */
.rfq-section .rfq-field input:focus,
.rfq-section .rfq-field select:focus,
.rfq-section .rfq-field textarea:focus {
  outline: none;
  border-color: #13b6c7;
  box-shadow: 0 0 0 1px rgba(19, 182, 199, 0.15);
}

/********************************************
 *  TEXTAREA = FULL WIDTH
 ********************************************/

.rfq-section .rfq-field.rfq-type-textarea {
  flex: 1 1 100%;
}

/********************************************
 *  RADIO BLOK – OTÁZKA + MOŽNOSTI
 ********************************************/

.rfq-section .rfq-field.rfq-type-radio {
  flex: 1 1 100%;
  align-items: flex-start;
}

.rfq-section .rfq-field.rfq-type-radio .rfq-radio-question {
  font-weight: 600;
  font-size: 0.95rem;
  color: #111827;
  margin-bottom: 4px;
}

/* wrapper kolem jednotlivých voleb */
.rfq-section .rfq-field.rfq-type-radio .rfq-radio-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* jedna volba */
.rfq-section .rfq-field.rfq-type-radio .rfq-radio-option {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.9rem;
  color: #111827;
}

.rfq-section .rfq-field.rfq-type-radio .rfq-radio-option input[type="radio"] {
  margin-top: 2px;
}

/********************************************
 *  CHECKBOXY – ZÁKLAD
 ********************************************/

.rfq-section .rfq-field input[type="checkbox"],
.rfq-section .rfq-field input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* checkbox pole = fajfka + text vedle sebe */
.rfq-section .rfq-field.rfq-type-checkbox {
  flex-direction: row;
  align-items: center;
}

.rfq-section .rfq-field.rfq-type-checkbox > label {
  margin: 0 0 0 8px;
}

/********************************************
 *  CHECKBOX + POČET KUSŮ V JEDNOM ŘÁDKU
 *  (např. need_notebooks + nb_count)
 ********************************************/
/* levý sloupec: text + checkbox – užší, nenatahuje se přes celý řádek */
/* levý blok – text + checkbox */
.rfq-section .rfq-field.rfq-type-checkbox {
  display: flex;
  align-items: center;
}

/* text vyplní celý řádek vlevo */
.rfq-section .rfq-field.rfq-type-checkbox > label {
  flex: 1 1 auto;
  margin: 0;
}

/* checkbox natlačit úplně doprava */
.rfq-section .rfq-field.rfq-type-checkbox input[type="checkbox"] {
  margin-left: auto;
}


/*
.rfq-section .rfq-field.rfq-type-checkbox {
  flex: 1 1 320px;
  min-width: 260px;
  background-color: red ;
}

/* hned ZA NÍM number pole – úzký sloupec napravo */
/*.rfq-section .rfq-field.rfq-type-checkbox + .rfq-field.rfq-type-number {
  flex: 0 0 140px;
  min-width: 120px;
}

.rfq-section .rfq-field.rfq-type-checkbox + .rfq-field.rfq-type-number input[type="number"] {
  max-width: 100%;
}
*/


/* disabled vs enabled styl pro počty kusů */
.rfq-section input[type="number"][disabled] {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

.rfq-section input[type="number"]:not([disabled]) {
  background: #ffffff;
  color: #111827;
}

/********************************************
 *  CHYBY U RFQ POLÍ
 ********************************************/

.rfq-section .rfq-field--error input,
.rfq-section .rfq-field--error select,
.rfq-section .rfq-field--error textarea {
  border-color: #b91c1c;
  background: #fef2f2;
}

.rfq-section .rfq-error {
  font-size: 12px;
  color: #b91c1c;
  margin-top: 2px;
}

/********************************************
 *  RESPONSIVE – MOBIL
 ********************************************/

@media (max-width: 767.98px) {
  .layout-narrow {
    padding: 20px 0 40px;
  }

  .regformar {
    padding: 22px 18px 30px;
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.16);
  }

  .btn_reg {
    width: 100%;
  }

  /* na mobilu radši všechno full width */
  .rfq-section .rfq-field {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .rfq-section .rfq-field.rfq-type-checkbox,
  .rfq-section .rfq-field.rfq-type-checkbox + .rfq-field.rfq-type-number {
    flex: 1 1 100%;
    min-width: 100%;
  }
}





/********************************************
 *  Sekce s checkboxy + počty kusů
 *  (fieldset dostane class="rfq-section rfq-section--equipment")
 ********************************************/

.rfq-section--equipment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto; /* text+checkbox | počet */
  column-gap: 4px;      /* mezera mezi checkboxem a inputem */
  row-gap: 6px;
  align-items: center;
}

/* popisek sekce přes celou šířku */
.rfq-section--equipment .rfq-section-desc {
  grid-column: 1 / -1;
  margin: 0 0 10px;
}

/* řádky bez spodní mezery navíc */
.rfq-section--equipment .rfq-field {
  margin-bottom: 0;
}

/* LEVÝ sloupec – text + checkbox */
.rfq-section--equipment .rfq-field.rfq-type-checkbox {
  display: flex;
  align-items: center;
}

.rfq-section--equipment .rfq-field.rfq-type-checkbox > label {
  flex: 1 1 auto;
  margin: 0;
}

.rfq-section--equipment .rfq-field.rfq-type-checkbox input[type="checkbox"] {
  flex: 0 0 auto;
  margin-left: 8px;   /* malá mezera od textu */
}

/* PRAVÝ sloupec – label + input počtu v jedné řadě */
.rfq-section--equipment .rfq-field.rfq-type-number {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.rfq-section--equipment .rfq-field.rfq-type-number > label {
  margin: 0 8px 0 0;
  white-space: nowrap;
}

.rfq-section--equipment .rfq-field.rfq-type-number input[type="number"] {
  width: 110px;
  max-width: 100%;
}

/* mobil – všechno pod sebe */
@media (max-width: 767.98px) {
  .rfq-section--equipment {
    grid-template-columns: 1fr;
  }

  .rfq-section--equipment .rfq-field.rfq-type-number {
    justify-content: flex-start;
  }
}


.lead-topic-icon {
  margin-right: 0.35em;
}