/* Form4Production iframe stylesheet. Scoped, deterministic, driven only by the documented --f4p-* tokens. */
:root {
  --f4p-control-h: 2.75em;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: transparent; }
html.f4p-bg-solid body { background: var(--f4p-canvas-bg); }
body {
  font-family: var(--f4p-font-family);
  font-size: var(--f4p-font-size);
  line-height: 1.5;
  color: var(--f4p-text);
  -webkit-text-size-adjust: 100%;
}
.f4p-root {
  width: 100%;
  max-width: var(--f4p-max-width);
  margin: 0 auto;
  padding: 4px; /* keeps focus rings visible inside the frame */
}
html.f4p-bg-card .f4p-root {
  background: var(--f4p-card-bg);
  border-radius: calc(var(--f4p-radius) + 4px);
  padding: clamp(16px, 4vw, 32px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .06);
}
[hidden] { display: none !important; }

.f4p-title { font-size: 1.375em; line-height: 1.3; margin: 0 0 .5em; color: var(--f4p-label); }
.f4p-desc, .f4p-step-desc { margin: 0 0 1em; color: var(--f4p-muted); }
.f4p-preview-banner { margin: 0 0 1em; padding: .5em .75em; border: 1px dashed var(--f4p-border); border-radius: var(--f4p-radius); color: var(--f4p-text); }
.f4p-step-title { font-size: 1.125em; margin: 0 0 .75em; color: var(--f4p-label); }
.f4p-step-title:focus { outline: none; }
.f4p-step-title:focus-visible { outline: 3px solid var(--f4p-focus); outline-offset: 2px; }

.f4p-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: var(--f4p-spacing);
}
.f4p-field { grid-column: span 6; min-width: 0; margin: 0; padding: 0; border: 0; }
@media (min-width: 560px) {
  .f4p-w-half { grid-column: span 3; }
  .f4p-w-third { grid-column: span 2; }
}

.f4p-label, .f4p-field legend {
  display: block;
  font-weight: 600;
  color: var(--f4p-label);
  margin-bottom: var(--f4p-label-gap);
  padding: 0;
  overflow-wrap: anywhere;
}
.f4p-req { color: var(--f4p-error); }
.f4p-help { margin: 0 0 var(--f4p-label-gap); font-size: .875em; color: var(--f4p-muted); }
.f4p-help a { color: var(--f4p-accent); }

.f4p-field input[type=text], .f4p-field input[type=email], .f4p-field input[type=tel],
.f4p-field input[type=number], .f4p-field input[type=date], .f4p-field input[type=time],
.f4p-field select, .f4p-field textarea {
  display: block;
  width: 100%;
  min-height: var(--f4p-control-h);
  padding: .55em .75em;
  font: inherit;
  color: var(--f4p-field-text);
  background: var(--f4p-field-bg);
  border: 1px solid var(--f4p-border);
  border-radius: var(--f4p-radius);
  appearance: none;
  -webkit-appearance: none;
}
.f4p-field select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-inline-end: 2.25em;
}
[dir=rtl] .f4p-field select { background-position: 13px 55%, 18px 55%; }
.f4p-field textarea { min-height: 7.5em; resize: vertical; }
.f4p-field ::placeholder { color: var(--f4p-muted); opacity: 1; }
.f4p-field input:focus-visible, .f4p-field select:focus-visible, .f4p-field textarea:focus-visible,
.f4p-option input:focus-visible, .f4p-btn:focus-visible, .f4p-help a:focus-visible {
  outline: 3px solid var(--f4p-focus);
  outline-offset: 2px;
}
.f4p-field input:disabled, .f4p-field select:disabled, .f4p-field textarea:disabled { opacity: .6; cursor: not-allowed; }
.f4p-has-error input, .f4p-has-error select, .f4p-has-error textarea { border-color: var(--f4p-error); border-width: 2px; }
.f4p-error { margin: .35em 0 0; color: var(--f4p-error); font-size: .875em; font-weight: 600; }

.f4p-options { display: grid; gap: .35em; }
.f4p-option { display: flex; align-items: flex-start; gap: .6em; min-height: 1.75em; }
.f4p-option input { width: 1.2em; height: 1.2em; margin: .2em 0 0; flex: none; accent-color: var(--f4p-accent); }
.f4p-option label { color: var(--f4p-text); overflow-wrap: anywhere; }

.f4p-heading { margin: .25em 0 0; color: var(--f4p-label); font-size: 1.15em; }
h3.f4p-heading { font-size: 1.05em; }
.f4p-paragraph { margin: 0; color: var(--f4p-text); white-space: normal; }
.f4p-divider { border: 0; border-top: 1px solid var(--f4p-border); margin: .25em 0; opacity: .6; }
.f4p-calc-label { color: var(--f4p-label); font-weight: 600; }
.f4p-calc-value { font-weight: 700; color: var(--f4p-label); font-variant-numeric: tabular-nums; }

.f4p-progress { margin: 0 0 1em; }
.f4p-progress-text { margin: 0 0 .5em; font-size: .875em; color: var(--f4p-muted); }
.f4p-progress-list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.f4p-progress-list li { flex: 1; height: 4px; border-radius: 2px; background: var(--f4p-border); opacity: .35; }
.f4p-progress-list li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.f4p-progress-list li.f4p-done, .f4p-progress-list li[aria-current=step] { background: var(--f4p-accent); opacity: 1; }

.f4p-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: calc(var(--f4p-spacing) * 1.25); }
.f4p-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--f4p-control-h);
  padding: .55em 1.4em;
  font: inherit; font-weight: 600;
  color: var(--f4p-accent-text);
  background: var(--f4p-accent);
  border: 2px solid var(--f4p-accent);
  border-radius: var(--f4p-radius);
  cursor: pointer;
  text-decoration: none;
}
.f4p-btn:hover { filter: brightness(1.08); }
.f4p-btn:disabled { opacity: .6; cursor: progress; }
.f4p-btn-secondary, html.f4p-btn-outline .f4p-btn { background: transparent; color: var(--f4p-accent); }
html.f4p-btn-pill .f4p-btn { border-radius: 999px; }
.f4p-submit { margin-inline-start: auto; }
.f4p-next { margin-inline-start: auto; }

.f4p-status { min-height: 1.5em; margin: .5em 0 0; color: var(--f4p-muted); font-size: .9em; }
.f4p-form-error, .f4p-notice {
  margin: 1em 0 0; padding: .75em 1em;
  border: 2px solid var(--f4p-error); border-radius: var(--f4p-radius);
  color: var(--f4p-text); background: var(--f4p-field-bg);
}
.f4p-notice { border-color: var(--f4p-border); }
.f4p-turnstile { margin-top: var(--f4p-spacing); min-height: 65px; }

.f4p-success { padding: .5em 0; }
.f4p-success:focus { outline: none; }
.f4p-success-msg { font-size: 1.1em; color: var(--f4p-label); margin: 0 0 1em; padding-inline-start: .75em; border-inline-start: 4px solid var(--f4p-success); }
.f4p-downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.f4p-downloads li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.f4p-download-title { color: var(--f4p-text); }

.f4p-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (forced-colors: active) { .f4p-btn { border: 2px solid ButtonText; } }
