/* ── Contact Form Popup ── */

.cp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 20, 0.76);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cp-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cp-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.cp-overlay.open .cp-modal {
  transform: translateY(0) scale(1);
}
.cp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  background: rgba(15,10,30,0.07);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(15,10,30,0.45);
  font-size: 16px;
  line-height: 1;
  padding: 0;
  transition: background 0.18s, color 0.18s;
}
.cp-close:hover {
  background: rgba(15,10,30,0.13);
  color: #0F0A1E;
}
.cp-tag {
  display: inline-block;
  background: rgba(124,58,237,0.09);
  color: #7C3AED;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 3px 12px;
  margin-bottom: 12px;
}
.cp-title {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #0F0A1E;
  margin: 0 0 5px;
  line-height: 1.25;
}
.cp-sub {
  font-size: 13.5px;
  color: rgba(15,10,30,0.48);
  margin: 0 0 26px;
}
.cp-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cp-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: rgba(15,10,30,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.cp-field input,
.cp-field select,
.cp-field textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(15,10,30,0.04);
  border: 1.5px solid rgba(15,10,30,0.09);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #0F0A1E;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.cp-field input:focus,
.cp-field select:focus,
.cp-field textarea:focus {
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.cp-field input::placeholder,
.cp-field textarea::placeholder { color: rgba(15,10,30,0.28); }
.cp-field textarea { resize: vertical; min-height: 96px; }
.cp-field input[type="date"],
.cp-field input[type="time"] { cursor: pointer; }
.cp-field input[type="date"]::-webkit-calendar-picker-indicator,
.cp-field input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0.4;
  cursor: pointer;
  filter: none;
}
.cp-field input[type="date"]::-webkit-calendar-picker-indicator:hover,
.cp-field input[type="time"]::-webkit-calendar-picker-indicator:hover { opacity: 0.75; }
.cp-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}
.cp-submit {
  margin-top: 6px;
  width: 100%;
  background: #7C3AED;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s;
  letter-spacing: 0.01em;
}
.cp-submit:hover:not(:disabled) { background: #6D28D9; }
.cp-submit:active:not(:disabled) { transform: scale(0.98); }
.cp-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.cp-error-msg {
  font-size: 12.5px;
  color: #DC2626;
  background: rgba(220,38,38,0.07);
  border-radius: 8px;
  padding: 9px 14px;
  display: none;
}
.cp-success {
  display: none;
  text-align: center;
  padding: 24px 0 8px;
}
.cp-success-icon {
  width: 58px;
  height: 58px;
  background: rgba(5,150,105,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.cp-success-icon svg { color: #059669; }
.cp-success h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0F0A1E;
  margin: 0 0 8px;
}
.cp-success p {
  font-size: 14px;
  color: rgba(15,10,30,0.48);
  margin: 0;
  max-width: 320px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .cp-modal { padding: 28px 20px 24px; }
  .cp-row { grid-template-columns: 1fr; }
  .cp-title { font-size: 21px; }
}
