body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: #132238;
  background: #fff;
}

:root {
  --vtb-green: #41b883;
  --vtb-green-dark: #2f9d6b;
}

* {
  box-sizing: border-box;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

input:disabled {
  background-color: #F2F1F1 !important;
  color: linen;
  opacity: 1;
}

.apply-page__header {
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.45;
}

.apply-page__link {
  text-align: center;
  display: block;
  text-decoration: none;
  color: #FFFFFF;
  background-color: #41b883;
  padding: 10px 30px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  margin: 0 auto 20px;
  width: -moz-max-content;
  width: max-content;
}

.form-radio-item {
  display: flex;
  gap: 16px;
}
.form-radio-item a {
  margin-top: 2px;
}

.form-top-item {
  margin-bottom: 40px;
}

.form-top-item > .field-label {
  margin-bottom: 12px;
}

.radio-desc {
  margin-bottom: 32px;
}

.radio-desc p {
  margin: 0;
}

.form {
  display: grid;
  row-gap: 30px;
}

.form-block {
  display: grid;
  row-gap: 30px;
}

.form-block.thin-row {
  row-gap: 10px;
}

.thin-row .form-item-title {
  margin-top: 14px;
}

.form-item {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 10px;
}

.form-item-title {
  font-weight: 700;
}

.form-block-title {
  text-align: center;
}

.form-block-desc {
  text-align: center;
  font-weight: 500;
}

.success-modal-body {
  padding: 40px;
  text-align: center;
}

.success-modal-body__bottom {
  margin-top: 60px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.success-modal-body__action {
  min-width: 150px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
}

.success-modal-body__bottom a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  text-decoration: none;
  color: #FFFFFF;
  background-color: #41b883;
  border-radius: 6px;
}

@media only screen and (max-width: 600px) {
  .grid-1 {
    grid-template-columns: 1fr;
  }
}
.policy-modal-body {
  padding: 16px;
  max-height: 700px;
  overflow-y: auto;
}

ul li {
  margin-bottom: 8px;
}

.label-formulate {
  display: block;
  line-height: 1.5;
  font-size: 0.9em;
  font-weight: 600;
  margin-bottom: 0.5em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.field {
  display: grid;
  gap: 8px;
}

.field-label {
  display: block;
  line-height: 1.5;
  font-size: 0.9em;
  font-weight: 600;
}

.field-input,
.field-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd4dc;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

.field-textarea {
  min-height: 120px;
  resize: vertical;
}

.field-input:focus,
.field-textarea:focus {
  outline: none;
  border-color: #2f6fed;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}

.field-help {
  white-space: pre-line;
  color: #5b6472;
  font-size: 14px;
}

.field-error {
  color: #b51f1f;
  font-size: 14px;
}

.phone-field {
  width: 100%;
}

.phone-field__control {
  width: 100%;
}

.phone-field__container {
  width: 100%;
}

.phone-field__container .form-control,
.phone-field__input {
  width: 100% !important;
  height: 48px !important;
  border: 1px solid #cfd4dc !important;
  border-radius: 6px !important;
  padding-left: 56px !important;
  font: inherit !important;
}

.phone-field__container .flag-dropdown,
.phone-field__button {
  border: 1px solid #cfd4dc !important;
  border-radius: 6px 0 0 6px !important;
  background: #fff !important;
}

.phone-field__container .form-control:focus {
  border-color: #2f6fed !important;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12) !important;
}

.phone-field--error .phone-field__container .form-control,
.phone-field--error .phone-field__container .flag-dropdown {
  border-color: #b51f1f !important;
}

.phone-field__dropdown {
  font: inherit !important;
}

.phone-field__search {
  width: calc(100% - 20px) !important;
  margin: 10px !important;
}

.radio-group {
  display: grid;
  gap: 12px;
}

.radio-option,
.checkbox-option {
  display: flex;
  gap: 10px;
  align-items: center;
}

.choice-control {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 1px solid #b9c3d0;
  background: #fff;
  cursor: pointer;
}

.choice-control--radio {
  border-radius: 50%;
}

.choice-control--radio:checked {
  border-color: var(--vtb-green);
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 9px var(--vtb-green);
}

.choice-control--checkbox {
  border-radius: 4px;
}

.choice-control--checkbox:checked {
  border-color: var(--vtb-green);
  background: var(--vtb-green);
  box-shadow: inset 0 0 0 2px #fff;
  margin-top: 3px;
}

.button-primary,
.button-secondary {
  border: none;
  border-radius: 6px;
  padding: 12px 16px;
  cursor: pointer;
  font: inherit;
}

.button-primary {
  color: #fff;
  background: var(--vtb-green);
  font-weight: 600;
}

.button-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.button-secondary {
  background: #eef2f7;
  color: #152033;
}

.success-modal-body__bottom .success-modal-body__action {
  min-width: 160px;
  min-height: 46px;
  padding: 12px 18px;
  font-size: 14px;
  line-height: 1.2;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-card {
  width: min(900px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.text-button {
  border: none;
  background: transparent;
  padding: 0;
  color: #56AAFF;
  cursor: pointer;
  font: inherit;
}

.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: grid;
  gap: 12px;
  width: min(420px, 100vw - 32px);
  z-index: 1100;
}

.toast {
  position: relative;
  border-radius: 8px;
  padding: 14px 42px 14px 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  background: #fff;
}

.toast--error {
  border-left: 4px solid #c23333;
}

.toast--warn {
  border-left: 4px solid #d4a017;
}

.toast__title {
  font-weight: 700;
}

.toast__message {
  margin-top: 4px;
  font-size: 14px;
}

.toast__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: #4f5c6d;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.button-wrapper--centered {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  max-width: 1140px;
  padding: 40px 16px;
  margin: 0 auto;
}

@media only screen and (max-width: 600px) {
  .apply-page__header {
    font-size: 28px;
    line-height: 1.35;
  }
  .form-item {
    grid-template-columns: 1fr;
  }
  .phone-field {
    flex-direction: column;
  }
  .phone-field__select-wrap {
    min-width: 100%;
    flex-basis: 48px;
    border-right: none;
    border-bottom: 1px solid #e3e7ee;
  }
  .success-modal-body__bottom {
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }
  .button-wrapper--centered {
    width: 100%;
    padding: 16px;
  }
}
