@charset "UTF-8";
.registration-shell {
  /* Mobile & Email Verification step */
  /* Siblings — one bordered card per sibling, added/removed dynamically. */
  /* Health — inoculation checkboxes and yes/no toggle switches. */
  /* Declaration */
}
.registration-shell {
  --brand-green: #1a4d3a;
  --brand-green-dark: #0f3326;
  --brand-gold: #e3a72f;
  --brand-gold-light: #f6cd6b;
  --brand-cream: #faf7ee;
  --brand-cream-dark: #f1ecdb;
  --brand-text: #2b2b28;
  --brand-muted: #6b6b64;
  display: block;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--brand-text);
  background: var(--brand-cream);
}
.registration-shell .registration-container {
  max-width: 45%;
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 1024px) {
  .registration-shell .registration-container {
    max-width: 100%;
  }
}
.registration-shell .registration-header {
  background: linear-gradient(120deg, var(--brand-green-dark), var(--brand-green));
  padding: 20px 0;
  color: #fff;
}
.registration-shell .registration-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.registration-shell .registration-back:hover {
  color: #fff;
}
.registration-shell .registration-header h1 {
  margin: 0;
  font-size: 1.4rem;
}
.registration-shell .registration-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 51, 38, 0.08);
  padding: 32px 24px;
  margin: 28px 0 60px;
}
.registration-shell .step-heading {
  text-align: center;
  margin-bottom: 28px;
}
.registration-shell .step-heading .eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-gold);
  margin-bottom: 8px;
}
.registration-shell .step-heading h2 {
  margin: 0 0 8px;
  color: var(--brand-green-dark);
  font-size: 1.5rem;
}
.registration-shell .step-heading p {
  margin: 0;
  color: var(--brand-muted);
}
.registration-shell .landing-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.registration-shell .landing-login-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px dashed var(--brand-gold);
  border-radius: 10px;
  background: #fffaf0;
  font-size: 15px;
  color: var(--brand-text);
  text-align: center;
}
.registration-shell .landing-login-note > i {
  font-size: 22px;
  color: var(--brand-gold);
}
.registration-shell .landing-login-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  background: var(--brand-green);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.registration-shell .landing-login-link:hover {
  background: var(--brand-green-dark);
}
.registration-shell .landing-login-sub {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--brand-muted);
}
.registration-shell .landing-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 22px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.registration-shell .landing-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 51, 38, 0.12);
}
.registration-shell .landing-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.registration-shell .landing-btn i {
  font-size: 1.6rem;
  margin-bottom: 4px;
}
.registration-shell .landing-btn-title {
  font-weight: 700;
  font-size: 1.05rem;
}
.registration-shell .landing-btn-subtitle {
  font-size: 0.82rem;
  opacity: 0.85;
}
.registration-shell .landing-btn-instructions {
  background: #d7f2df;
  color: var(--brand-green-dark);
}
.registration-shell .landing-btn-register {
  background: #dbe6fb;
  color: #1e3a8a;
}
.registration-shell .account-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--brand-cream);
  border: 1px solid var(--brand-cream-dark);
  font-size: 14px;
}
.registration-shell .account-bar i {
  margin-right: 4px;
}
.registration-shell .account-bar-sep {
  margin: 0 6px;
  color: var(--brand-muted);
}
.registration-shell .account-status {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #fdf0d2;
  color: #7a4d00;
  font-size: 12px;
  font-weight: 600;
}
.registration-shell .credentials-box {
  border: 1px solid var(--brand-gold);
  background: #fffaf0;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.registration-shell .credentials-title {
  font-weight: 700;
  color: var(--brand-green-dark);
  margin-bottom: 8px;
}
.registration-shell .credentials-title i {
  margin-right: 4px;
}
.registration-shell .credentials-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 4px 0;
}
.registration-shell .credentials-row span {
  min-width: 90px;
  color: var(--brand-muted);
}
.registration-shell .credentials-row strong {
  font-size: 17px;
  letter-spacing: 0.5px;
  color: var(--brand-text);
}
.registration-shell .credentials-row small {
  color: var(--brand-muted);
}
.registration-shell .draft-message {
  color: var(--brand-green);
  font-weight: 600;
  margin: 8px 0 12px;
}
.registration-shell .draft-message i {
  margin-right: 4px;
}
.registration-shell .form-actions {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.registration-shell .form-actions .btn-primary {
  flex: 1 1 260px;
}
.registration-shell .preview-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}
.registration-shell .preview-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--brand-muted);
}
.registration-shell .preview-photo img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-cream-dark);
}
.registration-shell .preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 20px;
  margin: 0 0 8px;
}
.registration-shell .preview-item {
  border-bottom: 1px dashed var(--brand-cream-dark);
  padding-bottom: 6px;
}
.registration-shell .preview-item dt {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-muted);
  margin-bottom: 2px;
}
.registration-shell .preview-item dd {
  margin: 0;
  font-size: 14px;
  color: var(--brand-text);
  word-break: break-word;
}
.registration-shell .form-field {
  margin-bottom: 16px;
}
.registration-shell .form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-text);
  margin-bottom: 6px;
}
.registration-shell .form-field input,
.registration-shell .form-field select,
.registration-shell .form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd8c8;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
}
.registration-shell .form-field input:focus,
.registration-shell .form-field select:focus,
.registration-shell .form-field textarea:focus {
  outline: none;
  border-color: var(--brand-green);
}
.registration-shell .required {
  color: #c0392b;
}
.registration-shell .field-hint {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--brand-muted);
}
.registration-shell .field-error {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: #c0392b;
}
.registration-shell .form-section-title {
  font-weight: 700;
  color: var(--brand-green-dark);
  margin: 24px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-gold);
}
.registration-shell .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 20px;
}
.registration-shell .photo-upload-row {
  display: flex;
  margin-bottom: 12px;
}
.registration-shell .mobile-verify-row,
.registration-shell .otp-inline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.registration-shell .mobile-verify-row input,
.registration-shell .otp-inline-row input {
  flex: 1 1 200px;
  padding: 10px 12px;
  border: 1px solid #ddd8c8;
  border-radius: 8px;
  font-size: 0.95rem;
}
.registration-shell .otp-inline-row {
  margin-top: 8px;
}
.registration-shell .mobile-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1a7d3a;
  font-weight: 700;
  font-size: 0.9rem;
}
.registration-shell .mobile-verified-badge i {
  font-size: 1.2rem;
}
.registration-shell .verify-step {
  max-width: 560px;
  margin: 0 auto;
}
.registration-shell .verify-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}
.registration-shell .otp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin-top: 6px;
}
.registration-shell .otp-actions .field-hint {
  margin: 0;
}
.registration-shell .otp-actions .btn-link {
  padding: 2px 0;
  font-size: 0.85rem;
}
.registration-shell .email-note {
  margin: 6px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c0392b;
}
.registration-shell .verify-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}
.registration-shell .verify-status {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}
.registration-shell .section-hint {
  margin: -6px 0 12px;
}
.registration-shell .sibling-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.registration-shell .sibling-row {
  padding: 14px 16px 2px;
  border: 1px solid #ece9df;
  border-radius: 10px;
  background: #fcfbf7;
}
.registration-shell .sibling-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.registration-shell .sibling-row-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand-green-dark);
}
.registration-shell .sibling-remove {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  color: #c0392b;
  font-size: 0.85rem;
}
.registration-shell .sibling-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .registration-shell .sibling-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.registration-shell .add-sibling-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}
.registration-shell .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 6px;
}
.registration-shell .form-field .checkbox-option,
.registration-shell .checkbox-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}
.registration-shell .form-field .checkbox-option input[type=checkbox],
.registration-shell .checkbox-option input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand-green);
  flex-shrink: 0;
}
.registration-shell .form-field .switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  cursor: pointer;
}
.registration-shell .form-field input.switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 42px;
  height: 24px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 999px;
  background: #b9b5aa;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.registration-shell .form-field input.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.registration-shell .form-field input.switch:checked {
  background: var(--brand-green);
}
.registration-shell .form-field input.switch:checked::after {
  transform: translateX(18px);
}
.registration-shell .form-field input.switch:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}
.registration-shell .declaration-box {
  padding: 16px 18px;
  border: 1px solid #ece9df;
  border-left: 4px solid var(--brand-gold);
  border-radius: 10px;
  background: #fcfbf7;
}
.registration-shell .declaration-box p {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--brand-text);
}
.registration-shell .declaration-accept {
  font-weight: 600;
}
.registration-shell .form-field input.readonly-field {
  background: #f4f2ea;
  color: var(--brand-text);
  cursor: default;
}
.registration-shell .form-field input.readonly-field:focus {
  border-color: #ddd8c8;
}
.registration-shell .photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.registration-shell .photo-upload img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-gold-light);
}
.registration-shell .photo-upload i {
  font-size: 72px;
  color: var(--brand-muted);
  line-height: 1;
}
.registration-shell .photo-upload-btn {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-green);
  cursor: pointer;
  text-decoration: underline;
}
.registration-shell .document-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.registration-shell .suggestion-chip {
  border: 1px solid var(--brand-gold);
  background: var(--brand-cream-dark);
  color: var(--brand-green-dark);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  cursor: pointer;
}
.registration-shell .document-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.registration-shell .document-add-row .document-title-input {
  flex: 1 1 220px;
  padding: 10px 12px;
  border: 1px solid #ddd8c8;
  border-radius: 8px;
  font-size: 0.9rem;
}
.registration-shell .document-add-row .document-file-input {
  flex: 1 1 200px;
}
.registration-shell .btn-secondary {
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--brand-green);
  background: #fff;
  color: var(--brand-green);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.registration-shell .btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.registration-shell .document-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.registration-shell .document-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.registration-shell .document-list li span {
  flex: 1;
}
.registration-shell .document-list li a {
  color: var(--brand-green);
  font-weight: 600;
  font-size: 0.85rem;
}
.registration-shell .form-field-wide {
  grid-column: 1/-1;
}
.registration-shell .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: var(--brand-green);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  margin-top: 8px;
  transition: background 0.15s ease;
}
.registration-shell .btn-primary:hover:not(:disabled) {
  background: var(--brand-green-dark);
}
.registration-shell .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.registration-shell .btn-link {
  background: none;
  border: none;
  color: var(--brand-green);
  font-weight: 600;
  cursor: pointer;
  padding: 6px;
}
.registration-shell .spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.registration-shell .registration-step-success {
  text-align: center;
  padding: 20px 0;
}
.registration-shell .registration-step-success i {
  font-size: 3.5rem;
  color: var(--brand-green);
  margin-bottom: 12px;
}
.registration-shell .registration-step-success h2 {
  color: var(--brand-green-dark);
  margin: 0 0 8px;
}
.registration-shell .application-number {
  display: inline-block;
  margin: 16px 0;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--brand-cream-dark);
  color: var(--brand-green-dark);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}
