/* Button */
.cpc-btn {
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  background: #0a60ff;
  color: #fff;
  box-shadow: 0 6px 16px rgba(10, 96, 255, 0.25);
  transition: 0.2s;
}
.cpc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(10, 96, 255, 0.35);
}

/* Modal shell */
.cpc-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;
  backdrop-filter: blur(2px);
  overflow: auto;
}
.cpc-dialog {
  width: min(720px, 94%);
  margin: 60px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: cpcIn 0.2s ease;
}
@keyframes cpcIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.cpc-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #666;
  cursor: pointer;
}
.cpc-close:hover {
  color: #111;
}

/* Header */
.cpc-header {
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}
.cpc-header h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.cpc-steps {
  display: flex;
  gap: 8px;
}
.cpc-step {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f4f6fb;
  color: #5b6b82;
}
.cpc-step--active {
  background: #0a60ff;
  color: #fff;
}

/* Body */
.cpc-body {
  padding: 20px 24px;
}

/* Step panes */
.cpc-step-pane {
  display: none;
}
.cpc-pane--active {
  display: block;
}

/* Plans grid */
.cpc-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  display: flex;
  flex-direction: column;
}
.cpc-plan {
  border: 1px solid #e6eaf2;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  transition: 0.2s;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.cpc-plan:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}
.cpc-plan--selected {
  outline: 2px solid #0a60ff;
}
.cpc-plan__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.cpc-plan__head h4 {
  margin: 0;
  font-size: 16px;
}
.cpc-price {
  font-weight: 700;
}
.cpc-plan__desc {
  color: #667085;
  font-size: 13px;
  margin: 4px 0 10px;
}

/* Qty */
.cpc-qty {
  display: flex;
  gap: 6px;
  align-items: center;
  
}
.cpc-qty button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}
.cpc-qty-input {
  width: 52px;
  text-align: center;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f9fafb;
}

/* Footer buttons */
.cpc-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.cpc-next,
.cpc-prev,
.cpc-submit {
  padding: 10px 16px;
  border-radius: 10px;
  border: 0;
  font-weight: 600;
  cursor: pointer;
}
.cpc-next {
  background: #0a60ff;
  color: #fff;
  opacity: 0.6;
}
.cpc-next:enabled {
  opacity: 1;
}
.cpc-prev {
  background: #eef2f7;
}
.cpc-submit {
  background: #ff6a00;
  color: #fff;
}

/* Step 2 layout */
.cpc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.cpc-field label {
  display: block;
  font-weight: 600;
  margin: 2px 0 6px;
}
.cpc-field input,
.cpc-field select {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
}
.cpc-summary {
  background: #f7f8fc;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* Account box */
.cpc-account-box {
  padding: 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #fafbff;
}
.cpc-account-line {
  font-size: 13px;
  color: #374151;
}

/* Messages */
.cpc-msg {
  margin-top: 10px;
  font-weight: 600;
}
.cpc-msg--ok {
  color: #118a2b;
}
.cpc-msg--err {
  color: #c1121f;
}

/* Small screens */
@media (max-width: 600px) {
  .cpc-grid {
    grid-template-columns: 1fr;
  }
}
