/* AgioFunds: formularz Kontakt v2. Wszystkie reguły dotyczą wyłącznie tego formularza. */
.agio-contact-v2 {
  --agio-contact-navy: #0f1f47;
  --agio-contact-blue: #163277;
  --agio-contact-red: #c70119;
  --agio-contact-border: #cdd5e1;
  --agio-contact-control-border: #7f8da3;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  color: var(--agio-contact-navy);
  font-family: inherit;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: break-word;
}

.agio-contact-v2,
.agio-contact-v2 *,
.agio-contact-v2 *::before,
.agio-contact-v2 *::after {
  box-sizing: border-box;
}

.agio-contact-v2 [hidden] {
  display: none !important;
}

.agio-contact-v2 .cf7-field-required-notice {
  display: none !important;
}

.agio-contact-v2 p {
  width: auto;
  margin: 0;
  padding: 0;
}

.agio-contact-v2 .agio-contact-v2__intro {
  margin: 0 0 28px;
}

.agio-contact-v2 .agio-contact-v2__intro h2 {
  margin: 0 0 10px;
  padding: 0;
  color: var(--agio-contact-navy);
  font-family: inherit;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
}

.agio-contact-v2 .agio-contact-v2__intro p {
  max-width: 640px;
  color: #495971;
  font-size: 18px;
  line-height: 1.55;
}

