/* Document verification landing page */

/* Reset browser default margin */
body {
  margin: 0;
  padding: 0;
}

.verification-page *,
.verification-page *::before,
.verification-page *::after {
  box-sizing: border-box;
}

.verification-page {
  --verify-primary: #4d4499;
  --verify-primary-dark: #3d3680;
  --verify-text-muted: #78829d;
  --verify-border: #e4e6ef;
  font-family: "Inter", sans-serif;
  color: #323133;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.verification-page a {
  color: var(--verify-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.verification-page a:hover {
  color: var(--verify-primary);
}

/* Header */
.verify-header {
  padding: 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edeef2;
  background: #F8F9FA;
}

.index-header {
  background: transparent;
}

@media (max-width: 991px) {
  .index-header {
    border-bottom: none;
  }
}

.verify-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.verify-logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.verify-logo img {
  height: 75px;
  width: auto;
  object-fit: contain;
}

.verify-logo-text {
  line-height: 1.15;
}

.verify-logo-text strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--verify-primary);
  letter-spacing: -0.02em;
}

.verify-logo-text span {
  font-size: 11px;
  font-weight: 500;
  color: var(--verify-primary);
  opacity: 0.85;
}

.btn-verify-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--verify-primary);
  color: #fff !important;
  border: none;
  border-radius: 12px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-verify-login:hover {
  background: var(--verify-primary-dark);
  color: #fff !important;
}

.btn-verify-login img,
.btn-verify-login svg {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Hero */
.white-bg-wrapper {
  background: #fff;
  border-radius: 0 0 32px 32px;
  position: relative;
  z-index: 2;
}

.verify-hero {
  flex: 1;
  text-align: center;
  padding: 140px 24px 70px;
  position: relative;
  background: transparent;
}

.verify-hero h1 {
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 700;
  color: var(--verify-primary);
  margin: 0 0 16px;
  line-height: 1.25;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
}

.verify-hero .hero-subtitle {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--verify-text-muted);
  margin: 0 0 40px;
  font-weight: 400;
}

.verify-search-form {
  width: calc(100% - 48px);
  max-width: 720px;
  margin: 0 auto;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -28px;
  z-index: 3;
}

.verify-search-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--verify-primary);
  border-radius: 999px;
  padding: 6px 6px 6px 24px;
  box-shadow: 0 4px 24px rgba(77, 68, 153, 0.08);
}

.verify-search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  color: #323133;
  background: transparent;
  min-width: 0;
  text-align: left;
}

.verify-search-wrap input::placeholder {
  color: #666666;
}

.btn-verify-search {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--verify-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.btn-verify-search:hover {
  background: var(--verify-primary-dark);
}

.btn-verify-search img,
.btn-verify-search svg {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Trusted section */

.verify-trusted {
  background: var(--verify-primary);
  background-color: var(--verify-primary);
  background-image: url('../img/blue-background.png');
  background-size: contain;
  background-repeat: repeat;
  padding: 110px 24px 80px;
  margin-top: -40px;
  position: relative;
}

.verify-trusted h2 {
  text-align: center;
  color: #fff;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 600;
  margin: 0 0 36px;
}

.verify-partners-wrapper {
  position: relative;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 50px;
}

@media (min-width: 992px) {
  .verify-partners-wrapper {
    width: fit-content;
  }
}

@media (max-width: 1440px) and (min-width: 992px) {
  .verify-partners-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0 50px;
  }

  .verify-partners-arrow {
    width: 36px;
    height: 36px;
  }

  .verify-partners-arrow svg {
    width: 20px;
    height: 20px;
  }

  .verify-partners {
    gap: 24px;
  }

  .verify-partners li {
    min-width: 60px;
  }

  .partner-icon {
    width: 40px;
    height: 40px;
  }

  .partner-icon img,
  .partner-icon svg {
    width: 22px;
    height: 22px;
  }
}

.verify-partners {
  display: flex;
  flex-wrap: nowrap;
  gap: 40px;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.verify-partners::-webkit-scrollbar {
  display: none;
}

.verify-partners-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.verify-partners-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.verify-partners-arrow svg {
  width: 24px;
  height: 24px;
}

.left-arrow {
  left: 0;
}

.right-arrow {
  right: 0;
}

.verify-partners li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 72px;
}

.partner-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #FFFFFF4D;
  background-color: #FFFFFF1A;
  ;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.partner-icon img,
.partner-icon svg {
  width: 26px;
  height: 26px;
  opacity: 0.95;
  object-fit: contain;
}

.verify-partners span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  text-align: center;
  max-width: 80px;
  line-height: 1.2;
  white-space: nowrap;
}

