/* ── Overlay ── */
#tcqOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
#tcqOverlay.open {
  opacity: 1;
  visibility: visible;
}

/* Backdrop */
#tcqOverlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 36, .76);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Dialog box */
.tcq-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .28);
  overflow: hidden;
  transform: translateY(28px) scale(.96);
  transition: transform .42s cubic-bezier(.22, 1, .36, 1);
}
#tcqOverlay.open .tcq-box {
  transform: translateY(0) scale(1);
}

/* ── Header ── */
.tcq-hdr {
  background: #0F2E63;
  padding: 1.8rem 2rem 1.6rem;
  position: relative;
}
.tcq-hdr::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: #D2252E;
}
.tcq-eyebrow {
  font-family: var(--font-heading, 'Barlow', sans-serif);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin-bottom: .4rem;
}
.tcq-title {
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  margin-bottom: .25rem;
}
.tcq-title em { font-style: normal; color: #D2252E; }
.tcq-subtitle {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
  line-height: 1.5;
}

/* Close button */
.tcq-close {
  position: absolute;
  top: 1rem; right: 1.1rem;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .65);
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background .2s, color .2s, border-color .2s;
}
.tcq-close:hover {
  background: #D2252E;
  color: #fff;
  border-color: #D2252E;
}

/* ── Form body ── */
.tcq-body { padding: 1.6rem 2rem 2rem; }

.tcq-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}

.tcq-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: .9rem;
}

.tcq-label {
  font-family: var(--font-heading, 'Barlow', sans-serif);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #0F2E63;
}
.tcq-label .req { color: #D2252E; }

.tcq-input,
.tcq-textarea {
  width: 100%;
  padding: .7rem .9rem;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: .88rem;
  color: #1a1a1a;
  background: #F5F6F8;
  border: 1.5px solid transparent;
  border-radius: 8px;
  outline: none;
  transition: border-color .22s, background .22s, box-shadow .22s;
  -webkit-appearance: none;
}
.tcq-input::placeholder,
.tcq-textarea::placeholder { color: #b0b8c8; }

.tcq-input:focus,
.tcq-textarea:focus {
  border-color: #15499B;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(21, 73, 155, .1);
}
.tcq-input.err,
.tcq-textarea.err {
  border-color: #D2252E;
  background: rgba(210, 37, 46, .04);
  box-shadow: 0 0 0 3px rgba(210, 37, 46, .1);
}
.tcq-textarea { resize: none; height: 96px; line-height: 1.6; }

.tcq-errmsg {
  font-family: var(--font-heading, 'Barlow', sans-serif);
  font-size: .65rem;
  font-weight: 600;
  color: #D2252E;
  display: none;
}
.tcq-input.err ~ .tcq-errmsg,
.tcq-textarea.err ~ .tcq-errmsg { display: block; }

/* Submit button */
.tcq-submit {
  width: 100%;
  margin-top: 1.2rem;
  padding: .82rem 1.5rem;
  background: #D2252E;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading, 'Barlow', sans-serif);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: transform .22s, box-shadow .22s;
  box-shadow: 0 4px 16px rgba(210, 37, 46, .28);
}
.tcq-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(210, 37, 46, .36);
}
.tcq-submit:active { transform: translateY(0); }
.tcq-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.tcq-submit svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
  transition: transform .22s;
}
.tcq-submit:hover svg { transform: translateX(3px); }

/* Spinner */
.tcq-spinner {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: tcqSpin .65s linear infinite;
  display: none;
  flex-shrink: 0;
}
.tcq-submit.loading .tcq-spinner { display: block; }
.tcq-submit.loading .tcq-btn-lbl,
.tcq-submit.loading .tcq-btn-ico { display: none; }
@keyframes tcqSpin { to { transform: rotate(360deg); } }

/* Privacy note */
.tcq-privacy {
  margin-top: .8rem;
  text-align: center;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: .7rem;
  color: #b0b8c8;
  line-height: 1.5;
}

/* ── Success panel ── */
.tcq-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.4rem 2rem 2.8rem;
  gap: .9rem;
}
.tcq-success-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(5, 150, 105, .1);
  border: 2px solid rgba(5, 150, 105, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}
.tcq-success h4 {
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: 1.5rem;
  font-weight: 900;
  color: #0F2E63;
}
.tcq-success p {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: .86rem;
  color: #5a6175;
  line-height: 1.65;
  max-width: 320px;
}
.tcq-success-btn {
  margin-top: .4rem;
  padding: .65rem 2rem;
  background: #0F2E63;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading, 'Barlow', sans-serif);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.tcq-success-btn:hover {
  background: #D2252E;
  transform: translateY(-2px);
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .tcq-box     { border-radius: 16px; }
  .tcq-hdr     { padding: 1.5rem 1.5rem 1.4rem; }
  .tcq-body    { padding: 1.4rem 1.5rem 1.8rem; }
  .tcq-row     { grid-template-columns: 1fr; gap: 0; }
  .tcq-title   { font-size: 1.45rem; }
}




/* ── Floating CTA ─────────────────────────────────────── */
#floatingCta {
  position: fixed;
  bottom: 2.2rem;
  left: 2.2rem;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
#floatingCta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
 
/* Main button */
.fcta-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .82rem 1.5rem .82rem 1.1rem;
  background: #D2252E;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: var(--font-heading, 'Barlow', sans-serif);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(210, 37, 46, .40);
  transition: transform .28s cubic-bezier(.34, 1.56, .64, 1),
              box-shadow .28s ease,
              background .2s ease;
  white-space: nowrap;
}
.fcta-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 36px rgba(210, 37, 46, .50);
  background: #b51e26;
}
.fcta-btn:active {
  transform: translateY(0) scale(.98);
}
 
/* Icon circle */
.fcta-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}
.fcta-btn:hover .fcta-icon {
  background: rgba(255, 255, 255, .32);
}
.fcta-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  transition: transform .25s;
}
.fcta-btn:hover .fcta-icon svg {
  transform: rotate(20deg) scale(1.1);
}
 
/* Pulse ring on icon */
.fcta-btn::before {
  content: '';
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(210, 37, 46, .45);
  animation: fctaPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes fctaPulse {
  0%   { transform: scale(.85); opacity: .8; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
 
/* Label tooltip that shows on first load */
.fcta-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .32rem .75rem;
  background: #0F2E63;
  color: rgba(255, 255, 255, .85);
  border-radius: 100px;
  font-family: var(--font-heading, 'Barlow', sans-serif);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
  animation: fctaLabelIn .6s .8s both, fctaLabelOut .5s 3.5s forwards;
  pointer-events: none;
}
.fcta-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: fctaDot 2s ease infinite;
}
@keyframes fctaDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}
@keyframes fctaLabelIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fctaLabelOut {
  to { opacity: 0; transform: translateY(4px); pointer-events: none; }
}
 
/* ── Responsive ── */
@media (max-width: 768px) {
  #floatingCta {
    bottom: 1.4rem;
    left: 1.2rem;
  }
  .fcta-btn {
    padding: .75rem 1.3rem .75rem 1rem;
    font-size: .72rem;
  }
}