@font-face {
  font-family: "fontello";
  src:
    url("/theme-fonts/fontello.woff2") format("woff2"),
    url("/theme-fonts/fontello.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.snapshot-form-warning {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(24, 118, 210, 0.18);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.5;
}

.wpcf7 {
  --zgred-form-border: #1876d2;
  --zgred-form-border-focus: #212529;
  --zgred-form-surface: transparent;
  --zgred-form-shadow: none;
  --zgred-form-text: #1a1a1a;
  --zgred-form-muted: #4a4a4a;
  --zgred-form-placeholder: #6a6a6a;
  --zgred-form-radius: 0;
  margin: 1.5rem 0 2rem;
}

.wpcf7 .hidden-fields-container {
  display: none;
}

.wpcf7-form {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--zgred-form-radius);
  background: var(--zgred-form-surface);
  box-shadow: var(--zgred-form-shadow);
}

.kontakt-baner-right .wpcf7-form,
.kontakt-baner .wpcf7-form {
  background: transparent;
  box-shadow: none;
}

.wpcf7-form > p {
  margin: 0 0 1.875rem !important;
  color: var(--zgred-form-text);
  line-height: 1.55;
}

.wpcf7-form br {
  display: none;
}

.wpcf7-form > p:first-of-type {
  font-size: 1rem;
}

.wpcf7-form > p:first-of-type strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #1a1a1a;
  font-size: 1.05rem;
  line-height: 1.45;
}

.wpcf7-form-control-wrap {
  display: block;
  margin: 0;
}

.wpcf7-form-control-wrap:last-child {
  margin-bottom: 0;
}

.wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance) {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--zgred-form-border) !important;
  border-radius: 0;
  background: #fff;
  color: var(--zgred-form-text);
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: none;
  transition: border-color 0.18s ease;
}

.wpcf7-form-control.wpcf7-textarea {
  min-height: 9rem;
  resize: vertical;
}

.wpcf7-form-control.wpcf7-select {
  padding-right: 2.8rem;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #1876d2 50%),
    linear-gradient(135deg, #1876d2 50%, transparent 50%),
    linear-gradient(180deg, rgba(24, 118, 210, 0.08), rgba(24, 118, 210, 0.08));
  background-position:
    calc(100% - 1.2rem) calc(50% - 0.1rem),
    calc(100% - 0.85rem) calc(50% - 0.1rem),
    calc(100% - 2.5rem) 50%;
  background-size: 0.45rem 0.45rem, 0.45rem 0.45rem, 1px 1.8rem;
  background-repeat: no-repeat;
}

.wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance)::placeholder {
  color: var(--zgred-form-placeholder);
  opacity: 1;
}

.wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance):focus {
  outline: none;
  border-color: var(--zgred-form-border-focus) !important;
  box-shadow: none;
  transform: none;
}

.wpcf7-form-control-wrap .wpcf7-not-valid-tip {
  margin-top: 0.45rem;
  padding: 0.35rem 0.55rem;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.45;
  background: #fe6c6c;
}

.wpcf7-acceptance {
  display: block;
  margin-top: 0.2rem;
}

.wpcf7-acceptance .wpcf7-list-item {
  display: block;
  margin: 0;
}

.wpcf7-acceptance .wpcf7-list-item label {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}

.wpcf7-acceptance input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  accent-color: #af1212;
}

.wpcf7-acceptance .wpcf7-list-item-label,
.wpcf7-acceptance .wpcf7-list-item-label span {
  color: var(--zgred-form-muted) !important;
  font-size: 0.8rem !important;
  line-height: 1.65 !important;
}

.wpcf7-acceptance .wpcf7-list-item-label a,
.wpcf7-acceptance .wpcf7-list-item-label a[style] {
  color: #1876d2 !important;
  text-decoration: underline !important;
  text-underline-offset: 0.16em;
}

