.ec-opform {
  --ec-form-border: #d9d9d9;
  --ec-form-connected-step: .35em;
  --ec-form-error-bg: #f2dede;
  --ec-form-error-panel-bg: #f9eaea;
  --ec-form-error-text: #900;
  --ec-form-field-bg: #f5f5f5;
  --ec-form-step: .7em;
  margin: 1.5rem 0;
}

.ec-opform-screen-subject {
  font-size: 1.25em;
  line-height: 1.35;
  margin: 0 0 var(--ec-form-step);
  text-align: center;
}

.ec-opform-screen-section {
  margin: 1.4em 0;
}

.ec-opform-screen-section > h2 {
  margin: 0 0 var(--ec-form-step);
}

.ec-opform-two-column {
  display: grid;
  gap: var(--ec-form-step);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 var(--ec-form-step);
}

.ec-opform-question {
  margin: 0 0 1.4em;
}

.ec-opform-field {
  margin: 0 0 var(--ec-form-step);
}

.ec-opform-two-column .ec-opform-field {
  margin: 0;
}

.ec-opform-field label,
.ec-opform-question > label,
.ec-opform-question-title {
  display: block;
  font-weight: 700;
}

.ec-opform-screen-root input[type="text"],
.ec-opform-screen-root input[type="date"],
.ec-opform-screen-root textarea {
  appearance: none;
  background: var(--ec-form-field-bg);
  border: 1px solid var(--ec-form-border);
  border-radius: 0;
  box-sizing: border-box;
  box-shadow: none;
  color: #000;
  display: inline-block;
  font: 300 16px / 24px Arial, sans-serif;
  line-height: 24px;
  margin: var(--ec-form-connected-step) 0 0;
  min-height: 26px;
  outline: none;
  padding: 0 5px;
  width: 100%;
}

.ec-opform-screen-root input[type="text"],
.ec-opform-screen-root input[type="date"] {
  height: 40px;
  min-height: 40px;
}

.ec-opform-screen-root select {
  appearance: auto;
  background: #fff;
  border: 1px solid #767676;
  border-radius: 0;
  box-sizing: border-box;
  color: #000;
  display: block;
  font: 300 16px / 24px Arial, sans-serif;
  height: 40px;
  margin: var(--ec-form-connected-step) 0 0;
  min-height: 40px;
  padding: 0 5px;
  width: 100%;
}

.ec-opform-screen-root textarea {
  min-height: 144px;
  padding: 7.2px 8px;
}

.ec-opform-choice {
  margin: var(--ec-form-connected-step) 0;
}

.ec-opform-choice label {
  align-items: flex-start;
  display: flex;
  font-weight: 400;
  gap: .55rem;
}

.ec-opform-choice input[type="checkbox"] {
  appearance: checkbox !important;
  display: block;
  flex: 0 0 auto;
  height: 13px;
  margin: .2em 0 0;
  min-height: 13px;
  opacity: 1;
  padding: 0;
  pointer-events: auto;
  width: auto;
}

.ec-opform-choice input[type="checkbox"]:disabled + .ec-shell-checkbox-label {
  color: #767676;
}

.ec-opform-screen-barcode {
  margin: 1.4em auto 0;
  max-width: 384px;
  text-align: center;
}

.ec-opform-screen-barcode canvas {
  display: block;
  height: auto;
  image-rendering: pixelated;
  max-width: 100%;
  width: auto;
}

.ec-opform-submit-row {
  line-height: normal;
  margin: 0 !important;
}

.ec-opform-print-button {
  font: 300 16px / 24px Arial, sans-serif;
  line-height: 24px;
  min-height: 26px;
}

.ec-opform-submit-status:empty {
  display: none;
}

.ec-opform-submit-status:not(:empty) {
  background: var(--ec-form-error-bg);
  border: 0;
  border-radius: 4px;
  box-sizing: border-box;
  color: var(--ec-form-error-text);
  display: block;
  font-size: .78em;
  font-weight: 300;
  line-height: 1.35;
  margin: var(--ec-form-connected-step) 0 0;
  max-width: 100%;
  padding: .22em .7em;
  width: max-content;
}

.ec-opform .wpcf7-not-valid {
  border-color: var(--ec-form-border);
  background: var(--ec-form-error-panel-bg);
  box-shadow: none;
}

.ec-opform .wpcf7-not-valid-tip:empty {
  display: none;
}

