.cg-body {
  background: var(--midnight);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.cg-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 40px 24px;
}

.cg-step {
  position: absolute;
  width: 100%;
  max-width: 700px;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.2, 0, 0, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cg-step.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  position: relative;
}

.cg-title {
  font-family: var(--disp);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.cg-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 500px;
}

.cg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  width: 100%;
}

.cg-card {
  background: rgba(14,28,64,.5);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cg-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46,107,255,.08), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cg-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
}

.cg-card:hover::after {
  opacity: 1;
}

.cg-card h3 {
  font-family: var(--disp);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.cg-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.cg-textarea {
  width: 100%;
  background: rgba(14,28,64,.5);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  min-height: 140px;
  resize: vertical;
  transition: border-color 0.3s;
  margin-bottom: 24px;
}

.cg-textarea:focus {
  outline: none;
  border-color: var(--cyan);
}

.cg-input {
  width: 100%;
  background: rgba(14,28,64,.5);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.cg-input:focus {
  outline: none;
  border-color: var(--cyan);
}

.cg-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  text-align: left;
}

.cg-full {
  grid-column: 1 / -1;
}

.cg-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.cg-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  justify-content: center;
  width: 100%;
}

.cg-loader {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(46,107,255,.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 24px;
}

.cg-term {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--gold);
  min-height: 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.cg-success-icon {
  width: 64px;
  height: 64px;
  background: var(--azure);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 auto 24px;
  animation: pop 0.4s cubic-bezier(0.2, 0, 0, 1) forwards;
}

.cg-success-icon svg {
  width: 32px;
  height: 32px;
}

@media(max-width: 600px) {
  .cg-form-grid { grid-template-columns: 1fr; }
}