/* Footer */
.verify-footer {
  padding: 56px 24px 40px;
  margin: 0 auto;
  width: 100%;
}

.verify-footer-grid {
  display: grid;
  grid-template-columns: 1fr max-content max-content 1.5fr;
  gap: 190px;
}

.verify-footer-brand {
  width: max-content;
  display: flex;
  align-items: center;
}

.verify-footer-brand .verify-logo {
  margin-bottom: 20px;
}

.verify-social {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.verify-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.verify-social img,
.verify-social svg {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.verify-footer-col h3 {
  font-size: 18px;
  font-weight: 700;
  color: #323133;
  margin: 0 0 16px;
}

.verify-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.verify-footer-links li {
  margin-bottom: 10px;
}

.verify-footer-links a {
  font-size: 14px;
  color: #666666;
}

.verify-footer-col:nth-child(2),
.verify-footer-col:nth-child(3) {
  border-right: 1px solid #4d4499;
  padding-right: 74px;
}

@media (max-width: 991px) {
  .verify-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .verify-footer-brand {
    grid-column: 1 / -1;
  }

  .verify-footer-col:nth-child(2) {
    padding-right: 20px;
  }

  .verify-footer-col:nth-child(3) {
    border-right: none;
    padding-right: 0;
  }
}

@media (max-width: 1440px) {
  .verify-footer-grid {
    gap: 160px;
  }

  .verify-footer-col:nth-child(2),
  .verify-footer-col:nth-child(3) {
    padding-right: 32px;
  }

  .verify-contact-input {
    width: 100% !important;
    max-width: 384px;
  }
}

.verify-footer-col:last-child {
  justify-self: end;
}

@media (max-width: 991px) {
  .verify-footer-col:last-child {
    justify-self: start;
  }
}

.verify-footer-col form {
  width: 100%;
  max-width: 384px;
}

.verify-contact-input {
  width: 384px !important;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--verify-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  margin-bottom: 8px;
}

.verify-contact-input:focus {
  border-color: var(--verify-primary);
}

.btn-verify-submit {
  display: block;
  margin-left: auto;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--verify-primary);
  cursor: pointer;
  padding: 4px 0;
}

.btn-verify-submit:hover {
  color: var(--verify-primary-dark);
}

/* Copyright */
.verify-copyright {
  background: var(--verify-primary);
  text-align: center;
  padding: 14px 24px;
  margin-top: auto;
}

.verify-copyright p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
}

/* Result pages specific copyright styling */
.result-page-body .footer-copyright {
  color: #fff;
  text-align: center;
  margin-top: auto;
}

.result-page-body .verify-copyright p {
  color: var(--verify-text-muted);
}

