/* ===== Submit (film registration) page ===== */
.sb-main{padding-top:56px}
.sb-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:40px;align-items:start}
.req{color:var(--orange);font-style:normal;font-weight:700}

/* Side steps */
.sb-aside{position:sticky;top:98px}
.sb-steps{display:flex;flex-direction:column;gap:2px;padding:10px;border-radius:18px;background:var(--surface);border:1px solid var(--line)}
.sb-steps a{display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:10px;font-size:14.5px;color:var(--muted);transition:background .2s,color .2s}
.sb-steps a b{font-size:12px;font-variant-numeric:tabular-nums;color:var(--purple-soft);opacity:.8}
.sb-steps a:hover{color:#fff;background:rgba(255,255,255,.04)}
.sb-steps a.on{color:#fff;background:rgba(238,106,44,.14)}
.sb-steps a.on b{color:var(--orange);opacity:1}
.sb-note{font-size:13px;color:var(--muted);margin:16px 6px 6px}
.sb-terms-link{display:inline-block;margin-inline-start:6px;font-size:13.5px;font-weight:600;color:var(--orange)}
.sb-terms-link:hover{text-decoration:underline}
.sb-steps.locked a:not(:first-child){opacity:.4;pointer-events:none}

/* Cards */
.sb-form{display:flex;flex-direction:column;gap:24px;min-width:0}
.sb-rest{display:flex;flex-direction:column;gap:24px;min-width:0}
.sb-rest[hidden]{display:none}
.sb-card{border:1px solid var(--line);border-radius:20px;background:var(--surface);padding:30px 30px 32px;scroll-margin-top:96px;min-width:0;box-shadow:0 20px 40px -30px rgba(0,0,0,.9)}
.sb-card legend{float:left;width:100%;display:flex;align-items:center;gap:12px;font-family:var(--serif);font-weight:900;font-size:clamp(22px,2.4vw,28px);color:#fff;margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.sb-card legend + *{clear:both}
.sb-card legend span{font-family:var(--sans);font-weight:700;font-size:13px;color:var(--orange);padding:3px 10px;border-radius:99px;background:rgba(238,106,44,.12)}
.sb-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 22px}
.sb-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.sb-grid .full{grid-column:1/-1}
.sb-sub{margin-top:30px;padding-top:24px;border-top:1px dashed var(--line)}
.sb-sub.first{margin-top:0;padding-top:0;border:0}
.sb-sub > .lbl{display:block;margin-bottom:4px;font-size:15.5px}
.sb-h{font-size:19px;color:#fff;margin:28px 0 12px}
.sb-info{font-size:13.5px;color:var(--muted);padding:10px 14px;border-radius:10px;background:rgba(179,156,232,.08);border-inline-start:3px solid var(--purple-soft)}

/* Fields */
.fld{display:flex;flex-direction:column;gap:6px;min-width:0}
.lbl{font-weight:600;font-size:14.5px;color:#fff}
.hint{display:block;font-size:12.5px;color:var(--muted);line-height:1.6;margin-bottom:6px}
.fld .hint{margin:-2px 0 2px}
.row3 .rep{margin-top:0}
.row3 .rep-item > select{max-width:none}
.row3 .rep:not(.multi) .rep-del{display:none}
.sb-form input:not([type=radio]):not([type=checkbox]):not([type=file]),.sb-form select,.sb-form textarea{
  width:100%;min-height:46px;padding:10px 14px;border-radius:12px;border:1px solid rgba(196,176,255,.22);background:rgba(10,6,24,.35);
  color:var(--text);font:inherit;font-size:14.5px;transition:border-color .2s,box-shadow .2s,background .2s}
.sb-form textarea{resize:vertical;line-height:1.7}
.sb-form input::placeholder,.sb-form textarea::placeholder{color:rgba(181,171,208,.55)}
.sb-form input:focus,.sb-form select:focus,.sb-form textarea:focus{outline:none;border-color:var(--orange);background:rgba(10,6,24,.5);box-shadow:0 0 0 3px rgba(238,106,44,.18)}
.sb-form select{appearance:none;-webkit-appearance:none;padding-inline-start:38px;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5abd0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-size:16px;background-position:left 14px center}
.sb-form select option{background:var(--ink-2);color:var(--text)}
.sb-form input[type=date]{color-scheme:dark}
.wc{align-self:flex-end;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;min-height:18px}
.wc.ok{color:#4fd18b}
.wc.bad{color:#ff8a7a}

.sb-duration{display:flex;gap:12px}
.sb-duration label{flex:1;display:flex;flex-direction:column;gap:4px}
.sb-duration input{text-align:center;font-variant-numeric:tabular-nums}
.sb-duration small{font-size:12.5px;color:var(--muted);text-align:center}

.tel{display:flex;direction:ltr}
.tel select{flex:0 0 108px;border-start-end-radius:0!important;border-end-end-radius:0!important;border-inline-end:0!important;padding-inline:12px 30px!important;background-position:right 10px center!important}
.tel input{border-start-start-radius:0!important;border-end-start-radius:0!important}

/* Radio chips + checkboxes */
.sb-choices{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
.chip{position:relative;cursor:pointer}
.chip input{position:absolute;opacity:0;pointer-events:none}
.chip span{display:inline-flex;align-items:center;gap:10px;padding:9px 22px 9px 18px;border-radius:99px;border:1px solid rgba(196,176,255,.22);font-weight:600;font-size:14.5px;transition:.2s}
.chip span::before{content:"";width:14px;height:14px;border-radius:50%;border:2px solid var(--muted);transition:.2s}
.chip:hover span{border-color:var(--purple-soft)}
.chip input:checked + span{border-color:var(--orange);background:rgba(238,106,44,.14);color:#fff}
.chip input:checked + span::before{border-color:var(--orange);background:var(--orange);box-shadow:inset 0 0 0 2px var(--surface)}
.chip input:focus-visible + span{outline:2px solid var(--orange);outline-offset:2px}

.sb-checks{display:flex;flex-direction:column;gap:10px}
.check{display:flex;gap:14px;align-items:flex-start;padding:14px 16px;border-radius:14px;border:1px solid var(--line);background:rgba(10,6,24,.22);cursor:pointer;transition:.2s;font-size:14.5px;line-height:1.75}
.check:hover{border-color:rgba(196,176,255,.3)}
.check input{appearance:none;-webkit-appearance:none;flex-shrink:0;width:20px;height:20px;margin-top:4px;border-radius:6px;border:2px solid var(--muted);cursor:pointer;transition:.2s;display:grid;place-items:center}
.check input::after{content:"";width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) scale(0);margin-top:-2px;transition:transform .15s}
.check input:checked{background:var(--orange);border-color:var(--orange)}
.check input:checked::after{transform:rotate(45deg) scale(1)}
.check:has(input:checked){border-color:rgba(238,106,44,.45);background:rgba(238,106,44,.07)}
.sb-final{margin-top:22px}
.sb-final .check{border-color:rgba(238,106,44,.35)}
.sb-gate{margin-top:12px;font-size:13.5px;color:var(--orange-2)}
.sb-q{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:24px;padding:16px 18px;border-radius:14px;background:rgba(10,6,24,.22);border:1px solid var(--line)}
.sb-q p{font-weight:600;color:#fff}
.sb-q.first{margin-top:0}

/* Repeatable groups */
.rep{display:flex;flex-direction:column;gap:12px;margin-top:6px}
.rep-item{position:relative;display:flex;align-items:center;gap:10px}
.rep-item > select{flex:1;max-width:340px}
.rep-del{flex-shrink:0;width:38px;height:38px;border-radius:10px;display:grid;place-items:center;color:var(--muted);transition:.2s}
.rep-del svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.rep-del:hover{color:#ff8a7a;background:rgba(255,93,98,.1)}
.rep:not(.multi) .rep-del{visibility:hidden}
.rep-add{align-self:flex-start;margin-top:12px;padding:9px 18px;border-radius:99px;border:1px dashed rgba(196,176,255,.35);font-size:13.5px;font-weight:600;color:var(--purple-soft);transition:.2s}
.rep-add:hover{border-color:var(--orange);color:var(--orange);background:rgba(238,106,44,.06)}

.rep-item.person{flex-direction:column;align-items:stretch;padding:20px;border-radius:16px;border:1px solid var(--line);background:rgba(10,6,24,.18)}
.person-head{display:flex;align-items:center;justify-content:space-between;margin:-6px 0 12px}
.person-head .lbl{font-family:var(--serif);font-size:17px}
.rep-item.upload,.rep-item.link{display:grid;grid-template-columns:220px minmax(0,1fr) 38px;align-items:stretch;gap:14px}
.rep-item.link{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 38px;align-items:start}
.rep-item.upload .rep-del{align-self:center}
.rep-item.link .rep-del{margin-top:30px}
.sb-sub > .rep-item.upload{grid-template-columns:220px minmax(0,1fr);margin-top:6px}
.rep-item.upload.solo{grid-template-columns:220px}
.rep-item.link.solo{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.shots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:6px}

/* File drop */
.drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:118px;padding:14px;border-radius:14px;border:1.5px dashed rgba(196,176,255,.3);background:rgba(10,6,24,.25);text-align:center;cursor:pointer;transition:.2s}
.drop:hover,.drop:focus-within{border-color:var(--orange);background:rgba(238,106,44,.06)}
.drop input{position:absolute;inset:0;opacity:0;cursor:pointer}
.drop svg{width:26px;height:26px;fill:none;stroke:var(--orange-2);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.drop span{font-weight:600;font-size:14px;color:#fff;overflow-wrap:anywhere}
.drop small{font-size:12px;color:var(--muted)}
.drop.has{border-style:solid;border-color:rgba(79,209,139,.5);background:rgba(79,209,139,.06)}
.drop.has svg{stroke:#4fd18b}
.drop.too-big{border-style:solid;border-color:rgba(255,99,99,.6);background:rgba(255,99,99,.06)}
.drop.too-big span{color:#ff8a8a}

/* Terms */
.sb-terms{border-radius:14px;border:1px solid var(--line);background:rgba(10,6,24,.22);scroll-margin-top:96px}
.sb-terms summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;cursor:pointer;list-style:none;font-weight:600;color:#fff}
.sb-terms summary::-webkit-details-marker{display:none}
.sb-terms summary::after{content:"";width:9px;height:9px;border:solid var(--orange);border-width:0 2px 2px 0;transform:rotate(45deg);transition:transform .25s;flex-shrink:0}
.sb-terms[open] summary::after{transform:rotate(-135deg)}
.sb-terms-body{max-height:440px;overflow:auto;padding:4px 22px 22px;border-top:1px solid var(--line);font-size:14.5px;color:var(--text)}
.sb-terms-body h3{font-size:18px;color:#fff;margin:22px 0 8px}
.sb-terms-body h4{font-size:15px;color:var(--orange-2);margin:12px 0 4px}
.sb-terms-body p{margin-top:12px;color:var(--muted)}
.sb-terms-body ul{padding-inline-start:20px}
.sb-terms-body li{margin:4px 0}
.sb-terms-body li::marker{color:var(--orange)}

/* Actions */
.sb-actions{position:sticky;bottom:16px;z-index:5;display:flex;justify-content:flex-end;gap:12px;padding:14px;border-radius:18px;background:rgba(31,18,68,.88);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--line);box-shadow:0 18px 40px -20px rgba(0,0,0,.9)}
.sb-actions .btn-primary{min-width:160px}

/* ===== Responsive ===== */
@media (max-width:1024px){
  .sb-layout{grid-template-columns:minmax(0,1fr);gap:24px}
  .sb-aside{position:static;min-width:0}
  .sb-steps{flex-direction:row;overflow-x:auto;scrollbar-width:none}
  .sb-steps::-webkit-scrollbar{display:none}
  .sb-steps a{white-space:nowrap}
  .sb-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .sb-main{padding-top:36px}
  .sb-card{padding:22px 18px 24px;border-radius:16px}
  .sb-grid,.sb-grid.three{grid-template-columns:1fr}
  .rep-item.upload,.rep-item.link,.sb-sub > .rep-item.upload,.rep-item.upload.solo,.rep-item.link.solo{grid-template-columns:minmax(0,1fr);gap:12px}
  .shots{grid-template-columns:minmax(0,1fr);gap:12px}
  .rep-item.upload .rep-del,.rep-item.link .rep-del{position:absolute;top:6px;inset-inline-end:6px;z-index:2;margin:0;width:34px;height:34px;background:rgba(10,6,24,.6)}
  .rep-item.link .rep-del{top:-6px;inset-inline-end:0}
  .rep:not(.multi) .rep-item.upload .rep-del,.rep:not(.multi) .rep-item.link .rep-del{display:none}
  .rep-item.person{padding:16px}
  .sb-actions{bottom:10px;padding:10px}
  .sb-actions .btn{flex:1;padding-inline:12px}
  .sb-actions .btn-primary{min-width:0}
  .sb-steps{margin-inline:-24px;padding:8px 24px;border-radius:0;border-inline:0}
  .sb-steps a{padding:8px 12px;font-size:14px}
  .sb-note{margin:12px 0 4px}
  .sb-card legend{font-size:21px;margin-bottom:18px;padding-bottom:12px}
  .sb-sub{margin-top:24px;padding-top:20px}
  .rep-item > select{max-width:none}
  .rep-item.person{padding:14px}
  .drop{min-height:96px}
  .sb-q{flex-direction:column;align-items:flex-start}
  .sb-terms-body{max-height:360px;padding:4px 16px 18px}
  .check{padding:12px 14px;gap:12px}
  .sb-form input:not([type=radio]):not([type=checkbox]):not([type=file]),.sb-form select,.sb-form textarea{font-size:16px}
}
@media (max-width:420px){
  .sb-card{padding:20px 14px 22px}
  .tel select{flex-basis:92px}
  .chip span{padding:8px 16px 8px 14px}
  .sb-actions{gap:8px;padding:8px}
  .sb-actions .btn{padding-inline:8px;font-size:14px}
}

/* ===== Server round-trip (CMS) ===== */
.sb-hp{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.sb-errors{border:1px solid rgba(238,106,44,.55);border-radius:16px;background:rgba(238,106,44,.1);padding:18px 22px;color:var(--peach);outline:none}
.sb-errors strong{display:block;margin-bottom:6px;color:var(--orange-2)}
.sb-errors ul{padding-inline-start:20px;font-size:14px;line-height:1.8}
.sb-done{display:grid;gap:14px}
.sb-done .sb-actions{margin-top:6px}
.sb-ref{color:var(--muted)}
.sb-ref strong{color:var(--heading)}
.btn.is-busy{opacity:.6;pointer-events:none}