.ec-opform .wpcf7-not-valid-tip:not(:empty) {
  background: var(--ec-form-error-bg);
  border: 0;
  border-radius: 4px;
  box-sizing: border-box;
  color: var(--ec-form-error-text);
  display: block;
  font-size: .78em;
  font-weight: 300;
  line-height: 1.35;
  margin: var(--ec-form-connected-step) 0 0;
  max-width: 100%;
  padding: .22em .7em;
  width: max-content;
}

.ec-opform-print-root {
  display: none;
}

.ec-opform-pdf-rendering .ec-opform-print-root {
  display: block;
  left: -300mm;
  position: fixed;
  top: 0;
  width: 210mm;
  z-index: -1;
}

.ec-opform-print-page {
  background: #fff;
  box-sizing: border-box;
  color: #000;
  font-family: Roboto, "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 11.2px;
  font-weight: 400;
  height: 297mm;
  line-height: 16.8px;
  margin: 0;
  overflow: hidden;
  padding: 10mm 21mm;
  width: 210mm;
}

.ec-opform-print-page header h2 {
  color: #1c1c24;
  font-family: "Open Sans Light", "Roboto Light", Roboto, "Open Sans", Arial, sans-serif;
  font-size: 22.4px;
  font-weight: 400;
  line-height: 26.88px;
  margin: 0 0 6.4px;
  text-align: left;
}

.ec-opform-print-page-1 header h2 {
  margin-top: 18.8px;
}

.ec-opform-print-page header h3 {
  color: #1c1c24;
  font-size: 16px;
  font-weight: 400;
  line-height: 19.2px;
  margin: 0 0 6.4px;
  text-align: left;
}

.ec-opform-print-intro {
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  margin: 0 0 12.8px;
}

.ec-opform-print-section {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.ec-opform-print-section legend,
.ec-opform-print-section > h2 {
  color: #1c1c24;
  display: block;
  float: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 19.2px;
  margin: 0 0 6.4px;
  padding: 0;
  text-align: left;
  width: 100%;
}

.ec-opform-print-two-column {
  display: grid;
  gap: 9.6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 6.4px;
}

.ec-opform-print-field,
.ec-opform-print-question {
  margin: 0 0 12.8px;
}

.ec-opform-print-field label,
.ec-opform-print-question > label,
.ec-opform-print-question-title {
  display: block;
  font-size: 10.56px;
  font-weight: 600;
  line-height: 15.84px;
  margin: 0 0 3.2px;
}

.ec-opform-print-page .ec-opform-print-question-title {
  margin: 0 0 3.2px !important;
}

.ec-opform-print-question > label > select,
.ec-opform-print-question > label > textarea {
  margin-top: 3.2px;
}

.ec-opform-print-page input[type="text"],
.ec-opform-print-page input[type="date"],
.ec-opform-print-page select,
.ec-opform-print-page textarea {
  appearance: auto;
  background: #fff;
  border: 1px solid #e7e7ed;
  border-radius: 4px;
  box-sizing: border-box;
  color: #000;
  display: block;
  font: 400 12.8px / 19.2px Roboto, "Open Sans", Arial, sans-serif;
  height: 32px;
  margin: 0;
  opacity: 1;
  padding: 5.6px 12.8px;
  width: 100%;
}

.ec-opform-print-page textarea {
  height: 56px;
  resize: none;
}

.ec-opform-print-choice-list label {
  align-items: flex-start;
  display: flex;
  font-size: 10.56px;
  font-weight: 400;
  gap: 6.4px;
  line-height: 15.84px;
  margin: 0 0 4.8px;
}

.ec-opform-print-checkbox {
  align-items: center;
  background: #fff;
  border: 1px solid #767676;
  border-radius: 2px;
  box-sizing: border-box;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 11.2px;
  justify-content: center;
  line-height: 9.6px;
  margin: .8px 0 0;
  width: 11.2px;
}

.ec-opform-print-checkbox.is-checked {
  background: #0b57d0;
  border-color: #0b57d0;
  font-size: 9.6px;
  font-weight: 700;
}

.ec-opform-print-page-2 .ec-opform-print-question,
.ec-opform-print-page-3 .ec-opform-print-question {
  margin-bottom: 12.8px;
}

.ec-opform-print-page-2 .ec-opform-print-section > h2 {
  margin-bottom: 8px;
}

.ec-opform-print-page-2 .ec-opform-print-question-q2bis {
  margin-bottom: 29.6px;
}

.ec-opform-barcode {
  margin: 19.2px 0 0;
  text-align: left;
}

.ec-opform-barcode canvas {
  height: 217.6px;
  image-rendering: pixelated;
  max-width: none;
  width: 388.8px;
}

@media (max-width: 640px) {
  .ec-opform-two-column {
    grid-template-columns: 1fr;
  }
}
