.registration-body {
  min-height: 100vh;
  background: #f6f7f8;
  color: #17191c;
}

.registration-page {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 80px;
}

.registration-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 700px);
  gap: clamp(44px, 7vw, 88px);
  align-items: start;
}

.registration-intro {
  position: sticky;
  top: 112px;
}

.registration-intro h1 {
  max-width: 520px;
  margin: 14px 0 20px;
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: .98;
}

.registration-intro > p {
  max-width: 380px;
  margin: 0;
  color: #535861;
  font-size: 15px;
  line-height: 1.65;
}

.registration-intro .privacy-note {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #dfe3e8;
  color: #6a7079;
  font-size: 12px;
}

.registration-content { min-width: 0; }

.registration-form {
  overflow: visible;
  border: 1px solid #dfe3e8;
  border-radius: 20px;
  background: #fff;
}

.registration-section { padding: 30px 32px 32px; }
.registration-section + .registration-section { border-top: 1px solid #edeff1; }
.section-heading { margin: 0 0 24px; }

.section-heading h2 {
  margin: 0 0 6px;
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.section-heading p {
  margin: 0;
  color: #6a7079;
  font-size: 13px;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
}

.form-grid.compact-grid { margin-top: 18px; }
.field.full, .full { grid-column: 1 / -1; }

.field {
  position: relative;
  display: grid;
  gap: 8px;
  color: #24272b;
  font-size: 12px;
  font-weight: 600;
}

.field b { color: #9e2c27; }

.field input,
.field select {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  outline: 0;
  background: #f6f7f8;
  color: #17191c;
  padding: 0 13px;
  font: 500 14px/1.2 Inter, Arial, sans-serif;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.field select { padding-right: 34px; }
.field input::placeholder { color: #7a8089; font-weight: 400; }
.field input:hover, .field select:hover { border-color: #b9c0c9; }
.field input:focus, .field select:focus { border-color: #0a0081; background: #fff; box-shadow: 0 0 0 3px rgba(10, 0, 129, .1); }
.field input:disabled, .field select:disabled { cursor: not-allowed; opacity: .65; }
.field input[aria-invalid='true'], .field select[aria-invalid='true'] { border-color: #a12a24; }

.field small {
  color: #6a7079;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.field-error { color: #8e2721; font-size: 11px; font-weight: 500; line-height: 1.35; }

.suggestions {
  position: absolute;
  z-index: 20;
  top: 78px;
  right: 0;
  left: 0;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 12px 28px rgba(17, 25, 40, .12);
}

.suggestion-item {
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #17191c;
  padding: 10px;
  text-align: left;
  font: 500 12px/1.4 Inter, Arial, sans-serif;
}

.suggestion-item:hover, .suggestion-item:focus-visible { background: #f3f4f5; }
.suggestion-empty { display: block; padding: 10px; color: #6a7079; font-size: 12px; }

.lookup-status {
  align-self: end;
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  border: 1px solid #edeff1;
  border-radius: 10px;
  background: #f6f7f8;
  color: #6a7079;
  padding: 10px 13px;
  font-size: 11px;
  line-height: 1.4;
}

.status-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #9ca2aa; }
.lookup-status.loading .status-dot { background: #0a0081; animation: lookupPulse 1s ease-in-out infinite; }
.lookup-status.success { border-color: #bedbc8; background: #f4faf6; color: #176c42; }
.lookup-status.success .status-dot { background: #218c58; }
.lookup-status.error { border-color: #e8bfbb; background: #fff7f6; color: #8e2721; }
.lookup-status.error .status-dot { background: #a12a24; }

.address-details { margin-top: 2px; }
.address-found { padding: 14px 15px; border-left: 2px solid #218c58; background: #f4faf6; color: #174e32; }
.address-found small, .address-found strong { display: block; }
.address-found small { margin-bottom: 5px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.address-found strong { font-size: 13px; line-height: 1.45; }

.photo-dropzone {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 82px;
  border: 1px dashed #b9c0c9;
  border-radius: 12px;
  background: #f6f7f8;
  padding: 16px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}

.photo-dropzone:hover, .photo-dropzone.is-dragging, .photo-dropzone:focus-within { border-color: #0a0081; background: #fff; }
.photo-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-preview:empty { display: none; }
.photo-preview { display: block; width: 52px; height: 62px; overflow: hidden; border-radius: 8px; background: #e6e9ed; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-copy strong, .photo-copy small { display: block; }
.photo-copy strong { margin-bottom: 5px; font-size: 13px; }
.photo-copy small { color: #6a7079; font-size: 11px; line-height: 1.4; }
.photo-dropzone .field-error { grid-column: 1 / -1; }

.registration-footer { padding: 24px 32px 30px; border-top: 1px solid #edeff1; }

.consent-row {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: flex-start;
  gap: 11px;
  border: 0;
  background: transparent;
  color: #535861;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}

.consent-row input { width: 17px; height: 17px; flex: 0 0 auto; margin: 1px 0 0; accent-color: #0a0081; }
.consent-row .field-error { grid-column: 2; margin-top: -4px; }
.registration-actions { display: grid; gap: 10px; margin-top: 22px; }

.registration-submit,
.membership-submit,
.membership-action,
.feedback-secondary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid #0a0081;
  border-radius: 999px;
  padding: 0 22px;
  font: 650 12px/1 Inter, Arial, sans-serif;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.registration-submit, .membership-submit, .membership-action { background: #0a0081; color: #fff; }
.registration-submit:hover, .membership-submit:hover, .membership-action:hover { border-color: #1d1499; background: #1d1499; }
.feedback-secondary-action { background: #fff; color: #0a0081; }
.feedback-secondary-action:hover { background: #f3f4f5; }
.registration-submit:disabled, .membership-submit:disabled { cursor: wait; opacity: .58; }

.form-status { min-height: 18px; color: #535861; padding: 0 4px; font-size: 12px; line-height: 1.5; }
.form-status.ok { color: #176c42; }
.form-status.err { color: #8e2721; }
.form-notice { border-left: 2px solid #0a0081; padding: 9px 11px; color: #535861; font-size: 12px; line-height: 1.45; }
.form-notice[hidden] { display: none; }
.form-notice p { margin: 0; }
.form-notice[data-state='error'] { border-color: #a12a24; color: #8e2721; }
.form-notice[data-state='success'] { border-color: #218c58; color: #176c42; }

.home-link { justify-self: center; color: #535861; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.membership-layout { grid-template-columns: minmax(260px, 360px) minmax(0, 540px); justify-content: space-between; }
.membership-form { max-width: 540px; }

.form-feedback-dialog {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.form-feedback-dialog[hidden] { display: none; }
.form-feedback-backdrop { position: absolute; inset: 0; background: rgba(12, 14, 18, .48); }

.form-feedback-modal {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 1px solid #dfe3e8;
  border-radius: 18px;
  outline: 0;
  background: #fff;
  padding: 34px;
  box-shadow: 0 20px 50px rgba(10, 15, 25, .18);
}

.form-feedback-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #535861;
}

.form-feedback-close:hover { background: #f3f4f5; color: #17191c; }
.form-feedback-modal .eyebrow { margin: 0 48px 12px 0; color: #0a0081; }
.form-feedback-modal h2 { margin: 0; font-family: Manrope, Inter, Arial, sans-serif; font-size: clamp(27px, 5vw, 36px); font-weight: 650; letter-spacing: -.05em; line-height: 1.05; }
.form-feedback-modal > p:not(.eyebrow) { max-width: 430px; margin: 14px 0 0; color: #535861; font-size: 14px; line-height: 1.6; }
.form-feedback-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.form-feedback-actions a { flex: 1 1 180px; }
body.form-feedback-open { overflow: hidden; }

@keyframes lookupPulse { 50% { opacity: .28; } }

@media (max-width: 900px) {
  .registration-page { padding-top: 104px; }
  .registration-layout, .membership-layout { grid-template-columns: 1fr; gap: 34px; }
  .registration-intro { position: static; }
  .registration-intro > p { max-width: 640px; }
  .registration-content, .membership-form { width: 100%; max-width: 700px; margin: 0 auto; }
}

@media (max-width: 620px) {
  .registration-page { width: min(100% - 24px, 700px); padding: 94px 0 48px; }
  .registration-intro h1 { font-size: clamp(38px, 11vw, 48px); }
  .registration-intro .privacy-note { margin-top: 22px; }
  .registration-form { border-radius: 16px; }
  .registration-section { padding: 24px 18px 26px; }
  .registration-footer { padding: 22px 18px 24px; }
  .form-grid { grid-template-columns: 1fr; gap: 17px; }
  .field.full, .full { grid-column: auto; }
  .lookup-status { min-height: 46px; }
  .address-details { grid-column: auto; }
  .form-feedback-dialog { padding: 12px; align-items: end; }
  .form-feedback-modal { max-height: calc(100vh - 24px); border-radius: 16px; padding: 30px 22px 24px; }
  .form-feedback-actions { flex-direction: column; }
  .form-feedback-actions a { width: 100%; flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .field input, .field select, .photo-dropzone, .registration-submit, .membership-submit, .membership-action, .feedback-secondary-action { transition: none; }
  .lookup-status.loading .status-dot { animation: none; }
}
