dialog.selection-form { width:min(920px, calc(100% - 24px)); max-width:none;
max-height:calc(100% - 16px); max-height:calc(100dvh - 16px); padding:clamp(12px, 2.5vw, 24px) clamp(20px, 4vw, 36px);
border:0; border-radius:14px; box-sizing:border-box; overflow-x:hidden; overflow-y:auto;
color:#162332; background:#fff; overflow-wrap:anywhere; }
#promas-selection::backdrop { background:rgba(15,23,42,.65); }
#promas-selection form label { margin-bottom:0; font-weight:500; }
#promas-selection form .selection-consent { font-weight:400; }
#promas-selection form input:not([type=checkbox]), #promas-selection form textarea { margin-bottom:0; }
.selection-form h2 { margin:0 38px 6px 0; font-size:clamp(22px,3vw,29px); }
.selection-form p { margin:0 0 10px; }
.selection-form form { display:grid; gap:9px; width:94%; min-width:0; max-width:700px; margin:0 auto; box-sizing:border-box; }
.selection-form .selection-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 12px; }
.selection-form label { display:block; min-width:0; font-weight:600; }
.selection-form input:not([type=checkbox]), .selection-form textarea {
display:block; width:100%; min-width:0; max-width:100%; min-height:36px; margin-top:3px; padding:6px 9px;
box-sizing:border-box; border:1px solid #9caab9; border-radius:8px;
font:inherit; font-weight:400; color:inherit; background:#fff; }
.selection-form textarea { min-height:74px; resize:vertical; }
.selection-form .selection-files { box-sizing:border-box; padding:8px; border:1px dashed #9caab9; border-radius:8px; }
.selection-form small { display:block; margin-top:4px; font-weight:400; }
.selection-form .selection-close { position:absolute; top:10px; right:12px;
width:44px; height:44px; border:0; background:transparent; font-size:27px; cursor:pointer; }
.selection-form .selection-consent { display:grid; grid-template-columns:18px minmax(0,1fr);
column-gap:12px; align-items:start; padding:0; margin:0; font-weight:400; }
.selection-form .selection-consent::before, .selection-form .selection-consent::after { content:none !important; }
.selection-form .selection-consent > input[type=checkbox] {
grid-column:1; grid-row:1; position:static !important; inset:auto !important;
float:none !important; transform:none !important; appearance:auto !important;
display:block !important; visibility:visible !important; opacity:1 !important;
box-sizing:border-box; width:18px !important; height:18px !important;
min-width:18px; min-height:18px; margin:2px 0 0 !important; padding:0 !important; }
.selection-form .selection-consent > span {
grid-column:2; grid-row:1; min-width:0; padding:0; margin:0; overflow-wrap:anywhere; }
.selection-form .selection-consent > span::before,
.selection-form .selection-consent > span::after { content:none !important; }
.selection-form [role=status] { margin:0; } .selection-form [role=status]:empty { display:none; }
.selection-form [role=status][data-error] { color:#a52222; }
.selection-form .selection-submit { justify-self:start; min-height:40px;
padding:7px 18px; border:0; border-radius:8px; color:#fff; background:#ff4f00; cursor:pointer; }
.selection-form .selection-submit:disabled { opacity:.65; cursor:wait; }
@media(max-height:720px) { .selection-form { padding:12px clamp(18px, 4vw, 32px); font-size:14px; line-height:1.25; } .selection-form textarea { min-height:58px; } }
@media(max-width:380px) { .selection-form .selection-grid { grid-template-columns:1fr; } }
@media(max-width:640px) { .selection-form form { width:100%; }
.selection-form .selection-submit { width:100%; } }

@media (max-width:640px), (max-height:720px) {
  dialog.selection-form { padding:10px clamp(12px, 3vw, 24px); font-size:14px; line-height:1.3; }
  dialog.selection-form h2 { font-size:21px; line-height:1.2; }
  dialog.selection-form p { margin-bottom:6px; }
  dialog.selection-form form { width:100%; gap:6px; }
  dialog.selection-form .selection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px 8px; }
  #promas-selection form input:not([type=checkbox]) { height:36px; }
  dialog.selection-form textarea { min-height:54px; }
  dialog.selection-form .selection-files { padding:6px; }
  dialog.selection-form small { font-size:12px; line-height:1.25; }
}

@media (min-width:641px) and (min-height:741px) {
  #promas-selection[open] { display:flex; flex-direction:column; min-height:700px; padding-block:16px; }
  #promas-selection form { display:flex; flex:1; flex-direction:column; gap:7px; }
  #promas-selection .selection-grid { gap:6px 12px; }
  #promas-selection form input:not([type=checkbox]) { height:38px; }
  #promas-selection form label:has(> textarea) { display:flex; flex:1; flex-direction:column; }
  #promas-selection textarea { flex:1; min-height:120px; }
  #promas-selection .selection-submit { align-self:flex-start; }
}

#promas-selection-inline { max-width: 920px; margin: 40px auto; padding: clamp(18px, 4vw, 36px); border: 1px solid #e2e6e9; border-radius: 14px; background: #fff; }
#promas-selection-inline > p { margin-bottom: 20px; }
