/* Vahrk quick enquiry form (VQF): footer + "Enquire Now" popup. Markup: enquiry-form.php · behaviour: js/enquiry-form.js.
   Every rule is scoped to .vqf (plus two :has() rules for the popup's own corners), so no other section is affected.
   Palette: page neutrals + brand teal on the button, focus and links only. No orange, gradients or drop shadows. */

.vqf {
    --vqf-ink: #17202a;
    --vqf-body: #3f4954;
    --vqf-muted: #5f6974;
    --vqf-field: #7b8a94;        /* field boundary: 3.5:1 against white (WCAG 1.4.11) */
    --vqf-line: #e1e5e9;
    --vqf-soft: #f5f6f7;
    --vqf-teal: #006b7a;
    --vqf-teal-d: #00535f;
    --vqf-teal-dd: #004a54;
    --vqf-ring: rgba(0, 107, 122, .2);
    --vqf-err: #b42318;
    --vqf-err-bg: #fef3f2;
    --vqf-err-line: #fecdca;
    --vqf-gold: #c8921b;
    --vqf-ok: #1a8a4a;
    --vqf-r: 6px;
    --vqf-h: 46px;
    --vqf-fs: 15px;
    font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
    color: var(--vqf-ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.vqf *, .vqf *::before, .vqf *::after { box-sizing: border-box; }
:where(.vqf) p { margin: 0; }
:where(.vqf) label { margin: 0; }

.vqf__sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.vqf__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Heading ---------- */
/* Footer: the h3 keeps the footer's own column-heading style (same as "Quick Links" / "Contact Us"). */
.vqf--footer .vqf__lead { color: #e3eff1; font-size: 14px; line-height: 1.55; margin-bottom: 16px; max-width: 46ch; }

.vqf--popup { padding: 28px 28px 22px; background: #fff; }
.vqf--popup .vqf__title { margin: 0 40px 6px 0; font-size: 21px; font-weight: 600; line-height: 1.3; color: var(--vqf-ink); letter-spacing: -.005em; }
.vqf--popup .vqf__lead { margin-bottom: 18px; font-size: 14px; color: var(--vqf-muted); }

/* ---------- Panel ---------- */
.vqf--footer .vqf__panel { background: #fff; border-radius: 8px; padding: 20px; }

/* ---------- Fields ---------- */
.vqf__form { container-type: inline-size; position: relative; margin: 0; }
.vqf__grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 12px; }
.vqf__field { display: flex; flex-direction: column; min-width: 0; margin-bottom: 14px; }
.vqf__label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; margin-bottom: 6px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--vqf-ink); }
.vqf__opt { font-size: 12.5px; font-weight: 400; color: var(--vqf-muted); }

.vqf .vqf__input {
    display: block; width: 100%; min-width: 0; height: var(--vqf-h); margin: 0; padding: 0 12px;
    font: inherit; font-size: var(--vqf-fs); line-height: 1.4; color: var(--vqf-ink);
    background: #fff; border: 1px solid var(--vqf-field); border-radius: var(--vqf-r);
    box-shadow: none; outline: none; -webkit-appearance: none; appearance: none;
    transition: border-color .15s, box-shadow .15s;
    scroll-margin: 96px 0 120px;           /* focus scrolling clears the phone's fixed call / enquire bar */
}
.vqf .vqf__input::placeholder { color: #7d8891; opacity: 1; }
.vqf .vqf__input:hover { border-color: #56636c; }
.vqf .vqf__input:focus { border-color: var(--vqf-teal); box-shadow: 0 0 0 3px var(--vqf-ring); }

.vqf .vqf__select {
    padding-right: 38px; text-overflow: ellipsis; cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f4954' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
}
.vqf .vqf__select.is-empty { color: #5f6974; }
.vqf .vqf__select option { color: var(--vqf-ink); }

.vqf .vqf__textarea { height: 72px; min-height: 52px; padding: 11px 12px; resize: vertical; }

/* +91 prefix: one field with a fixed country-code segment */
.vqf__tel { display: flex; align-items: stretch; position: relative; height: var(--vqf-h); background: #fff; border: 1.5px solid var(--vqf-gold); border-radius: var(--vqf-r); transition: border-color .15s, box-shadow .15s; }
.vqf__tel:hover { border-color: #56636c; }
.vqf__tel:focus-within { border-color: var(--vqf-teal); box-shadow: 0 0 0 3px var(--vqf-ring); }
.vqf__cc { display: flex; align-items: center; padding: 0 10px 0 12px; font-size: var(--vqf-fs); font-weight: 500; color: var(--vqf-body); background: var(--vqf-soft); border-right: 1px solid var(--vqf-line); border-radius: calc(var(--vqf-r) - 1px) 0 0 calc(var(--vqf-r) - 1px); flex: 0 0 auto; }
.vqf .vqf__tel .vqf__input { height: 100%; border: 0; border-radius: 0 var(--vqf-r) var(--vqf-r) 0; box-shadow: none; padding-left: 10px; letter-spacing: .02em; }
.vqf__tel.is-valid { border-color: var(--vqf-ok); }

/* OTP-style digit boxes (reference: swarnavihar.org/lp) */
.vqf__digits-wrap { flex: 1 1 auto; position: relative; display: flex; align-items: center; min-width: 0; height: 100%; padding: 0 34px 0 10px; cursor: text; overflow: hidden; }
.vqf__digits-group { display: contents; }
.vqf__digit-box { display: inline-flex; align-items: center; justify-content: center; position: relative; width: 14px; font: 700 var(--vqf-fs) "Poppins", Arial, sans-serif; color: var(--vqf-ink); user-select: none; flex-shrink: 0; }
.vqf__digit-x { font-size: var(--vqf-fs); font-weight: 600; color: var(--vqf-muted); opacity: .55; pointer-events: none; }
.vqf__digit-box.vqf__digit-filled .vqf__digit-x { display: none; }
.vqf__digit-box.vqf__digit-active::before { content: ''; position: absolute; left: -1px; top: 50%; transform: translateY(-50%); width: 2px; height: 16px; background: var(--vqf-teal); border-radius: 2px; animation: vqfCursorBlink 1s step-end infinite; }
.vqf__digit-box.vqf__digit-active.vqf__cursor-end::before { display: none; }
.vqf__digit-box.vqf__digit-active.vqf__cursor-end::after { content: ''; position: absolute; right: -3px; top: 50%; transform: translateY(-50%); width: 2px; height: 16px; background: var(--vqf-teal); border-radius: 2px; animation: vqfCursorBlink 1s step-end infinite; }
@keyframes vqfCursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.vqf__digits-sep { font-size: var(--vqf-fs); font-weight: 700; color: var(--vqf-field); flex-shrink: 0; margin: 0 3px; user-select: none; }
.vqf__digits-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: none; outline: none; background: transparent; font-size: 1px; color: transparent; caret-color: transparent; cursor: text; padding: 0 !important; }
.vqf__tel-ok { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--vqf-ok); display: none; pointer-events: none; }
.vqf__tel.is-valid .vqf__tel-ok { display: block; }

/* errors */
.vqf__err { margin-top: 6px !important; font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--vqf-err); }
.vqf__field.is-err .vqf__input, .vqf__field.is-err .vqf__tel { border-color: var(--vqf-err); box-shadow: inset 0 0 0 1px var(--vqf-err); }
.vqf__field.is-err .vqf__tel .vqf__input { box-shadow: none; }
.vqf__field.is-err .vqf__input:focus, .vqf__field.is-err .vqf__tel:focus-within { box-shadow: inset 0 0 0 1px var(--vqf-err), 0 0 0 3px rgba(180, 35, 24, .15); }
.vqf__field.is-err .vqf__tel .vqf__input:focus { box-shadow: none; }

.vqf__alert { margin: 12px 0 0; padding: 10px 12px; font-size: 14px; line-height: 1.5; color: #912018; background: var(--vqf-err-bg); border: 1px solid var(--vqf-err-line); border-radius: var(--vqf-r); outline: none; }
.vqf__alert a { color: inherit; font-weight: 600; text-decoration: underline; }

/* ---------- Button ---------- */
.vqf .vqf__btn {
    position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 48px; margin: 4px 0 0; padding: 0 20px;
    font: inherit; font-size: 15.5px; font-weight: 600; line-height: 1.2; letter-spacing: .005em; color: #fff;
    background: var(--vqf-teal); border: 0; border-radius: var(--vqf-r); box-shadow: none; cursor: pointer;
    transition: background-color .15s;
}
.vqf .vqf__btn:hover { background: var(--vqf-teal-d); color: #fff; }
.vqf .vqf__btn:active { background: var(--vqf-teal-dd); }
.vqf .vqf__btn:focus-visible { outline: 2px solid var(--vqf-teal); outline-offset: 2px; }
.vqf .vqf__btn.is-busy { cursor: progress; background: var(--vqf-teal-d); }
.vqf__spin { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; }
.vqf__btn.is-busy .vqf__spin { display: block; animation: vqf-spin .8s linear infinite; }
@keyframes vqf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vqf__btn.is-busy .vqf__spin { animation-duration: 2.4s; } }

.vqf__note { margin-top: 10px !important; font-size: 12.5px; line-height: 1.5; color: var(--vqf-muted); }
.vqf__note a, .vqf__done a { color: var(--vqf-teal); text-decoration: underline; text-underline-offset: 2px; }
.vqf__note a:hover, .vqf__done a:hover { color: var(--vqf-teal-d); }
.vqf a[href^="tel:"] { white-space: nowrap; }
.vqf a:focus-visible { outline: 2px solid var(--vqf-teal); outline-offset: 2px; border-radius: 2px; }

/* ---------- Confirmation ---------- */
.vqf__done { outline: none; }
.vqf__done-h { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-family: inherit; font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--vqf-ink); }
.vqf__done-i { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e6f0f2; color: var(--vqf-teal); }
.vqf__done-i svg { width: 18px; height: 18px; }
.vqf__done p { font-size: 14.5px; color: var(--vqf-body); }
.vqf__done p + p { margin-top: 8px; }
.vqf__done dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 14px 0 0; padding: 12px 14px; font-size: 14px; background: var(--vqf-soft); border-radius: var(--vqf-r); }
.vqf__done dt { font-weight: 400; color: var(--vqf-muted); }
.vqf__done dd { margin: 0; font-weight: 500; color: var(--vqf-ink); overflow-wrap: anywhere; }
.vqf .vqf__again { margin-top: 14px; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--vqf-teal); background: none; border: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; min-height: 44px; }
.vqf .vqf__again:hover { color: var(--vqf-teal-d); }
.vqf .vqf__again:focus-visible { outline: 2px solid var(--vqf-teal); outline-offset: 2px; }
.vqf__dry { display: inline-block; margin-bottom: 8px; padding: 2px 8px; font-size: 12px; font-weight: 600; color: #6f4500; background: #fff6df; border: 1px dashed #b7791f; border-radius: 3px; }

/* ---------- Layout by the form's own width ---------- */
@container (min-width: 360px) {
    .vqf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vqf__field[data-vqf-field="product"], .vqf__field[data-vqf-field="city"] { grid-column: 1 / -1; }
}
@container (min-width: 540px) {
    .vqf__field[data-vqf-field="product"], .vqf__field[data-vqf-field="city"] { grid-column: auto; }
}

/* ---------- Phones ---------- */
@media (max-width: 767.98px) {
    .vqf { --vqf-fs: 16px; }                         /* 16 px inputs: iOS does not zoom on focus */
    .vqf--footer .vqf__panel { padding: 16px; }
    .vqf--footer .vqf__lead { font-size: 13.5px; margin-bottom: 14px; }
    .vqf--popup { padding: 22px 18px 18px; }
    .vqf--popup .vqf__title { font-size: 19px; }
    .vqf__field { margin-bottom: 12px; }
}
/* Short phone screens (iPhone SE, 320×640): the popup fits without scrolling */
@media (max-width: 767.98px) and (max-height: 760px) {
    .vqf { --vqf-h: 44px; }
    .vqf--popup { padding: 18px 16px 14px; }
    .vqf--popup .vqf__title { font-size: 18px; margin-bottom: 4px; }
    .vqf--popup .vqf__lead { font-size: 13px; line-height: 1.45; margin-bottom: 12px; }
    .vqf--popup .vqf__field { margin-bottom: 9px; }
    .vqf--popup .vqf__label { margin-bottom: 4px; }
    .vqf--popup .vqf__textarea { height: 54px; }
    .vqf--popup .vqf__note { margin-top: 8px !important; }
}

/* ---------- Popup frame: square off the modal's large corners only when it holds this form ---------- */
.poupdesign .modal-content:has(.vqf--popup), .poupdesign .modal-body:has(.vqf--popup) { border-radius: 12px; }
