.owner-apply-page {
  padding: clamp(1rem, 3vw, 2.5rem) 0 5rem;
  background: #f7f8f6;
}

.owner-synthetic-banner {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border: 2px solid #9b4b25;
  border-radius: 0.75rem;
  background: #fff4e8;
  color: #552b18;
}
.owner-synthetic-banner strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}
.owner-synthetic-banner p {
  margin: 0.35rem 0 0;
}
#owner-application-form[data-intake-mode='local-synthetic'] input[readonly],
#owner-application-form[data-intake-mode='local-synthetic'] textarea[readonly] {
  background: #f0f0ed;
  cursor: not-allowed;
}
.owner-apply-page > .container {
  max-width: 1160px;
  min-width: 0;
}
.owner-apply-page .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  overflow-wrap: anywhere;
}
.owner-return {
  max-width: 1040px;
  margin: 0 0 1.25rem;
}
.owner-return a {
  display: inline-block;
  border-radius: 4px;
  color: #17664f;
  text-underline-offset: 0.2em;
}
.owner-return a:focus-visible {
  outline: 3px solid #66b69d;
  outline-offset: 4px;
}
body.home-page .owner-apply-intro {
  /* Reset global site-header rules applied to every <header> element. */
  display: block;
  position: static;
  z-index: auto;
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
body.home-page .owner-apply-intro .eyebrow {
  margin: 0 0 0.75rem;
}
body.home-page .owner-apply-intro h1 {
  max-width: none;
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  overflow-wrap: normal;
  text-wrap: pretty;
}
body.home-page .owner-apply-intro p {
  max-width: 720px;
  margin: 0;
  color: var(--muted, #667085);
  line-height: 1.65;
}
.owner-form-card {
  width: 100%;
  max-width: 1040px;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2.5rem);
  border: 1px solid #e8e7e3;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 55px #1826220d;
}
.owner-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #747a78;
  font-size: 0.82rem;
}
.owner-stepper button {
  min-width: 0;
  padding: 0 0 0.7rem;
  border: 0;
  border-bottom: 2px solid #e8e7e3;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.owner-stepper button:disabled {
  color: #a2a7a5;
  cursor: not-allowed;
}
.owner-stepper button:not(:disabled):hover {
  border-color: #72a895;
  color: #165c49;
}
.owner-stepper button:not(:disabled):active {
  background: #edf5f1;
  color: #124b3c;
}
.owner-stepper button:not(:disabled):focus-visible {
  outline: 3px solid #66b69d;
  outline-offset: 3px;
  border-radius: 2px;
}
.owner-stepper button[aria-current='step'] {
  border-color: #24745e;
  color: #165c49;
  font-weight: 700;
}
.owner-stepper button[aria-current='step']:not(:disabled) {
  cursor: default;
}
/* Keep the existing stepper geometry while making each item an interactive control. */
.owner-stepper button {
  appearance: none;
}
.owner-progress-track {
  height: 4px;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 4px;
  background: #eeefec;
}
.owner-progress-track span {
  display: block;
  width: 25%;
  height: 100%;
  background: #24745e;
  transition: width 0.2s ease;
}
.owner-status {
  min-height: 1.5rem;
  color: #52615d;
}
.owner-status:empty {
  min-height: 0.75rem;
}
.owner-form-card h2 {
  margin: 0.4rem 0 0.35rem;
  font-size: 1.65rem;
}
.owner-step-hint {
  margin: 0 0 1.5rem;
  color: #66716e;
  line-height: 1.5;
}
.owner-representative-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: stretch;
  gap: clamp(1.25rem, 4vw, 3rem);
}
.owner-representative-info {
  align-self: stretch;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #e5eee9;
  border-radius: 16px;
  background: #f5f8f5;
}
.owner-representative-info h2 {
  margin-top: 0.75rem;
}
.owner-representative-info .owner-step-hint {
  max-width: 30ch;
  margin-bottom: 0;
}
.owner-representative-icon {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 12px;
  background: #e4f0ea;
  color: #17664f;
  font-size: 1.25rem;
}
.owner-representative-fields {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-width: 0;
}
.owner-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
}
.owner-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  font-weight: 650;
}
.owner-field-label {
  line-height: 1.4;
}
.owner-field-required {
  color: #b5473c;
  font-size: 0.9em;
}
.owner-field input,
.owner-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  border: 1px solid #cbd2ce;
  border-radius: 10px;
  background: #fff;
  color: #1e2925;
  font: inherit;
  font-weight: 400;
}
.owner-field textarea {
  resize: vertical;
}
.owner-field input:focus,
.owner-field textarea:focus,
.owner-contact-choice input:focus-visible,
.owner-remove-hall:focus-visible,
.owner-form-card button:focus-visible {
  outline: 3px solid #66b69d;
  outline-offset: 2px;
}
.owner-field [aria-invalid='true'] {
  border-color: #bd342c;
}
.owner-optional {
  color: #737d79;
  font-size: 0.85em;
  font-weight: 400;
}
.owner-field-wide {
  grid-column: 1 / -1;
}
.owner-field-error {
  color: #a42c25;
  font-size: 0.88rem;
  font-weight: 450;
}
.owner-contact-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  min-width: 0;
  margin: 0;
  padding: 0.3rem;
  border: 1px solid #dce3de;
  border-radius: 12px;
  background: #f5f7f5;
}
.owner-contact-choice legend {
  grid-column: 1 / -1;
  padding: 0 0 0.35rem;
  font-weight: 650;
}
.owner-contact-choice label {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #52615d;
  cursor: pointer;
}
.owner-contact-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.owner-contact-choice label:has(input:checked) {
  border-color: #c9ddd3;
  background: #fff;
  box-shadow: 0 1px 3px #18262212;
  color: #165c49;
  font-weight: 700;
}
.owner-contact-choice label:has(input:focus-visible) {
  outline: 3px solid #66b69d;
  outline-offset: 2px;
}
.owner-contact-choice input {
  accent-color: #24745e;
}
.owner-hall-card {
  min-width: 0;
  margin: 1rem 0;
  padding: 1rem 1.25rem 1.1rem;
  border: 1px solid #e1e5e1;
  border-radius: 16px;
  background: #fcfdfc;
}
.owner-hall-card legend {
  max-width: 100%;
  padding: 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.owner-remove-hall {
  position: static;
  margin: 0 0 0.75rem;
  padding: 0.4rem 0.55rem;
  border: 0;
  border-radius: 7px;
  background: #f6f3f0;
  color: #704539;
  cursor: pointer;
}
.owner-hall-primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  min-width: 0;
}
.owner-hall-primary > .owner-field:first-child {
  grid-column: 1 / -1;
}
.owner-hall-details {
  min-width: 0;
  margin-top: 0.85rem;
  border-top: 1px solid #e7eae7;
}
.owner-hall-details summary {
  width: fit-content;
  max-width: 100%;
  padding: 0.8rem 0;
  color: #17664f;
  font-weight: 700;
  cursor: pointer;
}
.owner-hall-details .owner-fields {
  padding-bottom: 0.2rem;
}
.owner-add-hall {
  min-height: 52px;
  margin-top: 0.5rem;
  padding: 0.8rem 1.25rem;
  font-weight: 700;
}
.owner-hall-limit {
  margin: 0.5rem 0 0;
  color: #68736e;
  font-size: 0.9rem;
}
.owner-form-card button:hover:not(:disabled) {
  filter: brightness(0.96);
}
.owner-form-card button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.owner-form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eceeeb;
}
.owner-actions-spacer {
  flex: 1;
}
.owner-review {
  display: grid;
  gap: 1rem;
}
.owner-review section {
  min-width: 0;
  padding: 1rem 1.1rem;
  border: 1px solid #e7e9e6;
  border-radius: 12px;
  background: #fff;
}
.owner-review .owner-review-hall {
  border-left: 4px solid #74a995;
  background: #fbfcfb;
}
.owner-review h3 {
  margin: 0 0 0.65rem;
  overflow-wrap: anywhere;
}
.owner-review dl {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1fr);
  gap: 0.45rem 1rem;
  margin: 0;
}
.owner-review-row {
  display: contents;
}
.owner-review dt {
  color: #69736f;
}
.owner-review dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
#owner-new-submission {
  display: none !important;
}
.owner-test-notice {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 10px;
  background: #f4f3ec;
  color: #4d4a31;
  font-weight: 650;
}
@media (max-width: 760px) {
  body.home-page .owner-apply-intro h1 {
    font-size: clamp(1.8rem, 6.5vw, 2.6rem);
  }
  .owner-form-card {
    border-radius: 18px;
  }
}
@media (max-width: 640px) {
  .owner-apply-page {
    padding-top: 0.75rem;
  }
  .owner-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 0.6rem;
  }
  .owner-fields,
  .owner-hall-primary {
    grid-template-columns: minmax(0, 1fr);
  }
  .owner-representative-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .owner-field-wide,
  .owner-contact-choice,
  .owner-hall-primary > .owner-field:first-child {
    grid-column: auto;
  }
  .owner-hall-card {
    padding: 0.8rem 0.8rem 0.9rem;
  }
  .owner-review dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }
  .owner-review dd {
    margin-bottom: 0.55rem;
  }
  .owner-form-actions {
    position: sticky;
    bottom: 0;
    margin: 1.25rem -1rem -1rem;
    padding: 0.85rem 1rem;
    background: #fff;
  }
}
.owner-photo-section { min-width: 0; margin-top: 1.25rem; }
.owner-photo-section h3 { margin: 0 0 .65rem; font-size: 1rem; }
.owner-photo-drop { position: relative; display: flex; min-width: 0; min-height: 190px; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 1.25rem; overflow: hidden; border: 1.5px dashed #9ab9aa; border-radius: 16px; background: #f7faf8; color: #263b33; text-align: center; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.owner-photo-drop:hover { border-color: #24745e; background: #f0f7f3; }
.owner-photo-drop[data-drag-over='yes'] { border-color: #17664f; background: #e8f4ed; box-shadow: inset 0 0 0 2px #24745e26; }
.owner-photo-drop[data-uploading='yes'] { border-style: solid; border-color: #72a895; background: #f0f7f3; }
.owner-photo-drop[data-error='yes'] { border-color: #bd554d; background: #fff8f7; }
.owner-photo-drop:has([data-photo-input]:focus-visible) { outline: 3px solid #66b69d; outline-offset: 3px; }
.owner-upload-icon { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 12px; background: #e4f0ea; color: #17664f; font-size: 1.6rem; font-weight: 700; }
.owner-photo-drop > strong { max-width: 100%; line-height: 1.4; overflow-wrap: anywhere; }
.owner-upload-help { max-width: 58ch; color: #66716e; font-size: .84rem; line-height: 1.5; overflow-wrap: anywhere; }
.owner-upload-button { min-height: 44px; padding: .65rem 1rem; border: 0; border-radius: 10px; background: #24745e; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.owner-upload-button:hover { background: #1b604d; }
.owner-upload-button:focus-visible, .owner-photo button:focus-visible, .owner-result-dialog button:focus-visible { outline: 3px solid #66b69d; outline-offset: 3px; }
.owner-photo-input { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); border: 0; }
.owner-photo-message { min-height: 1.3rem; margin: .35rem 0; color: #a12c2c; font-size: .88rem; overflow-wrap: anywhere; }
.owner-photo-message:empty { min-height: 0; margin: 0; }
.owner-photo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: .75rem; min-width: 0; margin-top: .75rem; }
.owner-photo { position: relative; min-width: 0; aspect-ratio: 4 / 3; margin: 0; overflow: hidden; border: 1px solid #e2e8e4; border-radius: 12px; background: #f1f3f1; }
.owner-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.owner-photo-status { position: absolute; right: .45rem; bottom: .45rem; left: .45rem; width: fit-content; max-width: calc(100% - .9rem); padding: .28rem .5rem; overflow: hidden; border-radius: 999px; background: #17231fd9; color: #fff; font-size: .75rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.owner-photo.is-error { border-color: #c8453d; box-shadow: 0 0 0 1px #c8453d33; }
.owner-photo.is-error .owner-photo-status { background: #a42c25; }
.owner-photo button { position: absolute; z-index: 1; display: grid; min-width: 2rem; min-height: 2rem; place-items: center; border: 0; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
.owner-photo-remove { top: .4rem; right: .4rem; width: 2rem; height: 2rem; background: #fff; color: #263b33; box-shadow: 0 1px 5px #17231f40; font-size: 1.25rem !important; }
.owner-photo-retry { right: .4rem; bottom: .4rem; left: .4rem; min-width: 0 !important; min-height: 2rem; padding: .35rem .5rem; background: #a42c25; color: #fff; font-size: .76rem !important; }
.owner-photo.is-error .owner-photo-status { bottom: 2.9rem; }
.owner-review .owner-photo-list { grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); }
.owner-result-dialog { width: min(460px, calc(100% - 2rem)); max-width: none; padding: clamp(1.5rem, 5vw, 2.25rem); border: 1px solid #e4e9e5; border-radius: 22px; background: #fff; color: #1e2925; box-shadow: 0 24px 80px #10251e40; text-align: center; }
.owner-result-dialog::backdrop { background: #10251e80; backdrop-filter: blur(3px); }
.owner-result-icon { display: grid; width: 3.25rem; height: 3.25rem; margin: 0 auto 1rem; place-items: center; border-radius: 50%; background: #e4f0ea; color: #17664f; font-size: 1.7rem; font-weight: 750; }
.owner-result-dialog h2 { margin: 0 0 .65rem; }
.owner-result-dialog p { margin: 0 0 1.4rem; color: #52615d; line-height: 1.6; overflow-wrap: anywhere; }
.owner-result-dialog button { min-height: 46px; padding: .7rem 1.5rem; }
body:has(.owner-result-dialog[open]) { overflow: hidden; }
@media (max-width: 480px) { .owner-photo-drop { min-height: 175px; padding: 1rem .75rem; } .owner-photo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; } }
