/* A single, quiet frame contains the form, tabs and saved-draft state. */
#form .wn-form-body {
  min-width:0;
  padding:clamp(22px,2.1vw,36px);
  border:1px solid #2b2b29;
  border-radius:18px;
  background:#080808;
}
#form .tabs {
  gap:4px;
  padding:4px;
  margin:0 0 28px;
  border:1px solid #292927;
  border-radius:11px;
  background:#111110;
}
#form .tab {
  flex:1;
  min-width:0;
  padding:12px 8px;
  border:0;
  border-radius:7px;
  color:#94948e;
  font-size:14px;
  line-height:1.35;
  transition:color .2s,background-color .2s;
}
#form .tab[aria-selected=true] {background:#27261e;color:var(--ed-accent)}
#form .tab:hover {color:#f4f3ee}
#form .formbox {background:transparent}
#form .draft-note {
  align-items:center;
  gap:14px;
  padding:14px 16px;
  margin:0 0 24px;
  border-color:#30302a;
  border-radius:9px;
  background:#11110e;
  color:#b1b1a9;
  line-height:1.6;
}
#form .draft-note button {flex:none;font-size:11px;white-space:nowrap}
#form .time-hint {margin:0 0 18px;line-height:1.5}
#form .prog {margin:0 0 10px;gap:6px}
#form .prog i {height:3px;border-radius:3px}
#form .stepname {margin:0 0 26px;line-height:1.5}
#form legend {font-size:clamp(24px,2vw,30px);line-height:1.15;margin-bottom:12px}
#form .hint {margin:0 0 24px;font-size:13px;line-height:1.65}
#form .grid {gap:16px;align-items:stretch}
#form .f {margin:0 0 20px;line-height:1.5}
#form .f>span {margin-bottom:9px;color:#d7d7d1}
#form .f em {margin-top:3px;line-height:1.45;color:#86867f}
#form .grid>.f {display:flex;flex-direction:column}
#form .grid>.f>input,#form .grid>.f>select,#form .grid>.f>.pair,#form .grid>.f>.wn-select {margin-top:auto}
#form input:not([type=checkbox]):not([type=file]),#form select,#form textarea {
  min-height:48px;
  padding:12px 14px;
  border:1px solid #343431;
  border-radius:8px;
  background:#10100f;
  color:#f4f3ee;
  font-size:15px;
  line-height:1.5;
  outline:none;
  transition:border-color .18s,background-color .18s;
}
#form select {padding-right:28px}
#form textarea {min-height:112px}
#form input::placeholder,#form textarea::placeholder {color:#7c7c75;opacity:1}
#form input:not([type=checkbox]):not([type=file]):hover,#form select:hover,#form textarea:hover {border-color:#53534c}
#form input:not([type=checkbox]):not([type=file]):focus,#form select:focus,#form textarea:focus {
  border-color:var(--ed-accent);
  background:#151510;
  outline:2px solid rgba(245,211,17,.16);
  outline-offset:2px;
}
#form .pair {grid-template-columns:minmax(0,1fr) 82px;gap:8px}
#form .pair select {padding-left:10px}
#form .chips {gap:8px}
#form .chip span {border-color:#343431;color:#a7a79f;background:#10100f}
#form .chip input:checked+span {background:#27261e;border-color:var(--ed-accent);color:var(--ed-accent)}
#form .filealt {padding:14px;border:1px dashed #3a3a34;border-radius:8px;gap:8px 12px;line-height:1.5}
#form .filealt label {border:0;border-radius:5px;padding:4px 0;min-width:0}
#form .filealt>span:last-child {margin-left:auto;white-space:nowrap}
#form .form-nav {align-items:center;margin-top:26px;padding-top:22px;border-top:1px solid #292927}
#form .form-nav .btn {margin-left:auto;min-width:124px;border-radius:8px;letter-spacing:0}
#form .back {color:#c3c3bc;font-size:13px;padding:10px 0}
#form .err:empty {display:none}
#form .agree {line-height:1.6}
#form .review-group:first-child {border-top:0}
#form .review-group h4 {line-height:1.5;align-items:baseline}
#form .review-row {line-height:1.6}
@media(max-width:1000px) {
  #form .wn-form-layout {grid-template-columns:1fr;gap:32px}
  #form .contact__intro {position:static}
  #form .contact__hook {max-width:22ch}
  #form .sub {max-width:65ch}
}
@media(max-width:700px) {
  #form .wn-form-body {padding:20px 16px;border-radius:14px}
  #form .tabs {margin-bottom:24px}
  #form .tab {font-size:13px;padding:12px 6px}
  #form .grid {gap:0}
  #form .draft-note {padding:12px;align-items:flex-start;gap:10px}
  #form .stepname {margin-bottom:22px}
  #form .hint {margin-bottom:22px}
  #form input:not([type=checkbox]):not([type=file]),#form select,#form textarea {font-size:16px}
  #form .filealt {padding:12px;font-size:11px;gap:8px}
  #form .filealt>span:first-child {flex-basis:100%}
  #form .form-nav {margin-top:22px;padding-top:20px}
  #form .review-group h4 {flex-wrap:wrap;gap:6px}
}
@media(prefers-reduced-motion:reduce) {
  #form .tab,#form input,#form select,#form textarea {transition:none}
}

