.lcf-header-trigger,
.lcf-home-block,
.lcf-backdrop {
  --lcf-navy: var(--navy, #09214b);
  --lcf-ink: var(--ink, #14233d);
  --lcf-teal: var(--teal, #008f8c);
  --lcf-teal-dark: var(--teal-dark, #007b79);
  --lcf-mint: var(--mint, #eaf7f4);
  --lcf-muted: var(--muted, #68788d);
  --lcf-line: var(--line, #cbd7e1);
  --lcf-line-light: var(--line-light, #e2e9ee);
  --lcf-white: var(--white, #fff);
  font-family: var(--font-geist, "Segoe UI", Arial, sans-serif);
}

.lcf-header-trigger {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(0, 143, 140, 0.34);
  border-radius: 10px;
  background: #f5fbfa;
  color: var(--lcf-teal-dark);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.lcf-header-trigger:hover,
.lcf-header-trigger:focus-visible {
  border-color: var(--lcf-teal);
  background: var(--lcf-mint);
  color: var(--lcf-navy);
  transform: translateY(-1px);
}

.lcf-header-trigger:focus-visible,
.lcf-home-actions button:focus-visible,
.lcf-type-card:focus-visible,
.lcf-close:focus-visible,
.lcf-back:focus-visible,
.lcf-submit:focus-visible {
  outline: 3px solid rgba(0, 143, 140, 0.24);
  outline-offset: 3px;
}

.lcf-header-trigger svg,
.lcf-home-label svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lcf-header-trigger::after {
  content: attr(data-lcf-tooltip);
  position: absolute;
  z-index: 80;
  right: 0;
  top: calc(100% + 12px);
  width: max-content;
  max-width: 260px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--lcf-navy);
  box-shadow: 0 10px 28px rgba(9, 33, 75, 0.2);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 620;
  line-height: 1.35;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.lcf-header-trigger::before {
  content: "";
  position: absolute;
  z-index: 81;
  top: calc(100% + 6px);
  right: 15px;
  width: 11px;
  height: 11px;
  background: var(--lcf-navy);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px) rotate(45deg);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.lcf-header-trigger:hover::after,
.lcf-header-trigger:hover::before,
.lcf-header-trigger:focus-visible::after,
.lcf-header-trigger:focus-visible::before {
  opacity: 1;
}

.lcf-header-trigger:hover::after,
.lcf-header-trigger:focus-visible::after {
  transform: translateY(0);
}

.lcf-header-trigger:hover::before,
.lcf-header-trigger:focus-visible::before {
  transform: translateY(0) rotate(45deg);
}

.lcf-home-block {
  display: flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  max-width: 100%;
  margin: 22px 0 0;
  padding: 9px 10px 9px 13px;
  border: 1px solid var(--lcf-line-light);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 7px 22px rgba(9, 33, 75, 0.045);
}

.lcf-home-label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  color: var(--lcf-teal-dark);
}

.lcf-home-label svg {
  width: 18px;
  height: 18px;
}

.lcf-home-label > span {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.lcf-home-label strong {
  color: var(--lcf-navy);
  font-size: 0.82rem;
}

.lcf-home-label small {
  color: var(--lcf-muted);
  font-size: 0.68rem;
}

.lcf-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.lcf-home-actions button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--lcf-line-light);
  border-radius: 7px;
  background: #f7fafb;
  color: var(--lcf-navy);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease;
}

.lcf-home-actions button:hover {
  border-color: rgba(0, 143, 140, 0.42);
  background: var(--lcf-mint);
  color: var(--lcf-teal-dark);
}

body.lcf-modal-open {
  overflow: hidden;
}

.lcf-backdrop[hidden],
.lcf-step[hidden],
.lcf-fields[hidden],
.lcf-form-error[hidden] {
  display: none !important;
}

.lcf-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 28px 18px;
  background: rgba(5, 23, 53, 0.72);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 160ms ease;
}

.lcf-backdrop.is-open {
  opacity: 1;
}

.lcf-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(5, 23, 53, 0.32);
  color: var(--lcf-ink);
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.lcf-backdrop.is-open .lcf-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lcf-close {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--lcf-line-light);
  border-radius: 50%;
  background: #fff;
  color: var(--lcf-muted);
  font: inherit;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.lcf-close:hover {
  background: #f5f8fa;
  color: var(--lcf-navy);
}

.lcf-kicker {
  margin: 0 52px 7px 0;
  color: var(--lcf-teal-dark);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lcf-modal h2 {
  margin: 0 52px 9px 0;
  color: var(--lcf-navy);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.lcf-intro {
  max-width: 500px;
  margin: 0 0 25px;
  color: var(--lcf-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.lcf-type-grid {
  display: grid;
  gap: 10px;
}

.lcf-type-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 82px;
  padding: 13px 16px;
  border: 1px solid var(--lcf-line-light);
  border-radius: 12px;
  background: #fff;
  color: var(--lcf-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.lcf-type-card:hover {
  border-color: rgba(0, 143, 140, 0.42);
  background: #fbfdfd;
  box-shadow: 0 9px 25px rgba(9, 33, 75, 0.06);
  transform: translateY(-1px);
}

.lcf-type-card > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.lcf-type-card strong {
  color: var(--lcf-navy);
  font-size: 0.96rem;
}

.lcf-type-card small {
  color: var(--lcf-muted);
  font-size: 0.79rem;
  line-height: 1.35;
}

.lcf-type-card > i {
  color: var(--lcf-teal-dark);
  font-size: 1.15rem;
  font-style: normal;
  transition: transform 160ms ease;
}

.lcf-type-card:hover > i {
  transform: translateX(3px);
}

.lcf-type-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--lcf-mint);
  color: var(--lcf-teal-dark);
  font-size: 0.85rem;
  font-weight: 780;
}

.lcf-type-complaint .lcf-type-icon {
  background: #fff1ed;
  color: #b44c31;
  font-size: 1.15rem;
}

.lcf-type-error .lcf-type-icon {
  background: #edf4ff;
  color: #315d9c;
}

.lcf-type-suggestion .lcf-type-icon {
  background: #f0f8ee;
  color: #39733a;
  font-size: 1rem;
}

.lcf-back {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lcf-teal-dark);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.lcf-form {
  display: grid;
  gap: 17px;
}

.lcf-fields {
  display: grid;
  gap: 17px;
}

.lcf-form label {
  display: grid;
  gap: 7px;
}

.lcf-form label > span {
  color: var(--lcf-navy);
  font-size: 0.83rem;
  font-weight: 680;
}

.lcf-form label > span em {
  color: #b42318;
  font-style: normal;
}

.lcf-form label > span small {
  margin-left: 4px;
  color: var(--lcf-muted);
  font-weight: 450;
}

.lcf-form input,
.lcf-form select,
.lcf-form textarea {
  width: 100%;
  margin: 0;
  border: 1px solid var(--lcf-line);
  border-radius: 9px;
  background: #fff;
  color: var(--lcf-ink);
  font: inherit;
  font-size: 0.91rem;
  box-shadow: none;
}

.lcf-form input,
.lcf-form select {
  min-height: 45px;
  padding: 9px 12px;
}

.lcf-form textarea {
  min-height: 132px;
  padding: 12px;
  line-height: 1.5;
  resize: vertical;
}

.lcf-form input:focus,
.lcf-form select:focus,
.lcf-form textarea:focus {
  border-color: var(--lcf-teal);
  outline: 3px solid rgba(0, 143, 140, 0.11);
}

.lcf-message-field {
  position: relative;
}

.lcf-message-field > small {
  position: absolute;
  right: 10px;
  bottom: 8px;
  padding: 2px 4px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--lcf-muted);
  font-size: 0.68rem;
}

.lcf-context-note {
  margin: -3px 0 0;
  padding: 11px 13px;
  border-radius: 8px;
  background: #f4f7fa;
  color: var(--lcf-muted);
  font-size: 0.77rem;
  line-height: 1.45;
}

.lcf-warning {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid #f0dfad;
  border-radius: 9px;
  background: #fffaf0;
}

.lcf-warning > span {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d99a19;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 780;
}

.lcf-warning p {
  margin: 0;
  color: #6e5a2d;
  font-size: 0.75rem;
  line-height: 1.5;
}

.lcf-warning strong {
  color: #594415;
}

.lcf-turnstile:empty {
  display: none;
}

.lcf-submit {
  min-height: 47px;
  padding: 11px 18px;
  border: 1px solid var(--lcf-teal);
  border-radius: 9px;
  background: var(--lcf-teal);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}

.lcf-submit:hover:not(:disabled) {
  border-color: var(--lcf-teal-dark);
  background: var(--lcf-teal-dark);
}

.lcf-submit:disabled {
  cursor: wait;
  opacity: 0.56;
}

.lcf-form-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff0ed;
  color: #9d2c20;
  font-size: 0.82rem;
}

.lcf-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.lcf-success-step {
  padding: 28px 10px 10px;
  text-align: center;
}

.lcf-success-step .lcf-kicker,
.lcf-success-step h2 {
  margin-right: 0;
}

.lcf-success-step > p:not(.lcf-kicker) {
  max-width: 430px;
  margin: 0 auto 24px;
  color: var(--lcf-muted);
}

.lcf-success-step .lcf-submit {
  min-width: 170px;
}

.lcf-success-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--lcf-mint);
  color: var(--lcf-teal-dark);
  font-size: 1.65rem;
  font-weight: 760;
}

@media (max-width: 1140px) {
  .lcf-header-trigger::after,
  .lcf-header-trigger::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .lcf-home-block {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .lcf-home-actions {
    width: 100%;
  }

  .lcf-home-actions button {
    flex: 1 1 130px;
  }
}

@media (max-width: 620px) {
  .lcf-header-trigger {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .lcf-backdrop {
    align-items: end;
    padding: 0;
  }

  .lcf-modal {
    width: 100%;
    max-height: min(92vh, 850px);
    padding: 30px 20px 24px;
    border: 0;
    border-radius: 18px 18px 0 0;
  }

  .lcf-close {
    top: 13px;
    right: 13px;
  }

  .lcf-kicker,
  .lcf-modal h2 {
    margin-right: 45px;
  }

  .lcf-type-card {
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    gap: 11px;
    min-height: 76px;
    padding: 11px 12px;
  }

  .lcf-type-icon {
    width: 38px;
    height: 38px;
  }

  .lcf-home-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lcf-header-trigger,
  .lcf-header-trigger::before,
  .lcf-header-trigger::after,
  .lcf-type-card,
  .lcf-type-card > i,
  .lcf-backdrop,
  .lcf-modal {
    transition: none;
  }
}
