.form-wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 24px;
  color: #fff;
  background: #0344B8;
  border-radius: 18px;
}
.form-member{
  background: #022e7d;
}
.form-member .form{
  max-width: 620px
}
.tabs-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}

.tab-item {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  flex: 1;
  max-width: 140px;
}

.tab {
  width: 56px;
  height: 56px;
  margin: 0 auto 5px;
  border-radius: 50%;
  background: #1A66E0;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.tab span {
  color: #FFE000;
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
}

.tab-item:hover .tab {
  transform: translateY(-3px) scale(1.06);
  background: #2C78F5;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}

.tab-item.active .tab {
  background: #FFE000;
  border-color: #fff;
}

.tab-item.active .tab span {
  color: #0344B8;
}

.tab-item.done .tab {
  background: #2C78F5;
}

.tab-label {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: #bcd2f7;
  line-height: 1.25;
}

.tab-item.active .tab-label {
  color: #fff;
}

.panel h3 {
  text-align: left;
  margin: 0 0 20px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.field {
  position: relative;
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 7px;
  color: #dce8fb;
  padding-left: 4px;
}

.field .hint {
  font-weight: 400;
  color: #a8c2ee;
}


.field .select2-selection__rendered,
.field input{
  font: 400 25px "Roboto", sans-serif;
  height: 70px;
  display: block;
  width: 100%;
  border: 1px solid #075DC7;
  background: #075DC7;
  color: #FEFEFE;
  padding: 0 30px 0 36px;
  border-radius: 4px;
}

.select2-selection__placeholder{
  color:#9dbcef;
}


.field .file-custom {
  padding: 19px 10px 20px 30px;
}
.field .file-custom .in {color:#9dbcef !important;}
.field:not(.has-text) input[type="date"] {color:#9dbcef !important;}
.field input::-webkit-input-placeholder {color:#9dbcef !important;}
.field input::-moz-placeholder          {color:#9dbcef !important;}
.field input:-moz-placeholder           {color:#9dbcef !important;}
.field input:-ms-input-placeholder      {color:#9dbcef !important;}
/*.field select {*/
/*  width: 100%;*/
/*  padding: 18px 22px;*/
/*  font-size: 18px;*/
/*  font-weight: 500;*/
/*  background: #1A66E0;*/
/*  color: #fff;*/
/*  border: none;*/
/*  border-radius: 14px;*/
/*  outline: none;*/
/*  transition: background .15s, box-shadow .15s;*/
/*  -webkit-appearance: none;*/
/*  appearance: none;*/
/*  font-family: inherit;*/
/*}*/
.field input:invalid::-webkit-datetime-edit {
  color: red !important;
}

.field .select2-selection {
  height: 70px;
}
.field .select2-selection__rendered {
  line-height: 30px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 22px center;
  padding-right: 54px;
}

.field input::placeholder {
  color: #9dbcef;
  opacity: 1;
}


/*.field input:focus, .field select:focus {*/
/*    background: #2C78F5;*/
/*    box-shadow: 0 0 0 3px rgba(255, 255, 255, .35);*/
/*}*/

.field select.error + .select2 .select2-selection__rendered,
.field input.error, .field select.error {
  box-shadow: inset 0 0 0 2px #ff5a6e;
}

.field .err-msg {
  display: none;
  color: #ffd2d8;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
  padding-left: 4px;
}

.field input.error ~ .err-msg {
  display: block;
}

.field input[type=date] {
  cursor: pointer;
}

.field input[type=date]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(1);
}

.field input[type=file] {
  cursor: pointer;
}

.field input[type=file]::file-selector-button {
  background: #0344B8;
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 9px;
  font-weight: 600;
  margin-right: 14px;
  cursor: pointer;
}

.field .select2-selection__arrow b {
  top: 19px;
}
.field .select2 {
  min-width: 100% !important;
}
.field select option {
  color: #13243d;
  background: #fff;
}

.row2 {
  display: flex;
  gap: 14px;
}

.row2 .field {
  flex: 1;
  overflow: hidden;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 14px;
}

.form-wrap .btn {
  padding: 16px 40px;
  font-size: 17px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .5px;
  border: none;
  cursor: pointer;
  transform: skewX(-12deg);
  background: #FFE000;
  color: #0344B8;
  transition: filter .15s, transform .1s;
}

.form-wrap .btn span {
  display: inline-block;
  transform: skewX(12deg);
}

.form-wrap  .btn:hover {
  filter: brightness(1.05);
}

.form-wrap  .btn:active {
  transform: skewX(-12deg) scale(.97);
}

.form-wrap .btn[disabled] {
  opacity: .35;
  cursor: not-allowed;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.summary {
  background: #1A66E0;
  border-radius: 14px;
  padding: 8px 20px;
  margin-bottom: 20px;
}

.summary .srow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.summary .srow:last-child {
  border-bottom: none;
}

.summary .sk {
  color: #bcd2f7;
  font-size: 15px;
  flex-shrink: 0;
}

.summary .sv {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.summary .photo-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.summary .photo-row img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #fff;
}

.form-wrap .btn-download {
  background: #FFE000;
  color: #0344B8;
  width: 100%;
  text-align: center;
}

.consent {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  margin-top: 8px;
  user-select: none;
}

.consent input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.consent .cbox {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #1A66E0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, box-shadow .15s;
}

.consent .cbox svg {
  opacity: 0;
  transition: opacity .15s;
}

.consent input:checked ~ .cbox svg {
  opacity: 1;
}

.consent input:focus-visible ~ .cbox {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .4);
}

.consent.error .cbox {
  box-shadow: 0 0 0 2px #ff5a6e;
}

.consent .ctext {
  font-size: 16px;
  color: #dce8fb;
  line-height: 1.35;
}

.sent-note {
  background: rgba(255, 224, 0, .14);
  border: 1px solid #FFE000;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
}

.sent-note b {
  color: #FFE000;
  word-break: break-all;
}

.file-custom .dz-remove {
  top: -9px;
}
.field input[type=file]{
  position: absolute;
  opacity: 0;
}
.file-custom .in{
  text-align: left;
}
.dz-progress,
.dz-started .in{
  display: none !important;
}

.dz-filename{
  text-align: left;
}
.file-custom .dz-preview:last-child{
  margin: 0;
}
.file-custom .dz-filename span{
  padding: 0;
}
/* Планшеты и небольшие ноутбуки */


#registration-middle-name,
#registration-first-name,
#registration-last-name{
  text-transform: capitalize;
}
@media (max-width: 768px) {

  .form-wrap {
    padding: 20px;
    border-radius: 16px;
  }

  .tab-label {
    font-size: 13px;
  }

  .field input, .field select {
    padding: 16px 18px;
    font-size: 17px;
  }

  .panel h3 {
    font-size: 20px;
  }
}

/* Смартфоны */
@media (max-width: 520px) {

  .form-wrap {
    padding: 13px;
    border-radius: 14px;
  }

  .tabs-row {
    gap: 4px;
    margin-bottom: 22px;
  }

  .tab {
    width: 46px;
    height: 46px;
    border-width: 2px;
  }

  .tab span {
    font-size: 21px;
  }

  .tab-label {
    font-size: 10px;
  }

  .panel h3 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .field {
    margin-bottom: 13px;
  }

  .field label {
    font-size: 14px;
  }

  .field input, .field select {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 11px;
  }

  .field select {
    background-position: right 16px center;
    padding-right: 46px;
  }

  /* Парные поля — в столбец */
  .row2 {
    flex-direction: column;
    gap: 0;
  }

  .nav {
    margin-top: 22px;
    gap: 10px;
  }

  .form-wrap  .btn {
    padding: 13px 26px;
    font-size: 15px;
  }
}
