.body {
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.hidden {
  display: none !important;
}

.report-section {
  overflow: hidden;
}

.hero-shell {
  position: relative;
}

.page-intro {
  margin-bottom: 48px;
}

.page-intro .spark-foreground-secondary {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.7;
}

.report-panel {
  width: min(100%, 600px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.08);
  padding: 32px;
  position: relative;
}

.report-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lookup-stage {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

#lookup-form .field-label {
  margin-bottom: 10px;
}

#lookup-form .spark-input.w-input {
  margin-bottom: 12px;
}

.form-alert {
  border-radius: 8px;
  margin-top: 16px;
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-alert-error {
  border: 1px solid rgba(190, 36, 36, 0.22);
  background: rgba(190, 36, 36, 0.08);
  color: #a32929;
}

.lookup-result,
.report-stage {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lookup-result {
  gap: 0.875rem;
}

.report-panel.report-mode {
  width: min(100%, 640px);
}

.report-panel.report-mode .section-divider {
  display: none;
}

.report-panel.report-mode .report-stage {
  gap: 0.9rem;
}

.report-panel.report-mode .report-form-card {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.result-intro {
  margin-bottom: 0;
}

.registrar-card,
.guidance-card,
.report-form-card {
  border: 1px solid var(--spark-library--border-default);
  border-radius: 18px;
  background: var(--spark-library--white);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.04);
}

.registrar-card {
  padding: 20px;
  border-radius: 16px;
}

.registrar-card-body {
  padding: 0;
}

.guidance-card,
.report-form-card {
  padding: 22px 24px;
}

.registrar-card-header {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.registrar-card-header h3,
.step-heading h3 {
  margin: 0;
  color: #1f2937;
  line-height: 1.2;
}

.registrar-card-header h3 {
  font-size: 1.08rem;
  font-weight: 600;
}

.step-heading h3 {
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.step-heading {
  margin-bottom: 12px;
}

.report-stage .field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.96rem;
}

.report-stage .spark-input,
.report-stage .w-input,
.report-stage .w-select {
  margin-bottom: 22px;
}

.report-stage .spark-input.spark-message-input {
  min-height: 13.5ch;
}

.registrar-list {
  display: flex;
  flex-direction: column;
}

.registrar-row {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.registrar-row:first-child {
  padding-top: 0;
}

.registrar-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.registrar-label {
  color: #64748b;
  font-size: 0.96rem;
  font-weight: 500;
}

.registrar-value {
  color: #1f2937;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

.registrar-value a {
  color: var(--spark-library--foreground-interactive);
  text-decoration: none;
}

.registrar-value a:hover {
  text-decoration: underline;
}

.guidance-card {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.guidance-card p {
  margin: 0;
  color: #4f5a65;
  font-size: 0.94rem;
  line-height: 1.6;
}

.guidance-card p + p {
  margin-top: 14px;
}

.guidance-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: #1f2937;
  font-size: 0.96rem;
  font-weight: 500;
  cursor: pointer;
}

.guidance-checkbox input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--spark-library--foreground-interactive);
}

.spark-button.spark-full-width.secondary-action {
  margin-top: 8px;
  min-height: 48px;
  border-radius: 10px;
  background-color: #ffffff;
  border-color: rgba(0, 155, 232, 0.34);
  color: var(--spark-library--foreground-interactive);
  box-shadow: none;
  font-size: 0.96rem;
  font-weight: 600;
}

.spark-button.spark-full-width.secondary-action:hover {
  background-color: #ffffff;
  border-color: rgba(0, 155, 232, 0.46);
  color: var(--spark-library--foreground-interactive-hover);
}

.spark-button.spark-full-width.secondary-action:disabled,
.spark-button.spark-full-width.secondary-action:disabled:hover {
  background-color: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
  color: #94a3b8;
  cursor: not-allowed;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: rgba(15, 23, 42, 0.08);
}

.step-heading p {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.read-only-input {
  background: #f8fafc;
  color: #334155;
  cursor: default;
}

.spark-input:disabled,
.w-input:disabled {
  background: #f8fafc;
  color: #64748b;
  border-color: rgba(15, 23, 42, 0.12);
  cursor: not-allowed;
  opacity: 1;
}

.read-only-input:focus {
  border-color: var(--spark-library--border-default);
}

.recaptcha-slot {
  margin-bottom: 24px;
  min-height: 78px;
}

.spark-form-success.w-form-done:not(.hidden) {
  display: block;
}

.privacy-link {
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
}

#privacy-modal.overlay {
  z-index: 20000;
  align-items: center;
  overflow: auto;
  padding: 24px;
  padding-top: calc(24px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.click_bg {
  background-color: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(6px);
}

.privacy-card {
  width: min(1040px, 100%);
  max-width: none;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.24);
}

.privacy-frame {
  display: block;
  width: 100%;
  height: min(84vh, 920px);
  height: min(84dvh, 920px);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  border: 0;
  background: #ffffff;
}

.modal-close-button {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  padding: 0;
}

.modal-close-button img {
  display: block;
  width: 18px;
  height: 18px;
}

.policy-page {
  background: #ffffff;
  display: block;
  min-height: auto;
}

.policy-page .spark-section {
  padding: 56px 48px 72px;
}

.policy-shell {
  width: min(820px, 100%);
  min-width: 0;
  margin: 0 auto;
}

.policy-copy {
  min-width: 0;
}

.policy-copy h1 {
  color: #1f2937;
  margin-top: 0;
  margin-bottom: 0.875rem;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.08;
}

.policy-copy h2 {
  color: #1f2937;
  margin: 3rem 0 1rem;
  font-size: clamp(1.85rem, 3.6vw, 2.55rem);
  line-height: 1.16;
}

.policy-copy h3 {
  color: #1f2937;
  margin: 2rem 0 0.75rem;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.24;
}

.policy-copy h4 {
  color: #1f2937;
  margin: 1.35rem 0 0.5rem;
  font-size: 1.08rem;
  line-height: 1.4;
}

.policy-copy p,
.policy-copy li {
  color: #4f5a65;
  font-size: 0.98rem;
  line-height: 1.72;
}

.policy-copy p,
.policy-copy li,
.policy-copy a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.policy-copy a {
  word-wrap: break-word;
}

.policy-copy ul {
  margin: 1rem 0 1.75rem;
  padding-left: 1.25rem;
}

.policy-copy li {
  margin-bottom: 0.55rem;
}

.policy-copy strong {
  color: #1f2937;
}

@media screen and (max-width: 767px) {
  .body {
    min-height: auto;
    display: block;
  }

  main {
    flex: none;
  }

  .report-panel {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .report-section {
    padding-bottom: 120px;
  }

  .registrar-card-header h3 {
    font-size: 1rem;
  }

  .step-heading h3 {
    font-size: 1.7rem;
  }

  .registrar-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .privacy-card {
    width: min(100%, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    border-radius: 18px;
  }

  .privacy-frame {
    height: calc(100vh - 24px);
    max-height: calc(100vh - 24px);
    height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }

  .policy-page .spark-section {
    padding: 40px 28px 56px;
  }
}

@media screen and (max-width: 479px) {
  .page-intro {
    margin-bottom: 36px;
  }

  .report-section {
    padding-bottom: 120px;
  }

  .registrar-card-header {
    padding-bottom: 14px;
    margin-bottom: 16px;
  }

  .registrar-card,
  .guidance-card,
  .report-form-card {
    padding: 18px;
  }

  .guidance-card {
    padding-left: 0;
    padding-right: 0;
  }

  .guidance-card p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  #privacy-modal.overlay {
    align-items: flex-start;
    padding: 12px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .privacy-card {
    width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    border-radius: 16px;
  }

  .modal-close-button {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }

  .policy-page .spark-section {
    padding: 28px 20px 44px;
  }
}
