.register-content {
  width: min(100%, 780px);
}

.register-header {
  margin: 0 0 18px;
  padding: 0 2px 20px;
  border-bottom: 1px solid var(--border);
}

.register-topline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 22px;
}

.register-header h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.register-intro,
.register-section__heading p,
.register-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}


.register-form {
  display: grid;
  gap: 14px;
}

.register-section {
  min-width: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.register-section__heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.register-section__heading > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  background: var(--accent);
  border-radius: 50%;
}

.register-section__heading h2 {
  margin: 2px 0 4px;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.register-optional {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 7px;
  color: #666;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: 2px;
  background: #f2f2f2;
  border-radius: 999px;
}

.register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 14px;
}

.register-more {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.register-more summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #30343d;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.register-more summary::-webkit-details-marker {
  display: none;
}

.register-more summary::after {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  color: #3e4654;
  font-size: 18px;
  font-weight: 400;
  content: "+";
  border: 1px solid var(--border);
  border-radius: 50%;
}

.register-more[open] summary::after {
  content: "−";
}

.register-more summary:focus-visible {
  outline: 3px solid #2359d1;
  outline-offset: 3px;
  border-radius: 6px;
}

.register-more__note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.register-more__fields {
  padding-bottom: 3px;
}

.register-field {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 7px;
  color: #262626;
  font-size: 12px;
  font-weight: 650;
}

.register-field > span:first-child {
  color: #555;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.register-field__label {
  color: #555;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.location-combobox {
  position: relative;
}

.location-options {
  position: absolute;
  z-index: 10;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  max-height: 260px;
  margin: 0;
  padding: 5px;
  overflow-y: auto;
  list-style: none;
  background: #fff;
  border: 1px solid #d8d8dc;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgb(0 0 0 / 13%);
}

.location-options[hidden] {
  display: none;
}

.location-option {
  padding: 10px 11px;
  color: #252525;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.4;
  border-radius: 7px;
  cursor: pointer;
}

.location-option:hover,
.location-option[aria-selected="true"] {
  background: #f1f1f2;
}

.location-status:empty {
  display: none;
}

.location-status {
  min-height: 0 !important;
}

.register-field b {
  color: #b4232c;
}

.register-field input:not([type="file"]),
.register-field select,
.register-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  color: #252525;
  font-size: 13px;
  font-weight: 450;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 9px;
  outline: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.register-field textarea {
  min-height: 94px;
  resize: vertical;
}

.register-field input:focus,
.register-field select:focus,
.register-field textarea:focus {
  border-color: #777;
  box-shadow: 0 0 0 3px rgb(17 17 17 / 7%);
}

.register-field input:disabled,
.register-field select:disabled {
  color: #888;
  background: #f5f5f6;
  cursor: not-allowed;
}

.register-field small,
.register-upload output {
  min-height: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}


.register-field--wide {
  grid-column: 1 / -1;
}

.register-upload {
  padding: 14px;
  background: #fafafa;
  border: 1px dashed #cfcfd2;
  border-radius: 12px;
}

.register-upload input[type="file"] {
  width: 100%;
  min-width: 0;
  color: #555;
  font-size: 12px;
}

.register-upload output:empty {
  display: none;
}

.register-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #333;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.register-consent input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.privacy-dialog {
  width: min(760px, calc(100% - 32px));
  max-width: none;
  max-height: min(88dvh, 820px);
  padding: 0;
  color: #222;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgb(0 0 0 / 22%);
}

.privacy-dialog::backdrop {
  background: rgb(17 20 28 / 58%);
  backdrop-filter: blur(2px);
}

.registration-example-dialog {
  width: min(620px, calc(100% - 32px));
  max-width: none;
  max-height: min(90dvh, 900px);
  padding: 0;
  color: #222;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgb(0 0 0 / 22%);
}

.registration-example-dialog::backdrop { background: rgb(17 20 28 / 58%); backdrop-filter: blur(2px); }
.registration-example-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.registration-example-dialog__header h2 { margin: 0; font-size: 17px; }
.registration-example-dialog__content { display: grid; place-items: center; max-height: calc(min(90dvh, 900px) - 72px); padding: 18px; overflow: auto; }
.registration-example-dialog__content img { display: block; max-width: 100%; max-height: calc(min(90dvh, 900px) - 110px); object-fit: contain; border-radius: 10px; }
.registration-example-dialog:focus { outline: none; }

.privacy-dialog__header,
.privacy-dialog__footer {
  position: sticky;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
}

.privacy-dialog__header {
  top: 0;
  border-bottom: 1px solid var(--border);
}

