/* Center Registration — public partnership look */
:root {
  --crg-ink: #041412;
  --crg-brand: #0f766e;
  --crg-brand-dark: #0b4f4a;
  --crg-brand-deep: #062e2b;
  --crg-teal: #14b8a6;
  --crg-gold: #f59e0b;
  --crg-gold-dark: #d97706;
  --crg-surface: #ffffff;
  --crg-page: #f3f7f6;
  --crg-text: #0f172a;
  --crg-muted: #64748b;
  --crg-border: #dce7e4;
  --crg-radius: 18px;
  --crg-radius-sm: 12px;
  --crg-font: "Plus Jakarta Sans", system-ui, sans-serif;
  --crg-shadow: 0 24px 60px -28px rgba(6, 46, 43, 0.45);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body.crg-page {
  font-family: var(--crg-font);
  color: var(--crg-text);
  background: var(--crg-page);
  -webkit-font-smoothing: antialiased;
}

.crg-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(340px, 1.08fr);
  align-items: start;
}

/* ---------- Brand panel ---------- */
.crg-brand {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem 2rem 2rem;
  overflow-y: auto;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 50% at 110% -10%, rgba(245, 158, 11, 0.28), transparent 50%),
    radial-gradient(ellipse 70% 45% at -20% 110%, rgba(45, 212, 191, 0.22), transparent 55%),
    linear-gradient(165deg, #0a3d39 0%, var(--crg-brand-deep) 48%, #021512 100%);
  overflow: hidden;
}

.crg-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 75%);
  pointer-events: none;
}

.crg-brand::after {
  content: "";
  position: absolute;
  width: 22rem;
  height: 22rem;
  right: -8rem;
  top: -6rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.35), transparent 68%);
  pointer-events: none;
}

.crg-brand-top,
.crg-brand-mid,
.crg-brand-foot {
  position: relative;
  z-index: 1;
}

.crg-brand-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.crg-logo {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0.35rem 0.7rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.crg-logo img {
  height: 32px;
  width: auto;
  max-width: 148px;
  object-fit: contain;
}

.crg-helpline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  color: #1c1917;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, var(--crg-gold) 0%, var(--crg-gold-dark) 100%);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.28);
  transition: transform 0.15s, box-shadow 0.2s;
}

.crg-helpline:hover {
  color: #1c1917;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.38);
}

.crg-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  margin: 2.25rem 0 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(253, 230, 138, 0.35);
  border-radius: 999px;
}

.crg-brand h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.crg-brand h1 span {
  color: #fde68a;
}

.crg-lede {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.crg-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.crg-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}

.crg-points i {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  font-size: 1rem;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.18);
  border-radius: 10px;
}

.crg-points strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
}

.crg-points span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

.crg-visual {
  margin-top: 1.75rem;
  display: grid;
  place-items: center;
  min-height: 8rem;
}

.crg-visual img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.28));
}

.crg-visual-fallback {
  width: 5.5rem;
  height: 5.5rem;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
}

.crg-brand-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.crg-chip {
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

/* ---------- Form column ---------- */
.crg-form-col {
  display: flex;
  flex-direction: column;
  background: var(--crg-surface);
}

.crg-form-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.75rem;
  border-bottom: 1px solid var(--crg-border);
  background: rgba(255, 255, 255, 0.92);
  position: sticky;
  top: 0;
  z-index: 5;
}

.crg-form-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--crg-brand);
  text-decoration: none;
}

.crg-form-bar a:hover { color: var(--crg-brand-dark); }

.crg-login-link {
  padding: 0.45rem 0.9rem;
  border: 1.5px solid #99f6e4;
  background: #f0fdfa;
  border-radius: 999px;
}

.crg-form-wrap {
  flex: 1;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.75rem 1.75rem 2.5rem;
}

.crg-form-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.crg-form-head p {
  margin: 0 0 1.5rem;
  color: var(--crg-muted);
  font-size: 0.9rem;
}

.crg-section {
  margin-bottom: 1.35rem;
  padding: 1.15rem 1.15rem 0.35rem;
  border: 1px solid var(--crg-border);
  border-radius: var(--crg-radius);
  background: #fbfdfe;
}

