.complaints-page {
  color: #333; }

.complaints-form-wrapper_locked .complaints-form {
  opacity: .42; }

.complaints-form-wrapper_locked .complaints-form,
.complaints-form-wrapper_locked .complaints-form * {
  cursor: default; }

.complaints-form-wrapper_hidden,
.complaints-topic-select_hidden,
.complaints-submit_hidden,
.complaints-sms_hidden,
.complaints-success_hidden,
.complaints-sms-code-error_hidden,
.complaints-sms__cooldown-message_hidden,
.complaints-sms__actions_hidden,
.complaints-sms__pending_hidden {
  display: none !important; }

.complaints-card,
.complaints-sms,
.complaints-success__content {
  padding: 16px 0 14px;
  border-radius: 12px;
  background-color: #fff; }

.complaints-card__title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px; }

.complaints-grid {
  display: grid;
  gap: 12px; }

.complaints-grid_two {
  grid-template-columns: repeat(2, minmax(0, 244px)); }

.complaints-grid_contact {
  grid-template-columns: minmax(0, 316px) minmax(0, 244px);
  align-items: flex-start;
  margin-top: 10px; }

.complaints-field {
  display: flex;
  flex-direction: column;
  min-width: 0; }

.complaints-field__label {
  min-height: 18px;
  margin-bottom: 4px;
  color: #9b9b9b;
  font-size: 12px;
  line-height: 14px; }

.complaints-control {
  box-sizing: border-box;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d3dffb;
  border-radius: 12px;
  background-color: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }

.complaints-control::placeholder {
  color: #9b9b9b; }

.complaints-control:focus {
  border-color: #1b5ae7;
  box-shadow: 0 0 0 2px rgba(27, 90, 231, 0.08); }

.complaints-control:disabled {
  color: #c5ccd8;
  background-color: #fff;
  cursor: default; }

.complaints-select-control {
  padding-right: 34px;
  appearance: auto; }

.complaints-field_error .complaints-control,
.complaints-message_error .complaints-message__textarea,
.complaints-file-upload_error .complaints-file-upload__button {
  border-color: #fd003d; }

.complaints-phone-number {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px; }

.complaints-control_code {
  padding: 0 8px;
  text-align: center; }

.complaints-message {
  position: relative; }

.complaints-message__textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 130px;
  padding: 14px 12px 58px 10px;
  resize: vertical;
  border: 1px solid #d3dffb;
  border-radius: 14px;
  background-color: #fff;
  color: #333;
  font-family: Gilroy, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  outline: none; }

.complaints-file-upload {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2; }

.complaints-file-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none; }

.complaints-file-upload__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: #e7f1ff url("/img/icons/icon-clip.svg") center/18px 18px no-repeat; }

.complaints-file-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px; }

.complaints-file-preview {
  position: relative;
  box-sizing: border-box;
  width: 132px;
  min-height: 112px;
  padding: 8px 8px 7px;
  border: 1px solid #c9dbff;
  border-radius: 10px;
  background-color: #fff; }

.complaints-file-preview__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 72px;
  border-radius: 7px;
  overflow: hidden;
  background-color: #edf2f8;
  color: #6f7b8c;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase; }

.complaints-file-preview__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; }

.complaints-file-preview__name {
  display: block;
  margin-top: 6px;
  color: #333;
  font-size: 12px;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; }

.complaints-file-preview__remove {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #d8e7ff;
  color: #7a90b5;
  font-size: 14px;
  line-height: 18px;
  cursor: pointer; }

.complaints-error-text {
  margin-top: 4px;
  color: #fd003d;
  font-size: 12px;
  line-height: 16px; }

.complaints-agreement {
  max-width: 620px;
  margin: 12px 0 0;
  color: #777;
  font-size: 12px;
  line-height: 16px; }

.complaints-agreement a {
  color: #1b5ae7;
  text-decoration: none; }

.complaints-submit,
.complaints-success__button,
.complaints-sms__submit,
.complaints-sms__pending {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 214px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid #1b5ae7;
  border-radius: 12px;
  background-color: #1b5ae7;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease; }

.complaints-submit {
  margin-top: 14px; }

.complaints-submit:hover:not(:disabled),
.complaints-success__button:hover,
.complaints-sms__submit:hover:not(:disabled) {
  border-color: #154bd0;
  background-color: #154bd0;
  color: #fff;
  text-decoration: none; }

.complaints-submit:disabled,
.complaints-sms__submit:disabled,
.complaints-sms__pending:disabled {
  border-color: #9db8ff;
  background-color: #9db8ff;
  color: #fff;
  cursor: default;
  opacity: 1; }

.complaints-sms {
  margin-top: 10px;
  text-align: center; }

.complaints-sms__info {
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px; }

.complaints-sms-code-wrapper {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px; }

.complaints-sms-code-input {
  box-sizing: border-box;
  width: 42px;
  height: 48px;
  border: 1px solid #d3dffb;
  border-radius: 12px;
  color: #333;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  outline: none; }

.complaints-sms-code-input:focus {
  border-color: #1b5ae7;
  box-shadow: 0 0 0 2px rgba(27, 90, 231, 0.08); }

.complaints-sms-code-wrapper_error .complaints-sms-code-input {
  border-color: #fd003d; }

.complaints-sms-code-error,
.complaints-sms__cooldown-message {
  margin: 8px 0;
  color: #fd003d;
  font-size: 13px;
  line-height: 18px; }

.complaints-sms__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px; }

.complaints-sms__submit,
.complaints-sms__pending,
.complaints-sms__resend,
.complaints-sms__change-phone {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 204px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease; }

.complaints-sms__resend {
  border: 1px solid #d3dffb;
  background-color: #f3f7ff;
  color: #1b5ae7; }

.complaints-sms__resend:hover:not(:disabled) {
  border-color: #b8cbff;
  background-color: #e8f0ff; }

.complaints-sms__resend:disabled {
  border-color: #e7ebf2;
  background-color: #f6f7f9;
  color: #9aa3b2;
  cursor: default;
  opacity: 1; }

.complaints-sms__change-phone {
  border: 1px solid #1b5ae7;
  background-color: #fff;
  color: #1b5ae7; }

.complaints-sms__change-phone:hover {
  background-color: #f3f7ff; }

.complaints-success {
  padding-top: 10px;
  text-align: center; }

.complaints-success__content {
  padding: 36px 20px; }

.complaints-success__title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 30px; }

.complaints-success__text {
  margin-bottom: 20px;
  color: #777;
  font-size: 16px;
  line-height: 22px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0; }

@media (max-width: 767px) {
  .complaints-page {
    padding: 8px 6px 24px; }
  .complaints-grid_two,
  .complaints-grid_contact {
    grid-template-columns: 1fr; }
  .complaints-grid_contact {
    margin-top: 12px; }
  .complaints-card,
  .complaints-sms,
  .complaints-success__content {
    border-radius: 10px; }
  .complaints-sms-code-wrapper {
    gap: 6px; }
  .complaints-sms-code-input {
    width: 38px;
    height: 44px; }
  .complaints-sms__actions {
    align-items: stretch;
    flex-direction: column; }
  .complaints-submit,
  .complaints-success__button,
  .complaints-sms__submit,
  .complaints-sms__pending,
  .complaints-sms__resend,
  .complaints-sms__change-phone {
    width: 100%;
    min-width: 0;
    white-space: normal; } }
