.form {
  width: 100%;
  padding: 12px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .form {
    padding: 24px;
  }
}
.form .form-mobile {
  width: 100%;
}
.form .form-step-1 {
  margin-bottom: 1rem;
}
.form .form-step-1,
.form .form-step-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .form .form-step-1,
  .form .form-step-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.25rem;
    row-gap: 1rem;
  }
}

.form .form-row {
  margin: 0;
  min-width: 0;
}

.form .form-row--full {
  grid-column: 1 / -1;
}

.form .form-control {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  min-width: 0;
}

.form .form-label {
  padding-bottom: 4px;
  font-family: "Roboto", Sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #323232;
}

.form .form-input,
.form .form-select,
.form .form-textarea,
.form .form-select-phone {
  background-color: #fff;
  border-color: #b6b6b6;
  font-family: "Roboto", Sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #2f2f2f;
  border-radius: 4px;
  min-height: 47px;
  padding: 6px 16px;
  border: 1px solid rgb(182, 182, 182);
  flex-grow: 1;
  vertical-align: middle;
}

.form .form-input:focus,
.form .form-select:focus,
.form .form-textarea:focus,
.form .form-select-phone:focus {
  outline: none;
  border-color: #4a7cff;
  box-shadow: 0 0 0 3px rgba(74, 124, 255, 0.15);
}

.form .form-textarea {
  min-height: 5rem;
  resize: vertical;
}

.form .form-phone-group {
  display: flex;
  align-items: stretch;
  gap: 5px;
  width: 100%;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form .form-control-phone:focus-within .form-phone-group {
  border-color: #4a7cff;
  box-shadow: 0 0 0 3px rgba(74, 124, 255, 0.15);
}

.form .form-select-phone {
  flex: 0 0 auto;
  width: auto;
  min-width: 5.5rem;
  max-width: 5.75rem;
  background-color: #fff;
  border-color: #b6b6b6;
  font-family: "Roboto", Sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #2f2f2f;
  border-radius: 4px;
  min-height: 47px;
  padding: 6px 16px;
  border: 1px solid rgb(182, 182, 182);
  flex-grow: 1;
  vertical-align: middle;
}

.form .form-input-phone {
  flex: 1 1 auto;
  min-width: 0;
  box-shadow: none;
}

.form .form-input-phone:focus {
  box-shadow: none;
}

.form .form-error {
  display: none;
  margin: 0;
  color: #cf2e2e;
  font-size: 0.8125rem;
  line-height: 1.3;
}

.form .form-control.err .form-error,
.form .form-row.error-2 .form-error {
  display: block;
}

.form .form-control.err .form-input,
.form .form-control.err .form-select,
.form .form-control.err .form-textarea,
.form .form-control.err .form-phone-group {
  border-color: #cf2e2e;
}

.form .label-static {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
}
.form-inner-checkbox {
  cursor: pointer;
}
.form .form-inner {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.form .form-inner input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.form .form-inner p,
.form .clause {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}
.form .clause {
  margin-top: 0.5rem;
}
.form .form-row-button {
  margin: 20px 0 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.form .form-button {
  background-color: #4b9f62;
  color: #fff;
  font-family: "Montserrat", Sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  flex-basis: 100%;
  min-height: 47px;
  border: none;
  border-radius: 4px;
  padding: 15px 30px;
}

.form .form-button:hover {
  background-color: #458055;
}
