.connection__container {
  display: flex;
  justify-content: center;

  padding-top: 40px;
  padding-bottom: 50px;
}

.connection__form {
  padding: 55px 32px 67px;

  max-width: 672px;
  width: 100%;

  background-color: white;
  border-radius: 12px;

  box-shadow: 0 10px 15px 0 rgba(0, 0, 0, 0.1), 0 4px 6px 0 rgba(0, 0, 0, 0.1);

  @media (max-width: 600px) {
    padding: 40px 20px 60px;
  }
}

.connection__heading {
  text-align: center;

  color: #1f2937;
}
.connection__form-desc {
  margin-top: 22px;

  text-align: center;

  color: #4b5563;

  @media (max-width: 500px) {
    font-size: 14px;
  }
}
.connection__inputs-container {
  display: flex;
  justify-content: stretch;
  gap: 24px;

  margin-top: 34px;

  @media (max-width: 600px) {
    gap: 12px;
  }
  @media (max-width: 500px) {
    flex-direction: column;
  }
}
.input__container {
  width: 100%;
}
.input__label {
  display: block;

  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;

  color: #374151;
}
.input__component {
  display: block;

  width: 100%;

  margin-top: 11px;
  padding: 15px 16px;

  border: 1px solid #d1d5db;
  border-radius: 8px;

  outline: none;
}
.input__component::placeholder {
  color: #adaebc;
}
.input__component.error {
  background-color: #ffdede;
}

.select {
  margin-top: 24px;
  @media (max-width: 500px) {
    margin-top: 12px;
  }
}
.select__wrappper {
  position: relative;
}

.input__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  display: block;

  width: 100%;

  margin-top: 11px;
  padding: 13px 16px;

  border: 1px solid #d1d5db;
  border-radius: 8px;

  outline: none;
}

.select__wrappper svg {
  position: absolute;
  top: 50%;
  right: 16px;

  transform: translateY(-50%);
  transform-origin: 8.7px 2.4px;
  transition: transform 0.1s ease;

  pointer-events: none;
}
.select__wrappper.active svg {
  transform: rotateZ(180deg);
}

.input__submit-button {
  display: block;
  padding: 14.5px 50px;
  width: 100%;

  color: white;
  background-color: #4b8d9d;
  border: none;
  border-radius: 8px;

  cursor: pointer;
  transition: background-color 0.3s ease;
}
.input__submit-button:hover {
  @media (hover: hover) {
    color: white;
    background-color: #5fa5b6;
  }
}
.input__submit-button_margin {
  margin-top: 32px;
  margin-bottom: 20px;
}

.input__error-name-message,
.input__error-phone-message,
.input__success-message {
  display: none;
  margin-top: 15px;

  text-align: center;
  font-size: 16px;
  font-weight: 500;

  color: #c96065;
}
.input__success-message {
  color: #47c442;
}

.connection__agreement {
  margin-top: 10px;

  font-size: 14px;
}
.connection__agreement a {
  text-decoration: none;
  color: #4b8d9d;

  transition: color 0.3s ease;
}
.connection__agreement a:hover {
  @media (hover: hover) {
    color: #5fa5b6;
  }
}
