/* ============ 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: collapse to icon-only circle matching the phone button, stack above it */
@media (max-width: 768px) {
  .qc-btn {
    /* phone btn on mobile is 56px + 20px bottom = 76px; 12px gap above */
    bottom: 88px;
    right: 20px;
    width: 56px;
    height: 56px;
    padding: 0;
    gap: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .qc-btn__label {
    /* visually hide label but keep it for screen readers */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .qc-btn svg {
    width: 22px;
    height: 22px;
  }
}

/* ============ 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; }
}

/* ============ Multi-step form additions (v2) ============ */

/* progress bar */
.qc-progress {
  margin-bottom: 18px;
  padding-right: 36px; /* room for X */
}
.qc-progress__bar {
  height: 4px;
  background: var(--color-primary, #00bfff);
  width: 20%;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.qc-progress__label {
  margin-top: 6px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* hide modal__header from v1 — we use per-step titles now */
.qc-modal__header { display: none; }

/* step titles */
.qc-step__title {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.qc-step__sub {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.62);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* service cards (Step 1) */
.qc-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.qc-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.qc-card:hover {
  border-color: rgba(0, 191, 255, 0.55);
  background: rgba(0, 191, 255, 0.06);
}
.qc-card--selected {
  border-color: var(--color-primary, #00bfff);
  background: rgba(0, 191, 255, 0.14);
  box-shadow: 0 0 0 1px var(--color-primary, #00bfff) inset;
}
.qc-card__icon {
  font-size: 1.4rem;
  line-height: 1;
}
.qc-card__title {
  font-weight: 700;
  font-size: 0.98rem;
}
.qc-card__desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.3;
}

/* unsure / free audit — distinct, wider button */
.qc-unsure {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1.5px dashed rgba(255,255,255,0.22);
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.qc-unsure:hover {
  border-color: rgba(0, 191, 255, 0.55);
  background: rgba(0, 191, 255, 0.05);
}
.qc-unsure--selected {
  border-style: solid;
  border-color: var(--color-primary, #00bfff);
  background: rgba(0, 191, 255, 0.12);
  box-shadow: 0 0 0 1px var(--color-primary, #00bfff) inset;
}
.qc-unsure__icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.qc-unsure__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.qc-unsure__text strong {
  font-size: 0.98rem;
  font-weight: 700;
}
.qc-unsure__text small {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.35;
}

/* fields */
.qc-field {
  display: block;
  margin-bottom: 12px;
}
.qc-field__label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.qc-field__label em {
  font-style: normal;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
}
.qc-field input,
.qc-field select,
.qc-field textarea {
  width: 100%;
  padding: 11px 13px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
}
.qc-field input::placeholder,
.qc-field textarea::placeholder {
  color: rgba(255,255,255,0.35);
}
.qc-field input:focus,
.qc-field select:focus,
.qc-field textarea:focus {
  outline: none;
  border-color: var(--color-primary, #00bfff);
  background: rgba(0,191,255,0.04);
}
.qc-field textarea {
  resize: vertical;
  min-height: 60px;
}
.qc-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff80' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.qc-field select option {
  background: #0a1525;
  color: #fff;
}

/* sections inside step 4 */
.qc-section {
  padding: 14px 0 4px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 14px;
}
.qc-section:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
.qc-section__title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary, #00bfff);
  letter-spacing: 0.01em;
}

/* time slot picker */
.qc-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.qc-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.qc-slot:hover {
  border-color: rgba(0,191,255,0.5);
  background: rgba(0,191,255,0.05);
}
.qc-slot--selected {
  border-color: var(--color-primary, #00bfff);
  background: rgba(0,191,255,0.14);
  box-shadow: 0 0 0 1px var(--color-primary, #00bfff) inset;
}
.qc-slot__day {
  font-weight: 700;
  font-size: 0.92rem;
}
.qc-slot__time {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-top: 1px;
}

/* nav buttons */
.qc-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.qc-back {
  padding: 11px 16px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: rgba(255,255,255,0.8);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.qc-back:hover {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.qc-next,
.qc-submit {
  flex: 1;
  padding: 13px 20px;
  background: var(--color-primary, #00bfff);
  border: none;
  border-radius: 8px;
  color: #000;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.qc-next:hover,
.qc-submit:hover {
  background: #1ad0ff;
  transform: translateY(-1px);
}
.qc-next:disabled,
.qc-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* error */
.qc-form-error {
  padding: 10px 12px;
  margin-bottom: 12px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 0.88rem;
}

/* fineprint */
.qc-fineprint {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin: 8px 0 0;
  line-height: 1.4;
}
.qc-fineprint a {
  color: var(--color-primary, #00bfff);
}

/* success */
.qc-success {
  text-align: center;
  padding: 12px 0 4px;
}
.qc-success__icon {
  color: #4ade80;
  margin-bottom: 12px;
}
.qc-success h4 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  color: #fff;
}
.qc-success p {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.68);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* mobile */
@media (max-width: 540px) {
  .qc-cards { grid-template-columns: 1fr; }
  .qc-slots { grid-template-columns: 1fr; }
  .qc-step__title { font-size: 1.25rem; }
  .qc-modal__card { max-height: 92vh; }
}