.crg-section-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  font-size: 0.92rem;
  font-weight: 800;
}

.crg-step {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: var(--crg-brand);
  border-radius: 8px;
}

.crg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.crg-field {
  position: relative;
  margin-bottom: 1rem;
}

.crg-field--full { grid-column: 1 / -1; }

.crg-field .form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--crg-text);
}

.crg-field .form-control,
.crg-field textarea.form-control {
  width: 100%;
  padding: 0.72rem 0.95rem 0.72rem 2.55rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--crg-text);
  background: #fff;
  border: 1.5px solid var(--crg-border);
  border-radius: var(--crg-radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.crg-field textarea.form-control {
  padding-left: 0.95rem;
  min-height: 5.5rem;
  resize: vertical;
}

.crg-field .form-control:focus,
.crg-field textarea.form-control:focus {
  outline: none;
  border-color: var(--crg-teal);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16);
}

.crg-field__icon {
  position: absolute;
  left: 0.9rem;
  top: 2.35rem;
  color: var(--crg-muted);
  pointer-events: none;
}

.crg-field:focus-within .crg-field__icon { color: var(--crg-brand); }

.crg-toggle-pwd {
  position: absolute;
  right: 0.55rem;
  top: 2.15rem;
  border: 0;
  background: transparent;
  color: var(--crg-muted);
  padding: 0.35rem;
  border-radius: 8px;
  line-height: 1;
  cursor: pointer;
}

.crg-toggle-pwd:hover {
  color: var(--crg-brand);
  background: rgba(15, 118, 110, 0.08);
}

.crg-field--password .form-control { padding-right: 2.6rem; }

.crg-drops {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.crg-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 8.25rem;
  padding: 1rem 0.85rem;
  text-align: center;
  cursor: pointer;
  background: #fff;
  border: 1.5px dashed #b7d6d1;
  border-radius: 14px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.crg-drop:hover,
.crg-drop:focus-within {
  border-color: var(--crg-teal);
  background: #f0fdfa;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

.crg-drop.is-filled {
  border-style: solid;
  border-color: var(--crg-brand);
  background: #ecfdf5;
}

.crg-drop.is-error {
  border-color: #dc2626;
  background: #fef2f2;
}

.crg-drop__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.crg-drop i {
  font-size: 1.35rem;
  color: var(--crg-brand);
}

.crg-drop__title {
  font-size: 0.8rem;
  font-weight: 800;
}

.crg-drop__hint {
  font-size: 0.7rem;
  color: var(--crg-muted);
}

.crg-drop__name {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--crg-brand-dark);
  word-break: break-all;
}

.crg-recap { margin: 0.25rem 0 1.1rem; }

.crg-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.2rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--crg-teal) 0%, var(--crg-brand) 100%);
  border: 0;
  border-radius: var(--crg-radius-sm);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.28);
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.crg-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.34);
}

.crg-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.crg-note {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--crg-muted);
}

.crg-note a {
  color: var(--crg-brand);
  font-weight: 700;
  text-decoration: none;
}

.crg-footer {
  margin-top: auto;
  padding: 0.9rem 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--crg-muted);
}

.crg-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 20, 18, 0.42);
  backdrop-filter: blur(4px);
}

.crg-loader.show { display: flex; }

.crg-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: crg-spin 0.7s linear infinite;
}

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

@media (max-width: 960px) {
  .crg-shell { grid-template-columns: 1fr; }
  .crg-brand {
    position: relative;
    height: auto;
    padding: 1.15rem 1.25rem 1.5rem;
  }
  .crg-brand h1 { font-size: 1.55rem; }
  .crg-lede { margin-bottom: 1.1rem; }
  .crg-visual,
  .crg-points { display: none; }
  .crg-badge { margin-top: 1.15rem; }
  .crg-form-wrap { padding: 1.25rem 1.15rem 2rem; }
}

@media (max-width: 640px) {
  .crg-grid,
  .crg-drops { grid-template-columns: 1fr; }
  .crg-form-bar { padding: 0.9rem 1.1rem; }
  .crg-section { padding: 1rem 0.9rem 0.2rem; }
}
