/* ============ Quick Contact floating CTA + modal ============ */

.qc-btn {
  position: fixed;
  /* Sits ABOVE the floating-call-btn (60px circle + 24px bottom offset) */
  bottom: 96px;
  right: 24px;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  background: var(--color-primary, #00bfff);
  color: #000;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 191, 255, 0.35), 0 2px 6px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
  will-change: transform;
}

.qc-btn--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.qc-btn:hover {
  box-shadow: 0 10px 32px rgba(0, 191, 255, 0.55), 0 3px 8px rgba(0,0,0,0.5);
  transform: translateY(-2px) scale(1.02);
}

.qc-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.qc-btn svg {
  flex-shrink: 0;
}

.qc-btn__label {
  white-space: nowrap;
}

/* Subtle shake — short, friendly, not aggressive */
@keyframes qc-shake {
  0%   { transform: translateY(0) rotate(0deg); }
  15%  { transform: translateY(-3px) rotate(-3deg); }
  30%  { transform: translateY(0) rotate(3deg); }
  45%  { transform: translateY(-2px) rotate(-2deg); }
  60%  { transform: translateY(0) rotate(2deg); }
  75%  { transform: translateY(-1px) rotate(-1deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.qc-btn--shake {
  animation: qc-shake 0.85s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .qc-btn--shake { animation: none; }
  .qc-btn { transition: opacity 0.2s ease; }
}

/* Mobile: keep consult button above call button; tighten padding */
@media (max-width: 768px) {
  .qc-btn {
    /* call btn on mobile is 56px + 20px bottom = 76px; add 12px gap */
    bottom: 88px;
    right: 20px;
  }
}
@media (max-width: 380px) {
  .qc-btn {
    padding: 11px 14px;
    bottom: 86px;
  }
  .qc-btn__label {
    font-size: 0.85rem;
  }
}

/* ============ Modal ============ */
.qc-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.qc-modal[hidden] { display: none; }

.qc-modal--open {
  opacity: 1;
}

.qc-modal__card {
  background: var(--color-bg, #0a0a0a);
  border: 1px solid var(--color-border, rgba(255,255,255,0.1));
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  padding: 28px 24px 22px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.qc-modal--open .qc-modal__card {
  transform: scale(1) translateY(0);
}

.qc-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--color-text-muted, #888);
  cursor: pointer;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease;
}
.qc-modal__close:hover {
  background: rgba(255,255,255,0.06);
  color: var(--color-text, #fff);
}

.qc-modal__header h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text, #fff);
  line-height: 1.2;
}
.qc-modal__header p {
  margin: 0 0 16px;
  color: var(--color-text-muted, #aaa);
  font-size: 0.9rem;
  line-height: 1.5;
}

.qc-field {
  display: block;
  margin-bottom: 12px;
}

.qc-field__label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text, #eee);
  letter-spacing: 0.01em;
}
.qc-field__label em {
  font-style: normal;
  color: var(--color-text-muted, #888);
  font-weight: 400;
  font-size: 0.78rem;
}

.qc-field input,
.qc-field textarea {
  width: 100%;
  padding: 11px 13px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border, rgba(255,255,255,0.12));
  border-radius: 10px;
  color: var(--color-text, #fff);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.18s ease, background 0.18s ease;
  resize: vertical;
}

.qc-field input:focus,
.qc-field textarea:focus {
  outline: none;
  border-color: var(--color-primary, #00bfff);
  background: rgba(255,255,255,0.07);
}

.qc-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.qc-submit {
  background: var(--color-primary, #00bfff);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.qc-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.qc-fullform {
  font-size: 0.82rem;
  color: var(--color-text-muted, #aaa);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  padding-bottom: 1px;
}
.qc-fullform:hover {
  color: var(--color-primary, #00bfff);
}

.qc-fineprint {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: var(--color-text-muted, #888);
  text-align: center;
  line-height: 1.5;
}
.qc-fineprint a {
  color: var(--color-text, #ddd);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.qc-form-error {
  color: #ef4444;
  font-weight: 600;
  text-align: center;
  padding: 9px;
  margin-bottom: 10px;
  background: rgba(239,68,68,0.1);
  border-radius: 8px;
  font-size: 0.85rem;
}

.qc-success {
  text-align: center;
  padding: 16px 8px 8px;
}
.qc-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  margin: 0 auto 14px;
}
.qc-success h4 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text, #fff);
}
.qc-success p {
  margin: 0;
  color: var(--color-text-muted, #aaa);
  font-size: 0.88rem;
}

/* Tighter on mobile */
@media (max-width: 480px) {
  .qc-modal { padding: 12px; }
  .qc-modal__card { padding: 24px 18px 18px; }
  .qc-modal__header h3 { font-size: 1.2rem; }
  .qc-actions { flex-direction: column; align-items: stretch; }
  .qc-submit { width: 100%; }
  .qc-fullform { text-align: center; }
}
