.dfy-application {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(580px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  padding: 40px;
  border: 1px solid #ded0bf;
  border-radius: 22px;
  background: #faf8f5;
  color: #443020;
  box-shadow: 0 24px 80px #30231b40;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.dfy-application::backdrop { background: #30231bb8; }
.dfy-application [hidden] { display: none !important; }
.dfy-application h2 { font-size: clamp(1.7rem, 5vw, 2.2rem); line-height: 1.15; margin: 12px 0 16px; }
.dfy-application p { line-height: 1.6; margin-bottom: 18px; }
.dfy-application .dfy-eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .1em; padding-right: 18px; color: #745847; }
.dfy-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #443020; font: inherit; font-size: 28px; cursor: pointer; }
.dfy-field, .dfy-application legend { display: block; font-weight: 700; font-size: .95rem; margin: 20px 0 8px; }
.dfy-application textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 84px; padding: 12px; border: 1px solid #b8a491; border-radius: 10px; background: #fff; color: #443020; font: inherit; }
.dfy-application input[type="email"] { width: 100%; box-sizing: border-box; min-height: 48px; padding: 12px; border: 1px solid #b8a491; border-radius: 10px; background: #fff; color: #443020; font: inherit; }
.dfy-application fieldset { padding: 0; border: 0; min-width: 0; }
.dfy-choice { display: flex; align-items: center; gap: 10px; border: 1px solid #d9cbbc; border-radius: 10px; padding: 14px; margin: 8px 0; cursor: pointer; }
.dfy-choice:has(input:checked) { border-color: #745847; background: #eee5d9; }
.dfy-choice input { accent-color: #745847; width: 18px; height: 18px; }
.dfy-application .dfy-route-note { font-size: .8rem; color: #6c6056; margin: 14px 0 20px; }
.dfy-action { display: flex; width: 100%; box-sizing: border-box; min-height: 52px; align-items: center; justify-content: center; text-align: center; border: 1px solid #745847; border-radius: 12px; background: #745847; color: #fffaf5; padding: 14px; font: inherit; font-size: .85rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.dfy-action:hover { background: #604737; }
.dfy-back { display: block; margin: 18px auto 0; background: transparent; border: 0; color: #604737; font: inherit; text-decoration: underline; cursor: pointer; }
.dfy-application :is(button, a, input, textarea):focus-visible { outline: 3px solid #af8554; outline-offset: 3px; }
button[data-dfy-apply] { font-family: inherit; cursor: pointer; }
.dfy-application .dfy-form-error { color: #a12622; background: #fff0ed; border: 1px solid #e5aaa2; border-radius: 10px; padding: 12px; font-size: .9rem; }
.dfy-application button:disabled { opacity: .65; cursor: wait; }
@media (max-width: 600px) { .dfy-application { padding: 38px 22px 24px; } }
