/* Global */
:root {
  --bg-color: #f4cacb;
  --block-bg-color: #d8d9e8;
  --main-color: #39b54a;

  --form-label-color: #000;
  --form-field-color: #212529;
  --form-field-border-color: #294e98;
  --form-field-bg: #ffffff;

  --blue-btn-bg: #0d6efd;
}

.upper-distance {
  display: flex;
  align-items: center;
  padding-top: 150px;
}

/* Buttons */

.btn {
  background-color: var(--blue-btn-bg);
  color: #fff;
  color: white;
  border-radius: 3px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-green {
  background-color: var(--main-color);
}

.btn-red {
  background-color: #dc3545;
}

.btn:hover {
  opacity: 0.8;
}

/* Form */

.form {
  gap: 20px;
  display: flex;
  flex-direction: column;
}

.form-fields {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.form-fields__item {
  flex: 0 0 calc(100% - 20px);
  max-width: calc(100% - 20px);
}

.form-fields__item-third {
  flex: 0 0 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
}

.form-fields__item-half {
  flex: 0 0 calc(50% - 20px);
  max-width: calc(50% - 20px);
}

.form-fields__item-row {
  display: flex;
  align-items: center;
}

.form-fields__item-row label {
  min-width: 150px;
  max-width: 150px;
  margin-bottom: 0 !important;
}

.form-fields__item-checkbox {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  margin-top: auto;
  margin-bottom: 10px;
}

.form-fields__item-checkbox input {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.form-fields__item-checkbox-text,
.form-fields__item label {
  font-weight: 600;
  text-align: start;
  font-size: 14px;
  color: var(--form-label-color);
  margin-bottom: 10px;
  display: block;
}

.form-fields__item-checkbox-text {
  margin-bottom: 0;
}

.form-fields__item input:not([type="checkbox"]) {
  display: block;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  font-family: inherit;
  color: var(--form-field-color);
  background-color: var(--form-field-bg);
  background-clip: padding-box;
  border: 1px solid var(--form-field-border-color);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0.375rem;
  width: 100%;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-fields__item select {
  display: block;
  width: 100%;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  -moz-padding-start: calc(0.75rem - 3px);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  font-family: inherit;
  color: var(--form-field-color);
  background-color: var(--form-field-bg);
  background-image: url(../images/down-arrow.svg),
    var(--bs-form-select-bg-icon, none);
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  border: 1px solid var(--form-field-border-color);
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-fields__item select:focus,
.form-fields__item input:focus:not([type="checkbox"]) {
  border-color: var(--form-input-border-color);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* ------------------------------------------------------------ */

.back-office * {
  box-sizing: border-box;
}

.back-office {
  background-color:#85080b;
  overflow: hidden;
  padding-bottom: 20px;
}

.back-office__wrapper {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.back-office__form {
  background-color: #bda9a9;
  padding: 20px;
  border-radius: 30px;
  width: 40%;
  height: max-content;
  flex: 0 0 40%;
}



.back-office__big_form {
  background-color: var(--block-bg-color);
  padding: 20px;
  border-radius: 30px;
  width: 100%;
  height: max-content;
  flex: 0 0 100%;
}

/* Cols */
.back-office__big_form-cols {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.back-office__big_form .cols__item {
  flex: 0 0 calc(50% - 20px);
  max-width: calc(50% - 20px);
  display: flex;
  flex-direction: column;
}

.back-office__big_form .cols__item .form-fields {
  flex-direction: column;
}

.back-office__big_form .cols__item .form-fields__item {
  flex: none;
}

.back-office__big_form .btn-green {
  max-width: 200px;
  margin: 0 auto;
  width: 100%;
}

.back-office__big_form .cols__item-between {
  justify-content: space-between;
}

.back-office__big_form .btn-red {
  max-width: 300px;
  margin: 0 0 0 auto;
}

/* back-office__cards */

.back-office__cards {
  width: 60%;
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 100%;
  overflow-y: auto;
}

.back-office__cards-item {
  background-color: var(--block-bg-color);
  border-radius: 30px;
  overflow: hidden;
  width: 100%;
}

.office-card__top {
  background-color: var(--main-color);
  color: #fff;
  padding: 10px 20px;
  font-size: 18px;
  font-weight: 600;
  text-align: start;
  border-radius: 0;
}

.office-card__content {
  padding: 20px;
  gap: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.office-card__content > div {
  flex: 0 0 50%;
}

.office-card__content-center {
  flex: 0 0 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.person__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.person__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5%;
  margin-bottom: 30px;
  max-height: 200px;
  max-width: 200px;
  object-fit: contain;
}

.person__btns {
  flex-wrap: wrap;
  display: flex;
  gap: 10px;
  min-width: 300px;
}

.person__btns .btn {
  min-width: calc(50% - 5px);
}

.office-card__fields {
  gap: 10px;
}

@media (max-width: 1500px) {
  .back-office__cards {
    width: 55%;
    flex: 0 0 55%;
  }
}

@media (max-width: 1200px) {
  .back-office__wrapper {
    flex-direction: column;
  }

  .back-office__cards,
  .back-office__form {
    width: 90%;
    margin: auto;
    flex: 0 0 100%;
  }
}

@media (max-width: 767px) {
  .office-card__content {
    flex-direction: column;
  }

  .office-card__content > div {
    flex: 0 0 100%;
    width: 100%;
  }

  .back-office__big_form-cols {
    flex-direction: column;
  }

  .back-office__big_form .cols__item {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .back-office__big_form .cols__item-between {
    flex-direction: column;
  }

  .back-office__big_form .btn-red {
    margin: 10px auto 0;
  }

  .form-fields__item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .form-fields__item-third {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .form-fields__item-half {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .form-fields {
    flex-direction: column;
  }

  .person__btns .btn {
    min-width: 0;
  }

  .person__btns {
    justify-content: center;
  }
}

@media (max-width: 440px) {
  .form-fields__item-row {
    flex-direction: column;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .form-fields__item-row label {
    min-width: 100%;
    max-width: 100%;
    margin-bottom: 10px !important;
  }
}
