/* Keep the optional service address visible before the submit button. */
form .service-address,
form .appointment-preferences {
  min-width: 0;
  margin: 24px 0;
  padding: 16px;
  border: 1px solid #b8754d;
  border-radius: 8px;
}
form .service-address legend,
form .appointment-preferences legend {
  padding: 0 6px;
  font: 700 17px/1.4 Arial, sans-serif;
}
form .service-address legend span,
form .appointment-preferences legend span {
  font-size: 13px;
  font-weight: 400;
}
form .service-address .service-address-note,
form .appointment-preferences .appointment-note {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
}
form .service-address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, .65fr);
  gap: 16px;
}
form .service-address-row > div { min-width: 0; }
form .service-address input { max-width: 100%; }
#iron-mobile-clear .im-form .appointment-preferences {
  background: #fff6ef;
  border: 2px solid #dc6026;
}
#iron-mobile-clear .appointment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
#iron-mobile-clear .appointment-row > div { min-width: 0; }
#iron-mobile-clear .appointment-row input,
#iron-mobile-clear .appointment-row select {
  display: block;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  min-height: 50px;
  margin: 6px 0 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid #a89c91;
  border-radius: 8px;
  color: #171717;
  font: 16px/1.4 Arial, sans-serif;
}
#iron-mobile-clear .appointment-row input:disabled { opacity: .5; }
/* Keep Safari's native date control inside its grid column on iPhone. */
#iron-mobile-clear .appointment-row input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-inline-size: 0;
  height: 50px;
  text-align: left;
}
#iron-mobile-clear .appointment-row input[type="date"]::-webkit-date-and-time-value {
  min-width: 0;
  min-height: 1.4em;
  text-align: left;
}
#iron-mobile-clear .appointment-row input[type="date"]::-webkit-datetime-edit {
  min-width: 0;
  padding: 0;
}
#iron-mobile-clear .im-form .same-day-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 0;
  cursor: pointer;
}
#iron-mobile-clear .im-form .same-day-option input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  accent-color: #dc6026;
}
#iron-mobile-clear .same-day-option strong { display: block; font-size: 14px; }
#iron-mobile-clear .same-day-option small { display: block; font-size: 13px; font-weight: 400; }
.estimate-form .service-address label {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}
.estimate-form .service-address input { margin-bottom: 16px; }
.estimate-form .service-address-row input { margin-bottom: 0; }
.estimate-form .service-address-note { color: #ccc; }
@media (max-width: 420px) {
  form .service-address-row { grid-template-columns: 1fr; gap: 0; }
  #iron-mobile-clear .appointment-row { grid-template-columns: 1fr; gap: 0; }
  .estimate-form .service-address-row > div + div { margin-top: 16px; }
}
