/* Citricus Quote Popup - overlay, modal, three-step form.
   Colours arrive as custom properties set inline by the plugin, so one
   stylesheet serves every client without a rebuild. */

/* An explicit display value on any element beats the [hidden] attribute, which
   is how an empty badge ends up on screen as a stray orange pill. Win it back
   once, for everything inside the popup. */
.cqp-overlay [hidden]{ display:none !important }

.cqp-overlay{
  position:fixed; inset:0; z-index:2147483000;
  display:none; align-items:center; justify-content:center;
  padding:16px; overflow-y:auto; overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  background:color-mix(in srgb, var(--cqp-dark,#090B4A) 86%, transparent);
  opacity:0; transition:opacity .25s ease;
}
@supports not (background: color-mix(in srgb, red 50%, blue)){
  .cqp-overlay{ background:rgba(9,11,74,.88) }
}
.cqp-overlay.is-open{ display:flex }
.cqp-overlay.is-visible{ opacity:1 }

.cqp-modal{
  position:relative; width:100%; max-width:var(--cqp-width,620px); margin:auto;
  max-height:calc(100dvh - 32px);
  display:flex; flex-direction:column;
  background:#fff; border-radius:var(--cqp-radius,18px);
  box-shadow:0 40px 90px rgba(4,8,40,.5);
  overflow:hidden;
  transform:translateY(14px) scale(.98);
  transition:transform .3s cubic-bezier(.22,1,.36,1);
  font-family:inherit;
}
.cqp-overlay.is-visible .cqp-modal{ transform:none }

.cqp-close{
  position:absolute; top:12px; right:12px; z-index:5;
  width:40px; height:40px; border:0; border-radius:50%;
  background:rgba(255,255,255,.18); color:#fff;
  font-size:22px; line-height:1; cursor:pointer;
  transition:background .2s ease;
}
.cqp-close:hover{ background:rgba(255,255,255,.34) }

/* ---------- Head ---------- */

/*
 * The head carries the modal's own top radius rather than relying on the
 * parent's overflow:hidden to clip it. A rounded container with a transform
 * on it leaves a one pixel light seam at each corner in most browsers, and on
 * a dark header against a white modal that seam reads as a white hairline.
 */
.cqp-head{
  background:linear-gradient(150deg, var(--cqp-dark,#090B4A), var(--cqp-primary,#1B1FA8));
  color:#fff; padding:26px 26px 22px; text-align:center; flex:none;
  border-radius:var(--cqp-radius,18px) var(--cqp-radius,18px) 0 0;
  margin:-1px -1px 0;            /* covers the seam the radius leaves behind */
}

/* The logo sits on white, because a brand mark drawn for a light header
   disappears on a dark one, and asking every client for a second file is how
   a popup ends up with no logo at all. */
.cqp-logo-box{
  display:inline-flex; align-items:center; justify-content:center;
  background:#fff; border-radius:10px; padding:10px 16px;
  margin:0 auto 14px; box-shadow:0 6px 18px rgba(4,8,40,.22);
  max-width:80%;
}
.cqp-logo{ height:38px; width:auto; margin:0; display:block }
.cqp-title{ margin:0 0 .4em; font-size:1.35rem; line-height:1.2; color:#fff; font-weight:800 }
.cqp-sub{ margin:0; font-size:.93rem; color:rgba(255,255,255,.82); line-height:1.5 }
.cqp-badge{
  display:inline-block; margin:12px 0 0; padding:.3rem .8rem; border-radius:999px;
  background:var(--cqp-accent,#F5A524); color:var(--cqp-dark,#090B4A);
  font-size:.78rem; font-weight:700; letter-spacing:.02em;
}

/* ---------- Body ---------- */
.cqp-body{ padding:0 26px 24px; overflow-y:auto; flex:1 }

.cqp-prog{ height:4px; background:#E2E6F0; border-radius:999px; margin:18px 0 20px; overflow:hidden }
.cqp-prog span{ display:block; height:100%; background:var(--cqp-accent,#F5A524); transition:width .3s ease }

.cqp-step{ display:none; border:0; padding:0; margin:0; min-inline-size:0 }
.cqp-step.is-on{ display:block }
.cqp-legend{ font-weight:800; font-size:1.02rem; padding:0; margin:0 0 14px; color:var(--cqp-dark,#090B4A) }

.cqp-field{ margin-bottom:14px; display:flex; flex-direction:column; gap:.3rem }
.cqp-field label{ font-size:.86rem; font-weight:700; color:#0B1020 }
.cqp-req{ color:#D64545 }
.cqp-hint{ display:block; font-weight:400; font-size:.78rem; color:#767E93 }

.cqp-row{ display:grid; gap:14px }
@media (min-width:520px){ .cqp-row{ grid-template-columns:1fr 1fr } }

.cqp-body input[type=text],
.cqp-body input[type=tel],
.cqp-body input[type=email],
.cqp-body select,
.cqp-body textarea{
  width:100%; font:inherit; font-size:1rem;   /* 16px keeps iOS from zooming */
  padding:.72rem .85rem; min-height:48px;
  color:#0B1020; background:#fff;
  border:1.5px solid #E2E6F0; border-radius:10px;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.cqp-body textarea{ min-height:88px; resize:vertical }
.cqp-body input:focus, .cqp-body select:focus, .cqp-body textarea:focus{
  outline:none; border-color:var(--cqp-primary,#1B1FA8);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--cqp-primary,#1B1FA8) 18%, transparent);
}
.cqp-body .is-bad{ border-color:#D64545 }

.cqp-err{ margin:0 0 12px; color:#D64545; font-size:.86rem; font-weight:600 }

.cqp-nav{ display:flex; gap:10px; margin-top:18px }
.cqp-nav button{
  flex:1; min-height:50px; padding:.8rem 1.2rem;
  border:0; border-radius:999px; cursor:pointer;
  font:inherit; font-size:1rem; font-weight:700;
  transition:filter .15s ease, transform .1s ease;
}
.cqp-nav button:active{ transform:translateY(1px) }
.cqp-next, .cqp-send{ background:var(--cqp-accent,#F5A524); color:var(--cqp-dark,#090B4A) }
.cqp-next:hover, .cqp-send:hover{ filter:brightness(.94) }
.cqp-prev{ flex:0 0 34%; background:#F7F8FC; color:#4A5268 }
.cqp-prev:hover{ background:#EEF0FF }
.cqp-send[disabled]{ opacity:.6; cursor:progress }

.cqp-fine{ margin:12px 0 0; font-size:.76rem; color:#767E93; text-align:center }

/* Honeypot: present in the DOM, never on screen. */
.cqp-hp{ position:absolute!important; left:-9999px; width:1px; height:1px; overflow:hidden }

/* ---------- Success ---------- */
.cqp-done{ text-align:center; padding:34px 6px 18px }
.cqp-tick{
  width:64px; height:64px; margin:0 auto 16px; border-radius:50%;
  display:grid; place-items:center;
  background:#0E9F6E; color:#fff;
}
.cqp-done h3{ margin:0 0 .5em; font-size:1.25rem; color:var(--cqp-dark,#090B4A) }
.cqp-done p{ margin:0; color:#4A5268; font-size:.96rem; line-height:1.6 }

/* ---------- Small screens ---------- */
@media (max-width:520px){
  .cqp-overlay{ padding:0; align-items:flex-end }
  .cqp-modal{
    max-width:none; max-height:94dvh;
    border-radius:var(--cqp-radius,18px) var(--cqp-radius,18px) 0 0;
  }
  .cqp-head{ padding:22px 20px 18px; border-radius:var(--cqp-radius,18px) var(--cqp-radius,18px) 0 0 }
  .cqp-logo{ height:32px }
  .cqp-title{ font-size:1.18rem }
  .cqp-body{ padding:0 20px calc(20px + env(safe-area-inset-bottom)) }
  .cqp-nav{ position:sticky; bottom:0; background:#fff; padding-bottom:8px }
}

@media (prefers-reduced-motion:reduce){
  .cqp-overlay, .cqp-modal, .cqp-prog span, .cqp-nav button{ transition:none }
}

/* ---------- Theme tweaks ---------- */
/* Paint the modal itself dark so the rounded top corners can never show a
   white seam; the body brings its own white background. */
.cqp-modal{ background:var(--cqp-dark,#33292a); isolation:isolate }
.cqp-head{ margin:0; border-radius:0 }
.cqp-body{ background:#fff }
.cqp-sub{ font-size:.84rem; max-width:44ch; margin-inline:auto }
.cqp-next, .cqp-send{
  background:linear-gradient(135deg,#6BAF2F 0%,#4E8221 55%,#3B6618 100%);
  color:#fff !important; font-weight:800; letter-spacing:.02em;
  box-shadow:0 8px 20px rgba(78,130,33,.35); text-shadow:0 1px 1px rgba(0,0,0,.15);
}
.cqp-next:hover, .cqp-send:hover{ filter:none; background:linear-gradient(135deg,#76BC36 0%,#56902A 55%,#41701B 100%); box-shadow:0 10px 26px rgba(78,130,33,.45) }

/* ---------- Stepper (Step 1 of 3) ---------- */
.cqp-stepper{ margin:4px 0 0 }
.cqp-count{ margin:0 0 10px; font-size:.74rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:#8A7F7E }
.cqp-count b{ color:#33292A }
.cqp-dots{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2,1fr); position:relative; max-width:360px; margin:0 auto }
.cqp-dots::before{ content:''; position:absolute; top:15px; left:25%; right:25%; height:2px; background:#E6DDD2; z-index:0 }
.cqp-dots li{ margin:0; display:flex; flex-direction:column; align-items:center; gap:6px; position:relative; z-index:1; text-align:center }
.cqp-dot{ width:32px; height:32px; border-radius:50%; display:grid; place-items:center; background:#fff; border:2px solid #E6DDD2; color:#8A7F7E; font-weight:800; font-size:.82rem; transition:all .25s ease }
.cqp-dots em{ font-style:normal; font-size:.76rem; font-weight:600; color:#8A7F7E; line-height:1.2 }
.cqp-dots li.is-on .cqp-dot{ background:#33292A; border-color:#33292A; color:#fff; box-shadow:0 0 0 4px rgba(51,41,42,.12) }
.cqp-dots li.is-on em{ color:#33292A; font-weight:800 }
.cqp-dots li.is-done .cqp-dot{ background:linear-gradient(135deg,#8BD14A,#4E8221); border-color:#5FA329; color:#fff; font-size:0 }
.cqp-dots li.is-done .cqp-dot::after{ content:'\2713'; font-size:.9rem }
.cqp-dots li.is-done em{ color:#4E8221 }
.cqp-stepper + .cqp-prog{ margin-top:14px }
@media (max-width:420px){ .cqp-dots em{ font-size:.7rem } }
.cqp-stepper{ margin-top:18px }

/* ---------- Chips (pets) ---------- */
.cqp-label{ display:block; font-weight:700; font-size:.88rem; margin-bottom:6px; color:#33292A }
.cqp-chips{ display:flex; gap:8px }
.cqp-chip{ flex:1; position:relative; cursor:pointer; margin:0 }
.cqp-chip input{ position:absolute; opacity:0; pointer-events:none }
.cqp-chip span{ display:flex; align-items:center; justify-content:center; height:48px; border:1.5px solid #E2DAD0; border-radius:12px; background:#fff; font-weight:700; font-size:.92rem; color:#5A4E4F; transition:all .15s ease }
.cqp-chip:hover span{ border-color:#B7A486 }
.cqp-chip input:checked + span{ border-color:#4E8221; background:#EEF5E6; color:#3F6B19; box-shadow:0 0 0 3px rgba(78,130,33,.12) }
.cqp-chip input:focus-visible + span{ outline:2px solid #4E8221; outline-offset:2px }
.cqp-hint{ font-weight:500; color:#8A7F7E; font-size:.8rem }
.cqp-field label .cqp-hint--inline{ display:inline; margin-left:4px; white-space:nowrap }
.cqp-field label:has(.cqp-hint--inline){ display:block }
#cqp-details{ min-height:0; height:68px; resize:vertical }
