.dcf {
--dcf-accent: #8b5cf6;
--dcf-accent-2: #b47bfd;
--dcf-ok: #04e391;
--dcf-err: #ff7a8a;
--dcf-text: #f5f5f7;
--dcf-muted: #a9a9bd;
--dcf-line: rgba(255, 255, 255, .12);
--dcf-field: rgba(255, 255, 255, .045);
--dcf-card: rgba(15, 23, 42, .62);
--dcf-radius: 14px;
box-sizing: border-box;
position: relative;
width: 100%;
max-width: 760px;
margin: 0 auto;
padding: clamp(24px, 4vw, 44px);
color: var(--dcf-text);
font-family: var(--font-main, Inter, system-ui, -apple-system, sans-serif);
background: var(--dcf-card);
border: 1px solid var(--dcf-line);
border-radius: 24px;
-webkit-backdrop-filter: blur(18px);
backdrop-filter: blur(18px);
box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
overflow: hidden;
isolation: isolate;
}
.dcf *, .dcf *::before, .dcf *::after { box-sizing: border-box; }
.dcf::before {
content: "";
position: absolute;
inset: -40% -20% auto auto;
width: 70%;
aspect-ratio: 1;
background: radial-gradient(closest-side, rgba(139, 92, 246, .22), transparent);
z-index: -1;
pointer-events: none;
}
.dcf-section { padding: clamp(8px, 2vw, 16px) 0; } .dcf-head { margin-bottom: 28px; text-align: left; }
.dcf .dcf-title {
margin: 0 0 10px;
font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
line-height: 1.15;
letter-spacing: -0.02em;
font-weight: 700;
color: var(--dcf-text);
}
.dcf-intro { margin: 0; color: var(--dcf-muted); font-size: 1.02rem; line-height: 1.6; max-width: 56ch; } .dcf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dcf-full { grid-column: 1 / -1; }
@media (max-width: 560px) { .dcf-grid { grid-template-columns: 1fr; } } .dcf-field { position: relative; display: flex; flex-direction: column; }
.dcf-field input,
.dcf-field textarea {
width: 100%;
margin: 0;
padding: 24px 16px 10px;
font: inherit;
font-size: 16px; line-height: 1.4;
color: var(--dcf-text);
background: var(--dcf-field);
border: 1px solid var(--dcf-line);
border-radius: var(--dcf-radius);
outline: none;
box-shadow: none;
-webkit-appearance: none;
appearance: none;
transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.dcf-field textarea { min-height: 128px; resize: vertical; field-sizing: content; max-height: 420px; }
.dcf-field label {
position: absolute;
left: 17px;
top: 17px;
margin: 0;
font-size: 16px;
font-weight: 400;
color: var(--dcf-muted);
pointer-events: none;
transform-origin: left top;
transition: transform .18s ease, color .18s ease;
}
.dcf-field input:focus,
.dcf-field textarea:focus {
border-color: var(--dcf-accent);
background: rgba(255, 255, 255, .07);
box-shadow: 0 0 0 4px rgba(139, 92, 246, .18);
}
.dcf-field input:focus + label,
.dcf-field input:not(:placeholder-shown) + label,
.dcf-field textarea:focus + label,
.dcf-field textarea:not(:placeholder-shown) + label {
transform: translateY(-10px) scale(.76);
color: #c4b5fd;
}
.dcf-field input:-webkit-autofill {
-webkit-text-fill-color: var(--dcf-text);
-webkit-box-shadow: 0 0 0 100px #1b1f33 inset;
caret-color: var(--dcf-text);
}
.dcf-field input:-webkit-autofill + label { transform: translateY(-10px) scale(.76); }
.dcf-hint { margin: 7px 2px 0; font-size: 13px; color: var(--dcf-muted); opacity: .8; }
.dcf-err { display: block; min-height: 0; margin: 6px 2px 0; font-size: 13px; color: var(--dcf-err); }
.dcf-err:empty { display: none; }
.dcf-field.is-invalid input,
.dcf-field.is-invalid textarea { border-color: var(--dcf-err); box-shadow: 0 0 0 4px rgba(255, 122, 138, .12); }
.dcf-field.is-invalid .dcf-hint { display: none; }
.dcf-field.is-valid input { border-color: rgba(4, 227, 145, .45); } .dcf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; } .dcf-ts:not(:empty) { margin-top: 16px; } .dcf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }
.dcf-btn {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
min-height: 54px;
padding: 0 30px;
font: inherit;
font-size: 1rem;
font-weight: 600;
letter-spacing: .01em;
color: #fff;
background: linear-gradient(135deg, var(--dcf-accent) 0%, var(--dcf-accent-2) 100%);
border: 0;
border-radius: 999px;
cursor: pointer;
box-shadow: 0 12px 30px -10px rgba(139, 92, 246, .7);
transition: transform .2s ease, box-shadow .2s ease, filter .2s;
}
.dcf-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(139, 92, 246, .85); }
.dcf-btn:active { transform: translateY(0); }
.dcf-btn:focus-visible { outline: 3px solid #c4b5fd; outline-offset: 3px; }
.dcf-btn-icon { width: 18px; height: 18px; transition: transform .2s; }
.dcf-btn:hover .dcf-btn-icon { transform: translateX(3px); }
.dcf-spinner {
display: none;
width: 18px;
height: 18px;
border: 2px solid rgba(255, 255, 255, .35);
border-top-color: #fff;
border-radius: 50%;
animation: dcf-spin .7s linear infinite;
}
.dcf.is-loading .dcf-btn { pointer-events: none; filter: saturate(.8); }
.dcf.is-loading .dcf-btn-icon { display: none; }
.dcf.is-loading .dcf-spinner { display: inline-block; }
.dcf-legal { display: flex; align-items: center; gap: 8px; margin: 0; flex: 1 1 240px; font-size: 13px; line-height: 1.45; color: var(--dcf-muted); }
.dcf-legal svg { flex: none; width: 18px; height: 18px; color: var(--dcf-ok); }
.dcf-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.dcf-alert { margin-top: 16px; padding: 12px 16px; font-size: 14px; color: #ffd5db; background: rgba(255, 122, 138, .1); border: 1px solid rgba(255, 122, 138, .3); border-radius: 12px; } .dcf-success { padding: clamp(16px, 4vw, 36px) 0; text-align: center; outline: none; animation: dcf-in .45s ease both; }
.dcf-check { width: 72px; height: 72px; margin: 0 auto 18px; display: block; }
.dcf-check circle { stroke: var(--dcf-ok); stroke-width: 2.5; stroke-dasharray: 152; stroke-dashoffset: 152; animation: dcf-draw .6s ease forwards; }
.dcf-check path { stroke: var(--dcf-ok); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: dcf-draw .4s .45s ease forwards; }
.dcf-success-title { margin: 0 0 8px; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); font-weight: 700; color: var(--dcf-text); }
.dcf-success-text { margin: 0 auto; max-width: 46ch; color: var(--dcf-muted); line-height: 1.6; } .dcf.is-ready .dcf-field { animation: dcf-in .5s ease both; }
.dcf.is-ready .dcf-field:nth-child(2) { animation-delay: .05s; }
.dcf.is-ready .dcf-field:nth-child(3) { animation-delay: .1s; }
.dcf.is-ready .dcf-field:nth-child(4) { animation-delay: .15s; }
@keyframes dcf-spin { to { transform: rotate(360deg); } }
@keyframes dcf-draw { to { stroke-dashoffset: 0; } }
@keyframes dcf-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
.dcf *, .dcf { animation: none !important; transition: none !important; }
.dcf-check circle, .dcf-check path { stroke-dashoffset: 0; }
}