.registration-shell .success-note {
  color: var(--brand-muted);
  max-width: 420px;
  margin: 0 auto 20px;
}
.registration-shell .payment-summary {
  border: 1px solid var(--brand-cream-dark);
  background: var(--brand-cream);
  border-radius: 10px;
  padding: 6px 18px;
  margin-bottom: 20px;
}
.registration-shell .payment-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--brand-cream-dark);
  color: var(--brand-muted);
}
.registration-shell .payment-summary-row span {
  flex-shrink: 0;
}
.registration-shell .payment-summary-row strong {
  min-width: 0;
  color: var(--brand-text);
  text-align: right;
  overflow-wrap: anywhere;
}
.registration-shell .payment-summary-row:last-child {
  border-bottom: none;
}
.registration-shell .payment-summary-total strong {
  color: var(--brand-green-dark);
  font-size: 1.15rem;
}
.registration-shell .payment-method-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  color: var(--brand-text);
}
.registration-shell .payment-method-option.selected {
  border-color: var(--brand-green);
  background: var(--brand-cream);
}
.registration-shell .payment-method-option input {
  accent-color: var(--brand-green);
}
.registration-shell .payment-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
@media (max-width: 600px) {
  .registration-shell .registration-container {
    padding: 0 12px;
  }
  .registration-shell .registration-header {
    padding: 16px 0;
  }
  .registration-shell .registration-header h1 {
    font-size: 1.2rem;
  }
  .registration-shell .step-heading {
    margin-bottom: 20px;
  }
  .registration-shell .step-heading h2 {
    font-size: 1.35rem;
  }
  .registration-shell .payment-summary {
    padding: 4px 14px;
  }
  .registration-shell .payment-summary-row {
    font-size: 0.9rem;
  }
  .registration-shell .payment-actions,
  .registration-shell .verify-actions {
    flex-direction: column-reverse;
  }
  .registration-shell .verify-status {
    justify-content: center;
    text-align: center;
  }
  .registration-shell .landing-actions {
    grid-template-columns: 1fr;
  }
  .registration-shell .form-grid,
  .registration-shell .sibling-grid {
    grid-template-columns: 1fr;
  }
  .registration-shell .registration-card {
    padding: 22px 16px;
    margin: 16px 0 40px;
  }
}

