:root {
  --lpq-dark: #062f3d;
  --lpq-primary: #075466;
  --lpq-accent: #ffb716;
  --lpq-light: #eaf6f8;
  --lpq-white: #ffffff;
  --lpq-error: #a32020;
  --lpq-button-background: #FFB716;
  --lpq-button-background-hover: #FFAE00;
  --lpq-button-color: #FFFFFF;
  --lpq-button-border: #FFAE00;
  --lpq-button-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.16);
}

.lpq-loader { display: none !important; }

.lpq-button,
.lpq-primary,
.lpq-secondary {
  align-items: center;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: 700 16px/1.2 "Montserrat", Arial, sans-serif;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.lpq-button--primary {
  background-color: var(--lpq-button-background);
  border-color: var(--lpq-button-border);
  border-radius: 50px;
  border-style: solid;
  border-width: 1px;
  box-shadow: var(--lpq-button-shadow);
  color: var(--lpq-button-color);
  cursor: pointer;
  fill: var(--lpq-button-color);
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.lpq-button--primary:hover,
.lpq-button--primary:focus,
.lpq-button--primary:active {
  background-color: var(--lpq-button-background-hover);
  border-color: var(--lpq-button-border);
  color: #FFFFFF;
  fill: #FFFFFF;
}

.lpq-button--primary:hover { transform: translateY(-1px); }
.lpq-button--primary:active { transform: translateY(0); }
.lpq-button--primary:focus-visible {
  outline: 3px solid rgba(10, 102, 117, 0.35);
  outline-offset: 3px;
}

.lpq-secondary { background: var(--lpq-white); border-color: var(--lpq-primary); color: var(--lpq-primary); }
.lpq-secondary:focus-visible,
.lpq-close:focus-visible,
.lpq-summary-edit:focus-visible,
.lpq-field input:focus,
.lpq-field select:focus,
.lpq-field textarea:focus { outline: 3px solid rgba(255, 183, 22, .55); outline-offset: 2px; }

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

.lpq-submission-notice {
  background: var(--lpq-white);
  border-left: 5px solid var(--lpq-button-background);
  border-radius: 8px;
  box-shadow: var(--lpq-button-shadow);
  color: var(--lpq-dark);
  font: 600 16px/1.5 "Montserrat", Arial, sans-serif;
  left: 50%;
  max-width: min(560px, calc(100% - 32px));
  padding: 18px 22px;
  position: fixed;
  top: 24px;
  transform: translateX(-50%);
  width: max-content;
  z-index: 1000001;
}

.lpq-submission-notice[hidden] { display: none; }

.lpq-modal {
  display: none;
  font-family: "Montserrat", Arial, sans-serif;
  inset: 0;
  position: fixed;
  z-index: 999999;
}

.lpq-modal:target,
.lpq-modal[data-lpq-open="true"],
.lpq-modal.lpq-modal--open { display: block; }

.lpq-overlay {
  background: rgba(6, 47, 61, .78);
  border: 0;
  cursor: default;
  inset: 0;
  padding: 0;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.lpq-dialog {
  background: var(--lpq-white);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
  color: var(--lpq-dark);
  display: flex;
  flex-direction: column;
  left: 50%;
  max-height: 90vh;
  max-width: 810px;
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 40px);
  z-index: 2;
}

.lpq-modal[data-lpq-desktop-mode="wide"] .lpq-dialog { max-width: 960px; }

.lpq-header {
  align-items: flex-start;
  background: var(--lpq-dark);
  color: var(--lpq-white);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 22px 28px 18px;
}

.lpq-eyebrow { color: var(--lpq-accent); font-size: 12px; font-weight: 700; letter-spacing: .07em; margin: 0 0 5px; text-transform: uppercase; }
.lpq-title { color: var(--lpq-white); font-size: clamp(22px, 3vw, 30px); line-height: 1.15; margin: 0; }
.lpq-intro { color: var(--lpq-white); font-size: 14px; margin: 8px 0 0; opacity: .9; }
.lpq-close { background: transparent; border: 0; border-radius: 6px; color: var(--lpq-white); cursor: pointer; flex: 0 0 auto; font-size: 38px; height: 44px; line-height: 1; padding: 0; pointer-events: auto; position: relative; width: 44px; z-index: 4; }

.lpq-progress-wrap {
  align-items: center;
  background: var(--lpq-light);
  display: flex;
  gap: 12px;
  padding: 12px 28px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.lpq-progress { background: #c8e2e7; border-radius: 999px; height: 8px; overflow: hidden; width: 100%; }
.lpq-progress-bar { background: var(--lpq-primary); border-radius: inherit; display: block; height: 100%; transition: width .2s ease; width: 0; }
.lpq-progress-text { color: var(--lpq-primary); flex: 0 0 auto; font-size: 13px; font-weight: 700; }

.lpq-form { overflow-x: hidden; overflow-y: auto; padding: 24px 28px 20px; }
.lpq-step h3,
.lpq-success h3 { color: var(--lpq-dark); font-size: 23px; margin: 0 0 18px; }
.lpq-step h3:focus,
.lpq-success h3:focus { outline: none; }
.lpq-help { color: #3e5d66; font-size: 14px; margin: -9px 0 20px; }
.lpq-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lpq-field-wide { grid-column: 1 / -1; }
.lpq-field { min-width: 0; }
.lpq-field label { color: var(--lpq-dark); display: block; font-size: 14px; font-weight: 700; margin: 0 0 7px; }
.lpq-field label span,
.lpq-required-note span { color: var(--lpq-error); }
.lpq-field input,
.lpq-field select,
.lpq-field textarea {
  appearance: auto;
  background: var(--lpq-white);
  border: 1px solid #9cb8bf;
  border-radius: 7px;
  box-sizing: border-box;
  color: var(--lpq-dark);
  font: 400 16px/1.35 "Montserrat", Arial, sans-serif;
  margin: 0;
  max-width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  width: 100%;
}
.lpq-field textarea { min-height: 92px; resize: vertical; }
.lpq-field input:disabled { background: #f1f5f6; color: #44616a; }
.lpq-field .lpq-invalid { border-color: var(--lpq-error); box-shadow: 0 0 0 1px var(--lpq-error); }
.lpq-error { color: var(--lpq-error); display: block; font-size: 12px; font-weight: 600; margin-top: 5px; min-height: 0; }
.lpq-honeypot { height: 1px !important; left: -10000px !important; overflow: hidden !important; position: absolute !important; top: auto !important; width: 1px !important; }

.lpq-consents { border-top: 1px solid #d8e7ea; margin-top: 22px; padding-top: 18px; }
.lpq-check { align-items: flex-start; display: grid; gap: 9px; grid-template-columns: 22px 1fr; margin: 12px 0; }
.lpq-check input { height: 20px; margin: 1px 0 0; width: 20px; }
.lpq-check label { color: var(--lpq-dark); font-size: 14px; line-height: 1.45; }
.lpq-check .lpq-error { grid-column: 2; margin-top: -5px; }
.lpq-check a { color: var(--lpq-primary); font-weight: 700; }

.lpq-form-error { background: #fff0f0; border-left: 4px solid var(--lpq-error); border-radius: 4px; color: #761616; font-size: 14px; margin-bottom: 18px; padding: 12px 14px; }
.lpq-actions { align-items: center; border-top: 1px solid #d8e7ea; display: flex; gap: 12px; justify-content: flex-end; margin-top: 26px; padding-top: 18px; }
.lpq-actions [hidden] { display: none; }
.lpq-required-note { color: #506971; font-size: 12px; margin: 10px 0 0; text-align: right; }

.lpq-summary { display: grid; gap: 14px; }
.lpq-summary-section { background: var(--lpq-light); border-radius: 10px; padding: 16px; }
.lpq-summary-heading { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.lpq-summary-heading h4 { color: var(--lpq-dark); font-size: 16px; margin: 0; }
.lpq-summary-edit { background: transparent; border: 0; color: var(--lpq-primary); cursor: pointer; font: 700 13px/1.2 "Montserrat", Arial, sans-serif; text-decoration: underline; }
.lpq-summary dl { display: grid; gap: 5px 12px; grid-template-columns: minmax(150px, 1fr) 2fr; margin: 12px 0 0; }
.lpq-summary dt { color: #46636c; font-size: 12px; font-weight: 700; }
.lpq-summary dd { color: var(--lpq-dark); font-size: 13px; margin: 0; overflow-wrap: anywhere; }
.lpq-success { min-height: 250px; overflow-y: auto; padding: 40px 32px; text-align: center; }
.lpq-noscript-note { background: #fff8df; padding: 10px; }
.lpq-noscript-group { border: 1px solid #bed3d8; border-radius: 6px; margin: 12px 0; padding: 10px; }
.lpq-noscript-group summary { cursor: pointer; font-weight: 700; }

@media (max-width: 680px) {
  .lpq-dialog { border-radius: 0; height: 100dvh; max-height: 100dvh; top: 0; transform: translateX(-50%); width: 100%; }
  .lpq-header { padding: 16px 18px 12px; }
  .lpq-intro { display: none; }
  .lpq-progress-wrap { padding: 10px 18px; }
  .lpq-form { padding: 20px 18px 104px; }
  .lpq-grid { grid-template-columns: minmax(0, 1fr); }
  .lpq-field-wide { grid-column: auto; }
  .lpq-actions { background: var(--lpq-white); bottom: 0; box-shadow: 0 -6px 16px rgba(6, 47, 61, .1); left: 0; margin: 0; padding: 12px 18px max(12px, env(safe-area-inset-bottom)); position: fixed; right: 0; z-index: 3; }
  .lpq-actions button { flex: 1 1 0; min-width: 0; padding-inline: 12px; }
  .lpq-required-note { display: none; }
  .lpq-summary dl { grid-template-columns: 1fr; }
  .lpq-summary dd { margin-bottom: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .lpq-button--primary,
  .lpq-secondary,
  .lpq-progress-bar { transition: none; }
}
