/* Preliminary enquiry form: consent box, field errors, sending state, result dialog and notices. */

/* The site theme hides native checkboxes, so this one is drawn in full */
.lp-form .lp-check { display: flex; gap: .75rem; align-items: flex-start; margin: .75rem 0 1rem; font-size: .95rem; line-height: 1.5; cursor: pointer; }
.lp-form .lp-check input[type=checkbox] {
  flex: none; -webkit-appearance: none; appearance: none; display: block; position: static; opacity: 1;
  width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; padding: 0;
  border: 1.5px solid rgba(14, 31, 61, .55); border-radius: 4px; background: #fff; cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.lp-form .lp-check input[type=checkbox]:hover { border-color: var(--navy, #0e1f3d); }
.lp-form .lp-check input[type=checkbox]:checked {
  border-color: var(--red, #9b1c2e); background: var(--red, #9b1c2e) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.lp-form .lp-check input[type=checkbox]:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(198, 161, 91, .45); }
@media (forced-colors: active) { .lp-form .lp-check input[type=checkbox] { appearance: auto; -webkit-appearance: checkbox; } }

/* Field errors */
.lp-form [aria-invalid=true] { border-color: #b3261e !important; box-shadow: 0 0 0 3px rgba(179, 38, 30, .15); }
.lp-form .lp-check input[aria-invalid=true] { border-color: #b3261e; }
.enq-error { display: block; margin: .35rem 0 0; color: #b3261e; font-size: .875rem; font-weight: 500; }
.lp-form .lp-result:not([hidden]) { display: block; margin: 0 0 1rem; padding: .7rem .9rem; border-left: 3px solid #b3261e; background: #fbebeb; color: #7a1f1f; border-radius: 3px; }

/* Sending */
.lp-form button[aria-busy=true] { opacity: .75; cursor: progress; pointer-events: none; }
.enq-spinner { display: inline-block; width: 1em; height: 1em; margin-right: .5em; vertical-align: -.15em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: enq-spin .8s linear infinite; }
@keyframes enq-spin { to { transform: rotate(360deg); } }

/* Result dialog */
.enq-dialog { width: min(92vw, 460px); padding: 0; border: 0; border-top: 4px solid var(--gold, #c6a15b); border-radius: 6px; background: var(--paper, #fff); color: var(--ink, #1c2433); box-shadow: 0 30px 80px -20px rgba(5, 12, 26, .55); }
.enq-dialog::backdrop { background: rgba(5, 12, 26, .55); }
.enq-dialog-body { padding: 28px 26px 24px; text-align: center; }
.enq-dialog-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 50%; background: rgba(46, 125, 50, .12); color: #2e7d32; }
.enq-dialog h3 { margin: 0 0 .5rem; font-size: 1.35rem; }
.enq-dialog p { margin: 0 0 .9rem; font-size: .975rem; line-height: 1.55; }
.enq-ref { display: inline-block; margin: .25rem 0 1rem; padding: .45rem .8rem; border: 1px dashed rgba(14, 31, 61, .35); border-radius: 4px; font: 600 1.05rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .03em; }
.enq-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.enq-dialog-actions .lp-btn { min-height: 46px; }

/* Notices */
.enq-toasts { position: fixed; z-index: 1080; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 440px); pointer-events: none; }
.enq-toast { pointer-events: auto; display: flex; gap: .6rem; align-items: flex-start; padding: 12px 14px; border-radius: 6px; background: #1c2433; color: #fff; box-shadow: 0 12px 30px -10px rgba(5, 12, 26, .5); font-size: .925rem; line-height: 1.45; }
.enq-toast.is-error { background: #7a1f1f; }
.enq-toast button { margin-left: auto; padding: 0 4px; border: 0; background: none; color: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; }
@media (prefers-reduced-motion: no-preference) { .enq-toast { animation: enq-in .2s ease-out; } @keyframes enq-in { from { opacity: 0; transform: translateY(8px); } } }
@media print { .enq-toasts, .enq-dialog { display: none !important; } }
