.design-four #application-dialog { width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 0; border-radius: 20px; }
.registration-head { padding: 28px 28px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; background: #edf3e8; }
.registration-head h2 { font-size: 1.5rem; padding-right: 40px; margin-bottom: 10px; }
.registration-head p { font-size: 1rem; color: var(--text-sub); line-height: 1.8; }
.registration-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.registration-close:hover { background: #dce7d5; }
.registration-close svg { width: 22px; height: 22px; }
#registration-form { padding: 24px 28px 28px; }
.registration-field { margin-bottom: 18px; }
.registration-field label { display: block; font-size: .9375rem; font-weight: 700; margin-bottom: 8px; color: var(--forest); }
.registration-field textarea { resize: vertical; line-height: 1.7; }
.registration-field :is(input, select, textarea) { scroll-margin-top: 160px; }
.registration-field select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 7 5 5 5-5' fill='none' stroke='%2324472a' stroke-width='1.8'/%3E%3C/svg%3E"); background-size: 20px; background-repeat: no-repeat; background-position: right 14px center; }
.registration-privacy { background: #f5f7f2; padding: 16px; border-radius: 10px; margin: 22px 0 16px; }
.registration-privacy summary { cursor: pointer; font-size: .9375rem; font-weight: 700; }
.registration-privacy p { margin-top: 12px; font-size: .875rem; line-height: 1.85; white-space: pre-line; color: var(--text-sub); }
.registration-agreement { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; line-height: 1.8; margin-bottom: 20px; cursor: pointer; }
.registration-agreement input { flex: 0 0 20px; height: 20px; margin-top: 4px; accent-color: var(--forest); }
.registration-status { color: #a13e1e; font-size: .9375rem; line-height: 1.8; margin-bottom: 12px; }
.registration-status:empty { display: none; }
.registration-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.registration-success { padding: 40px 28px; text-align: center; }
.registration-success-mark { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 20px; background: #e5eedf; border-radius: 50%; font-size: 1.8rem; color: var(--forest); }
.registration-success h3 { font-size: 1.5rem; margin-bottom: 14px; }
.registration-success p { line-height: 1.8; color: var(--text-sub); }
#registration-receipt { margin: 20px 0; font-size: .9375rem; font-weight: 700; }
.cms-multiline { white-space: pre-line; line-height: 1.9; }
.cms-custom-section { margin: 28px 0; }
.cms-custom-section h2 { margin-bottom: 14px; font-size: 1.5rem; }
.cms-custom-section .btn, .cms-added-program .btn { margin-top: 20px; }
.cms-custom-image { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; margin-bottom: 24px; }
.design-four .cms-added-program .prog-left-content { display: block; height: 100%; padding: 28px; }
.cms-preview [data-cms-block] { scroll-margin-top: 100px; }
@media(max-width:600px) {
  .design-four #application-dialog { max-height: calc(100dvh - 24px); }
  .registration-head { padding: 24px 20px 18px; }
  #registration-form { padding: 20px; }
  .registration-head h2 { font-size: 1.35rem; }
}