.wpcf7-submit.btn-cf7,
.wpcf7-submit.btn-secondary,
.wpcf7-submit {
  min-width: 11rem;
  min-height: auto;
  padding: 15px 50px;
  border: 0;
  border-radius: 0;
  background: #1a1a1a;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: none;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.wpcf7-submit.btn-cf7:hover,
.wpcf7-submit.btn-secondary:hover,
.wpcf7-submit:hover {
  transform: none;
  box-shadow: none;
  filter: none;
  color: #03a9f5;
  background: #1a1a1a;
}

.wpcf7-submit.btn-cf7:focus-visible,
.wpcf7-submit.btn-secondary:focus-visible,
.wpcf7-submit:focus-visible {
  outline: none;
  box-shadow: none;
}

.wpcf7-spinner {
  margin-left: 0.65rem;
}

.wpcf7-response-output {
  margin: 0 !important;
  padding: 0.95rem 1rem !important;
  border: 1px solid rgba(24, 118, 210, 0.18) !important;
  border-radius: 0;
  background: rgba(24, 118, 210, 0.08);
  color: var(--zgred-form-text);
  line-height: 1.6;
}

.sidebar-nav li.has-submenu > ul[hidden],
.sp-easy-accordion .sp-collapse[hidden] {
  display: none !important;
}

.nav-bar-nav li.has-submenu {
  position: relative;
}

.nav-bar-nav li.has-submenu > ul {
  display: none;
}

.nav-bar-nav li.has-submenu.is-open > ul,
.nav-bar-nav li.has-submenu:hover > ul,
.nav-bar-nav li.has-submenu:focus-within > ul {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 40;
}

.nav-bar-nav > nav > ul > li.has-submenu {
  position: relative;
}

.nav-bar-nav > nav > ul > li.has-submenu > ul {
  position: absolute;
  top: 100%;
  left: 0;
}

.single-post-featured-image {
  margin: 0 0 2rem;
}

.single-post-featured-image img {
  display: block;
  width: 100%;
  height: auto;
}

.wp-block-yoast-faq-block {
  margin: 2rem 0;
}

.wp-block-yoast-faq-block .schema-faq-section {
  margin: 0 0 1rem !important;
  padding: 1.1rem 1.25rem !important;
  border: 1px solid rgba(24, 118, 210, 0.16) !important;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%) !important;
  box-shadow: 0 14px 32px rgba(18, 39, 64, 0.08);
}

.wp-block-yoast-faq-block .schema-faq-question {
  display: block;
  margin: 0;
  color: #12304b !important;
  font-size: 1.08rem;
  line-height: 1.45;
}

.wp-block-yoast-faq-block .schema-faq-answer {
  margin: 0.75rem 0 0 !important;
  color: #43556a;
  line-height: 1.75;
}

.sp-easy-accordion {
  margin: 1.75rem 0 2.25rem;
}

.sp-easy-accordion > .sp-ea-single {
  margin-bottom: 1rem !important;
  border: 1px solid rgba(24, 118, 210, 0.16) !important;
  border-radius: 18px !important;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%) !important;
  box-shadow: 0 14px 32px rgba(18, 39, 64, 0.08);
}

.sp-easy-accordion > .sp-ea-single > .ea-header a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 1.2rem !important;
  color: #12304b !important;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.sp-easy-accordion > .sp-ea-single > .ea-header a:hover {
  color: #1876d2 !important;
}

.sp-easy-accordion > .sp-ea-single > .ea-header a .ea-expand-icon {
  flex: 0 0 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0 !important;
  border-radius: 999px;
  background: rgba(24, 118, 210, 0.1);
  color: #1876d2 !important;
  font-size: 0.95rem !important;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.sp-easy-accordion > .sp-ea-single > .ea-header a[aria-expanded="true"] .ea-expand-icon {
  transform: rotate(45deg);
  background: rgba(24, 118, 210, 0.16);
}

.sp-easy-accordion > .sp-ea-single > .sp-collapse > .ea-body {
  padding: 0 1.2rem 1.15rem !important;
  background: transparent !important;
  color: #43556a !important;
  line-height: 1.75;
}

.sp-easy-accordion > .sp-ea-single > .sp-collapse > .ea-body > *:first-child {
  margin-top: 0;
}

.sp-easy-accordion > .sp-ea-single > .sp-collapse > .ea-body > *:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .wpcf7-form {
    padding: 0;
    border-radius: 0;
  }

  .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance) {
    min-height: 3rem;
    padding: 0.9rem 0.95rem;
    border-radius: 0;
  }

  .wpcf7-submit.btn-cf7,
  .wpcf7-submit.btn-secondary,
  .wpcf7-submit {
    width: 100%;
  }

  .wp-block-yoast-faq-block .schema-faq-section,
  .sp-easy-accordion > .sp-ea-single {
    border-radius: 14px !important;
  }

  .sp-easy-accordion > .sp-ea-single > .ea-header a {
    padding: 0.95rem 1rem !important;
    gap: 0.75rem;
  }

  .sp-easy-accordion > .sp-ea-single > .sp-collapse > .ea-body {
    padding: 0 1rem 1rem !important;
  }
}

.sidebar-close > span,
.nav-bar-toggler-1,
.sp-easy-accordion .ea-header a {
  cursor: pointer;
}
