/* Contact Popup */
.cp-backdrop {
  position: fixed; inset: 0;
  background: rgba(8, 6, 18, 0.7);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: cp-fade-in 0.18s ease;
}
@keyframes cp-fade-in { from { opacity: 0 } to { opacity: 1 } }

.cp-modal {
  width: 100%; max-width: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  color: #1a1a1a;
  font-family: var(--font-body, "Plus Jakarta Sans", system-ui, sans-serif);
  display: flex; flex-direction: column;
  max-height: 92vh;
  overflow: hidden;
  animation: cp-pop 0.22s cubic-bezier(.2,.7,.3,1.1);
}
@keyframes cp-pop { from { transform: translateY(20px) scale(0.96); opacity: 0 } to { transform: translateY(0) scale(1); opacity: 1 } }

.cp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px 0;
}
.cp-head-left { display: flex; align-items: center; gap: 12px; }
.cp-head-left strong { font-size: 17px; font-weight: 700; color: #1a1a1a; }
.cp-wa-ico {
  width: 38px; height: 38px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
}
.cp-close {
  background: none; border: none; font-size: 22px; color: #888; cursor: pointer;
  width: 28px; height: 28px; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.cp-close:hover { color: #222; }

.cp-steps {
  display: flex; gap: 6px; justify-content: center;
  padding: 14px 22px 4px;
}
.cp-pill {
  width: 22px; height: 4px; border-radius: 4px;
  background: #e6e6e8;
  transition: background 0.2s, width 0.2s;
}
.cp-pill.on { background: #25D366; width: 36px; }

.cp-body {
  padding: 18px 22px 8px;
  overflow-y: auto;
  flex: 1;
}

.cp-fields { display: flex; flex-direction: column; gap: 14px; }

.cp-field { display: flex; flex-direction: column; gap: 6px; }
.cp-field-label { font-size: 13px; font-weight: 700; color: #2a2a2a; }
.cp-hint { font-weight: 400; color: #888; font-size: 12px; }
.cp-req { color: #ff4444; font-weight: 700; }

.cp-field input {
  font: inherit; font-size: 14px;
  padding: 12px 14px;
  border: 1px solid #e1e1e3;
  border-radius: 10px;
  background: #fff;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cp-field input:focus { border-color: #25D366; box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15); }
.cp-field input::placeholder { color: #aaa; }

.cp-group-label { font-size: 14px; font-weight: 700; color: #2a2a2a; margin-bottom: 4px; }

.cp-checks { display: flex; flex-direction: column; gap: 8px; }

.cp-check, .cp-radio {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: #2a2a2a;
  cursor: pointer; padding: 4px 0;
  user-select: none;
}
.cp-check input, .cp-radio input { position: absolute; opacity: 0; pointer-events: none; }

.cp-box, .cp-dot {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 1.5px solid #d2d2d6;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.cp-box { border-radius: 5px; }
.cp-dot { border-radius: 50%; }

.cp-check input:checked ~ .cp-box {
  background: #25D366; border-color: #25D366;
}
.cp-check input:checked ~ .cp-box::after {
  content: ""; width: 6px; height: 10px;
  border: solid white; border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.cp-radio input:checked ~ .cp-dot { border-color: #25D366; }
.cp-radio input:checked ~ .cp-dot::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: #25D366;
}

.cp-radios {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px;
}

.cp-actions {
  padding: 16px 22px 22px;
  display: flex; gap: 10px;
  border-top: 1px solid #f0f0f2;
  background: #fff;
}

.cp-btn {
  flex: 1;
  font: inherit; font-size: 15px; font-weight: 700;
  padding: 14px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
}
.cp-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.cp-btn-primary {
  background: #25D366; color: white;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
.cp-btn-primary:not(:disabled):hover { background: #1fbb59; }
.cp-btn-ghost {
  flex: 0 0 auto; min-width: 90px;
  background: #fff; color: #2a2a2a; border: 1px solid #e1e1e3;
}
.cp-btn-ghost:hover { background: #f7f7f9; }
.cp-btn-send { padding: 14px 20px; font-size: 16px; }

@media (max-width: 480px) {
  .cp-modal { max-width: 100%; max-height: 96vh; border-radius: 14px; }
  .cp-radios { grid-template-columns: 1fr; }
}
