/* WordPress integration layer. The approved static bundles remain unchanged. */

html {
  margin-top: 0 !important;
  min-width: 0;
}

body.admin-bar .elg-page-frame {
  padding-top: 32px;
}

.elg-case-evaluation__form-shell .wpcf7,
.elg-case-evaluation__form-shell .wpcf7-form,
.elg-case-evaluation__form-shell .cf7-wrapper,
.elg-case-evaluation__form-shell .cf7-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.elg-case-evaluation__form-shell .cf7-title {
  display: none;
}

.elg-case-evaluation__form-shell .cf7-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.elg-case-evaluation__form-shell .cf7-content > *,
.elg-case-evaluation__form-shell .cf7-field,
.elg-case-evaluation__form-shell .cf7-field p,
.elg-case-evaluation__form-shell .cf7-submit,
.elg-case-evaluation__form-shell .cf7-submit p {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.elg-case-evaluation__form-shell .cf7-field p,
.elg-case-evaluation__form-shell .cf7-submit p {
  margin: 0;
}

.elg-case-evaluation__form-shell .cf7-content > .wpcf7-response-output,
.elg-case-evaluation__form-shell .cf7-submit {
  grid-column: 1 / -1;
}

.elg-case-evaluation__form-shell .cf7-submit {
  position: relative;
}

.elg-case-evaluation__form-shell .cf7-submit::after {
  position: absolute;
  top: 50%;
  right: 24px;
  z-index: 1;
  width: 15px;
  height: 15px;
  background: url("../assets/icons/button-arrow-dark.svg") center / contain no-repeat;
  content: "";
  pointer-events: none;
  transform: translateY(-50%) rotate(0deg);
  transform-origin: center;
  transition: transform 180ms ease;
}

.elg-case-evaluation__form-shell .cf7-field {
  min-width: 0;
}

.elg-case-evaluation__form-shell .cf7-field br,
.elg-case-evaluation__form-shell .wpcf7-spinner {
  display: none;
}

.elg-case-evaluation__form-shell .wpcf7-form-control-wrap,
.elg-case-evaluation__form-shell .wpcf7-form-control-wrap input,
.elg-case-evaluation__form-shell .wpcf7-form-control-wrap textarea,
.elg-case-evaluation__form-shell .wpcf7-form-control-wrap select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.elg-case-evaluation__form-shell input:not([type="submit"]) {
  min-height: 52px;
  padding: 0 18px;
  color: #fff;
  background: #071d2d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  font: inherit;
}

.elg-case-evaluation__form-shell input:not([type="submit"])::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.elg-case-evaluation__form-shell input[type="submit"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 52px;
  padding: 0 48px 0 24px;
  color: #071d2d;
  background-color: #e8bd63;
  background-image: none;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  white-space: normal;
  cursor: pointer;
  transition: box-shadow 180ms ease, filter 180ms ease, transform 180ms ease;
}

.elg-case-evaluation__form-shell input[type="submit"]:hover,
.elg-case-evaluation__form-shell input[type="submit"]:focus-visible {
  filter: brightness(1.08);
  box-shadow: 0 12px 28px rgba(212, 173, 104, 0.2);
  transform: translateY(-2px);
}

.elg-case-evaluation__form-shell .cf7-submit:hover::after,
.elg-case-evaluation__form-shell .cf7-submit:focus-within::after {
  transform: translateY(calc(-50% - 2px)) rotate(45deg);
}

.elg-case-evaluation__form-shell input[type="submit"]:active {
  transform: translateY(1px);
}

.elg-case-evaluation__form-shell .cf7-submit:active::after {
  transform: translateY(calc(-50% + 1px)) rotate(45deg);
}

.elg-case-evaluation__form-shell .wpcf7-not-valid-tip,
.elg-case-evaluation__form-shell .wpcf7-response-output {
  color: #fff;
  font-size: 13px;
}

.elg-case-evaluation__form-shell .wpcf7-response-output {
  margin: 8px 0 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 782px) {
  body.admin-bar .elg-page-frame {
    padding-top: 46px;
  }
}

@media (max-width: 640px) {
  .elg-case-evaluation__form-shell .cf7-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .elg-case-evaluation__form-shell input:not([type="submit"]) {
    min-height: 48px;
    padding-inline: 14px;
  }

  .elg-case-evaluation__form-shell input[type="submit"] {
    min-height: 48px;
    padding: 0 38px 0 12px;
    font-size: 11px;
    letter-spacing: 0;
    line-height: 1.2;
  }

  .elg-case-evaluation__form-shell .cf7-submit::after {
    right: 14px;
  }
}

@media (max-width: 320px) {
  .elg-case-evaluation__form-shell input[type="submit"] {
    padding-right: 32px;
    padding-left: 8px;
    font-size: 10px;
  }

  .elg-case-evaluation__form-shell .cf7-submit::after {
    right: 10px;
    width: 12px;
    height: 12px;
  }
}
