.fler-form-popup {
  --bg: #f3f0e8;
  --green: #6ea292;
  --green-dark: #4b695f;
  --border: rgba(110, 162, 146, 0.3);
  --border-strong: rgba(110, 162, 146, 0.6);
  --muted: rgba(87, 127, 114, 0.8);
  --placeholder: rgba(87, 127, 114, 0.52);
  position: fixed;
  inset: 0;
  z-index: 2000;
  padding: 32px 16px;
  overflow-y: auto;
}

.fler-form-popup[hidden] {
  display: none;
}

.fler-form-popup .modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(38, 43, 40, 0.32);
}

.fler-form-popup .modal__panel {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  width: min(720px, 100%);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 100%), var(--bg);
  box-shadow: 0 28px 80px rgba(44, 63, 57, 0.16);
}

.fler-form-popup .modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.fler-form-popup .modal__close::before,
.fler-form-popup .modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--green-dark);
  transform-origin: center;
}

.fler-form-popup .modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.fler-form-popup .modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.fler-form-popup .modal__close:focus-visible {
  outline: 2px solid rgba(110, 162, 146, 0.45);
  outline-offset: 4px;
  border-radius: 10px;
}

.fler-form-popup .modal__title {
  margin: 0;
  padding: 40px 88px 0 40px;
  color: var(--green-dark);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
}

.fler-form-popup .modal__subtitle {
  position: relative;
  margin: 14px 40px 28px;
  padding-top: 18px;
  color: var(--green-dark);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fler-form-popup .modal__subtitle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border-strong);
}

.fler-form-popup .modal__body {
  padding: 30px 40px 40px;
  border-top: 1px solid #4E8373;
  margin-top: 30px;
}

.fler-form-popup .modal__intro {
  margin: 0 0 24px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  text-transform: uppercase;
}

.fler-form-popup .modal__intro p {
  margin: 0 0 12px;
}

.fler-form-popup .modal__intro p:last-child {
  margin-bottom: 0;
}

.fler-form-popup .modal__intro ul {
  margin: 0;
  padding-left: 20px;
}

.fler-form-popup .modal__intro li + li {
  margin-top: 8px;
}

.fler-form-popup .modal__body .screen-reader-response {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fler-form-popup .modal__body .wpcf7 {
  color: var(--green-dark);
}

.fler-form-popup .modal__body .wpcf7 form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin: 0;
}

.fler-form-popup .modal__body .wpcf7 form > p {
  margin: 0;
}

.fler-form-popup .modal__body .wpcf7 form > p:last-of-type {
  margin-top: 6px;
}

.fler-form-popup .modal__body .wpcf7 br {
  display: none;
}

.fler-form-popup .modal__body .wpcf7 .hidden-fields-container {
  display: none;
}

.fler-form-popup .modal__body .wpcf7 form > p > label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--green-dark);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  text-transform: uppercase;
}

.fler-form-popup .modal__body .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.fler-form-popup .modal__body .wpcf7 input[type="text"],
.fler-form-popup .modal__body .wpcf7 input[type="email"],
.fler-form-popup .modal__body .wpcf7 textarea {
  width: 100%;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--green-dark);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fler-form-popup .modal__body .wpcf7 textarea {
  min-height: 116px;
  padding-top: 2px;
  resize: vertical;
}

.fler-form-popup .modal__body .wpcf7 input[type="text"]:focus,
.fler-form-popup .modal__body .wpcf7 input[type="email"]:focus,
.fler-form-popup .modal__body .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: inset 0 -1px 0 var(--green-dark);
}

.fler-form-popup .modal__body .wpcf7 input::placeholder,
.fler-form-popup .modal__body .wpcf7 textarea::placeholder {
  color: var(--placeholder);
  font-size: 14px;
  font-weight: 400;
}

.fler-form-popup .modal__body .wpcf7 [class*="honeypot-"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fler-form-popup .modal__body .wpcf7 .wpcf7-acceptance {
  display: block;
}

.fler-form-popup .modal__body .wpcf7 .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.fler-form-popup .modal__body .wpcf7 .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  text-transform: none;
}

.fler-form-popup .modal__body .wpcf7 .wpcf7-acceptance input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--green);
}

.fler-form-popup .modal__body .wpcf7 .wpcf7-acceptance a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.fler-form-popup .modal__body .wpcf7 .wpcf7-submit {
  width: 100%;
  min-height: 56px;
  padding: 16px 24px;
  border: 1px solid var(--green);
  border-radius: 1px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.fler-form-popup .modal__body .wpcf7 .wpcf7-submit:not(:disabled):hover {
  background: #5e9383;
  border-color: #5e9383;
}

.fler-form-popup .modal__body .wpcf7 .wpcf7-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.fler-form-popup .modal__body .wpcf7 .wpcf7-spinner {
  margin: 0 0 0 12px;
  vertical-align: middle;
}

.fler-form-popup .modal__body .wpcf7-not-valid-tip,
.fler-form-popup .modal__body .wpcf7 form .wpcf7-response-output {
  margin: 10px 0 0;
  color: var(--green);
  font-size: 13px;
  line-height: 1.35;
}

.fler-form-popup .modal__body .wpcf7 form .wpcf7-response-output {
  padding: 0;
  border: 0;
}

@media (max-width: 767px) {
  .fler-form-popup {
    padding: 12px;
  }

  .fler-form-popup .modal__panel {
    max-height: calc(100vh - 24px);
    border-radius: 24px;
  }

  .fler-form-popup .modal__close {
    top: 16px;
    right: 16px;
  }

  .fler-form-popup .modal__close::before,
  .fler-form-popup .modal__close::after {
    width: 14px;
  }

  .fler-form-popup .modal__title {
    padding: 28px 68px 0 20px;
  }

  .fler-form-popup .modal__subtitle {
    margin: 12px 20px 24px;
    padding-top: 16px;
  }

  .fler-form-popup .modal__body {
    padding: 0 20px 28px;
  }

  .fler-form-popup .modal__body .wpcf7 form {
    gap: 16px;
  }

  .fler-form-popup .modal__body .wpcf7 form > p > label {
    font-size: 18px;
  }

  .fler-form-popup .modal__body .wpcf7 input[type="text"],
  .fler-form-popup .modal__body .wpcf7 input[type="email"],
  .fler-form-popup .modal__body .wpcf7 textarea {
    padding-bottom: 12px;
  }
}