/* ------------------------------------------------------------------
 * Hand-written additions (not compiled from the Angular SCSS above)
 * ------------------------------------------------------------------ */

/* The Instructions button is a link to the PDF here */
.registration-shell a.landing-btn {
  text-decoration: none;
}

.registration-shell .registration-step select option[hidden] {
  display: none;
}

/* Photo crop dialog — square crop with a round guide, replacing ngx-image-cropper */
.registration-shell .crop-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 30, 22, .6);
}

.registration-shell .crop-dialog {
  width: 100%;
  max-width: 380px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}

.registration-shell .crop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.registration-shell .crop-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--brand-green-dark);
}

.registration-shell .crop-close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--brand-cream);
  color: var(--brand-text);
  font-size: 1.1rem;
  cursor: pointer;
}

.registration-shell .crop-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: #222;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.registration-shell .crop-stage:active {
  cursor: grabbing;
}

.registration-shell .crop-stage img {
  position: absolute;
  max-width: none;
  pointer-events: none;
}

/* Everything outside the circle is dimmed */
.registration-shell .crop-frame {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, .5);
  border: 2px solid rgba(255, 255, 255, .85);
  pointer-events: none;
}

.registration-shell .crop-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--brand-muted);
}

.registration-shell .crop-zoom input {
  flex: 1;
  accent-color: var(--brand-green);
}

