﻿.form-widget {
  width: min(100%, 760px);
  box-sizing: border-box;
  color: #161616;
}

.form-widget.is-success {
  display: flex;
  height: var(--form-widget-success-height);
  border: 1px solid #d7d7d7;
  border-radius: 16px;
}

.form-widget-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.form-page-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: min(100%, 760px);
  margin-top: 64px;
}

.form-page-documents {
  margin-top: 60px;
}

.form-page-responses-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #161616;
  font-size: 20px;
  line-height: 24px;
  text-decoration: none;
}

.form-page-responses-link img {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  filter: brightness(0);
}

.form-page-responses-link:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-page-responses-link:focus-visible {
  outline: 2px solid #161616;
  outline-offset: 3px;
}

.form-widget-field {
  width: 100%;
  margin-bottom: 30px;
}

.form-widget-field label,
.form-widget-file-label {
  position: relative;
  display: block;
  width: 100%;
  min-height: 51px;
  margin: 0;
}

.form-widget-label {
  display: block;
  min-width: 0;
  margin-bottom: 0;
  color: #bdbdbd;
  font-size: 16px;
  line-height: 20px;
}

.form-widget-field:not(.form-widget-file-field) .form-widget-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-widget-field input[type="text"],
.form-widget-field input[type="email"],
.form-widget-field input[type="tel"] {
  width: 100%;
  height: 51px;
  padding: 15px 24px 15px 0;
  border: 0;
  border-bottom: 1px solid #828282;
  border-radius: 0;
  background: transparent;
  color: #161616;
  box-sizing: border-box;
  font: inherit;
  font-size: 16px;
  line-height: 20px;
  outline: none;
}

.form-widget-field input[type="text"]::placeholder,
.form-widget-field input[type="email"]::placeholder,
.form-widget-field input[type="tel"]::placeholder {
  color: #bdbdbd;
  opacity: 1;
}

.form-widget-field input[type="text"]:focus,
.form-widget-field input[type="email"]:focus,
.form-widget-field input[type="tel"]:focus {
  border-bottom-color: #161616;
}

.form-widget-required-dot {
  position: absolute;
  right: 0;
  top: 20px;
  width: 10px;
  height: 10px;
  border: 1px solid #828282;
  border-radius: 50%;
  box-sizing: border-box;
}

.form-widget-field .form-widget-file-label {
  display: grid;
}

.form-widget-file-label {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: center;
  min-height: 51px;
  padding-bottom: 0;
  border-bottom: 1px solid #828282;
  cursor: pointer;
}

.form-widget-file-label input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-widget-file-button {
  color: #161616;
  font-size: 16px;
  line-height: 20px;
  text-align: right;
  white-space: nowrap;
}

.form-widget-file-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-widget-file-value.has-file {
  color: #161616;
}

.form-widget-submit {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 100px;
  width: 260px;
  height: 60px;
  margin-top: 0;
  padding: 0 20px;
  border: 0;
  background: #ce2f76;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  line-height: 34px;
}

.form-widget-submit img {
  width: 17px;
  height: 17px;
  margin-left: 0;
  filter: brightness(0) invert(1);
}

.form-widget-submit:hover {
  opacity: .85;
}

.form-widget-submit:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.form-widget-consent {
  width: 100%;
  margin: 0 0 30px;
}

.form-widget-consent label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font-size: 16px;
  line-height: 28px;
}

.form-widget-consent label span {
  min-width: 0;
  overflow-wrap: break-word;
}

.form-widget-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  border-radius: 0;
}

.form-widget-error {
  margin-top: 5px;
  color: #ce2f76;
  font-size: 13px;
  line-height: 18px;
  white-space: pre-line;
}

.form-widget-error:empty {
  display: none;
}

.form-widget-message {
  margin-top: 24px;
  color: #161616;
  font-size: 16px;
  line-height: 22px;
}

.form-widget-message:empty {
  display: none;
}

.form-widget-success {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 40px;
  box-sizing: border-box;
  color: #161616;
  text-align: center;
  font-weight: 400;
}

.form-widget-success:focus {
  outline: none;
}

.form-widget-success p {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 500;
  line-height: 28px;
}

.form-widget-success a {
  color: #161616;
  font-size: 20px;
  line-height: 28px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-widget-success a:hover {
  color: #CE2F76;
}

@media only screen and (max-width: 767px) {
  .form-widget {
    width: 100%;
  }

  .form-widget-field {
    margin-bottom: 22px;
  }

  .form-widget-submit {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    gap: 20px;
  }

  .form-widget-submit img {
    margin-left: 0;
  }

  .form-widget-consent {
    margin-bottom: 24px;
  }

  .form-page-documents,
  .form-page-actions {
    margin-top: 40px;
  }

  .form-page-responses-link {
    font-size: 16px;
    line-height: 24px;
  }

  .form-widget-success {
    padding: 24px;
  }

  .form-widget-success p {
    margin-bottom: 24px;
    font-size: 24px;
    line-height: 30px;
  }

  .form-widget-success a {
    font-size: 20px;
    line-height: 28px;
  }
}
