/* МВ Печать — форма обратной связи */

@keyframes formIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.form-overlay {
  position: fixed; inset: 0;
  background: rgba(11, 20, 34, 0.78);
  backdrop-filter: blur(18px);
  z-index: 3000;
  display: none; align-items: center;
  justify-content: center;
  padding: 20px 16px;
}
.form-overlay.is-open { display: flex; }
.form-lock { overflow: hidden !important; }

.form-modal-panel {
  width: 100%; max-width: 520px;
  background: #fff; border-radius: 28px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.32);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  animation: formIn .28s cubic-bezier(.22, 1, .36, 1);
}

.form-modal-header {
  padding: 26px 26px 0;
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px;
}
.form-modal-eyebrow {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: #9aabbd; margin-bottom: 7px;
}
.form-modal-title {
  margin: 0; font-size: 26px; font-weight: 800;
  letter-spacing: -0.045em; line-height: 1.1;
  color: #0b1422;
}
.form-close-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.09);
  background: #f8faff; cursor: pointer;
  display: flex; align-items: center;
  justify-content: center; color: #637089;
  font-size: 20px; flex-shrink: 0; margin-top: 4px;
  font-family: inherit;
}
.form-close-btn:hover { background: #f0f5fc; }

.form-tabs {
  display: flex; gap: 8px;
  padding: 20px 26px 22px;
}
.form-tab {
  height: 42px; padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: #fff; font-size: 14px;
  font-weight: 700; color: #637089;
  cursor: pointer; font-family: inherit;
  transition: all .18s;
  display: inline-flex; align-items: center; gap: 8px;
}
.form-tab.active {
  background: linear-gradient(135deg, #4b8bff, #1a55d4);
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 14px rgba(26, 85, 212, 0.25);
}
.form-tab:hover:not(.active) {
  border-color: rgba(36, 97, 235, 0.3);
  color: #2461eb;
}
.form-tab-content.is-hidden { display: none; }

.form-icon { display: block; fill: currentColor; flex-shrink: 0; }
.form-icon--sm { width: 14px; height: 14px; }
.form-icon--submit { width: 16px; height: 16px; }
.form-icon--contact { width: 22px; height: 22px; color: #fff; }
.form-icon--info { width: 16px; height: 16px; color: #fff; }
.contact-card:first-child .form-icon--contact { width: 24px; height: 24px; }

.form-inp {
  height: 54px; padding: 0 18px;
  border: 1.5px solid #e8eef8;
  border-radius: 14px; background: #f7f9fc;
  font-size: 15px; color: #0b1422;
  outline: none; width: 100%;
  box-sizing: border-box; font-family: inherit;
  transition: border-color .18s, box-shadow .18s;
}
.form-inp:focus {
  border-color: #4b8bff; background: #fff;
  box-shadow: 0 0 0 4px rgba(75, 139, 255, 0.12);
}
.form-inp::placeholder { color: #b0bdd0; }

.form-textarea {
  height: 90px; padding: 14px 18px;
  border: 1.5px solid #e8eef8;
  border-radius: 14px; background: #f7f9fc;
  font-size: 15px; color: #0b1422;
  outline: none; width: 100%;
  box-sizing: border-box; font-family: inherit;
  resize: none;
  transition: border-color .18s, box-shadow .18s;
}
.form-textarea:focus {
  border-color: #4b8bff; background: #fff;
  box-shadow: 0 0 0 4px rgba(75, 139, 255, 0.12);
}
.form-textarea::placeholder { color: #b0bdd0; }

.form-sel {
  height: 54px; padding: 0 18px;
  border: 1.5px solid #e8eef8;
  border-radius: 14px;
  background: #f7f9fc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aabbd' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat calc(100% - 16px) center;
  font-size: 15px; color: #0b1422;
  outline: none; width: 100%;
  box-sizing: border-box; font-family: inherit;
  appearance: none; cursor: pointer;
  transition: border-color .18s;
}
.form-sel:focus { border-color: #4b8bff; background-color: #fff; }

.form-body {
  padding: 0 26px 26px;
  display: grid; gap: 12px;
}
.form-row-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

.form-file {
  min-width: 0;
}

.form-file__label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 14px;
  border: 1.5px dashed rgba(36, 97, 235, 0.28);
  border-radius: 16px;
  background: #f8faff;
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
}

.form-file__label:hover {
  border-color: rgba(36, 97, 235, 0.52);
  background: #eef4ff;
  box-shadow: 0 6px 22px rgba(11, 20, 34, 0.06);
}

.form-file__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-file__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  color: #2461eb;
  background: #eaf1ff;
}

.form-file__icon svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: currentColor;
}

.form-file__title {
  display: block;
  color: #0b1422;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.form-file__hint {
  display: block;
  margin-top: 3px;
  color: #9aabbd;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.form-file__hint.is-filled {
  color: #637089;
}

.form-file__hint.is-error {
  color: #d93636;
  font-weight: 700;
}

.form-submit-btn {
  height: 58px;
  background: linear-gradient(135deg, #4b8bff, #1a55d4);
  border: 0; border-radius: 16px;
  color: #fff; font-size: 16px; font-weight: 800;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center;
  justify-content: center; gap: 10px;
  box-shadow: 0 8px 24px rgba(26, 85, 212, 0.3);
  transition: transform .18s, box-shadow .18s;
}
.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(26, 85, 212, 0.38);
}
.form-submit-btn:disabled {
  cursor: wait;
  transform: none;
  opacity: 0.82;
}
.form-submit-btn.is-loading {
  background: linear-gradient(135deg, #6f9cff, #2b62d9);
}
.form-submit-btn.is-success {
  background: linear-gradient(135deg, #2ecc71, #1a9e52);
}
.form-submit-btn.is-error {
  background: linear-gradient(135deg, #ff6b6b, #d93636);
}

.form-legal {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12.5px; color: #9aabbd;
  line-height: 1.5; cursor: pointer;
}
.form-legal input[type="checkbox"] {
  margin-top: 2px; accent-color: #2461eb; flex-shrink: 0;
}

.form-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-contacts {
  padding: 0 26px 26px;
  display: grid; gap: 10px;
}
.contact-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1.5px solid rgba(180, 210, 245, 0.35);
  background: #f8faff;
  text-decoration: none;
  transition: all .2s;
}
.contact-card:hover {
  border-color: rgba(36, 97, 235, 0.3);
  background: #eef4ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(11, 20, 34, 0.09);
}
.contact-card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.contact-card-icon--telegram { background: linear-gradient(135deg, #2aabee, #1a8fcf); }
.contact-card-icon--max { background: #fff; box-shadow: inset 0 0 0 1px rgba(180, 210, 245, 0.45); }
.contact-card-icon--mail { background: linear-gradient(135deg, #ff9040, #e87220); }
.contact-card-icon--phone { background: linear-gradient(135deg, #2ecc71, #1a9e52); }
.form-icon--max {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
}
.contact-card-body { flex: 1; }
.contact-card-name {
  font-size: 15px; font-weight: 700;
  color: #0b1422; letter-spacing: -0.02em;
}
.contact-card-desc {
  font-size: 13px; color: #637089; margin-top: 2px;
}
.contact-card-arr { font-size: 18px; color: #b0bdd0; flex-shrink: 0; }

.form-info-banner {
  padding: 14px 16px;
  background: linear-gradient(135deg, #f0f5ff, #e8effd);
  border-radius: 14px;
  display: flex; align-items: center; gap: 12px;
}
.form-info-banner p {
  margin: 0; font-size: 13px;
  line-height: 1.55; color: #637089;
}
.form-info-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #4b8bff, #1a55d4);
  display: grid; place-items: center; flex-shrink: 0;
}

@media (max-width: 480px) {
  .form-modal-title { font-size: 22px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .form-modal-header,
  .form-tabs,
  .form-body,
  .form-contacts { padding-left: 18px; padding-right: 18px; }
}