.registration-shell .crop-hint {
  margin: 8px 0 0;
  text-align: center;
}

.registration-shell .crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

/* Small laptops: 45% of the screen is too narrow for the two-column form, so keep at least 760px */
@media (min-width: 1025px) {
  .registration-shell .registration-container {
    max-width: max(45%, 760px);
  }
}

/* ---------------------------------------------------------------- applicant portal */

/* Online admission closed / not open yet (Config Settings) */
.registration-shell .admission-closed {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: #fdecea;
  border: 1px solid #f5c2bd;
  color: #7a1f16;
}
.registration-shell .admission-closed i {
  font-size: 22px;
  line-height: 1.2;
}
.registration-shell .admission-closed strong {
  display: block;
}
.registration-shell .admission-closed span {
  font-size: 14px;
}
.registration-shell .landing-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.registration-shell .admission-closed-inline {
  color: #7a1f16;
}
.registration-shell .account-bar-actions {
  display: flex;
  gap: 14px;
}

/* My Applications */
.registration-shell .application-list {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}
.registration-shell .application-card {
  border: 1px solid var(--brand-cream-dark);
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 51, 38, 0.05);
}
.registration-shell .application-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.registration-shell .application-card-head h3 {
  margin: 0;
  font-size: 18px;
  color: var(--brand-green-dark);
}
.registration-shell .application-card-number {
  font-size: 13px;
  color: var(--brand-muted);
}
.registration-shell .application-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
}
.registration-shell .status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.registration-shell .status-info { background: #dbe6fb; color: #1e3a8a; }
.registration-shell .status-success { background: #d7f2df; color: #14532d; }
.registration-shell .status-warning { background: #fdf0d2; color: #7a4d00; }
.registration-shell .status-danger { background: #fdecea; color: #7a1f16; }
.registration-shell .status-muted { background: #eeeeea; color: #4b4b46; }
.registration-shell .application-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 20px;
  margin-bottom: 10px;
}
.registration-shell .application-info-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--brand-cream-dark);
  font-size: 14px;
}
.registration-shell .application-info-row span {
  color: var(--brand-muted);
}
.registration-shell .application-info-row strong {
  text-align: right;
}
.registration-shell .application-note {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
}
.registration-shell .application-note p {
  margin: 4px 0 0;
}
.registration-shell .application-note-success { background: #eefaf2; border: 1px solid #bfe6cc; }
.registration-shell .application-note-warning { background: #fffaf0; border: 1px solid #f4d9a0; }
.registration-shell .application-note-danger { background: #fdf3f2; border: 1px solid #f5c2bd; }
.registration-shell .application-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.registration-shell .btn-small {
  padding: 7px 12px;
  font-size: 13px;
}
.registration-shell .application-history {
  list-style: none;
  margin: 12px 0 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--brand-gold);
}
.registration-shell .application-history li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
}
.registration-shell .application-history li::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-gold);
}
.registration-shell .application-history li span {
  color: var(--brand-muted);
}
.registration-shell .dashboard-add {
  padding-top: 8px;
  border-top: 1px solid var(--brand-cream-dark);
}

@media (max-width: 600px) {
  .registration-shell .application-info {
    grid-template-columns: 1fr;
  }
  .registration-shell .application-card-actions > * {
    flex: 1 1 100%;
  }
}

/* ---------------------------------------------------------------- printable form / receipt */

.print-area {
  display: none;
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  body.printing-registration .site > *:not(main):not(.registration-shell),
  body.printing-registration .site-header,
  body.printing-registration .site-footer,
  body.printing-registration .registration-page,
  body.printing-registration .back-to-top,
  body.printing-registration .crop-overlay {
    display: none !important;
  }

  body.printing-registration .print-area {
    display: block;
    color: #111;
    font-family: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 11.5px;
    line-height: 1.4;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* The page: a framed sheet like a printed admission form */
  .print-page {
    padding: 14px 16px 18px;
    border: 2px solid #1a4d3a;
  }

  /* Letterhead — logo, school name, address, contact, all centred, then the title band */
  .print-page .print-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 3px double #1a4d3a;
  }
  .print-page .print-header img {
    max-height: 90px;
    max-width: 340px;
    margin-bottom: 4px;
    object-fit: contain;
  }
  .print-page .print-header h1 {
    margin: 0;
    color: #0f3326;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
  }
  .print-page .print-header-address {
    margin: 3px 0 0;
    font-size: 11.5px;
  }
  .print-page .print-header-contact {
    margin: 2px 0 0;
    color: #444;
    font-size: 11px;
    white-space: pre;
  }
  .print-page .print-header h2 {
    margin: 10px 0 0;
    padding: 5px 28px;
    border-radius: 4px;
    background: #1a4d3a;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
  }

  /* Application / receipt details as labelled boxes, photos beside them */
  .print-page .print-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 4px;
  }
  .print-page .print-meta {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 12px;
    border: 1px solid #777;
  }
  .print-page .print-meta > div {
    padding: 6px 8px;
    border-right: 1px solid #777;
  }
  .print-page .print-meta > div:last-child {
    border-right: 0;
  }
  .print-page .print-meta span {
    display: block;
    color: #555;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .4px;
  }
  .print-page .print-meta strong {
    font-size: 12.5px;
    font-weight: 600;
  }

  .print-page .preview-photos {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
  }
  .print-page .preview-photo {
    gap: 0;
    color: #111;
    text-align: center;
  }
  .print-page .preview-photo img {
    display: block;
    width: 84px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #555;
    border-radius: 0;
    padding: 2px;
    background: #fff;
  }
  .print-page .preview-photo span {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
  }

  /* Each section: a shaded title band, then label / value boxes two per row */
  .print-page .preview-section {
    margin-bottom: 10px;
    break-inside: avoid;
  }
  .print-page .form-section-title {
    margin: 10px 0 0;
    padding: 4px 8px;
    border: 1px solid #1a4d3a;
    background: #e8efe9;
    color: #0f3326;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    break-after: avoid;
  }
  .print-page .preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin: 0;
    border-left: 1px solid #999;
  }
  .print-page .preview-item {
    display: grid;
    grid-template-columns: 42% 58%;
    padding: 0;
    border-right: 1px solid #999;
    border-bottom: 1px solid #999;
  }
  .print-page .preview-item dt {
    margin: 0;
    padding: 4px 6px;
    font-size: inherit;
    border-right: 1px solid #ccc;
    background: #f6f6f3;
    color: #333;
    font-weight: 500;
  }
  .print-page .preview-item dd {
    margin: 0;
    padding: 4px 6px;
    color: #111;
    font-size: inherit;
    font-weight: 600;
    overflow-wrap: anywhere;
  }

  .print-page .document-list {
    margin: 0;
    padding: 2px 8px;
    border: 1px solid #999;
    border-top: 0;
  }
  .print-page .document-list li {
    padding: 4px 0;
    border-bottom: 1px dotted #bbb;
  }
  .print-page .document-list li:last-child {
    border-bottom: 0;
  }
  .print-page .document-list li a {
    display: none;
  }

  /* Declaration, signature lines and office box */
  .print-page .print-declaration {
    margin: 14px 0 0;
    font-style: italic;
  }
  .print-page .print-signatures {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 36px;
  }
  .print-page .print-signatures > div {
    flex: 1 1 0;
    padding-top: 4px;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
  }
  .print-page .print-office {
    margin-top: 18px;
    padding: 8px 12px 10px;
    border: 1px dashed #777;
    break-inside: avoid;
  }
  .print-page .print-office-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
  }
  .print-page .print-office .print-signatures {
    margin-top: 30px;
  }

  /* Receipt details table */
  .print-page .print-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 14px;
  }
  .print-page .print-table th,
  .print-page .print-table td {
    border: 1px solid #999;
    padding: 7px 10px;
    text-align: left;
    vertical-align: top;
  }
  .print-page .print-table th {
    width: 38%;
    background: #f6f6f3;
    font-weight: 500;
  }
  .print-page .print-table td {
    font-weight: 600;
  }
  .print-page .print-note {
    margin-top: 16px;
    color: #444;
    font-style: italic;
    text-align: center;
  }
}

