/* Общий фон и контейнер */
body {
  background-color: #f8f9fa;
  font-family: "Inter", sans-serif;
  color: #212529;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
}

/* Заголовки секций */
.form-section h2 {
  flex: 0 0 30%;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #212529;
  width: 100%;
}

/* Секции формы */
.form-section {
  display: flex;
  flex-direction: row;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 32px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  gap: 20px;
}

/* Сетка полей и структура */
.fields-wrapper,
.personal-grid,
.form-block,
.form-row,
.form-half {
  width: 100%;
}

.personal-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-block {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-half {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Поля формы */
label {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 6px;
  display: block;
  color: #343a40;
}

input[type="text"],
input[type="tel"],
select {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  background-color: #fff;
  transition: border 0.2s ease;
}

input:focus,
select:focus {
  border-color: #1f7a4f;
  outline: none;
}

button:disabled,
button.disabled {
  opacity: 0.5 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}

/* Прогресс-бар */
.step-progress {
  display: flex;
  justify-content: space-between;
  margin: 20px 0 40px;
  position: relative;
}

.step {
  text-align: center;
  flex: 1;
  position: relative;
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #e9ecef;
  color: #212529;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-weight: 600;
}

.step-title {
  font-size: 14px;
  line-height: 1.2;
}

.step.completed .step-number {
  background-color: #1F7A4F;
  color: white;
}

.step.current .step-number {
  border: 2px solid #1F7A4F;
  background-color: white;
  color: #1F7A4F;
}

.step::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: #e9ecef;
  z-index: -1;
}

.step:last-child::after {
  display: none;
}

.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

/* Выбор роли */
.role-options {
  display: flex;
  gap: 32px;
  align-items: center;
  flex: 1;
  justify-content: space-around;
}

.role-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* Загрузка файлов */
.file-block {
  position: relative;
  border: 2px dashed #D1D5DB;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  transition: background 0.3s;
  margin: 20px 0;
}

.file-block.dragover {
  background-color: #e9f5ee;
  border-color: #1F7A4F;
}

.file-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  text-align: left;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 6px;
  font-size: 14px;
}

.file-list button {
  background: transparent;
  border: none;
  color: #e11d48;
  cursor: pointer;
  font-size: 16px;
}

.file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.file-icon img {
  opacity: 0.6;
}

.file-title {
  font-weight: 400;
  color: #6B7280;
  font-size: 18px;
  margin-top: 25px;
}

.file-subtext {
  color: #D1D5DB;
  font-size: 14px;
  margin-top: 15px;
  font-weight: lighter;
}

.file-button {
  margin-top: 25px;
  padding: 13px 72px;
  font-weight: 600;
  border: 2px solid #1F7A4F;
  color: #1F7A4F;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.file-button:hover {
  background: #1F7A4F;
  color: #fff;
}

.file-note {
  margin-top: 15px;
  color: #D1D5DB;
  font-size: 14px;
  font-weight: lighter;
}

.selfie-attention {
  color: #6B7280;
  font-style: italic;
}

.field-grid > div {
  margin-bottom: 20px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 6px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #343a40;
}

.step.skipped .step-number {
  background-color: #dee2e6;
  color: #999;
}

.sms-step-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background-color: #ffffff;
}

.sms-step-inner {
  max-width: 480px;
  width: 100%;
  text-align: center;
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
}

.sms-icon {
  margin-bottom: 20px;
}

.step-title-big {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #212529;
}

.step-subtitle {
  font-size: 15px;
  color: #6c757d;
  margin-bottom: 30px;
}

.sms-code-inputs {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 30px;
}

.sms-code-inputs input {
  width: 64px;
  height: 64px;
  font-size: 32px;
  text-align: center;
  border: 2px solid #ced4da;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s ease;
}

.sms-code-inputs input:focus {
  border-color: #1f7a4f;
  outline: none;
}

.green-button {
  display: inline-block;
  background: #1f7a4f;
  color: #fff;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.verification-success {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background-color: #ffffff;
}

.success-inner {
  max-width: 600px;
  width: 100%;
  text-align: center;
  background: #fff;
  padding: 50px 40px;
  border-radius: 12px;
}

.success-inner img {
  margin-bottom: 30px;
}

.success-inner .step-title-big {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #212529;
}

.success-inner .step-subtitle {
  font-size: 16px;
  color: #6c757d;
  margin-bottom: 30px;
  line-height: 1.6;
}

.green-button-outline {
  display: inline-block;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  color: #1F7A4F;
  border: 2px solid #1F7A4F;
  border-radius: 12px;
  background: transparent;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.green-button-outline:hover {
  background-color: white;
  color: #1f7a4f;
  border: 2px solid #1f7a4f;
}

.green-button:hover {
  background-color: #17623f;
}

/* Адаптив: на мобильных — одна колонка */
@media (max-width: 600px) {
  .checkbox-group label {
    flex: 1 1 100%;
  }
}

.hidden {
  display: none !important;
}

/* Кнопка */
button[type="submit"] {
  display: block;
  background-color: #1F7A4F;
  border: 2px solid #1F7A4F;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 20px 135px;
  border-radius: 12px;
  cursor: pointer;
  margin: 0 auto;
  transition: background-color 0.2s ease;
}

button[type="submit"]:hover {
  background-color: white;
  color: #1f7a4f;
  border: 2px solid #1f7a4f;
}

@media (max-width: 600px) {
  .container {
    padding: 30px 16px;
  }

  h1 {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .form-section {
    flex-direction: column;
    padding: 20px;
  }

  .form-section h2 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .form-half {
    width: 100%;
  }

  .role-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .checkbox-group {
    flex-direction: column;
    gap: 10px;
  }

  .step-progress {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .step-title {
    display: none;
  }

  .step::after {
    top: 16px;
    left: 0;
    right: 0;
    width: 100%;
  }

  .sms-step-wrapper,
  .verification-success {
    padding: 40px 16px;
  }

  .sms-step-inner,
  .success-inner {
    padding: 30px 20px;
  }

  .step-title-big {
    font-size: 18px;
  }

  .step-subtitle {
    font-size: 14px;
  }

  .sms-code-inputs {
    gap: 10px;
  }

  .sms-code-inputs input {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .green-button,
  .green-button-outline,
  button[type="submit"] {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    text-align: center;
  }

  button[type="submit"] {
    padding: 16px;
  }

  .file-button {
    width: 100%;
    padding: 12px;
  }

  .file-title {
    font-size: 16px;
  }

  .file-subtext,
  .file-note {
    font-size: 12px;
  }
}
