/* Photos-for-a-range form and contact-form choice controls.
   Versioned file: /assets is cached for a year, so styles.css is left untouched. */
.lp-form [hidden],
.lp-form__success [hidden],
.form-grid [hidden] {
  display: none !important;
}

/* 16px inputs stop iOS from zooming the page on focus; 48px tap targets. */
.lp-form--photo input[type="text"],
.lp-form--photo input[type="tel"],
.lp-form--photo input[type="email"] {
  font-size: 16px;
  min-height: 48px;
}
.lp-form__hint {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-muted);
}
.lp-form__hint a {
  color: var(--teal);
  font-weight: 600;
}
.lp-form__divider {
  margin: var(--space-2) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Photo picker: a standard file input, styled large. No drag and drop. */
.lp-photos input[type="file"] {
  width: 100%;
  min-height: 56px;
  padding: 0.5rem;
  border: 1px dashed #9aa6b8;
  border-radius: 8px;
  background: #f7f8fa;
  font-family: inherit;
  font-size: 16px;
  color: var(--navy);
  box-sizing: border-box;
}
.lp-photos input[type="file"]::file-selector-button {
  min-height: 40px;
  margin-right: 0.75rem;
  padding: 0.55rem 0.9rem;
  border: 0;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
}
.lp-photos input[type="file"]:disabled {
  opacity: 0.6;
}
/* With the script running, the list below shows what was picked, so the
   browser's own "no file chosen" text is hidden. */
.lp-photos--managed input[type="file"] {
  color: transparent;
}
.lp-photos__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.lp-photos__list:empty {
  display: none;
}
.lp-photos__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
}
.lp-photos__list img,
.lp-photos__thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: #e6eaf0;
}
.lp-photos__list span {
  flex: 1 1 auto;
  min-width: 0;
}
.lp-photos__list button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.lp-photos__status {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
}

/* Service choice: radios drawn as full-width tap buttons. */
.lp-choice {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.lp-choice legend {
  margin-bottom: 0.375rem;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--navy);
}
.lp-choice label {
  position: relative;
  display: block;
  cursor: pointer;
}
.lp-choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.lp-choice span {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.6rem 0.85rem;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--navy);
}
.lp-choice input:checked + span {
  border-color: var(--teal);
  background: rgba(1, 105, 111, 0.08);
  box-shadow: inset 0 0 0 1px var(--teal);
}
.lp-choice input:focus-visible + span {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.lp-form--photo .lp-form__consent {
  font-size: 0.85rem;
  padding: 0.25rem 0;
}
.lp-form--photo .lp-form__consent input[type="checkbox"] {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
}
.lp-form__hint--consent {
  font-weight: 500;
  color: var(--navy);
}
.lp-form__success p + p {
  margin-top: 0.6rem;
}

/* Contact page: homeowner or vendor. */
.field--choice {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.field--choice legend {
  margin-bottom: var(--space-2);
  padding: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
.field--choice .choice-row label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
  cursor: pointer;
}
.field--choice .choice-row input {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--teal);
}
.field--choice .choice-row label:has(input:checked) {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
}
@media (max-width: 640px) {
  .choice-row {
    grid-template-columns: 1fr;
  }
}
