.completion-shell {
  overflow-y: auto;
}

.completion-card {
  width: min(1020px, 100%);
  min-height: 640px;
  grid-template-columns: 0.95fr 1.05fr;
}

.completion-form-panel {
  justify-content: center;
  padding: 34px 46px;
}

.completion-brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 800;
  text-decoration: none;
}

.completion-heading {
  margin-bottom: 20px;
}

.completion-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.completion-step span {
  color: var(--muted);
  font-weight: 600;
}

.completion-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1.2;
}

.completion-heading > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

#completionForm {
  gap: 13px;
}

#completionForm .profile-media-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 4px;
}

#completionForm .field-group {
  gap: 6px;
}

#completionForm input[type="file"] {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-alt);
  color: var(--muted);
  font-size: 0.75rem;
}

#completionForm .field-group small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.profile-image-preview {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  object-fit: cover;
  background: var(--panel-alt);
}

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

.selfie-preview {
  aspect-ratio: 1;
}

.banner-image-preview {
  aspect-ratio: 16 / 9;
}

#completionForm select:invalid {
  color: var(--muted);
}

#completionForm select:focus-visible {
  outline: none;
  border-color: rgba(34, 91, 86, 0.65);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(34, 91, 86, 0.1);
}

#completionForm .customer-type-field {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.customer-type-field legend {
  grid-column: 1 / -1;
  margin-bottom: 1px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.customer-type-option {
  display: flex;
  min-height: 68px;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dfe7e9;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.customer-type-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 2px rgba(34, 91, 86, 0.08);
}

.customer-type-option:focus-within {
  outline: 3px solid rgba(34, 91, 86, 0.2);
  outline-offset: 2px;
}

.customer-type-option input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.customer-type-option span {
  display: grid;
  gap: 3px;
}

.customer-type-option strong {
  font-size: 0.84rem;
  font-weight: 700;
}

.customer-type-option small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

#completionForm input[type="text"],
#completionForm input[type="password"] {
  height: 48px;
}

#completionForm .region-notice {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

#completionForm .primary-btn {
  width: 100%;
  margin-top: 3px;
}

.registration-policy {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.55;
}

.policy-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.policy-consent input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--primary);
}

.policy-consent input:focus-visible {
  outline: 3px solid rgba(34, 91, 86, 0.2);
  outline-offset: 2px;
}

.policy-copy p {
  margin: 0;
}

.policy-copy p + p {
  margin-top: 10px;
}

.completion-brand:focus-visible,
.completion-signin:focus-visible {
  outline: 3px solid rgba(34, 91, 86, 0.25);
  outline-offset: 3px;
}

.completion-result {
  width: min(480px, 100%);
  padding: 42px;
  border: 1px solid #dfe7e9;
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow);
}

.completion-result[hidden] {
  display: none;
}

.completion-result-icon {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}

.completion-result-icon::after {
  width: 13px;
  height: 7px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(-45deg);
}

.completion-result h1 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1.2;
}

@media (max-width: 520px) {
  #completionForm .profile-media-fields {
    grid-template-columns: 1fr;
  }
}

.completion-result > p:not(.completion-step) {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.completion-signin {
  width: 100%;
  text-decoration: none;
}

@media (max-width: 768px) {
  .completion-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .completion-card {
    display: block;
    width: min(480px, 100%);
    min-height: 0;
    margin: auto;
    border: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
  }

  .completion-form-panel {
    padding: 30px 24px;
    border-radius: 12px;
    box-shadow: 0 16px 38px rgba(20, 44, 57, 0.12);
  }

  .completion-result {
    width: min(440px, 100%);
    margin: auto;
    padding: 32px 24px;
    border-radius: 12px;
  }
}

@media (max-width: 380px) {
  .completion-form-panel {
    padding: 26px 18px;
  }

  .completion-heading h2,
  .completion-result h1 {
    font-size: 1.55rem;
  }
}