/* Slot documents and school messages on My Applications */
.registration-shell .application-note-docs ul {
  margin: 4px 0 0;
  padding-left: 20px;
}
.registration-shell .application-messages {
  margin: 8px 0;
  border: 1px solid var(--brand-cream-dark);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
}
.registration-shell .application-messages summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-green-dark);
}
.registration-shell .application-messages summary .status-badge {
  margin-left: 8px;
}
.registration-shell .application-message {
  padding: 8px 0;
  border-top: 1px dashed var(--brand-cream-dark);
  margin-top: 8px;
}
.registration-shell .application-message-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
.registration-shell .application-message-head span {
  color: var(--brand-muted);
  font-size: 13px;
}
.registration-shell .application-message p {
  margin: 4px 0 0;
  white-space: pre-line;
}

/* Choose your admission round slot */
.registration-shell .slot-options {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
.registration-shell .slot-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--brand-cream-dark);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.registration-shell .slot-option input {
  margin-top: 4px;
}
.registration-shell .slot-option.selected {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 2px rgba(26, 77, 58, 0.15);
}
.registration-shell .slot-option.is-current {
  cursor: default;
  background: var(--brand-cream);
}
.registration-shell .slot-option-body {
  flex: 1;
  min-width: 0;
}
.registration-shell .slot-option-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--brand-green-dark);
}
.registration-shell .slot-option-name {
  font-size: 14px;
  color: var(--brand-muted);
}
.registration-shell .slot-option-docs {
  margin-top: 4px;
  font-size: 13px;
}