/* Keep real select values in the form, exposing one styled keyboard control. */
#form .wn-select {position:relative;min-width:0;width:100%}
#form select.wn-select__native {
  position:absolute!important;width:1px!important;height:1px!important;
  min-height:0!important;padding:0!important;border:0!important;
  overflow:hidden;clip-path:inset(50%);white-space:nowrap;
}
#form .wn-select__button {
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  width:100%;min-height:50px;min-width:0;padding:12px 14px;
  border:1px solid #343431;border-radius:8px;background:#10100f;color:#f4f3ee;
  font:400 15px/1.5 var(--font-body);text-align:left;cursor:pointer;
  transition:border-color .18s,background-color .18s;
}
#form .wn-select__button:hover {border-color:#53534c}
#form .wn-select__button:focus-visible,#form .wn-select.is-open .wn-select__button {
  border-color:var(--ed-accent);background:#151510;
  outline:2px solid rgba(245,211,17,.16);outline-offset:2px;
}
#form .wn-select__value {overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#form .wn-select__button svg {width:16px;height:16px;flex:none;transition:transform .16s}
#form .wn-select.is-open svg {transform:rotate(180deg)}
#form .wn-select__button:disabled {opacity:.45;cursor:default}
#form .pair .wn-select__button {padding-inline:10px;gap:4px}
.wn-select-menu {
  position:fixed;z-index:1200;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;
  padding:5px;border:1px solid #414137;border-radius:10px;background:#111110;
  color:#f4f3ee;font:400 14px/1.45 var(--font-body);
  box-shadow:0 14px 36px #000a;scrollbar-width:thin;scrollbar-color:#55554a #111110;
  animation:wn-select-appear .14s ease-out;
}
.wn-select-menu__option {position:relative;padding:11px 33px 11px 12px;border-radius:5px;cursor:pointer;overflow-wrap:break-word}
.wn-select-menu__option[aria-selected=true] {color:var(--ed-accent);background:#27251a}
.wn-select-menu__option[aria-selected=true]::after {content:'✓';position:absolute;right:11px;top:11px;color:var(--ed-accent)}
.wn-select-menu__option.is-active {background:#323024;color:#fff6be}
.wn-select-menu__option[aria-disabled=true] {opacity:.4;cursor:default}
@keyframes wn-select-appear {from {opacity:0;transform:translateY(-3px)}to {opacity:1;transform:none}}
#form .contact__hook {overflow-wrap:normal;word-break:normal;hyphens:none}
@media(max-width:700px) {#form .wn-select__button {font-size:16px}}
@media(prefers-reduced-motion:reduce) {
  .wn-select-menu {animation:none}
  #form .wn-select__button,#form .wn-select__button svg {transition:none}
}
