/* DocCover quote forms (Health + Motor). Self-contained: every rule is scoped under .qf */
.qf { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px;
  font-family: "Inter", "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
.qf[hidden] { display: none !important; }
.qf *, .qf *::before, .qf *::after { box-sizing: border-box; }
body.qf-open { overflow: hidden; }

.qf__backdrop { position: absolute; inset: 0; background: rgba(31,32,37, .6);   animation: qfFade .2s ease; }
.qf__panel { position: relative; width: 100%; max-width: 680px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  display: flex; flex-direction: column; background: #fff; color: #0e0f12; border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); animation: qfPop .28s cubic-bezier(.2, .9, .25, 1.15); }
.qf__head { padding: 20px 56px 14px 24px; background: linear-gradient(135deg, #0e0f12 0%, #b6662c 70%, #df8e55 100%); color: #fff; }
.qf__title { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 800; color: #fff !important; letter-spacing: -.01em; }
.qf__sub { margin: 4px 0 0; font-size: 13.5px; color: #ffe8db; }
.qf__close { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .18); color: #fff; font-size: 22px; line-height: 1; }
.qf__close:hover { background: rgba(255, 255, 255, .3); }

.qf__form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.qf__body { padding: 18px 24px 8px; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.qf__foot { padding: 12px 24px 18px; border-top: 1px solid #ffebdd; background: #fff; }

.qf__sec { margin: 0 0 18px; }
.qf__sec-title { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #b6662c; }
.qf__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.qf__field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.qf__field--full { grid-column: 1 / -1; }
.qf__label { font-size: 13px; font-weight: 600; color: #0e0f12; }
.qf__req { color: #e11d48; margin-left: 2px; }
.qf__hint { font-size: 12px; color: #ce7535; font-weight: 400; }

.qf input[type=text], .qf input[type=tel], .qf input[type=email], .qf input[type=number], .qf input[type=date], .qf select, .qf textarea {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid #ffd2b8; border-radius: 12px; background: #fff; color: #0e0f12;
  font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.qf select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23e35b0c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.qf input:focus, .qf select:focus { outline: none; border-color: #b6662c; box-shadow: 0 0 0 3px rgba(182,102,44, .16); }
.qf .qf--invalid { border-color: #e11d48 !important; box-shadow: 0 0 0 3px rgba(225, 29, 72, .12) !important; }
.qf__err { font-size: 12px; color: #e11d48; min-height: 0; }

/* chips (radio / checkbox as pills) */
.qf__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qf__chip { position: relative; }
.qf__chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.qf__chip span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid #ffd2b8; border-radius: 999px;
  background: #fff; font-size: 13.5px; font-weight: 600; color: #af622a; transition: all .15s; user-select: none; }
.qf__chip input:checked + span { background: #b6662c; border-color: #b6662c; color: #fff; box-shadow: 0 8px 16px -10px rgba(182,102,44, .8); }
.qf__chip input:focus-visible + span { outline: 3px solid rgba(182,102,44, .35); outline-offset: 2px; }

/* per-member age rows */
.qf__ages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-top: 10px; }
.qf__ages:empty { display: none; }
.qf__planNote { margin-top: 8px; font-size: 12.5px; color: #b6662c; font-weight: 600; }

.qf__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: #b5642c; line-height: 1.5; margin-bottom: 12px; }
.qf__consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: #b6662c; flex: 0 0 auto; }
.qf__consent a { color: #b6662c !important; text-decoration: underline; }
.qf__status { min-height: 18px; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #e11d48; }
.qf__submit { width: 100%; height: 50px; border: 0; border-radius: 14px; cursor: pointer; font: inherit; font-size: 16px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #b6662c, #df8e55); box-shadow: 0 16px 28px -16px rgba(182,102,44, .9); transition: transform .15s, box-shadow .15s; }
.qf__submit:hover { transform: translateY(-1px); }
.qf__submit:disabled { opacity: .65; cursor: progress; transform: none; }

/* success */
.qf__done { padding: 34px 24px 28px; text-align: center; overflow-y: auto; }
.qf__done-ico { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: #e7f8ee; color: #26934e; font-size: 32px; font-weight: 800; }
.qf__done h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; color: #0e0f12; }
.qf__done p { margin: 0 auto 18px; max-width: 420px; color: #b5642c; font-size: 14.5px; line-height: 1.6; }
.qf__wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; background: #25d366; color: #fff !important; font-weight: 800; text-decoration: none; }
.qf__wa:hover { background: #2fa45b; }
.qf__again { display: block; margin: 14px auto 0; background: none; border: 0; color: #b6662c; font-weight: 700; cursor: pointer; font-size: 14px; }

@media (max-width: 600px) {
  .qf { padding: 0; align-items: flex-end; }
  .qf__panel { max-width: none; max-height: 96dvh; border-radius: 20px 20px 0 0; }
  .qf__grid, .qf__ages { grid-template-columns: 1fr; }
  .qf__head { padding: 18px 54px 12px 18px; }
  .qf__body { padding: 16px 18px 6px; }
  .qf__foot { padding: 10px 18px 16px; }
  .qf input, .qf select { font-size: 16px; } /* stops iOS zoom-on-focus */
}
@keyframes qfFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes qfPop { from { opacity: 0; transform: translateY(24px) scale(.97) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) { .qf__backdrop, .qf__panel { animation: none; } }
