/* Online rental application page. Reuses styles.css; font sizes match the site's existing form styles. */
.apply-page {
  padding-top: clamp(40px, 6vw, 72px);
}

.apply-form {
  display: grid;
  gap: 18px;
}

.apply-card {
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.apply-card > legend {
  float: left;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.15;
}

.apply-card > legend + * {
  clear: both;
}

.step-num {
  margin-right: 8px;
  color: var(--forest);
  font-weight: 900;
}

.apply-note {
  margin: 0 0 14px;
  color: var(--muted);
}

.apply-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

/* Pre-approval section 04: stacked rows so new fields sit under rent, landlord type on its own line */
.apply-stack {
  display: grid;
  gap: 14px;
}

/* Pre-approval: years and months stay on one line at every width, including phones */
.renting-duration {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.renting-duration-label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.renting-duration-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.renting-duration-fields > label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 900;
}


.apply-questions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.req {
  color: var(--forest);
}

select {
  width: 100%;
  min-height: 50px;
  border: 1px solid #cbd2cb;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
}

select:focus {
  border-color: var(--forest);
  outline: 3px solid rgba(183, 28, 28, 0.18);
}

.apply-form input[type="radio"],
.apply-form input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  accent-color: var(--forest);
  flex: none;
}

.yesno {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  min-width: 0;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sky);
}

.yesno legend {
  float: left;
  width: 100%;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 900;
}

.yesno label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.apply-group {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
}

.apply-group[open] {
  padding-bottom: 14px;
}

.apply-group summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 900;
}

.signature-block {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.signature-label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 900;
}

.signature-pad {
  width: 100%;
  height: 180px;
  border: 1px dashed #cbd2cb;
  border-radius: 8px;
  background: #fff;
  touch-action: none;
}

.signature-block .button {
  justify-self: start;
}

.agree-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
}

.apply-submit {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.apply-done {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.apply-done[hidden],
.property-other[hidden] {
  display: none;
}

.is-invalid {
  border-color: var(--forest) !important;
  outline: 3px solid rgba(183, 28, 28, 0.18);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 920px) {
  .apply-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .apply-grid,
  .apply-questions {
    grid-template-columns: 1fr;
  }

  .signature-block .button {
    justify-self: stretch;
  }
}

.cert-block {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sky);
}

.cert-block h3 {
  margin-bottom: 10px;
}

.cert-block p {
  margin: 0 0 10px;
}

.cert-block p:last-child {
  margin-bottom: 0;
}

.cert-bold {
  font-weight: 800;
}

.q-bold {
  font-weight: 900;
}

.yesno legend:not(.q-bold) {
  font-weight: 600;
}

.yesno .explain {
  display: grid;
  flex: 1 1 100%;
  gap: 7px;
  font-weight: 800;
}

.yesno .explain[hidden] {
  display: none;
}

.apply-phone {
  color: var(--forest);
  font-weight: 900;
}

/* Phone fixes (Nov 1, 2026): 16px form fields so iPhones don't zoom; taller Yes/No tap areas */
@media (max-width: 920px), (pointer: coarse) {
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .yesno > label:not(.explain) {
    min-height: 44px;
    padding: 0 12px 0 2px;
  }
}

/* /pre-approval only (Nov 1, 2026): darker, slightly heavier top text. Same sizes. */
.preapproval-page .section-heading .eyebrow {
  color: #1a1a1a;
}

.preapproval-page .section-heading h2 {
  color: #0a0a0a;
  font-weight: 800;
}

.preapproval-page .section-heading > p:not(.eyebrow) {
  color: #1a1a1a;
  font-weight: 600;
}
