/* site additions: booking-form captcha + DPDP consent + privacy page (no layout overrides elsewhere) */
/* ---- dpdp-v1 ---------------------------------------------------------- */
/* The consent line always takes a row of its own, above the captcha, so the
   captcha and the send button can sit together underneath. Themes lay the
   bottom of a form out with floats (Divi's .et_contact_bottom_container) or
   flex, so the width and clearing have to be forced or the line gets squeezed
   into the narrow captcha column. */
.dpdp-consent { display: block !important; float: none !important; clear: both !important;
  width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important;
  box-sizing: border-box; margin: 4px 0 16px !important; padding: 10px 12px !important;
  text-align: left !important;
  /* The text used to inherit the theme's form colour, which on a DARK form
     (allydzine.com) is the dark grey meant for white inputs: the line was
     there, legally required, and effectively invisible - and the checkbox sat
     flush on the form's edge, outside the visible box. A faint light panel with
     its own text colour reads on any background, and the padding brings the
     checkbox inside the box. On the usual white form the panel is invisible. */
  background: rgba(255,255,255,.92) !important; border-radius: 6px;
  color: #1c1f24 !important; }
.dpdp-consent label, .dpdp-consent span { color: #1c1f24 !important; }
.dpdp-consent a { color: #0b57d0 !important; }
/* No `order` here, ever. The block is placed in document order, just before
   the captcha row; Divi's newer contact module makes the FORM a flex
   container, so an `order:-1` left over from an earlier attempt threw the
   consent line to the very top of the form, above the Name field. */
.dpdp-consent label { display: flex !important; align-items: flex-start; gap: 10px;
  width: 100%; font-size: 14px; line-height: 1.55; cursor: pointer;
  font-weight: 400 !important; text-align: left !important; margin: 0 !important;
  padding: 0 !important; text-transform: none !important; letter-spacing: normal !important;
  color: inherit; }
/* themes (Divi's mobile sheet especially) strip a checkbox down to
   appearance:none with no background or border — it is then present but
   completely invisible.  Force a real, visible control. */
.dpdp-consent input[type="checkbox"] { appearance: auto !important;
  -webkit-appearance: checkbox !important; -moz-appearance: checkbox !important;
  width: 17px !important; height: 17px !important; min-width: 17px !important;
  max-width: 17px !important; min-height: 17px !important;
  margin: 3px 0 0 !important; padding: 0 !important; flex: 0 0 auto;
  position: static !important; opacity: 1 !important; visibility: visible !important;
  border: 1px solid #8a8f98 !important; border-radius: 3px !important;
  background: #fff !important; background-image: none !important;
  box-shadow: none !important; outline: none !important; float: none !important;
  display: inline-block !important; accent-color: #1f7a3d; cursor: pointer; }
.dpdp-consent span { flex: 1 1 auto; }
.dpdp-consent a { text-decoration: underline; }
.dpdp-consent { -webkit-tap-highlight-color: transparent; }

/* ---- Divi contact form: consent + captcha are ordinary rows of the form ----
   Divi pads every field row 3% on the left (the form itself sits at -3%), so the
   consent row and the captcha row use the same box as the Name/Email rows and line
   up with them; both sit above the button row. */
.et_pb_contact_form .dpdp-field { display: block; clear: both; float: none; width: 100%;
  padding: 0 0 0 3%; margin: 0 0 3%; box-sizing: border-box; }
.et_pb_contact_form .dpdp-field .dpdp-consent { margin: 0 !important; }
.et_pb_contact_form p.cf-cap-row { clear: both; width: 100%; box-sizing: border-box; }
.et_pb_contact_form .cf-cap-label { display: block; margin: 0 0 8px; font-size: 14px; line-height: 1.5;
  color: #1c1f24; font-weight: 400; }
.cf-cap-q { display: inline-block; background: rgba(0,0,0,.06); color: #1c1f24; border: 1px solid rgba(0,0,0,.15);
  padding: 4px 10px; border-radius: 4px; font-weight: 700; letter-spacing: .04em; line-height: 1.3;
  white-space: nowrap; user-select: none; margin-left: 4px; }
/* the button row floats right; start it on its own line under the captcha */
.et_pb_contact_form .cf-cap-row + div + input + .et_contact_bottom_container,
.et_pb_contact_form .et_contact_bottom_container { clear: both; }
/* response line under the form (green = received, red = needs a fix) */
form[data-3i] .wpcf7-response-output { clear: both; margin: 12px 0 0 3%; padding: 10px 14px; border: 2px solid #ffb900;
  border-radius: 4px; background: #fff; color: #1c1f24; font-size: 15px; line-height: 1.5; }
form[data-3i].sent .wpcf7-response-output { border-color: #46b450; }
form[data-3i].failed .wpcf7-response-output { border-color: #dc3232; }

/* privacy policy page */
.dpdp-section { padding: 54px 0; }
.dpdp-doc h3 { font-size: 20px; line-height: 1.4; margin: 26px 0 8px; padding-bottom: 0; }
.dpdp-doc p { font-size: 16px; line-height: 1.75; padding-bottom: 1em; }
.dpdp-doc a { text-decoration: underline; }
@media (max-width: 767px) {
  .dpdp-consent label { font-size: 13.5px; line-height: 1.5; }
}

/* measured defect repair (layout_shift.json): on the live site the booking form's
   button carries margin-right:449px at every width, so below 768px it sits at
   x=-185..-98, off the screen - the form cannot be sent from a phone. Phones only. */
@media (max-width: 767px) {
  body #page-container .et_pb_section .et_pb_contact_form_0.et_pb_contact_form_container.et_pb_module form[data-3i] .et_contact_bottom_container { float: none !important; justify-content: flex-start; padding-left: 3%; margin-top: 0; }
  body #page-container .et_pb_section .et_pb_contact_form_0.et_pb_contact_form_container.et_pb_module form[data-3i] .et_pb_button { margin-right: 0 !important; margin-left: 0 !important; }
}