.agio-contact-v2 .agio-contact-v2__purpose {
  min-width: 0;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.agio-contact-v2 .agio-contact-v2__purpose legend {
  float: none;
  width: auto;
  margin: 0 0 6px;
  padding: 0;
  color: var(--agio-contact-navy);
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}

.agio-contact-v2 .agio-contact-v2__purpose > .agio-contact-v2__hint {
  margin-bottom: 14px;
}

.agio-contact-v2 .agio-contact-v2__purpose .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.agio-contact-v2 .agio-contact-v2__purpose .wpcf7-radio {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.agio-contact-v2 .wpcf7-list-item {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.agio-contact-v2 .agio-contact-v2__purpose .wpcf7-list-item > label {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  min-height: 70px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--agio-contact-border);
  border-radius: 8px;
  background: #fff;
  color: var(--agio-contact-navy);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.agio-contact-v2 .agio-contact-v2__purpose .wpcf7-list-item > label:hover {
  border-color: var(--agio-contact-blue);
  background: #f8fafd;
}

.agio-contact-v2 .agio-contact-v2__purpose .wpcf7-list-item > label:has(input:checked) {
  border-color: var(--agio-contact-blue);
  background: #f1f5fc;
  box-shadow: inset 0 0 0 1px var(--agio-contact-blue);
}

.agio-contact-v2 .agio-contact-v2__purpose .wpcf7-list-item.is-selected > label {
  border-color: var(--agio-contact-blue);
  background: #f1f5fc;
  box-shadow: inset 0 0 0 1px var(--agio-contact-blue);
}

.agio-contact-v2 .agio-contact-v2__purpose .wpcf7-list-item > label:focus-within {
  outline: 3px solid var(--agio-contact-blue);
  outline-offset: 3px;
}

.agio-contact-v2 input[type="radio"],
.agio-contact-v2 input[type="checkbox"] {
  appearance: auto !important;
  display: block !important;
  position: static !important;
  flex: 0 0 20px;
  width: 20px !important;
  min-width: 20px;
  max-width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1;
  clip: auto;
  clip-path: none;
  transform: none;
  box-shadow: none;
  accent-color: var(--agio-contact-red);
  cursor: pointer;
}

.agio-contact-v2 .wpcf7-list-item-label,
.agio-contact-v2 input[type="radio"] + .wpcf7-list-item-label,
.agio-contact-v2 input[type="checkbox"] + .wpcf7-list-item-label {
  display: block;
  position: static;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
}

.agio-contact-v2 .wpcf7-list-item-label::before,
.agio-contact-v2 .wpcf7-list-item-label::after {
  display: none !important;
  content: none !important;
}

.agio-contact-v2 .agio-contact-v2__branches {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.agio-contact-v2 .agio-contact-v2__branches:has(> [hidden]):not(:has(> :not([hidden]))) {
  margin-bottom: 0;
}

.agio-contact-v2 .agio-contact-v2__branch {
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid #e0e6ef;
  border-left: 3px solid var(--agio-contact-blue);
  border-radius: 6px;
  background: #f6f8fc;
}

.agio-contact-v2 .agio-contact-v2__branch h3 {
  margin: 0 0 14px;
  padding: 0;
  color: var(--agio-contact-navy);
  font-family: inherit;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: normal;
  text-transform: none;
}

.agio-contact-v2.is-enhanced .agio-contact-v2__branch h3 {
  display: none;
}

.agio-contact-v2 .agio-contact-v2__privacy {
  margin: 20px 0 0;
  color: #526078;
  font-size: 14px;
  line-height: 1.5;
}

.agio-contact-v2 .agio-contact-v2__privacy a {
  color: #163277;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.agio-contact-v2 .agio-contact-v2__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

.agio-contact-v2 .agio-contact-v2__field,
.agio-contact-v2 .agio-contact-v2__callback {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.agio-contact-v2 .agio-contact-v2__field--full {
  grid-column: 1 / -1;
}

.agio-contact-v2 .agio-contact-v2__field > label {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  color: var(--agio-contact-navy);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.agio-contact-v2 .agio-contact-v2__field > label > span,
.agio-contact-v2 .agio-contact-v2__purpose legend > span,
.agio-contact-v2 .agio-contact-v2__required-note > span {
  display: inline;
  position: static;
  color: inherit;
}

.agio-contact-v2 .agio-contact-v2__optional {
  color: #526078 !important;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
}

.agio-contact-v2 .agio-contact-v2__required {
  display: inline;
  position: static;
  color: var(--agio-contact-red) !important;
  font-weight: 700;
}

.agio-contact-v2 .agio-contact-v2__field > .wpcf7-form-control-wrap {
  display: block;
  position: relative;
  width: 100%;
}

.agio-contact-v2 input[type="text"],
.agio-contact-v2 input[type="email"],
.agio-contact-v2 input[type="tel"],
.agio-contact-v2 select,
.agio-contact-v2 textarea {
  display: block;
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: 50px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--agio-contact-control-border);
  border-radius: 6px;
  background-color: #fff;
  background-image: none;
  color: var(--agio-contact-navy);
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  box-shadow: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.agio-contact-v2 select {
  appearance: auto;
  padding-right: 34px;
  cursor: pointer;
}

.agio-contact-v2 textarea {
  min-height: 170px;
  height: 170px;
  resize: vertical;
}

.agio-contact-v2 input[type="text"]:focus,
.agio-contact-v2 input[type="email"]:focus,
.agio-contact-v2 input[type="tel"]:focus,
.agio-contact-v2 select:focus,
.agio-contact-v2 textarea:focus {
  border-color: var(--agio-contact-blue);
  outline: 3px solid var(--agio-contact-blue);
  outline-offset: 2px;
}

.agio-contact-v2 input::placeholder,
.agio-contact-v2 textarea::placeholder {
  color: #66748a;
  opacity: 1;
}

.agio-contact-v2 .agio-contact-v2__hint {
  margin: 7px 0 0;
  padding: 0;
  color: #526078;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.agio-contact-v2 .agio-contact-v2__callback {
  align-self: center;
}

.agio-contact-v2 .agio-contact-v2__callback .wpcf7-form-control-wrap,
.agio-contact-v2 .agio-contact-v2__callback .wpcf7-checkbox {
  display: block;
  width: 100%;
}

.agio-contact-v2 .agio-contact-v2__callback .wpcf7-list-item > label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 0;
  color: var(--agio-contact-navy);
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.agio-contact-v2 .agio-contact-v2__callback input[type="checkbox"] {
  margin-top: 2px !important;
}

.agio-contact-v2 .agio-contact-v2__callback .agio-contact-v2__hint {
  margin-top: 0;
  padding-left: 32px;
}

.agio-contact-v2 input[type="checkbox"]:focus-visible,
.agio-contact-v2 input[type="radio"]:focus-visible {
  outline: 3px solid var(--agio-contact-blue);
  outline-offset: 3px;
}

.agio-contact-v2 .agio-contact-v2__required-note {
  margin: 18px 0 0;
  color: #526078;
  font-size: 15px;
  line-height: 1.4;
}

.agio-contact-v2 .agio-contact-v2__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
}

.agio-contact-v2 .agio-contact-v2__actions > p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.agio-contact-v2 input[type="submit"] {
  appearance: none;
  display: inline-block;
  width: auto !important;
  max-width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 13px 28px;
  border: 1px solid var(--agio-contact-red);
  border-radius: 6px;
  background: var(--agio-contact-red);
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.agio-contact-v2 input[type="submit"]:hover {
  border-color: #a80016;
  background: #a80016;
}

.agio-contact-v2 input[type="submit"]:focus-visible {
  outline: 3px solid var(--agio-contact-blue);
  outline-offset: 3px;
}

.agio-contact-v2 input[type="submit"]:disabled {
  opacity: 0.65;
  cursor: wait;
}

.agio-contact-v2 .wpcf7-spinner {
  display: inline-block;
  flex: 0 0 24px;
  margin: 0;
}

.agio-contact-v2 .wpcf7-not-valid {
  border-color: var(--agio-contact-red) !important;
}

.agio-contact-v2 .wpcf7-not-valid-tip {
  display: block;
  position: static !important;
  width: auto;
  height: auto;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b00018;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.wpcf7 form .agio-contact-v2 ~ .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-width: 1px;
  border-radius: 6px;
  color: #0f1f47;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.45;
}

.wpcf7 form.sent .agio-contact-v2 ~ .wpcf7-response-output {
  border-color: #76918b;
  background: #f2f7f5;
}

.wpcf7 form.invalid .agio-contact-v2 ~ .wpcf7-response-output,
.wpcf7 form.unaccepted .agio-contact-v2 ~ .wpcf7-response-output,
.wpcf7 form.failed .agio-contact-v2 ~ .wpcf7-response-output,
.wpcf7 form.aborted .agio-contact-v2 ~ .wpcf7-response-output,
.wpcf7 form.spam .agio-contact-v2 ~ .wpcf7-response-output {
  border-color: #c70119;
  background: #fff7f8;
}

.agio-contact-v2 .agio-contact-v2__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 640px) {
  .agio-contact-v2 .agio-contact-v2__intro {
    margin-bottom: 24px;
  }

  .agio-contact-v2 .agio-contact-v2__intro h2 {
    font-size: 28px;
  }

  .agio-contact-v2 .agio-contact-v2__purpose .wpcf7-radio,
  .agio-contact-v2 .agio-contact-v2__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .agio-contact-v2 .agio-contact-v2__purpose .wpcf7-list-item > label {
    min-height: 62px;
    padding: 14px;
  }

  .agio-contact-v2 .agio-contact-v2__branch {
    padding: 18px 16px;
  }

  .agio-contact-v2 .agio-contact-v2__fields {
    gap: 22px;
  }

  .agio-contact-v2 .agio-contact-v2__callback {
    margin-top: -8px;
  }

  .agio-contact-v2 input[type="submit"] {
    width: 100% !important;
  }

  .agio-contact-v2 .agio-contact-v2__actions {
    gap: 10px;
  }

  .agio-contact-v2 .agio-contact-v2__actions > p {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agio-contact-v2 input,
  .agio-contact-v2 select,
  .agio-contact-v2 textarea,
  .agio-contact-v2 .agio-contact-v2__purpose .wpcf7-list-item > label {
    transition: none;
  }
}
