.cr-page {
  display: flex;
  justify-content: center;
  padding: 2.5rem 1rem 3rem;
  min-height: 100vh;
  background: #f6f4f1;
}

.cr-card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid #e7e1d6;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(28, 22, 16, 0.06);
  padding: 1.5rem 1.2rem 1.2rem;
}

.cr-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.cr-title {
  margin: 0;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1c1610;
}

.cr-sub {
  margin: 0.45rem 0 0;
  text-align: center;
  color: #7a7268;
  font-size: 0.86rem;
  line-height: 1.7;
}

.cr-steps {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  margin: 1.15rem -0.2rem 0.35rem;
  padding: 0.15rem 0.2rem 0.75rem;
  border-bottom: 1px solid #eee6dc;
}

.cr-steps::-webkit-scrollbar {
  display: none;
}

.cr-step {
  flex: 0 0 auto;
  width: 9.2rem;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9a9186;
  text-align: right;
  cursor: pointer;
  font: inherit;
}

.cr-step-icon {
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f3f0ea;
  color: #8d8478;
}

.cr-step-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.cr-step-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.cr-step-text strong {
  font-size: 0.78rem;
  font-weight: 700;
  color: inherit;
}

.cr-step-text small {
  font-size: 0.68rem;
  color: #b0a79c;
}

.cr-step.is-active {
  color: #1c1610;
}

.cr-step.is-active .cr-step-icon,
.cr-step.is-done .cr-step-icon {
  background: #c4a574;
  color: #1c1610;
}

.cr-step.is-done {
  color: #5c564c;
}

.cr-panel {
  display: none;
  padding-top: 1rem;
}

.cr-panel.is-active {
  display: block;
  animation: cr-in 280ms ease;
}

@keyframes cr-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.cr-label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.85rem 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #5c564c;
}

.cr-panel .cr-label:first-child,
.cr-panel > .cr-label:first-of-type {
  margin-top: 0;
}

.cr-hint {
  font-weight: 500;
  color: #a08456;
  font-size: 0.72rem;
}

.cr-contact,
.cr-card input,
.cr-card textarea {
  font: inherit;
}

.cr-contact {
  display: flex;
  direction: ltr;
}

.cr-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  border: 1px solid #e4ddd2;
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: #faf8f5;
  color: #5c564c;
  font-weight: 700;
}

.cr-card input,
.cr-card textarea {
  width: 100%;
  border: 1px solid #e4ddd2;
  border-radius: 12px;
  background: #fff;
  color: #1c1610;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  outline: none;
}

.cr-contact input {
  border-radius: 12px;
}

.cr-contact .cr-prefix + input {
  border-radius: 0 12px 12px 0;
}

.cr-card textarea {
  resize: vertical;
  min-height: 8.5rem;
  line-height: 1.7;
}

.cr-card input:focus,
.cr-card textarea:focus,
.cr-contact:focus-within .cr-prefix {
  border-color: #c4a574;
}

.cr-card input:focus,
.cr-card textarea:focus {
  box-shadow: 0 0 0 3px rgba(196, 165, 116, 0.18);
}

.cr-kinds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.cr-kind {
  position: relative;
}

.cr-kind input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
}

.cr-kind span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.55rem;
  border: 1px solid #e4ddd2;
  border-radius: 12px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1c1610;
}

.cr-kind input:checked + span,
.cr-kind input:focus-visible + span {
  border-color: #c4a574;
  background: rgba(196, 165, 116, 0.12);
  box-shadow: 0 0 0 3px rgba(196, 165, 116, 0.16);
}

.cr-error {
  margin: 0.85rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #fff4f2;
  color: #8a2b22;
  font-size: 0.82rem;
  line-height: 1.6;
}

.cr-summary {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cr-summary div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #f1ebe3;
  font-size: 0.88rem;
}

.cr-summary dt {
  color: #7a7268;
}

.cr-summary dd {
  margin: 0;
  font-weight: 700;
  color: #1c1610;
  text-align: left;
}

.cr-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 1rem;
}

.cr-next,
.cr-back {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cr-next {
  border: 0;
  background: #c4a574;
  color: #1c1610;
}

.cr-next:hover {
  background: #d4b584;
}

.cr-next:disabled {
  opacity: 0.7;
  cursor: progress;
}

.cr-back {
  border: 0;
  background: transparent;
  color: #7a7268;
}

.cr-success {
  padding-top: 1.2rem;
  text-align: center;
}

.cr-success h2 {
  margin: 0;
  font-size: 1.15rem;
}

.cr-success p {
  margin: 0.4rem 0 0;
  color: #7a7268;
  line-height: 1.7;
}

.cr-code {
  margin: 0.9rem 0 1rem;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #1c1610;
}

@media (prefers-reduced-motion: reduce) {
  .cr-steps { scroll-behavior: auto; }
  .cr-panel.is-active { animation: none; }
}
