.cb-flow-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 38%),
    radial-gradient(circle at top right, rgba(0, 0, 0, 0.04), transparent 32%),
    #f1f1f1;
  color: #212529;
}

.cb-flow-body .cb-main {
  flex: 1 0 auto;
  padding-bottom: 0;
}

.cb-flow-body .footer {
  margin-top: 0;
}

.cb-flow-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 84px 0 120px;
}

.cb-flow-shell--narrow {
  width: min(720px, calc(100% - 48px));
}

.cb-flow-hero {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.cb-flow-kicker {
  margin: 0 0 14px;
  font-family: var(--cb-font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
}

.cb-flow-title {
  margin: 0;
  font-family: "Bakbak One", var(--cb-font-display);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #111111;
}

.cb-flow-copy {
  margin: 20px 0 0;
  font-family: var(--cb-font-mono);
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
}

.cb-flow-copy strong {
  color: #111111;
}

.cb-flow-panel {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(6px);
}

.cb-flow-panel--wide {
  max-width: 840px;
}

.cb-flow-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111111 0%, #3b3b3b 100%);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(17, 17, 17, 0.18);
}

.cb-flow-icon--success {
  background: linear-gradient(135deg, #166534 0%, #22c55e 100%);
}

.cb-flow-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cb-flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cb-flow-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.cb-flow-field label {
  font-family: var(--cb-font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.cb-flow-input,
.cb-flow-form input,
.cb-flow-form select,
.cb-flow-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  background: #ffffff;
  color: #111111;
  font-family: var(--cb-font-mono);
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.cb-flow-form textarea,
.cb-flow-input[type="textarea"] {
  min-height: 120px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.cb-flow-input:focus,
.cb-flow-form input:focus,
.cb-flow-form select:focus,
.cb-flow-form textarea:focus {
  outline: none;
  border-color: #111111;
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06);
}

.cb-flow-button,
.cb-flow-form button,
.cb-flow-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 5px;
  background: #111111;
  color: #ffffff;
  font-family: "Bakbak One", var(--cb-font-display);
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.18);
}

.cb-flow-button:hover,
.cb-flow-button:focus,
.cb-flow-form button:hover,
.cb-flow-form button:focus,
.cb-flow-action:hover,
.cb-flow-action:focus {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  opacity: 0.94;
}

.cb-flow-action--secondary {
  background: #ffffff;
  color: #111111;
  border: 1px solid #d1d5db;
  box-shadow: none;
}

.cb-flow-action--secondary:hover,
.cb-flow-action--secondary:focus {
  color: #111111;
  background: #f8fafc;
}

.cb-flow-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.cb-flow-link,
.cb-flow-links a {
  font-family: var(--cb-font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cb-flow-link:hover,
.cb-flow-links a:hover {
  color: #111111;
}

.cb-flow-errors {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  border-radius: 5px;
  background: #fef2f2;
  color: #991b1b;
  font-family: var(--cb-font-mono);
  font-size: 13px;
  line-height: 1.6;
}

.cb-flow-errors ul,
.cb-flow-field ul.errorlist {
  margin: 0;
  padding-left: 18px;
}

.cb-flow-field ul.errorlist {
  color: #b42318;
  font-family: var(--cb-font-mono);
  font-size: 12px;
  line-height: 1.6;
}

.cb-flow-note {
  margin-top: 18px;
  font-family: var(--cb-font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: #6b7280;
  text-align: center;
}

.cb-flow-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cb-flow-actions .cb-flow-action {
  width: auto;
  min-width: 180px;
}

@media (max-width: 767.98px) {
  .cb-flow-shell,
  .cb-flow-shell--narrow {
    width: min(100%, calc(100% - 32px));
    padding: 68px 0 96px;
  }

  .cb-flow-panel {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .cb-flow-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cb-flow-title {
    font-size: clamp(34px, 11vw, 52px);
  }

  .cb-flow-actions {
    flex-direction: column;
  }

  .cb-flow-actions .cb-flow-action {
    width: 100%;
  }
}
