/* The enquiry form and its floating button. One design, shared by every page that has the form.
   Self-contained: it does not rely on Bootstrap or on the page's own styles. */

.enquiry, .enquiry * { box-sizing: border-box; }

/* Floating button */
.enquiry-bubble { position: fixed; right: 40px; bottom: 40px; z-index: 1040; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; font-size: 32px; line-height: 1; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); cursor: pointer; transition: transform 0.15s ease; }
.enquiry-bubble:hover { transform: scale(1.06); }
.enquiry-bubble:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px #14591a; }
.enquiry-bubble.active { visibility: hidden; }

/* The form: a centred dialog. The wide shadow dims the page behind it. */
.enquiry-panel { position: fixed; top: 50%; left: 50%; z-index: 1050; width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 26px 24px 20px; border-radius: 14px; background: #fff; color: #1b222c; font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.5; text-align: left; box-shadow: 0 0 0 100vmax rgba(5, 8, 12, 0.6), 0 18px 50px rgba(0, 0, 0, 0.45); transform: translate(-50%, -50%) scale(0.96); opacity: 0; visibility: hidden; transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s; }
.enquiry-panel:focus { outline: none; }
.enquiry-panel.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }

.enquiry-close { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #1b222c; font-size: 20px; cursor: pointer; }
.enquiry-close:hover { background: #eef1f4; }

.enquiry-panel h2 { margin: 0 48px 4px 0; color: #0d1117; font-family: inherit; font-size: 24px; line-height: 1.25; font-weight: 800; text-transform: none; letter-spacing: 0; }
.enquiry-intro { margin: 0 48px 16px 0; color: #48525e; font-size: 15px; }
.enquiry-plan { display: inline-block; margin: 0 0 16px; padding: 5px 12px; border-radius: 20px; background: #e6f7dd; color: #14591a; font-size: 15px; font-weight: 700; }
.enquiry-plan[hidden] { display: none; }

.enquiry-panel form { display: block; margin: 0; }
.enquiry-field { margin: 0 0 14px; }
.enquiry-field label, .enquiry-branch legend { display: block; margin: 0 0 6px; padding: 0; color: #1b222c; font-size: 15px; font-weight: 700; }
.enquiry-field input { display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px; border: 1.5px solid #8a949f; border-radius: 8px; background: #fff; color: #0d1117; font-family: inherit; font-size: 16px; }
.enquiry-field input::placeholder { color: #6b7580; opacity: 1; }
.enquiry-field input:focus { outline: 3px solid rgba(20, 89, 26, 0.35); outline-offset: 0; border-color: #14591a; }

.enquiry-branch { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.enquiry-branch-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.enquiry-option { position: relative; display: block; margin: 0; cursor: pointer; }
.enquiry-option input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.enquiry-option span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px 10px; border: 1.5px solid #8a949f; border-radius: 8px; color: #1b222c; font-size: 15px; font-weight: 700; text-align: center; }
.enquiry-option input:checked + span { border-color: #14591a; background: #e6f7dd; color: #0f4514; box-shadow: inset 0 0 0 1px #14591a; }
.enquiry-option input:focus-visible + span { outline: 3px solid rgba(20, 89, 26, 0.45); outline-offset: 2px; }

.enquiry-submit { display: block; width: 100%; min-height: 52px; margin: 0; padding: 0 20px; border: 0; border-radius: 30px; background: #7dd959; color: #000; font-family: inherit; font-size: 18px; font-weight: 800; cursor: pointer; }
.enquiry-submit:hover { background: #6cc94a; }
.enquiry-submit:disabled { opacity: 0.6; cursor: default; }
.enquiry-close:focus-visible, .enquiry-submit:focus-visible, .enquiry-panel a:focus-visible { outline: 3px solid #14591a; outline-offset: 2px; }

.enquiry-status { margin: 12px 0 0; color: #1b222c; font-size: 15px; font-weight: 700; }
.enquiry-status:empty { display: none; }
.enquiry-note { margin: 12px 0 0; color: #48525e; font-size: 13px; line-height: 1.5; text-align: center; }
.enquiry-panel a { color: #14591a; font-weight: 700; text-decoration: underline; }

@media (max-width: 767px) {
  .enquiry-panel { padding: 22px 18px 16px; }
  /* Home page: once the phone bar is showing it offers WhatsApp and the form, so the button steps aside. */
  body.cta-bar-on .enquiry-bubble { visibility: hidden; }
}
@media (max-width: 340px) {
  .enquiry-branch-options { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .enquiry-bubble, .enquiry-panel { transition: none; }
}
