/* [ORIGINAL] Only text inputs were styled (email/tel fields would fall back to browser defaults),
   no visible focus style, small text and touch targets for an audience of older visitors. */
/*
.bloom-form label { display:block; margin-top:12px; font-weight:600; }
.bloom-form input[type=text], .bloom-form select { width:100%; padding:8px; }
*/
.bloom-success { background:#e6f4ea; padding:12px; margin-bottom:16px; }

/* Shariful [FIX #9] START — validation messages (high contrast, not colour-only: text + border). */
.bloom-errors { border-left:4px solid #b32d2e; background:#fcf0f1; color:#5c1314; padding:12px; margin-bottom:16px; font-weight:600; }
.bloom-field-error { color:#b32d2e; margin:4px 0 0; font-weight:600; }
/* Shariful [FIX #9] END */

/* Shariful [FIX #25] START — accessible form styles (WCAG 2.2 AA). */
.bloom-form label { display:block; margin-top:16px; font-weight:600; }
.bloom-form .bloom-field:first-of-type label { margin-top:0; }
.bloom-form-note, .bloom-hint { color:#50575e; margin:4px 0; }          /* 7:1 on white */
.bloom-form input[type=text],
.bloom-form input[type=email],
.bloom-form input[type=tel],
.bloom-form select {
	box-sizing:border-box; width:100%; min-height:44px; padding:8px 10px;
	font-size:1rem; /* ≥16px: readable, and stops iOS zooming in on focus */
	border:1px solid #767676; border-radius:4px; background:#fff; color:#1e1e1e; /* 4.5:1 border */
}
.bloom-form .bloom-input-short { max-width:8em; }
.bloom-form input[aria-invalid="true"],
.bloom-form select[aria-invalid="true"] { border:2px solid #b32d2e; } /* element + attribute: beats input[type=…] above */
.bloom-form input[type=checkbox][aria-invalid="true"] { outline:2px solid #b32d2e; outline-offset:2px; }
/* Clear keyboard focus ring (not only colour: a thick outline with offset). */
.bloom-form input:focus-visible,
.bloom-form select:focus-visible,
.bloom-errors a:focus-visible { outline:3px solid #1d4ed8; outline-offset:2px; }
/* Consent: box and label side by side, both big enough to tap. */
.bloom-consent { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin-top:20px; }
.bloom-consent label { margin:0; font-weight:400; }
.bloom-consent input[type=checkbox] { width:24px; height:24px; margin:0; }
.bloom-consent .bloom-field-error { flex-basis:100%; }
.bloom-submit { margin-top:20px; min-height:44px; padding:10px 24px; font-size:1rem; font-weight:600; cursor:pointer; }
.bloom-errors p { margin:0; }
.bloom-errors ul { margin:8px 0 0 20px; padding:0; }
.bloom-errors a { color:#5c1314; text-decoration:underline; }
/* Shariful [FIX #25] END */

/* Shariful [FIX #27] START — honeypot: off-screen rather than display:none, because some bots
   skip fields that are display:none. aria-hidden + tabindex=-1 keep it away from people. */
.bloom-hp { position:absolute !important; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden; }
/* Shariful [FIX #27] END */

/* Shariful [FIX #30] START — make sure `hidden` wins over any theme/display rule on the wrapper. */
.bloom-form [hidden] { display:none !important; }
/* Shariful [FIX #30] END */
