.mf {
  --mf-ac: #0a1628;
  --mf-ac2: #c8973e;
  --mf-ink: #16263b;
  --mf-muted: #61728a;
  --mf-line: #dde5ef;
  --mf-card: #ffffff;
  --mf-bg: #eef2f8;
  box-sizing: border-box;
  font-family: inherit;
  color: var(--mf-ink);
  background: var(--mf-bg);
  padding: clamp(48px, 7vw, 88px) clamp(16px, 5vw, 40px);
}
.mf *,
.mf *::before,
.mf *::after { box-sizing: border-box; }

.mf-wrap { width: min(960px, 100%); margin: 0 auto; }

.mf-head { text-align: center; max-width: 600px; margin: 0 auto 36px; }
.mf-kicker {
  display: inline-block;
  color: var(--mf-ac2);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.mf-title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--mf-ac);
}
.mf-sub { margin: 0; color: var(--mf-muted); font-size: 1rem; line-height: 1.6; font-weight: 400; }

.mf-form {
  background: var(--mf-card);
  border: 1px solid var(--mf-line);
  border-radius: 20px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 30px 70px -40px rgba(10, 22, 40, 0.45);
}

.mf-group { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.mf-group:last-of-type { margin-bottom: 22px; }

.mf-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0 0 14px;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--mf-line);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--mf-ac);
  text-transform: uppercase;
}
.mf-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--mf-ac);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.mf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 22px; }
.mf-col-2 { grid-column: 1 / -1; }

.mf .form-group { display: flex; flex-direction: column; gap: 7px; margin: 0; min-width: 0; }
.mf .form-group > label,
.mf label.w-100 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mf-ink);
  margin: 0;
  width: 100%;
  letter-spacing: 0.01em;
}
.mf .text-red { color: #e2342b; }
.mf .float-right { float: right; font-weight: 800; font-size: 0.78rem; }
.mf .d-none { display: none !important; }

.mf .form-control {
  width: 100%;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--mf-ink);
  background: #fff;
  border: 1px solid var(--mf-line);
  border-radius: 11px;
  padding: 12px 14px;
  line-height: 1.3;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.mf .form-control::placeholder { color: #9aa7b8; }
.mf .form-control:hover { border-color: #c4d0df; }
.mf .form-control:focus {
  outline: none;
  border-color: var(--mf-ac2);
  box-shadow: 0 0 0 3px rgba(10, 22, 40, 0.08);
}
.mf select.form-control {
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2361728a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.mf input[type="date"].form-control { min-height: 46px; }

.mf .has-error .form-control { border-color: #e2342b; }
.mf .has-error label { color: #e2342b; }
.mf .help-block { color: #e2342b; font-size: 0.78rem; font-weight: 600; margin: 0; list-style: none; padding: 0; }
.mf .has-success .form-control { border-color: #1f9d57; }

.mf-checks { display: flex; flex-wrap: wrap; gap: 12px; }
.mf-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 160px;
  padding: 12px 16px;
  border: 1px solid var(--mf-line);
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mf-ink);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.mf-check:hover { border-color: #c4d0df; }
.mf-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--mf-ac);
  cursor: pointer;
  flex-shrink: 0;
}
.mf-check:has(input:checked) {
  border-color: var(--mf-ac2);
  background: rgba(10, 22, 40, 0.03);
}
.mf-slots .mf-check { flex: 0 1 auto; }

.mf-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--mf-line);
}
.mf-hint { font-size: 0.8rem; color: var(--mf-muted); }
.mf-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  color: #fff;
  background: var(--mf-ac);
  border: 0;
  border-radius: 100px;
  padding: 14px 30px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.mf-submit:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 14px 30px -12px rgba(10, 22, 40, 0.55); }
.mf-submit:active { transform: translateY(0); }
.mf-submit:focus-visible { outline: 3px solid var(--mf-ac2); outline-offset: 3px; }
.mf-ic { width: 17px; height: 17px; }

@media (max-width: 620px) {
  .mf-grid { grid-template-columns: 1fr; }
  .mf-foot { flex-direction: column; align-items: stretch; }
  .mf-submit { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .mf .form-control, .mf-check, .mf-submit { transition: none; }
  .mf-submit:hover { transform: none; }
}
