.ibv2 {
  margin: 0;
  min-height: 100%;
  background: #fff;
  color: #2c2c2c;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.ibv2 *,
.ibv2 *::before,
.ibv2 *::after {
  box-sizing: border-box;
}

.ibv2-page {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 24px 40px;
}

.ibv2-head {
  text-align: right;
  margin-bottom: 28px;
}

.ibv2-logo {
  display: inline-block;
  width: 190px;
  height: auto;
}

.ibv2-kicker {
  margin: 6px 0 0;
  color: #8d8d8d;
  font-size: 15px;
  font-weight: 400;
}

.ibv2-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ibv2-row {
  display: flex;
  gap: 16px;
}

.ibv2-field {
  flex: 1;
  min-width: 0;
}

.ibv2-label {
  display: block;
  margin-bottom: 6px;
  color: #3a3a3a;
  font-size: 13px;
  font-weight: 400;
}

.ibv2-req {
  color: #3a3a3a;
}

.ibv2-control {
  position: relative;
}

.ibv2-input,
.ibv2-select {
  display: block;
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #c8ced6;
  border-radius: 4px;
  background: #fff;
  color: #222;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  outline: none;
  appearance: none;
}

.ibv2-input::placeholder {
  color: #b0b0b0;
}

.ibv2-input:focus,
.ibv2-select:focus {
  border-color: #7eb0d8;
  box-shadow: 0 0 0 3px rgba(74, 144, 196, 0.12);
}

.ibv2-input-password {
  padding-right: 48px;
}

.ibv2-counter {
  position: absolute;
  right: 10px;
  bottom: 6px;
  color: #b5b5b5;
  font-size: 11px;
  line-height: 1;
  pointer-events: none;
}

.ibv2-select-wrap {
  position: relative;
}

.ibv2-select {
  padding-right: 36px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.ibv2-phone {
  display: flex;
  gap: 8px;
}

.ibv2-phone .ibv2-dial {
  width: 76px;
  flex: 0 0 76px;
  padding: 8px 8px;
  text-align: center;
  color: #555;
  background: #f3f4f6;
  cursor: default;
}

.ibv2-phone .ibv2-input:not(.ibv2-dial) {
  flex: 1 1 auto;
  width: auto;
}

.ibv2-help {
  margin: 6px 0 0;
  color: #8a8a8a;
  font-size: 12px;
  line-height: 1.35;
}

.ibv2-error {
  display: none;
  margin-top: 4px;
  color: #d14343;
  font-size: 12px;
  line-height: 1.3;
}

.ibv2-error.is-visible {
  display: block;
}

.ibv2-terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 2px;
  color: #3a3a3a;
  font-size: 14px;
}

.ibv2-terms input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex: 0 0 16px;
}

.ibv2-terms label {
  font-weight: 400;
  cursor: pointer;
}

.ibv2-terms a {
  color: #1a73b8;
  text-decoration: underline;
}

.ibv2-api-error {
  display: none;
  margin: 0;
  padding: 8px 10px;
  border-radius: 4px;
  background: #fdecec;
  color: #b42318;
  font-size: 13px;
}

.ibv2-api-error.is-visible {
  display: block;
}

.ibv2-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  margin: 0;
  border: 0;
  border-radius: 4px;
  background: #e3e3e3;
  color: #9a9a9a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.ibv2-submit.is-ready {
  background: #0065a6;
  color: #fff;
}

.ibv2-submit.is-ready:hover {
  background: #00548b;
}

.ibv2-submit-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.ibv2-processing {
  display: none;
}

.ibv2-processing.is-visible {
  display: flex;
}

.ibv2-submit.is-hidden {
  display: none;
}

.ibv2-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ibv2-spin 0.7s linear infinite;
}

@keyframes ibv2-spin {
  to {
    transform: rotate(360deg);
  }
}

.ibv2-note,
.ibv2-signin {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.45;
}

.ibv2-note {
  background: #e7f3fb;
  color: #3d7eae;
}

.ibv2-signin {
  background: #f3f8fc;
  color: #4a4a4a;
}

.ibv2-signin a {
  color: #1a73b8;
  font-weight: 600;
  text-decoration: none;
}

.ibv2-signin a:hover {
  text-decoration: underline;
}

.ibv2-signin-sep {
  margin: 0 6px;
  color: #9aa3ab;
}

@media (max-width: 640px) {
  .ibv2-page {
    padding: 20px 16px 32px;
  }

  .ibv2-row {
    flex-direction: column;
    gap: 16px;
  }

  .ibv2-signin {
    line-height: 1.6;
  }
}
