/* Формы «Задать вопрос / уточнить данные» и «Заявка в Smart 500». Светлая тема сайта v2. */
.srf { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; max-width: 720px; font-family: "Inter", sans-serif; color: var(--ink, #0A1F44); }
.srf-wide { grid-column: 1 / -1; }
.srf-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2, #2C3D63); }
.srf-req::after { content: " *"; color: #C2410C; font-weight: 600; }
.srf-legend { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--ink-3, #5B6A85); }
.srf-legend span { color: #C2410C; font-weight: 600; }
.srf-field input, .srf-field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink, #0A1F44);
  background: var(--paper, #F7F8FB); border: 1px solid #AEBBD3; border-radius: 0; box-sizing: border-box;
}
.srf-field textarea { resize: vertical; min-height: 96px; }
.srf-field input:focus, .srf-field textarea:focus { outline: 2px solid var(--blue, #2563EB); outline-offset: -1px; border-color: var(--blue, #2563EB); background: #fff; }
.srf-field input.is-invalid, .srf-field textarea.is-invalid { border-color: #C2410C; }
.srf-error { margin: 6px 0 0; font-size: 14px; color: #C2410C; }
.srf-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-3, #5B6A85); }
.srf-consent input { margin-top: 3px; flex: none; width: 18px; height: 18px; }
.srf-consent a { color: inherit; text-decoration: underline; }
.srf-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.srf-submit {
  min-height: 48px; padding: 0 28px; font: inherit; font-size: 16px; font-weight: 600; color: #fff;
  background: var(--blue, #2563EB); border: 1px solid var(--blue, #2563EB); border-radius: 0; cursor: pointer;
}
.srf-submit:hover:not(:disabled) { background: var(--blue-2, #1D4ED8); }
.srf-submit:disabled { opacity: 0.45; cursor: not-allowed; }
.srf-note { margin: 0; font-size: 14px; color: var(--ink-3, #5B6A85); }
.srf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.srf-done { max-width: 720px; padding: 24px; font-family: "Source Serif 4", Georgia, serif; font-size: 20px; line-height: 1.45; color: var(--ink, #0A1F44); background: var(--blue-pale, #EEF3FC); border-left: 4px solid var(--blue, #2563EB); }

/* Диалог (страница участника): на телефоне — на весь экран снизу. */
.srf-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-top: 4px solid var(--blue, #2563EB); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45); background: #fff; color: var(--ink, #0A1F44); overflow: auto; }
.srf-dialog::backdrop { background: rgba(10, 31, 68, 0.62); }
.srf-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 28px 8px; }
.srf-dialog-title { margin: 0; font-family: "Source Serif 4", Georgia, serif; font-weight: 500; font-size: 28px; line-height: 1.15; }
.srf-dialog-lead { margin: 0 0 20px; padding: 0 28px 20px; border-bottom: 1px solid var(--paper-3, #DDE3EE); font-size: 16px; line-height: 1.5; color: var(--ink-3, #5B6A85); }
.srf-dialog-body { padding: 0 28px 28px; }
.srf-dialog-close { flex: none; width: 44px; height: 44px; margin: -8px -8px 0 0; font-size: 28px; line-height: 1; color: var(--ink-3, #5B6A85); background: none; border: 0; cursor: pointer; }

@media (max-width: 640px) {
  .srf { grid-template-columns: 1fr; }
  .srf-dialog { width: 100vw; max-width: 100vw; max-height: 94vh; margin: auto 0 0; }
  .srf-dialog-head { padding: 22px 18px 8px; }
  .srf-dialog-title { font-size: 24px; }
  .srf-dialog-lead, .srf-dialog-body { padding-left: 18px; padding-right: 18px; }
  .srf-submit { width: 100%; }
}
