.lpc-campaign,
.lpc-campaign * {
  box-sizing: border-box;
}

.lpc-campaign {
  --lpc-accent: #2563eb;
  font-family: inherit;
  margin: 28px 0;
  color: #111827;
}

.lpc-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.10);
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.lpc-theme-soft .lpc-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(255,255,255,0.94) 38%, #fff);
}

.lpc-theme-minimal .lpc-card {
  box-shadow: none;
}

.lpc-theme-contrast .lpc-card {
  background: #0f172a;
  color: #fff;
  border-color: rgba(255,255,255,0.12);
}

.lpc-title {
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.lpc-description {
  max-width: 760px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.lpc-theme-contrast .lpc-description {
  color: rgba(255,255,255,0.76);
}

.lpc-native-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.lpc-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lpc-field label {
  font-size: 13px;
  font-weight: 750;
  color: inherit;
}

.lpc-field label span {
  color: var(--lpc-accent);
}

.lpc-field input {
  min-height: 46px;
  border: 1px solid rgba(17,24,39,0.14);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 15px;
  width: 100%;
  background: #fff;
  color: #111827;
}

.lpc-field input:focus {
  outline: none;
  border-color: var(--lpc-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--lpc-accent) 15%, transparent);
}

.lpc-privacy,
.lpc-response {
  grid-column: 1 / -1;
}

.lpc-privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
}

.lpc-theme-contrast .lpc-privacy {
  color: rgba(255,255,255,0.74);
}

.lpc-submit {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--lpc-accent);
  color: #fff;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--lpc-accent) 24%, transparent);
}

.lpc-submit:hover,
.lpc-submit:focus {
  filter: brightness(0.96);
}

.lpc-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.lpc-response {
  min-height: 20px;
  color: var(--lpc-accent);
  font-weight: 700;
  font-size: 14px;
}

.lpc-note {
  font-size: 12px;
  color: #6b7280;
  margin-top: 10px;
}

.lpc-floating-shell {
  display: none;
  position: fixed;
  z-index: 99999;
}

.lpc-floating-shell.lpc-is-visible {
  display: block;
  animation: lpcFadeIn 0.24s ease-out;
}

.lpc-shell-popup {
  inset: 0;
  background: rgba(15, 23, 42, 0.50);
  padding: 22px;
}

.lpc-shell-popup .lpc-campaign {
  width: min(680px, calc(100vw - 44px));
  margin: 8vh auto 0;
}

.lpc-shell-slidein {
  right: 18px;
  bottom: 18px;
  width: min(420px, calc(100vw - 36px));
}

.lpc-shell-sticky {
  left: 16px;
  right: 16px;
  bottom: 14px;
}

.lpc-shell-sticky .lpc-campaign {
  margin: 0 auto;
  max-width: 1120px;
}

.lpc-shell-sticky .lpc-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
}

.lpc-shell-sticky .lpc-title {
  font-size: 20px;
  margin: 0;
}

.lpc-shell-sticky .lpc-description {
  margin: 4px 0 0;
}

.lpc-shell-sticky .lpc-native-form {
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  min-width: 500px;
}

.lpc-close {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 10px;
  border: 0;
  background: rgba(15, 23, 42, 0.08);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #111827;
}

@keyframes lpcFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 782px) {
  .lpc-card {
    padding: 18px;
  }
  .lpc-native-form,
  .lpc-shell-sticky .lpc-native-form,
  .lpc-shell-sticky .lpc-card {
    grid-template-columns: 1fr;
    min-width: 0;
  }
  .lpc-shell-slidein {
    left: 14px;
    right: 14px;
    width: auto;
  }
  .lpc-shell-sticky {
    left: 10px;
    right: 10px;
  }
}