/* ---------------------------------------------------------------- My Applications: clearer layout */

/* A wider page while the dashboard is showing, so each application card has room */
@media (min-width: 1025px) {
  .registration-shell .registration-container:has([data-step="dashboard"]:not([hidden])) {
    max-width: max(62%, 980px);
  }
}

.registration-shell [data-step="dashboard"] {
  font-family: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;
}

.registration-shell [data-step="dashboard"] .account-bar {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
}

.registration-shell [data-step="dashboard"] .account-bar i {
  color: var(--brand-green);
  font-size: 18px;
  vertical-align: -3px;
}

.registration-shell [data-step="dashboard"] .account-bar-actions .btn-link {
  font-weight: 600;
}

.registration-shell .application-list {
  gap: 22px;
}

.registration-shell .application-card {
  padding: 22px 24px 20px;
  border-radius: 16px;
  border-color: #e7e2d2;
  box-shadow: 0 6px 18px rgba(15, 51, 38, .06);
}

/* Head: initial avatar, name and application number; status badges on the right */
.registration-shell .application-card-head {
  align-items: center;
  margin-bottom: 18px;
}

.registration-shell .application-card-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.registration-shell .application-avatar {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.registration-shell .application-card-head h3 {
  font-size: 20px;
  font-weight: 600;
  text-transform: capitalize;
}

.registration-shell .application-card-number {
  font-size: 13px;
  letter-spacing: .02em;
}

.registration-shell .status-badge {
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
}

/* Step tracker: Form → Fee → Review → Admission Round → Result */
.registration-shell .application-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 20px;
  padding: 16px 8px 14px;
  border-radius: 12px;
  background: var(--brand-cream);
  list-style: none;
}

.registration-shell .application-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

/* Connector line to the next step */
.registration-shell .application-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 3px;
  border-radius: 3px;
  background: #ddd8c8;
}

.registration-shell .application-steps li.step-done:not(:last-child)::after {
  background: var(--brand-green);
}

.registration-shell .application-step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid #ddd8c8;
  border-radius: 50%;
  background: #fff;
  color: #9a968a;
  font-size: 14px;
  font-weight: 600;
}

.registration-shell .application-step-label {
  color: #8a867a;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
}

.registration-shell .step-done .application-step-dot {
  border-color: var(--brand-green);
  background: var(--brand-green);
  color: #fff;
}

.registration-shell .step-done .application-step-label {
  color: var(--brand-green-dark);
}

.registration-shell .step-current .application-step-dot {
  border-color: var(--brand-gold);
  background: var(--brand-gold);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(227, 167, 47, .22);
}

.registration-shell .step-current .application-step-label {
  color: #8a5a00;
  font-weight: 700;
}

.registration-shell .step-skipped {
  opacity: .45;
}

.registration-shell .step-failed .application-step-dot {
  border-color: #c0392b;
  background: #c0392b;
  color: #fff;
}

.registration-shell .step-failed .application-step-label {
  color: #a5281b;
  font-weight: 700;
}

