/* agrinet3-modal */
:root {
  --ag3-accent: #2c6b2f;
  --ag3-accent-d: #245826;
  --ag3-ink: #1b211a;
  --ag3-ink-2: #6e766c;
  --ag3-line: #e3e7e1;
  --ag3-sel-bg: #eef5ea;
  --ag3-err: #c0392b;
}
* { box-sizing: border-box; }
html {
  width: 100%;
  height: auto;
  overflow: visible;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: rgba(27, 33, 26, .22) transparent;
}
body {
  width: 100%;
  height: auto;
  display: block;          
  overflow: visible;
  margin: 0;
  padding: 0 !important;   
  background: #fff;
  color: #1b211a;
  color: var(--ag3-ink, #1b211a);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
article { display: block; width: 100%; }
.row { margin-right: 0; margin-left: 0; }
.navbar { display: none; }
.form-group { display: none; }
#closeButton { display: none; }   
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(27, 33, 26, .18);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
html:hover ::-webkit-scrollbar-thumb { background: rgba(27, 33, 26, .30); background-clip: content-box; }
::-webkit-scrollbar-button,
::-webkit-scrollbar-button:start,
::-webkit-scrollbar-button:end { display: none !important; width: 0 !important; height: 0 !important; }
::-webkit-scrollbar-corner { background: transparent; }
.outerframe,
.outerframe.container {
  width: 100% !important;
  max-width: 760px;
  margin: 0 auto;
  padding: 22px;
  float: none;
}
#main-col { margin-top: 0; }
.group-outer-container { margin: 0; }
.group-container .question-container { border: 0 !important; box-shadow: none !important; }
.question-container { margin-bottom: 0; padding: 0; background: transparent; }
.space-col { margin-top: 0; margin-bottom: 0; }
#survey-name, #agrinet2-survey-name, #agrinet3-survey-name { display: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   WEJŚCIE BEZ RAMKI — nagłówek z logo (2026-08-04)

   Ta sama ankieta jest otwierana w dwóch rolach; rozstrzyga o tym klasa na <html>
   ustawiana skryptem na początku `head.twig`:
     html.fp-embedded   → w ramce: nagłówek daje modal portalu, dokument zostaje goły
     html.fp-standalone → pełna strona (boost / link z maila / post): własny nagłówek

   ⚠️ KONTRAKT: WSZYSTKIE reguły poniżej są pod `.fp-standalone`, więc widok w ramce
   nie zmienia się ani o piksel. Domyślnie nagłówek jest ukryty — gdyby JS nie
   wystartował, dokument wygląda dokładnie jak przed tą zmianą (bezpieczny default
   dla toru inline, który jest torem głównym).
   ═══════════════════════════════════════════════════════════════════════════ */
.ag3-brand { display: none; }

html.fp-standalone .ag3-brand {
  display: block;
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
  border-bottom: 1px solid #ececec;
  border-bottom: 1px solid var(--ag3-line, #e3e7e1);
}
html.fp-standalone .ag3-brand__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 760px;      /* równo z `.outerframe` — tekst startuje w jednej linii */
  margin: 0 auto;
  padding: 12px 22px;
}
html.fp-standalone .ag3-brand__logo {
  flex: 0 0 auto;
  height: 30px;
  width: auto;
  display: block;
}
html.fp-standalone .ag3-brand__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;          /* pozwala `text-overflow` zadziałać w kontenerze flex */
  padding-left: 12px;
  border-left: 1px solid #ececec;
  border-left: 1px solid var(--ag3-line, #e3e7e1);
}
html.fp-standalone .ag3-brand__eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7d857c;
  color: var(--ag3-ink-2, #6e766c);
}
html.fp-standalone .ag3-brand__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #1b211a;
  color: var(--ag3-ink, #1b211a);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Pasek postępu przykleja się POD nagłówkiem, nie pod nim samym. */
html.fp-standalone .ag3-progress { top: 55px; }

/* Delikatne tło strony + karta treści — bez tego pełna strona to goły tekst
   na bieli, co po kliknięciu w reklamę wygląda na stronę uszkodzoną. */
html.fp-standalone,
html.fp-standalone body { background: #f6f8f5; }
html.fp-standalone .outerframe,
html.fp-standalone .outerframe.container {
  background: #fff;
  border: 1px solid #ececec;
  border: 1px solid var(--ag3-line, #e3e7e1);
  border-radius: 10px;
  margin: 18px auto 28px;
  padding: 26px 22px;
}

@media (max-width: 719px) {
  html.fp-standalone .ag3-brand__inner { padding: 10px 14px; gap: 10px; }
  html.fp-standalone .ag3-brand__logo { height: 24px; }
  html.fp-standalone .ag3-brand__title { font-size: 13px; }
  html.fp-standalone .ag3-progress { top: 47px; }
  html.fp-standalone .outerframe,
  html.fp-standalone .outerframe.container {
    margin: 10px auto 16px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 18px 14px;
  }
}

.ag3-progress {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  padding: 12px 22px 10px;
  border-bottom: 1px solid #f0f2ef;
}
.ag3-progress__meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #7d857c;
}
.ag3-progress__track { height: 5px; border-radius: 3px; background: #eef1ed; overflow: hidden; }
.ag3-progress__bar {
  height: 100%;
  border-radius: 3px;
  background: #2c6b2f;
  background: var(--ag3-accent, #2c6b2f);
  transition: width .3s ease;
}
.question-title-container { padding: 0; background: transparent; }
.ls-label-question,
.question-text .ls-label-question {
  font-size: 20.5px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #1b211a;
  color: var(--ag3-ink, #1b211a);
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.agrinet2-question-message, .ag3-question-message { display: block; padding: 0; }
.ls-question-message, .ls-questionhelp, .question-help-container {
  display: block;
  font-size: 13.5px;
  line-height: 1.55;
  color: #6e766c;
  color: var(--ag3-ink-2, #6e766c);
}
.ls-questionhelp:before { display: none; }
.question-help-container.hidden { display: none; }
.ls-label-question + .question-help-container,
.agrinet2-question-message { margin: 8px 0 18px; }
.fa.fa-asterisk {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  color: #c0392b;
  color: var(--ag3-err, #c0392b);
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}
.fa.fa-asterisk:before { content: "\f069"; }
.answer-container {
  padding: 0;
  margin: 0;
  border: none;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
.ls-answers { margin: 0; }
.list-unstyled { padding: 0; margin: 0; list-style: none; }
.list-radio .ls-answers > ul.list-unstyled,
.list-checkbox .ls-answers > ul.list-unstyled,
.multiple-opt .ls-answers > ul.list-unstyled,
.multiple-opt-comments .ls-answers > ul.list-unstyled,
.list-with-comment .ls-answers > ul.list-unstyled {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.answer-item.radio-item,
.answer-item.checkbox-item,
.answer-item.radio-text-item,
.answer-item.checkbox-text-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 0 13px;
  margin: 0;
  border: 1px solid #e3e7e1;
  border-color: var(--ag3-line, #e3e7e1);
  border-radius: 9px;
  background: #fff;
  font-size: 14.5px;
  color: #2a3028;
  cursor: pointer;
  transition: border-color .12s ease, background-color .12s ease;
}
.answer-item.radio-item:hover,
.answer-item.checkbox-item:hover,
.answer-item.radio-text-item:hover,
.answer-item.checkbox-text-item:hover { border-color: #b9c8b6; }
.list-unstyled li:hover { background: transparent; }
.answer-item .othertext-label-checkox-container {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  padding: 0;
}
.answer-item .text-item.other-text-item { flex: 1 1 auto; min-width: 0; padding: 0; }
.answer-item .text-item.other-text-item .form-control { width: 100%; }
.answer-item > [class*="col-"] { padding: 0; max-width: none; }
.answer-item > .row {
  flex: 1 1 auto; width: 100%; margin: 0;
  display: flex; align-items: center; flex-wrap: nowrap;
}
.answer-item > .row > [class*="col-"] {
  display: flex; align-items: center; gap: 11px;
  max-width: none; padding: 0; flex: 0 1 auto; min-width: 0;
}
.answer-item > .row > [class*="col-"]:last-child { flex: 1 1 auto; }
.answer-item input[type="radio"],
.answer-item input[type="checkbox"] {
  position: static !important;
  opacity: 1 !important;
  width: 19px !important;
  height: 19px !important;
  min-width: 19px;
  margin: 0 !important;
  flex: 0 0 auto;
  accent-color: #2c6b2f;
  cursor: pointer;
  -webkit-appearance: auto;
  appearance: auto;
  z-index: auto !important;
}
.answer-item .control-label.radio-label,
.answer-item .control-label.checkbox-label,
.answer-item .control-label.label-radio {
  display: flex;
  align-items: center;
  align-self: stretch;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 8px 0;
  font-weight: inherit;
  font-size: inherit;
  line-height: 1.35;
  color: inherit;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.answer-item label::before,
.answer-item label::after { display: none !important; content: none !important; }
.answer-item.radio-item.is-checked,
.answer-item.checkbox-item.is-checked,
.answer-item.radio-text-item.is-checked,
.answer-item.checkbox-text-item.is-checked,
.answer-item.radio-item.is-checked:hover,
.answer-item.checkbox-item.is-checked:hover,
.answer-item.radio-text-item.is-checked:hover,
.answer-item.checkbox-text-item.is-checked:hover {
  background: #eef5ea;
  background: var(--ag3-sel-bg, #eef5ea);
  border-color: #2c6b2f;
  border-color: var(--ag3-accent, #2c6b2f);
  box-shadow: inset 0 0 0 1px #2c6b2f;
  font-weight: 600;
}
.answer-item textarea,
.answer-item input[type="text"],
.answer-item .form-control {
  font-size: 14.5px;
  padding: 8px 10px;
  height: auto;
  border: 1px solid #e3e7e1 !important;
  border-radius: 8px;
  box-shadow: none !important;
}
.checkbox-list > .col-sm-12 { padding: 0; }
.checkbox > .pull-left { float: none !important; display: inline-block; }
.list-question-select,
.answer-container select.form-select,
.answer-container select.form-control {
  width: 100%;
  max-width: 520px;
  min-height: 46px;
  padding: 0 40px 0 13px;
  border: 1px solid #e3e7e1;
  border-color: var(--ag3-line, #e3e7e1);
  border-radius: 9px;
  background-color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  color: #2a3028;
  line-height: 1.35;
  cursor: pointer;
  box-shadow: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235c655a' stroke-width='1.6' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}
.list-question-select:hover,
.answer-container select:hover { border-color: #b9c8b6; }
.list-question-select:focus,
.answer-container select:focus {
  outline: none;
  border-color: #2c6b2f;
  border-color: var(--ag3-accent, #2c6b2f);
  box-shadow: 0 0 0 3px rgba(44, 107, 47, .15);
}
.list-question-select option { font-size: 14.5px; color: #2a3028; background: #fff; }
.list-dropdown .col-auto, .list-dropdown .row > .col-auto { width: 100%; max-width: 520px; }
.ls-questions-have-errors,
.ls-em-error,
.input-error .ls-em-error {
  display: block;
  margin: 0 0 18px;
  padding: 11px 13px;
  border: 1px solid #f0c9c3 !important;
  border-radius: 9px !important;
  background: #fdf4f2 !important;
  color: #8e2f22 !important;
  font-size: 13.5px;
  line-height: 1.5;
}
.question-container.input-error { padding: 0; }
.navigator, #agrinet3-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #f0f2ef;
}
#agrinet2-btn-next-wrapper, #agrinet3-btn-next-wrapper { padding: 0 !important; }
.navigator .col-xs-6, .navigator .col-xs-12 { width: auto; padding: 0; float: none; }
#ls-button-submit,
.ls-move-next-btn,
.ls-move-submit-btn {
  min-height: 46px;
  padding: 0 26px;
  border: 0;
  border-radius: 9px;
  background: #2c6b2f;
  background: var(--ag3-accent, #2c6b2f);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
#ls-button-submit:hover,
.ls-move-next-btn:hover,
.ls-move-submit-btn:hover { background: #245826; background: var(--ag3-accent-d, #245826); }
#ls-button-previous,
.ls-move-previous-btn,
.ls-move-btn.btn-default {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #dcdfd9;
  border-radius: 9px;
  background: #fff;
  color: #4a5148;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}
.ag3-nav-note { font-size: 12.5px; color: #9aa298; margin-left: auto; }
.completed-wrapper, .submit-wrapper {
  min-height: 100vh;
  padding: 30px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 14.5px;
  line-height: 1.6;
  color: #5c655a;
}
.completed-wrapper:before {
  content: "\2713";
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e6efe1;
  color: #2c6b2f;
  color: var(--ag3-accent, #2c6b2f);
  font-size: 23px;
  line-height: 50px;
}
.completed-wrapper h1, .completed-wrapper h2, .completed-wrapper p:first-of-type {
  font-size: 21px;
  font-weight: 700;
  color: #1b211a;
  color: var(--ag3-ink, #1b211a);
  margin: 0 0 8px;
}
#block_error {
  width: 100%;
  background: #fff;
  text-align: center;
  border: 0;
}
#block_error h2 { color: #8e2f22 !important; border: 0 !important; font-size: 19.5px; }
#block_error p { font-size: 14.5px; }
#block_error div { padding: 2em; }
#block_error .closeButton {
  display: inline-block;
  margin-top: 1em;
  padding: .6em 1.2em;
  border-radius: 9px;
  background: #2c6b2f;
  background: var(--ag3-accent, #2c6b2f);
  color: #fff;
}
@media (max-width: 719px) {
  .outerframe, .outerframe.container { padding: 16px; max-width: none; }
  .ag3-progress { padding: 10px 16px 9px; }
  .ls-label-question, .question-text .ls-label-question { font-size: 19px; }
  .list-radio .ls-answers > ul.list-unstyled,
  .list-checkbox .ls-answers > ul.list-unstyled,
  .multiple-opt .ls-answers > ul.list-unstyled,
  .multiple-opt-comments .ls-answers > ul.list-unstyled,
  .list-with-comment .ls-answers > ul.list-unstyled { grid-template-columns: 1fr; }
  .navigator, #agrinet3-nav { margin-top: 22px; padding-top: 16px; }
  .ag3-nav-note { margin-left: 0; width: 100%; }
  ::-webkit-scrollbar { width: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .ag3-progress__bar, .answer-item.radio-item, .answer-item.checkbox-item { transition: none; }
}
