.form-ctor-wrapper {
  margin-block: 120px;
  padding: 40px;
  border-radius: 10px;
  background: linear-gradient(#dbffcc, #e2fbbf);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.form-ctor-wrapper .sect-title {
  max-width: 720px;
  text-align: center;
}
.form-ctor {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  width: 100%;
  position: relative;
}
.form-ctor[data-loading="true"] .result-overlay,
.form-ctor[data-result="success"] .result-overlay,
.form-ctor[data-result="error"] .result-overlay {
  display: flex;
}
.form-ctor[data-loading="true"] .loader {
  display: flex;
}
.form-ctor [data-msg] {
  display: none;
  padding: 24px;
  border-radius: 4px;
  background-color: var(--color-white);
  color: var(--color-text);
  box-shadow: 0 0 12px -2px rgba(0, 0, 0, 0.15);
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.form-ctor[data-result="success"] [data-msg="success"] {
  display: flex;
}
.form-ctor[data-result="error"] [data-msg="error"] {
  display: flex;
}
.result-overlay {
  display: none;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background: rgba(0, 0, 0, 0.025);
  z-index: 1;
  border-radius: 10px;
  backdrop-filter: blur(2px);
}
.loader {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;

  align-items: center;
  justify-content: center;
}
.spinner {
  width: 24px;
  height: 24px;
  border: 4px solid var(--color-green);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}
.form-ctor .submit-btn {
  margin-top: 16px;
}
.form-ctor .form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-ctor__description {
  font-size: 12px;
  color: var(--color-text);
}
.form-ctor__select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  padding: 20px;
  border-radius: 10px;
  font-size: 15px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
  background-color: var(--color-white);
  width: 100%;
  border: 1px solid transparent;
  transition: border 0.2s;

  background-image: url('data:image/svg+xml;utf8,<svg height="10px" width="10px" viewBox="0 0 16 16" fill="%23000000" xmlns="http://www.w3.org/2000/svg"><path d="M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 30px;
}
.form-ctor__select.required {
  border-color: var(--color-red-60);
  color: var(--color-red);
}
.file-inp-container {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 24px;
  cursor: pointer;
}
.file-inp-container.required {
  border-color: var(--color-red-60);
}
.file-upload-button {
  width: 100%;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.file-upload-button:hover {
  background-color: var(--color-green--lighter);
  border-radius: 8px;
}
.file-upload-button-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.file-upload-button-info {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
}
.file-upload-button-info b {
  font-weight: 500;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.file-previews {
  width: 100%;
  display: none;
  flex-direction: column;
  gap: 8px;
}
.file-previews:not(:empty) {
  display: flex;
}
.file-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}
.file-preview-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}
.file-preview-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dee2e6;
  border-radius: 6px;
  font-size: 24px;
}
.file-info {
  flex: 1;
}
.file-name {
  font-weight: 500;
  margin-bottom: 4px;
  word-break: break-all;
}
.file-size {
  color: #6c757d;
  font-size: 12px;
}
.file-remove {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-red);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 12px;
}
.file-remove:hover {
  background: #c82333;
}
@media screen and (max-width: 768px) {
  .form-ctor-wrapper {
    margin-block: 60px;
    padding: 20px;
  }
}