@media (max-width: 991px) {
  .verify-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .verify-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575px) {
  .verify-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 16px;
  }

  .verify-footer-col:nth-child(4) {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  /* Contact form — full width on mobile, no overflow */
  .verify-footer-col form {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Contact heading — larger on mobile like Figma */
  .verify-footer-col:nth-child(4) h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
  }

  /* Input — full width, taller, more padding, larger radius to match Figma */
  .verify-contact-input {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 16px 18px;
    border-radius: 12px;
    font-size: 15px;
    margin-bottom: 12px;
  }

  /* Submit — right-aligned */
  .btn-verify-submit {
    display: block;
    margin-left: auto;
    font-size: 16px;
    font-weight: 700;
  }

  .verify-trusted h2 {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .verify-partners-wrapper {
    padding: 0 30px;
  }

  .verify-partners-arrow {
    width: 28px;
    height: 28px;
  }

  .verify-partners-arrow svg {
    width: 16px;
    height: 16px;
  }

  .verify-partners {
    gap: 16px;
  }

  .verify-partners li {
    min-width: 60px;
  }

  .partner-icon {
    width: 36px;
    height: 36px;
  }

  .partner-icon img,
  .partner-icon svg {
    width: 16px;
    height: 16px;
  }

  .verify-partners span {
    font-size: 7.5px;
  }

  .verify-hero h1 {
    white-space: nowrap;
    font-size: 18px;
    margin: 0 0 4px;
  }

  .verify-hero .hero-subtitle {
    white-space: nowrap;
    font-size: 12px;
  }

  .verify-hero {
    padding-bottom: 64px;
  }

  .verify-header {
    padding: 16px 12px;
  }

  .btn-verify-login {
    font-size: 12px;
    width: 100px !important;
    padding: 9px 16px;
  }
}

/* ================================== */
/* Large Desktop Specific Styles */
/* ================================== */
@media (min-width: 1730px) {
  .verify-hero {
    padding: 120px 24px 90px;
  }

  .verify-hero h1 {
    font-size: 56px;
  }

  .verify-hero .hero-subtitle {
    font-size: 20px;
    margin-bottom: 56px;
  }

  .verify-search-form {
    max-width: 900px;
    bottom: -36px;
  }

  .verify-search-wrap {
    padding: 10px 10px 10px 32px;
  }

  .verify-search-wrap input {
    font-size: 18px;
  }

  .btn-verify-search {
    width: 64px;
    height: 64px;
  }

  .btn-verify-search img,
  .btn-verify-search svg {
    width: 28px;
    height: 28px;
  }

  .verify-trusted h2 {
    font-size: 28px;
    margin-bottom: 48px;
  }

  .partner-icon {
    width: 72px;
    height: 72px;
  }

  .partner-icon img,
  .partner-icon svg {
    width: 36px;
    height: 36px;
  }

  .verify-partners span {
    font-size: 13px;
    max-width: 100px;
  }

  .verify-partners li {
    min-width: 90px;
    gap: 16px;
  }

  .verify-contact-input {
    width: 723px !important;
    max-width: 738px !important;
    padding: 20px 24px;
    font-size: 20px;
  }

  .verify-footer-col form {
    max-width: 738px;
  }

  .verify-social a {
    width: 64px;
    height: 64px;
  }

  .verify-social img,
  .verify-social svg {
    width: 56px;
    height: 56px;
  }

  .btn-verify-submit {
    font-size: 20px;
  }

  .verify-logo img {
    height: 95px;
  }

  .verify-footer-col h3 {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .verify-footer-links a {
    font-size: 22px;
  }

  .verify-footer-links li {
    margin-bottom: 24px;
  }
}

/* ================================== */
/* Result Page Styles */
/* ================================== */

.result-page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #fff;
}

.result-white-bg {
  background: #fff;
  border-radius: 0 0 40px 40px;
  padding-bottom: 80px;
  flex-shrink: 0;
}

.purple-bg-wrapper {
  width: 100%;
  margin: 0;
  padding-bottom: 24px;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.purple-bg-wrapper::before {
  content: "";
  position: absolute;
  top: 250px;
  /* Starts approx 50% down the second card */
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--verify-primary);
  background-image: url('../img/blue-background.png');
  background-size: contain;
  background-repeat: repeat;
  border-radius: 40px 40px 0 0;
  z-index: -1;
}

.result-card-section.details-section {
  margin-top: 0;
  /* Natural document flow, gap is handled by the first card's padding */
  padding-top: 0;
}

.result-nav-desktop {
  display: flex;
  gap: 24px;
  align-items: center;
}

.result-nav-desktop a {
  font-size: 14px;
  font-weight: 500;
  color: var(--verify-text-muted);
}

.result-nav-desktop a:hover {
  color: var(--verify-primary);
}

.result-nav-mobile {
  display: none;
  align-items: center;
  gap: 16px;
}

.btn-hamburger {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.btn-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--verify-primary);
}

.user-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.result-hero {
  text-align: center;
  padding: 50px 24px 14px
}

.result-hero h1 {
  font-size: clamp(22px, 4vw, 32px);
  color: var(--verify-primary);
  margin: 0 0 12px;
  font-weight: 700;
}



