/* Shared public field presentation; native validation and submission logic stay intact. */
@media screen {
  :is(.public-marketing-shell main, main.home-rebuild) :is(
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea
  ) {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    padding: 11px 12px;
    padding-inline-end: var(--o360-field-end-space, 12px);
    border: 1px solid #7b8da5;
    border-radius: 0;
    background: #fff;
    color: #172234;
    font-family: var(--o360-font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
  }
  :is(.public-marketing-shell main, main.home-rebuild) select { --o360-field-end-space: 40px; }
  :is(.public-marketing-shell main, main.home-rebuild) textarea {
    min-height: 120px;
    resize: vertical;
  }
  :is(.public-marketing-shell main, main.home-rebuild) :is(input, textarea)::placeholder { color: #52647b; opacity: 1; }
  :is(.public-marketing-shell main, main.home-rebuild) label:has(> :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea)) {
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
  }
  :is(.public-marketing-shell main, main.home-rebuild) :is(input, select, textarea):focus-visible {
    outline: 3px solid #176fff;
    outline-offset: 3px;
  }
  :is(.public-marketing-shell main, main.home-rebuild) :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea):is(:disabled, [readonly]) {
    background: #edf1f6;
    color: #52647b;
  }
  :is(.public-marketing-shell main, main.home-rebuild) :is(input, select, textarea):disabled { cursor: not-allowed; }
  :is(.public-marketing-shell main, main.home-rebuild) :is(.form-grid, .benchmark-fields) { gap: 20px; }
  :is(.public-marketing-shell main, main.home-rebuild) :is(.form-status, .benchmark-status):empty {
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }
  :is(.public-marketing-shell main, main.home-rebuild) :is(.form-status, .benchmark-status):not(:empty),
  .public-marketing-shell main [role="alert"] {
    margin-block: 16px 0;
    padding: 12px 16px;
    border: 1px solid #a3b4ca;
    border-left-width: 3px;
    background: #f5f8fc;
    color: #172234;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }
  :is(.public-marketing-shell main, main.home-rebuild) :is(.form-status.error, .benchmark-status.error),
  .public-marketing-shell main [role="alert"] {
    border-color: #a12622;
    background: #fff4f2;
    color: #8c211e;
  }
  :is(.public-marketing-shell main, main.home-rebuild) :is(.form-status.success, .benchmark-status.success) {
    border-color: #126344;
    background: #eff9f3;
    color: #126344;
  }
  /* Fields embedded in the dark weekly-review header retain a readable dark variant. */
  .public-marketing-shell main .weekly-review-header input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]) {
    border-color: #c9d6e7;
    background: #173a61;
    color: #f7faff;
  }
  .public-marketing-shell main .weekly-review-header input::placeholder { color: #dbe8f5; }
  :is(.public-marketing-shell main, main.home-rebuild) :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea):is(:user-invalid, [aria-invalid="true"]) {
    border-color: #a12622;
    box-shadow: inset 3px 0 #a12622;
  }
}