/* Details as tiles: small label above a clear value */
.registration-shell .application-info {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.registration-shell .application-info-row {
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  padding: 10px 14px;
  border: 1px solid #eee9da;
  border-radius: 10px;
  background: #fdfcf8;
}

.registration-shell .application-info-row span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.registration-shell .application-info-row strong {
  color: var(--brand-green-dark);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

/* "What to do next" / "Current status" */
.registration-shell .application-next {
  margin: 0 0 12px;
  padding: 12px 16px;
  border-left: 4px solid;
  border-radius: 10px;
  font-size: 14.5px;
}

.registration-shell .application-next strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.registration-shell .application-next p {
  margin: 4px 0 0;
}

.registration-shell .application-next-action {
  border-color: var(--brand-gold);
  background: #fff7e3;
  color: #5c3d00;
}

.registration-shell .application-next-info {
  border-color: #4a6fd1;
  background: #eef3fe;
  color: #1e3a8a;
}

.registration-shell .application-note {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
}

/* Actions: the main step (Pay / Continue / Choose Slot) on the left, view & print tools on the right */
.registration-shell .application-card-actions {
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0ece0;
}

.registration-shell .application-card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.registration-shell .application-card-actions .btn-small {
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.registration-shell .application-card-actions > .btn-primary {
  padding: 11px 22px;
  font-size: 14.5px;
}

/* Add a sibling */
.registration-shell [data-step="dashboard"] .dashboard-add {
  padding: 20px;
  border: 2px dashed #ddd8c8;
  border-radius: 16px;
  background: var(--brand-cream);
  text-align: center;
}

.registration-shell [data-step="dashboard"] .dashboard-add .btn-primary {
  min-width: 260px;
}

.registration-shell [data-step="dashboard"] .dashboard-add .field-hint {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .registration-shell .application-card {
    padding: 16px 14px;
  }

  .registration-shell .application-avatar {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .registration-shell .application-card-head h3 {
    font-size: 17px;
  }

  .registration-shell .application-steps {
    padding: 12px 2px 10px;
  }

  .registration-shell .application-step-dot {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .registration-shell .application-steps li:not(:last-child)::after {
    top: 13px;
    left: calc(50% + 16px);
    right: calc(-50% + 16px);
  }

  .registration-shell .application-step-label {
    font-size: 10.5px;
  }

  .registration-shell .application-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .registration-shell .application-info-row {
    padding: 8px 10px;
  }

  .registration-shell .application-info-row strong {
    font-size: 14px;
  }

  .registration-shell .application-card-tools {
    margin-left: 0;
    width: 100%;
  }

  .registration-shell .application-card-tools > * {
    flex: 1 1 calc(50% - 8px);
  }

  .registration-shell [data-step="dashboard"] .dashboard-add .btn-primary {
    min-width: 0;
    width: 100%;
  }
}

/* ---------------------------------------------------------------- Registration form & preview: clearer layout */

/* A wider page while the form or the preview is showing (same width as My Applications) */
@media (min-width: 1025px) {
  .registration-shell .registration-container:has([data-step="form"]:not([hidden])),
  .registration-shell .registration-container:has([data-step="preview"]:not([hidden])) {
    max-width: max(62%, 980px);
  }
}

.registration-shell [data-step="form"],
.registration-shell [data-step="preview"] {
  font-family: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;
}

.registration-shell .registration-card:has([data-step="form"]:not([hidden])),
.registration-shell .registration-card:has([data-step="preview"]:not([hidden])) {
  padding: 36px 36px 32px;
}

.registration-shell [data-step="form"] .account-bar,
.registration-shell [data-step="preview"] .account-bar {
  padding: 12px 16px;
  border-radius: 12px;
}

/* Section titles: a numbered band, so the parent can see how far through the form they are */
.registration-shell [data-registration-form],
.registration-shell [data-step="preview"] {
  counter-reset: form-section;
}

.registration-shell [data-step="form"] .form-section-title,
.registration-shell [data-step="preview"] .form-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 18px;
  padding: 11px 16px;
  border: 0;
  border-left: 4px solid var(--brand-gold);
  border-radius: 10px;
  background: linear-gradient(90deg, #f6f1e2, #fbf9f2 70%);
  color: var(--brand-green-dark);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .01em;
  counter-increment: form-section;
}

.registration-shell [data-step="form"] .form-section-title::before,
.registration-shell [data-step="preview"] .form-section-title::before {
  content: counter(form-section);
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-green);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
}

.registration-shell [data-registration-form] > .form-section-title:first-of-type {
  margin-top: 8px;
}

/* Fields: three per row on wide screens, roomier inputs with a clear focus ring */
@media (min-width: 1200px) {
  .registration-shell [data-step="form"] .form-grid:not(.sibling-grid) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.registration-shell [data-step="form"] .form-grid {
  gap: 6px 22px;
}

.registration-shell [data-step="form"] .form-field {
  margin-bottom: 18px;
}

.registration-shell [data-step="form"] .form-field label {
  margin-bottom: 7px;
  color: #3a3a35;
  font-size: .86rem;
  font-weight: 500;
}

.registration-shell [data-step="form"] .form-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.registration-shell [data-step="form"] .form-field select,
.registration-shell [data-step="form"] .form-field textarea,
.registration-shell [data-step="form"] .mobile-verify-row input,
.registration-shell [data-step="form"] .document-add-row input[type="text"] {
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #ddd8c8;
  border-radius: 10px;
  background: #fff;
  font-size: .95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.registration-shell [data-step="form"] .form-field textarea {
  min-height: 0;
}

.registration-shell [data-step="form"] .form-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
.registration-shell [data-step="form"] .form-field select:hover,
.registration-shell [data-step="form"] .form-field textarea:hover {
  border-color: #c9c2ab;
}

.registration-shell [data-step="form"] .form-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.registration-shell [data-step="form"] .form-field select:focus,
.registration-shell [data-step="form"] .form-field textarea:focus,
.registration-shell [data-step="form"] .document-add-row input[type="text"]:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(26, 77, 58, .12);
  outline: none;
}

.registration-shell [data-step="form"] .readonly-field {
  background: #f6f4ec;
  color: #555;
}

/* Photo upload sits in a soft panel above its section's fields */
.registration-shell [data-step="form"] .photo-upload-row {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px dashed #ddd8c8;
  border-radius: 12px;
  background: #fdfcf8;
}

/* Sibling rows, health, documents and declaration as soft panels */
.registration-shell [data-step="form"] .sibling-row {
  padding: 16px 18px 4px;
  border-radius: 12px;
}

.registration-shell [data-step="form"] .document-add-row {
  padding: 14px;
  border: 1px solid #eee9da;
  border-radius: 12px;
  background: #fdfcf8;
}

.registration-shell [data-step="form"] .declaration-box {
  padding: 18px 20px;
  border-radius: 12px;
}

/* Buttons at the end: bigger, with the main action clearly first */
.registration-shell [data-step="form"] .form-actions {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #f0ece0;
}

.registration-shell [data-step="form"] .form-actions .btn-primary,
.registration-shell [data-step="form"] .form-actions .btn-secondary,
.registration-shell [data-step="preview"] .payment-actions .btn-primary,
.registration-shell [data-step="preview"] .payment-actions .btn-secondary {
  min-height: 50px;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
}

/* Preview: each section as a card, values as tiles with a small label above */
.registration-shell [data-step="preview"] .preview-photos {
  gap: 20px;
  padding: 16px;
  border: 1px solid #eee9da;
  border-radius: 12px;
  background: #fdfcf8;
}

.registration-shell [data-step="preview"] .preview-photo img {
  width: 96px;
  height: 96px;
}

.registration-shell [data-step="preview"] .preview-photo span {
  font-weight: 500;
}

.registration-shell [data-step="preview"] .preview-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 4px;
}

.registration-shell [data-step="preview"] .preview-item {
  padding: 10px 14px;
  border: 1px solid #eee9da;
  border-radius: 10px;
  background: #fdfcf8;
}

.registration-shell [data-step="preview"] .preview-item dt {
  margin-bottom: 4px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.registration-shell [data-step="preview"] .preview-item dd {
  color: var(--brand-green-dark);
  font-size: 15px;
  font-weight: 600;
}

.registration-shell [data-step="preview"] .document-list {
  padding: 4px 16px;
  border: 1px solid #eee9da;
  border-radius: 12px;
  background: #fdfcf8;
}

.registration-shell [data-step="preview"] .document-list li:last-child {
  border-bottom: 0;
}

.registration-shell [data-step="preview"] .payment-actions {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #f0ece0;
}

@media (max-width: 600px) {
  .registration-shell .registration-card:has([data-step="form"]:not([hidden])),
  .registration-shell .registration-card:has([data-step="preview"]:not([hidden])) {
    padding: 22px 16px;
  }

  .registration-shell [data-step="form"] .form-section-title,
  .registration-shell [data-step="preview"] .form-section-title {
    margin: 26px 0 14px;
    padding: 9px 12px;
    font-size: .95rem;
  }

  .registration-shell [data-step="form"] .form-section-title::before,
  .registration-shell [data-step="preview"] .form-section-title::before {
    width: 24px;
    height: 24px;
    font-size: .78rem;
  }

  .registration-shell [data-step="preview"] .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .registration-shell [data-step="preview"] .preview-item {
    padding: 8px 10px;
  }

  .registration-shell [data-step="preview"] .preview-item dd {
    font-size: 14px;
  }
}

/* Contact Details has just mobile + email: two equal halves, even where the form uses three columns */
@media (min-width: 601px) {
  .registration-shell [data-step="form"] .form-grid:has([data-mobile-display]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.registration-shell [data-step="form"] .mobile-verify-row {
  flex-wrap: nowrap;
}

.registration-shell [data-step="form"] .mobile-verify-row input {
  flex: 1 1 auto;
  min-width: 0;
}
