/* Enquiry form layout fix, 30 Nov 2026. Loaded only on /contact/ and /book-appointment/.
   CSS only: no field names, actions or scripts change. */

/* 1. Hide the in-form title ("Your details") and its repeat line visually; screen readers keep the legend. */
.form-section .lead-form legend[data-step-heading],
.form-section .lead-form .step-description {
  position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important;
  padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important;
}
.form-section .lead-form { padding-top: 24px; }
.form-section .lead-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

/* 2. Labels, inputs and help text: one consistent rhythm. */
.form-section .form-grid { gap: 18px 16px; align-items: start; }
.form-section .lead-form label { align-content: start; gap: 6px; font-size: 1rem; line-height: 1.4; font-weight: 700; color: var(--ink); }
.form-section .lead-form input:not([type=checkbox]),
.form-section .lead-form select,
.form-section .lead-form textarea {
  min-height: 50px; height: auto; padding: 11px 12px; font-size: 1rem; line-height: 1.4;
  border: 1px solid #8a9396; border-radius: 6px; background: #fff; box-sizing: border-box; max-width: 100%;
}
.form-section .lead-form input:not([type=checkbox]), .form-section .lead-form select { height: 50px; }
.form-section .lead-form textarea { min-height: 120px; }
.form-section .lead-form input:not([type=checkbox]):focus,
.form-section .lead-form select:focus,
.form-section .lead-form textarea:focus { border-color: #7d5229; outline: 2px solid rgba(125, 82, 41, .25); outline-offset: 0; }
.form-section .lead-form label small { font-size: .875rem; line-height: 1.45; font-weight: 400; color: var(--muted-dark, #354247); }

/* 3. Date and time picker (added by the Zoho router on Book appointment): same box as the other inputs. */
.form-section .lead-form input[type=datetime-local] { color-scheme: light; font-family: inherit; color: var(--ink); min-width: 0; }
.form-section .lead-form input[type=datetime-local]::-webkit-date-and-time-value { text-align: left; }
.form-section .lead-form input[type=datetime-local]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .7; }

/* 4. Two-column grid: email gets its own row so country code and phone sit side by side (no empty cell). */
@media (min-width: 700px) {
  .form-section .form-grid > label:nth-child(3) { grid-column: 1 / -1; }
}

/* 5. Consent boxes: normal-sized ticks lined up with the first line of text, not 56px blank squares. */
.form-section .lead-form label.consent {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px !important; align-items: start;
  margin-top: 14px; font-size: 1rem; line-height: 1.5; font-weight: 400; color: var(--ink); cursor: pointer;
}
.form-section .lead-form .consent input[type=checkbox] {
  width: 22px; height: 22px; min-height: 22px; margin: 1px 0 0; padding: 0; border: 0;
  accent-color: var(--ink, #121c20); cursor: pointer;
}
.form-section .lead-form .consent span { padding-top: 0; }

/* 6. Button and status line spacing. */
.form-section .lead-form button[type=submit] { margin-top: 22px; min-height: 52px; font-size: 1rem; }
.form-section .lead-form .form-status { margin-top: 10px; font-size: .875rem; }

/* 7. Small laptops and tablets in landscape: stack the intro above the form instead of squeezing both. */
@media (min-width: 700px) and (max-width: 1179px) {
  .form-section .lead-panel { grid-template-columns: minmax(0, 1fr) !important; gap: 20px !important; }
  .form-section .lead-panel-intro { position: static; max-width: 720px; }
  .form-section .lead-form { max-width: 760px; }
}
