html.ftf-lock { overflow: hidden; }
.ftf-dlg { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--ink-2, #404C72); box-shadow: 0 30px 80px rgba(9, 26, 78, .28); overflow: auto; overscroll-behavior: contain; }
.ftf-dlg::backdrop { background: rgba(9, 26, 78, .55); }
.ftf-dlg[open] { animation: ftf-in .2s ease-out; }
@keyframes ftf-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ftf { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 36px 32px 32px; }
.ftf-x { position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--soft-2, #EDF2FE); color: var(--ink, #091A4E); font-size: 22px; line-height: 1; cursor: pointer; }
.ftf-x:hover { background: var(--tint, #E4EAFB); }
.ftf-x:focus-visible { outline: 2px solid var(--blue, #2951CA); outline-offset: 2px; }
.ftf-t { margin: 0 44px 0 0; font-size: clamp(24px, 3vw, 30px); line-height: 1.15; letter-spacing: -.02em; color: var(--ink, #091A4E); }
.ftf-lead { margin: -4px 0 4px; font-size: 16px; line-height: 1.5; color: var(--ink-2, #404C72); }
.ftf-f { display: flex; flex-direction: column; gap: 6px; }
.ftf .ft-input { width: 100%; min-height: 52px; box-sizing: border-box; }
.ftf select.ft-input { appearance: none; -webkit-appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5l3.5 3.5 3.5-3.5' fill='none' stroke='%23091A4E' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center / 12px; }
.ftf .ft-check { font-size: 14px; line-height: 1.45; }
.ftf-rd { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ftf-rd legend { margin-bottom: 4px; padding: 0; }
.ftf-rd .ft-check { font-size: 15px; }
.ftf .ft-check a, .ftf .ftf-legal a { color: var(--blue, #2951CA); text-decoration: underline; text-underline-offset: 2px; }
.ftf-legal { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-3, #5F667F); }
.ftf .ftf-e { margin: 0; font-size: 13px; line-height: 1.4; color: var(--neg, #A92816); }
.ftf .ftf-err { margin: 0; padding: 12px 14px; border-radius: 10px; background: #FCEFEC; font-size: 14px; line-height: 1.45; color: var(--neg, #A92816); }
.ftf [type=submit] { width: 100%; justify-content: center; min-height: 54px; margin-top: 4px; }
.ftf [type=submit][aria-busy="true"] { opacity: .7; cursor: progress; }
.ftf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.ftf-ok { padding: 8px 0; font-size: 17px; line-height: 1.5; color: var(--ink, #091A4E); text-align: center; outline: none; }
.ftf-ok a { color: var(--blue, #2951CA); }
.ftf.is-sent > :not(.ftf-ok):not(.ftf-x):not(.ftf-t) { display: none; }
@media (max-width: 560px) {
  .ftf { padding: 28px 20px 22px; gap: 14px; }
  .ftf-dlg { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ftf-dlg[open] { animation: none; } }
.ftf-sub { display: contents; }
