/* ── Contact Popup ─────────────────────────────────────────────── */
.cp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cp-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cp-modal {
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 36px 36px;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s ease;
  scrollbar-width: none;
}
.cp-modal::-webkit-scrollbar { display: none; }
.cp-overlay.open .cp-modal {
  transform: translateY(0) scale(1);
}
.cp-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: none;
  color: #aaa;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.cp-close:hover { background: rgba(255,255,255,0.13); color: #fff; }

.cp-header { margin-bottom: 28px; }
.cp-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a855f7;
  font-weight: 700;
  margin-bottom: 6px;
}
.cp-header h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}
.cp-header p {
  font-size: 0.875rem;
  color: #888;
  margin: 0;
}

.cp-form { display: flex; flex-direction: column; gap: 16px; }
.cp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cp-field { display: flex; flex-direction: column; gap: 6px; }
.cp-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ccc;
  letter-spacing: 0.02em;
}
.cp-field label span { color: #a855f7; }
.cp-field input,
.cp-field select,
.cp-field textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.875rem;
  color: #fff;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.cp-field select option { background: #1a1a1a; color: #fff; }
.cp-field input:focus,
.cp-field select:focus,
.cp-field textarea:focus {
  border-color: #a855f7;
  background: rgba(168,85,247,0.07);
}
.cp-field textarea { resize: vertical; min-height: 90px; }

.cp-services-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ccc;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.cp-services-label span { color: #a855f7; }
.cp-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cp-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #bbb;
  cursor: pointer;
  user-select: none;
}
.cp-check input[type="radio"],
.cp-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  accent-color: #a855f7;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
}
.cp-check input[type="checkbox"]:focus { outline: none; }

.cp-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.cp-submit {
  padding: 14px;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}
.cp-submit.primary {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}
.cp-submit.primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(124,58,237,0.5);
}
.cp-submit.whatsapp {
  background: linear-gradient(135deg, #128c7e, #25d366);
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cp-submit.whatsapp:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(37,211,102,0.45);
}
.cp-submit:active { transform: scale(0.98); }
/* ── WhatsApp button tooltip ── */
.cp-wa-wrap {
  position: relative;
  grid-column: 1 / -1;
}
.cp-wa-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1a1a1a;
  border: 1px solid rgba(37,211,102,0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: #ccc;
  line-height: 1.55;
  width: 280px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 10;
}
.cp-wa-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1a1a1a;
}
.cp-wa-wrap:hover .cp-wa-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 420px) {
  .cp-btn-row { grid-template-columns: 1fr; }
  .cp-wa-tooltip { width: 220px; }
}

/* Success state */
.cp-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0 8px;
  gap: 16px;
}
.cp-success.show { display: flex; }
.cp-form.hide { display: none; }
.cp-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed22, #a855f722);
  border: 2px solid #a855f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.cp-success h3 { font-size: 1.4rem; font-weight: 800; color: #fff; margin: 0; }
.cp-success p { font-size: 0.9rem; color: #888; margin: 0; line-height: 1.6; }

@media (max-width: 520px) {
  .cp-modal { padding: 28px 20px 24px; }
  .cp-row { grid-template-columns: 1fr; }
  .cp-checkboxes { grid-template-columns: 1fr; }
  .cp-header h2 { font-size: 1.3rem; }
}