.result-hero .hero-subtitle {
  color: #666666;
  font-size: 19px;
  font-weight: 400;
  margin: 0;
}

.result-card-section {
  max-width: 1100px;
  width: 100%;
  margin: -60px auto 0;
  position: relative;
  z-index: 2;
  padding: 0 24px 18px;
  /* Added 24px horizontal padding for iPad/tablet gutters */
  background: transparent;
  background-image: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.result-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(77, 68, 153, 0.1);
  overflow: hidden;
}

.result-card-header {
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--verify-border);
}

.verified-status {
  display: flex;
  align-items: center;
  gap: 16px;
}

.verified-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verified-icon img,
.verified-icon svg {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.verified-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.verified-text strong {
  color: #16A34A;
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
}

.verified-text span {
  font-size: 13px;
  color: var(--verify-text-muted);
  white-space: nowrap;
}

.application-id {
  font-size: 20px;
  font-weight: 500;
  color: #323133;
}

.result-card-body {
  padding: 20px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.card-title-row h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--verify-primary);
  margin: 0;
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 101px;
  height: 39px;
  padding: 8px;
  background: rgba(34, 197, 94, 0.1);
  color: #168C45;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 400;
  box-sizing: border-box;
}

.badge-verified img,
.badge-verified svg {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.badge-active {
  display: inline-flex;
  padding: 6px 10px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-expired {
  display: inline-flex;
  padding: 6px 10px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.details-grid {
  display: grid;
  grid-template-rows: repeat(6, auto);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 0;
  border-top: 1px solid #edeef2;
}

.detail-item {
  display: flex;
  align-items: center;
  font-size: 16px;
  padding: 20px 16px;
  border-bottom: 1px solid #edeef2;
}

/* .detail-item:nth-child(-n+6) {
  border-right: 1px solid #edeef2;
} */

.detail-item:nth-child(6),
.detail-item:last-child {
  border-bottom: none;
}

@media (min-width: 992px) {
  .result-unique-grid .detail-item:nth-child(-n+6) {
    border-right: 1px solid #edeef2;
  }

  .result-unique-title {
    margin-bottom: 12px;
  }
}

.detail-label {
  color: var(--verify-text-muted);
  font-weight: 400;
  width: 180px;
  flex-shrink: 0;
}

.detail-colon {
  color: var(--verify-text-muted);
  margin: 0 16px 0 0;
}

.detail-value {
  color: #323133;
  font-weight: 500;
  flex: 1;
  white-space: normal;
  word-break: break-word;
}

.blurred-placeholder {
  color: #aab0c0;
  filter: blur(4px);
  background: #f1f2f6;
  border-radius: 6px;
  padding: 4px 10px;
  user-select: none;
  letter-spacing: 0.04em;
}

.result-card-footer {
  padding-left: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
}

.link-verify-another {
  color: var(--verify-primary);
  font-weight: 500;
  font-size: 14px;
}

.link-unlock-report {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--verify-text-muted);
  font-size: 14px;
}

.link-unlock-report img,
.link-unlock-report svg {
  color: var(--verify-primary);
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.link-unlock-report strong {
  color: var(--verify-primary);
}

/* Document Verification Result Footer */
.dvr-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dvr-disclaimer {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 100%;
  /* 1 */
  color: #64748b;
  margin: 0;
}

.btn-print-download {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 183px;
  height: 44px;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid #4D4499;
  background: #FFFFFF;
  color: #4D4499;
  padding: 10px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-print-download svg,
.btn-print-download img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.btn-print-download svg {
  stroke: #4D4499;
}

.btn-print-download:hover {
  background: #f8f9fa;
}

@media (max-width: 991px) {
  .details-grid {
    grid-template-rows: auto;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    gap: 0;
  }

}

@media (max-width: 575px) {
  .result-page-body {
    background-size: 180px;
  }

  .result-card-section {
    padding: 0 24px 0px;
  }

  .result-card-section.details-section {
    margin-top: 18px;
  }

  /* Mobile card header: icon+Verified row, subtitle, then REG right-aligned */
  .result-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 20px 16px;
  }

  .verify-search-wrap {
    padding: 4px 5px 3px 29px;
  }

  .btn-verify-search {
    width: 38px;
    height: 38px;
  }

  .verify-search-form {
    width: calc(100% - 72px);
  }

  .verify-header {
    background-color: #fff;
  }

  .result-hero .hero-subtitle {
    font-size: 14px;
  }

  .verified-status {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .verified-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .verified-icon img,
  .verified-icon svg {
    width: 26px;
    height: 26px;
  }

  .verified-text {
    text-align: left;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .verified-text span {
    white-space: normal;
  }

  .application-id {
    font-size: 16px;
    text-align: right;
    font-weight: 700;
  }

  .result-hero {
    padding: 24px 16px 11px;
  }

  .result-hero h1 {
    font-size: 16px;
  }

  .result-card-body {
    padding: 16px;
  }

  .result-card-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .dvr-card-footer {
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #edeef2;
  }

  .dvr-disclaimer {
    width: 100%;
    line-height: 1.4;
  }

  .dvr-disclaimer br {
    display: none;
  }

  .details-grid .detail-item {
    border-bottom: none;
    font-size: 14px;
  }

  .link-verify-another {
    display: inline-flex;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .link-unlock-report {
    font-size: 12px;
    gap: 5px;
  }

  .link-unlock-report img,
  .link-unlock-report svg {
    width: 12px;
    height: 12px;
  }

  .detail-label {
    width: 140px;
  }
}

/* ================================== */
/* Unlock Report Modal                */
/* ================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 18, 50, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 24px;
  /* Hidden by default — shown only via .active class */
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

.modal-overlay[hidden] {
  display: none;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-box {
  background: #fff;
  border-radius: 24px;
  padding: 48px 52px 40px;
  width: 100%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 24px 64px rgba(77, 68, 153, 0.22);
  animation: modal-slide-up 0.25s ease;
}

@keyframes modal-slide-up {
  from {
    transform: translateY(24px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-drag-handle {
  display: none;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.modal-close:hover {
  color: #374151;
  background: #f3f4f6;
}

.modal-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--verify-primary);
  margin: 0 0 12px;
  text-align: center;
}

.modal-subtitle {
  font-size: 17px;
  font-weight: 500;
  color: #6b7280;
  text-align: center;
  margin: 0 0 32px;
  line-height: 1.5;
  white-space: nowrap;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-field label {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.modal-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 20px;
  background: #f9fafb;
  transition: border-color 0.2s, background 0.2s;
}

.modal-input-wrap:focus-within {
  border-color: var(--verify-primary);
  background: #fff;
}

.input-icon {
  flex-shrink: 0;
  color: #9ca3af;
}

/* Modal input field icon images */
.modal-input-wrap img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Unlock button icon */
.btn-unlock-report img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Secure note lock icon */
.modal-secure-note img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.modal-input-wrap input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: #374151;
  width: 100%;
  font-family: inherit;
}

.modal-input-wrap input::placeholder {
  color: #9ca3af;
}

.btn-unlock-report {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 24px;
  background: var(--verify-primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  margin-top: 8px;
  transition: background 0.2s, transform 0.15s;
}

.btn-unlock-report:hover {
  background: var(--verify-primary-dark);
  transform: translateY(-1px);
}

.btn-unlock-report:active {
  transform: translateY(0);
}

.modal-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--verify-primary);
  font-weight: 500;
}

.modal-secure-note svg {
  flex-shrink: 0;
}

/* Mobile: bottom-sheet style */
@media (max-width: 575px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .modal-box {
    border-radius: 24px 24px 0 0;
    padding: 24px 24px 40px;
    max-width: 100%;
    max-height: 92dvh;
    overflow-y: auto;
    animation: modal-sheet-up 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  }

  @keyframes modal-sheet-up {
    from {
      transform: translateY(100%);
    }

    to {
      transform: translateY(0);
    }
  }

  .modal-drag-handle {
    display: block;
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 99px;
    margin: 0 auto 24px;
  }

  .modal-title {
    font-size: 22px;
    text-align: center;
  }

  .modal-subtitle {
    font-size: 12px;
    text-align: center;
  }

  .modal-input-wrap {
    padding: 12px 16px;
  }

  .btn-unlock-report {
    padding: 16px 24px;
    font-size: 15px;
  }

  /* Override bottom-sheet style for success modal to keep it centered like a normal modal */
  #success-modal.modal-overlay {
    align-items: center;
    padding: 24px;
  }

  #success-modal .modal-box {
    border-radius: 24px;
    animation: modal-slide-up 0.25s ease;
  }

  #success-modal .modal-drag-handle {
    display: none;
  }
}

/* ================================== */
/* Success Modal                      */
/* ================================== */

.modal-box--success {
  text-align: center;
  padding: 48px 52px 44px;
}

.success-icon-wrap {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.success-icon-wrap img,
.success-icon-wrap svg {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.modal-box--success .modal-title {
  font-size: clamp(22px, 4vw, 30px);
  margin-bottom: 12px;
}

.modal-box--success .modal-subtitle {
  font-size: 15px;
  margin-bottom: 32px;
}

@media (max-width: 575px) {
  .modal-box--success {
    padding: 32px 24px 16px;
  }

  .modal-box--success .modal-subtitle {
    font-size: 13px;
  }

  .success-icon-wrap {
    width: 72px;
    height: 72px;
  }

  .success-icon-wrap svg,
  .success-icon-wrap img {
    width: 72px;
    height: 72px;
    object-fit: contain;
  }
}

/* ================================== */
/* Print Modal Specific Styles        */
/* ================================== */

.modal-box--print {
  max-width: 800px;
  padding: 40px;
  background: #ffffff;
  max-height: 90vh;
  overflow-y: auto;
}

.print-header {
  text-align: center;
  margin-bottom: 24px;
}

.print-logo {
  height: 48px;
  margin-bottom: 16px;
  object-fit: contain;
}

.print-logo-divider {
  opacity: 0.5;
  width: 64px;
  height: 4px;
  background-color: #4D4499;
  border-radius: 20px;
  margin: 0 auto 16px;
}

.print-header h2 {
  color: #4D4499;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}

.print-header p {
  color: #64748B;
  font-size: 15px;
  margin: 0;
}

.print-card {
  border: 1px solid #edeef2;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  background: #ffffff;
}

.print-reg-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.print-reg-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.print-reg-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.print-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.print-icon-purple {
  width: 48px;
  height: 48px;
  background: #F4F3FF;
  color: #4D4499;
}

.print-icon-purple img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.print-icon-purple-sm {
  width: 32px;
  height: 32px;
  background: #F4F3FF;
  color: #4D4499;
}

.print-icon-purple-sm img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.print-icon-green {
  width: 48px;
  height: 48px;
  background: #178A4D1A;
  color: #22c55e;
}

.print-icon-green img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.print-reg-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.print-reg-text span,
.print-reg-status>span:first-child {
  font-size: 13px;
  color: #64748B;
}

.print-reg-text strong {
  font-size: 16px;
  color: #4D4499;
  font-weight: 700;
}

.print-reg-divider {
  width: 1px;
  height: 48px;
  background: #edeef2;
}

.print-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.print-card-title h3 {
  font-size: 16px;
  color: #4D4499;
  font-weight: 600;
  margin: 0;
}

.print-details-card .details-grid {
  grid-template-columns: 1fr;
  grid-auto-flow: row;
}

.print-details-card .details-grid .detail-item {
  border-right: none;
}

.print-details-card .detail-label {
  color: #6B6388;
}

.print-details-card .detail-value {
  color: #4D4499;
}

.print-qr-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8F6FB;
  border: none;
}

.print-qr-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.print-qr-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.print-qr-text strong {
  color: #4D4499;
  font-size: 15px;
  font-weight: 600;
}

.print-qr-text span {
  color: #64748b;
  font-size: 13px;
}

.print-qr-placeholder svg,
.print-qr-placeholder img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.print-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 32px 0 24px;
}

.print-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.print-actions button:hover {
  opacity: 0.9;
}

.btn-print-solid {
  background: #4D4499;
  color: #fff;
  border: none;
}

.btn-print-solid img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.btn-print-outline {
  background: #fff;
  color: #4D4499;
  border: 1px solid #4D4499;
}

.btn-print-outline img {
  width: 24px;
  height: 24px;
}

.print-disclaimer {
  display: block;
  text-align: center;
  color: #6B6388;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #edeef2;
}

.print-disclaimer svg,
.print-disclaimer img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  margin-bottom: 2px;
}

@media (max-width: 575px) {
  .print-header h2 {
    font-size: 26px;
  }

  .print-header p {
    font-size: 14px;
  }

  .print-disclaimer br {
    display: none;
  }

  #print-modal.modal-overlay {
    align-items: center;
    padding: 24px;
  }

  #print-modal .modal-box {
    border-radius: 24px;
    animation: modal-slide-up 0.25s ease;
  }

  #print-modal .modal-drag-handle {
    display: none;
  }

  .modal-box--print {
    padding: 32px 20px 40px;
  }

  .print-reg-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .print-reg-divider {
    display: none;
  }

  .print-reg-status {
    align-self: flex-end;
    align-items: flex-start;
  }

  .print-qr-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .print-qr-placeholder {
    align-self: flex-end;
  }

  .print-qr-text strong {
    white-space: nowrap;
    font-size: 13.5px;
  }

  .print-actions {
    flex-direction: row;
    gap: 12px;
  }

  .print-actions button {
    flex: 1;
    padding: 12px;
    font-size: 16px;
  }

  .print-details-card .details-grid .detail-item {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid #edeef2;
    padding: 12px 0;
  }

  .print-details-card .details-grid .detail-item:last-child {
    border-bottom: none;
  }

  .print-details-card .details-grid .detail-colon {
    display: block;
    margin: 0;
  }

  .print-details-card .details-grid .detail-label {
    flex: 0 0 75%;
    margin-bottom: 8px;
  }

  .print-details-card .details-grid .detail-value {
    flex: 0 0 100%;
    margin-top: 6px;
    text-align: left;
  }
}

/* Custom layout for Search Result Details on mobile */
@media (max-width: 575px) {
  .search-result-details .details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: row;
    gap: 12px;
    padding: 16px 0;
  }

  .search-result-details .detail-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    border: none;
  }

  .search-result-details .detail-label {
    width: auto;
    font-size: 11px;
    text-transform: uppercase;
    color: #6B7280;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
  }

  .search-result-details .detail-colon {
    display: none;
  }

  .search-result-details .detail-value {
    font-size: 14px;
    color: #111827;
    white-space: normal;
    word-break: break-word;
  }

  .search-result-details .detail-item:nth-child(1) {
    order: 1;
    grid-column: span 2;
  }

  .search-result-details .detail-item:nth-child(3) {
    order: 2;
    grid-column: span 2;
  }

  .search-result-details .detail-item:nth-child(5) {
    order: 3;
    grid-column: span 2;
  }

  .search-result-details .detail-item:nth-child(7) {
    order: 4;
    grid-column: span 1;
  }

  .search-result-details .detail-item:nth-child(9) {
    order: 5;
    grid-column: span 1;
  }

  .search-result-details .detail-item:nth-child(11) {
    order: 6;
    grid-column: span 1;
  }

  .search-result-details .detail-item:nth-child(2) {
    order: 7;
    grid-column: span 1;
  }

  .search-result-details .detail-item:nth-child(4) {
    order: 8;
    grid-column: span 1;
  }

  .search-result-details .detail-item:nth-child(6) {
    order: 9;
    grid-column: span 1;
  }

  .search-result-details .detail-item:nth-child(8) {
    order: 10;
    grid-column: span 2;
  }

  .search-result-details .detail-item:nth-child(10) {
    order: 11;
    grid-column: span 2;
  }

  .search-result-details .detail-item:nth-child(12) {
    order: 12;
    grid-column: span 2;
  }

  .card-title-row {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* Force background colors to print */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
}

.result-auth-buttons {
  display: flex;
  justify-content: flex-end;
  padding: 20px 24px 0;
  gap: 12px;
  margin: 0 auto;
}


@media (max-width: 575px) {
  .result-auth-buttons {
    justify-content: end;
    padding-top: 16px;
    padding-right: 12px;
  }
}