.privacy-dialog__header h2 {
  margin: 0;
  font-size: 18px;
}

.privacy-dialog__close,
.privacy-dialog__return {
  min-height: 42px;
  padding: 0 16px;
  color: #222;
  font: inherit;
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

.privacy-dialog__close:focus-visible,
.privacy-dialog__return:focus-visible {
  outline: 3px solid #4b69e8;
  outline-offset: 2px;
}

.privacy-dialog__content {
  max-height: calc(min(88dvh, 820px) - 145px);
  padding: 20px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.privacy-dialog__content > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.privacy-dialog__content > p a {
  color: #3444c5;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-dialog__footer {
  bottom: 0;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
}

.privacy-dialog__return {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.register-status {
  padding: 13px 15px;
  color: #254b36;
  font-size: 13px;
  line-height: 1.5;
  background: #eff7f1;
  border: 1px solid #cfe3d4;
  border-radius: 10px;
}

.register-status[data-state="error"] {
  color: #8a1d25;
  background: #fff2f2;
  border-color: #f0c9cc;
}

.register-status[data-state="warning"] {
  color: #6b4b00;
  background: #fff8e6;
  border-color: #ead9a4;
}

.register-actions {
  display: grid;
  justify-items: start;
  gap: 9px;
  padding: 4px 2px 0;
}

.register-submit {
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 150ms ease, transform 150ms ease;
}

.register-submit:hover:not(:disabled) {
  transform: translateY(-1px);
}

.register-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}




@media (max-width: 600px) {
  .register-page {
    padding-inline: 12px;
  }




  .register-section {
    padding: 16px;
    border-radius: 14px;
  }

  .privacy-dialog {
    width: 100%;
    max-width: none;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .registration-example-dialog { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .registration-example-dialog__content { max-height: calc(100dvh - 72px); padding: 14px; }
  .registration-example-dialog__content img { max-height: calc(100dvh - 100px); }

  .privacy-dialog__header,
  .privacy-dialog__footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .privacy-dialog__content {
    max-height: calc(100dvh - 145px);
    padding: 18px 16px;
  }

  .register-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .register-field--wide {
    grid-column: auto;
  }

  .register-actions {
    justify-items: stretch;
  }

  .register-submit {
    width: 100%;
  }
}



.image-crop {
  display: grid;
  justify-items: start;
  gap: 10px;
  width: min(100%, 360px);
}

.image-crop[hidden] {
  display: none;
}

.image-crop__canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  background: #eeeae4;
  border: 1px solid #dedede;
  border-radius: 12px;
  cursor: grab;
  touch-action: none;
}

.image-crop__canvas:active {
  cursor: grabbing;
}

.image-crop__zoom {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  color: #555;
  font-size: 12px;
  font-weight: 600;
}

.image-crop__zoom input {
  flex: 1;
  min-width: 0;
  accent-color: #222;
}

.image-crop__hint {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
:root .registration-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.register-field .field-error, .register-consent .field-error { color: #a61b1b; font-size: 12px; line-height: 1.5; }
.register-field input:not([type="file"])[aria-invalid="true"], .register-field select[aria-invalid="true"], .register-field textarea[aria-invalid="true"] { border-color: #b3261e; background: #fffafa; }
.register-upload:has(input[aria-invalid="true"]) { border-color: #b3261e; background: #fffafa; }
.register-field input:focus-visible, .register-field textarea:focus-visible, .register-field select:focus-visible, .image-crop__canvas:focus-visible { outline: 3px solid #2359d1; outline-offset: 3px; }
.register-field small, .register-upload output, .image-crop__hint { color: #595959; }
.register-upload__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.register-upload__heading label { color: #555; font-size: 10px; font-weight: 750; letter-spacing: 0.075em; text-transform: uppercase; cursor: pointer; }
.register-example-link { flex: 0 0 auto; padding: 2px 0; color: var(--accent); font: inherit; font-size: 11px; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; background: transparent; border: 0; cursor: pointer; }
.register-example-link:hover { color: #222; }
.register-example-link:focus-visible { outline: 3px solid #2359d1; outline-offset: 3px; border-radius: 2px; }
.register-consent { flex-wrap: wrap; }
.register-consent > span { flex: 1; }
.register-consent .field-error { flex: 0 0 100%; }
.register-status:focus { outline: 3px solid #2359d1; outline-offset: 4px; }
input[type="checkbox"]:focus-visible, input[type="range"]:focus-visible { outline: 3px solid #2359d1; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .register-submit { transition: none; transform: none !important; } }
