/* Формы «Решение по цифровизации» и «Направить резюме»:
   компактная модалка в стиле формы инициатив (классы ii-*). */

#fblock_form_2 .form-content,
#fblock_form_3 .form-content { max-width: 640px; width: min(94vw, 640px); }

.initiative-form-head h4 { margin: 0 0 4px; font-size: 1.25rem; }
.initiative-form-head p { margin: 0 0 14px; color: #57616e; font-size: .9rem; }
.initiative-form { max-height: 72vh; overflow-y: auto; padding-right: 6px; }

.ii-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.ii-field { display: flex; flex-direction: column; }
.ii-field-full { grid-column: 1 / -1; }
.ii-field label { font-size: .82rem; font-weight: 600; color: #2b3a55; margin-bottom: 4px; }
.ii-field input, .ii-field select, .ii-field textarea {
  border: 1px solid #c9d8ef; border-radius: 8px; padding: 8px 10px; font-size: .95rem; width: 100%;
  background: #fff; font-family: inherit;
}
.ii-field textarea { resize: vertical; min-height: 84px; }
.ii-field input:focus, .ii-field select:focus, .ii-field textarea:focus {
  outline: none; border-color: #0342a0; box-shadow: 0 0 0 3px rgba(3, 66, 160, .12);
}
.ii-inline { display: flex; gap: 8px; }
.ii-inline select { flex: 1; }
.ii-error { color: #c62828; font-size: .78rem; min-height: 0; margin-top: 3px; }
.ii-error:not(:empty) { margin-bottom: 2px; }
.ii-honey { position: absolute !important; left: -9999px; height: 1px; width: 1px; opacity: 0; }
.ii-submit { margin-top: 14px; width: 100%; }
.ii-submit[disabled] { opacity: .6; cursor: wait; }

.ii-success { display: none; text-align: center; padding: 24px 8px 8px; }
.ii-success-icon {
  width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: #1e7e46;
  color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center;
}
.ii-success-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.ii-success-text { color: #57616e; font-size: .92rem; }
.initiative-form.is-sent .ii-grid,
.initiative-form.is-sent .ii-submit { display: none; }
.initiative-form.is-sent .ii-success { display: block; }

#fblock_form_2, #fblock_form_3 { z-index: 1260; }

@media (max-width: 767px) {
  #fblock_form_2 .form-content,
  #fblock_form_3 .form-content {
    width: 100%; max-width: 100%; max-height: 100%; min-height: 100%;
    margin: 0; border-radius: 0; padding: 20px 18px;
  }
  .ii-grid { grid-template-columns: 1fr; gap: 6px 0; }
  .ii-field input, .ii-field select, .ii-field textarea { font-size: 16px; }
}
