/* TrustVanta Certificate Verifier — Frontend */
.tvcv-public-wrap,
.tvcv-public-wrap * {
  box-sizing: border-box;
}

.tvcv-public-wrap {
  --tvcv-navy: #071d52;
  --tvcv-navy-2: #0a2d70;
  --tvcv-blue: #0d63e6;
  --tvcv-blue-2: #3c9cff;
  --tvcv-cyan: #17b9cf;
  --tvcv-teal: #18bf98;
  --tvcv-violet: #6d50e8;
  --tvcv-gold: #e9a323;
  --tvcv-red: #cf3b55;
  --tvcv-ink: #10213f;
  --tvcv-text: #46546c;
  --tvcv-muted: #71809a;
  --tvcv-line: rgba(13, 99, 230, .13);
  width: 100%;
  max-width: 1120px;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) 14px;
  color: var(--tvcv-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  overflow-x: clip;
}

.tvcv-public-wrap h2,
.tvcv-public-wrap h3,
.tvcv-public-wrap p { margin-top: 0; }

.tvcv-public-wrap h2,
.tvcv-public-wrap h3 {
  color: var(--tvcv-ink);
  line-height: 1.13;
  letter-spacing: -.035em;
}

.tvcv-hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 6vw, 64px);
  border: 1px solid rgba(13, 99, 230, .12);
  border-radius: 30px;
  text-align: center;
  background:
    radial-gradient(circle at 80% 8%, rgba(66, 160, 255, .20), transparent 31%),
    radial-gradient(circle at 10% 88%, rgba(23, 185, 207, .10), transparent 28%),
    linear-gradient(135deg, #ffffff, #eef6ff);
  box-shadow: 0 24px 64px rgba(20, 67, 139, .13);
}

.tvcv-hero-card::before {
  content: "";
  position: absolute;
  width: 370px;
  height: 370px;
  right: -170px;
  top: -220px;
  border-radius: 50%;
  border: 1px solid rgba(13, 99, 230, .10);
  box-shadow: 0 0 0 45px rgba(13, 99, 230, .025), 0 0 0 90px rgba(13, 99, 230, .015);
  pointer-events: none;
}

.tvcv-brand-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}

.tvcv-brand-logo {
  width: min(238px, 52vw);
  height: auto;
  object-fit: contain;
}

.tvcv-database-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #0b58c0;
  background: rgba(13, 99, 230, .08);
  border: 1px solid rgba(13, 99, 230, .09);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.tvcv-hero-icon {
  position: relative;
  z-index: 2;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 25px;
  color: #fff;
  background: linear-gradient(135deg, var(--tvcv-blue), var(--tvcv-cyan));
  box-shadow: 0 17px 34px rgba(13, 99, 230, .24);
  font-size: 38px;
  font-weight: 900;
}

.tvcv-kicker,
.tvcv-small-label {
  display: block;
  color: var(--tvcv-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tvcv-hero-card h2 {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 10px auto 14px;
  font-size: clamp(34px, 5.2vw, 58px);
}

.tvcv-hero-card > p {
  position: relative;
  z-index: 2;
  max-width: 690px;
  margin: 0 auto 28px;
  color: var(--tvcv-muted);
  font-size: clamp(15px, 1.8vw, 18px);
}

.tvcv-verify-form {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 7px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border: 1px solid rgba(13, 99, 230, .15);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 36px rgba(20, 67, 139, .10);
}

.tvcv-verify-form input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 17px;
  border: 0;
  border-radius: 13px;
  outline: none;
  color: var(--tvcv-ink);
  background: transparent;
  font: inherit;
}

.tvcv-verify-form input:focus {
  box-shadow: 0 0 0 3px rgba(13, 99, 230, .10);
}

.tvcv-verify-form button {
  min-width: 140px;
  min-height: 54px;
  padding: 12px 25px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--tvcv-blue), #0753c5);
  box-shadow: 0 12px 25px rgba(13, 99, 230, .23);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.tvcv-verify-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 31px rgba(13, 99, 230, .29);
}

.tvcv-result-card {
  width: 100%;
  min-width: 0;
  margin-top: 24px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--tvcv-line);
  box-shadow: 0 18px 48px rgba(20, 67, 139, .11);
}

.tvcv-result-warning,
.tvcv-result-notfound { text-align: center; }

.tvcv-result-warning {
  border-color: rgba(233, 163, 35, .25);
  background: linear-gradient(180deg, #fff, #fffaf0);
}

.tvcv-result-notfound {
  border-color: rgba(207, 59, 85, .19);
  background: linear-gradient(180deg, #fff, #fff6f8);
}

.tvcv-result-card h3 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3.5vw, 38px);
}

.tvcv-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--tvcv-line);
}

.tvcv-result-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.tvcv-result-logo {
  flex: 0 0 154px;
  width: 154px;
  max-width: 32vw;
  height: auto;
}

.tvcv-result-heading h3 { margin: 5px 0 0; }

.tvcv-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.tvcv-status-active {
  color: #08705a;
  background: rgba(24, 191, 152, .12);
}

.tvcv-status-expired,
.tvcv-status-withdrawn {
  color: #a52d43;
  background: rgba(207, 59, 85, .10);
}

.tvcv-status-suspended {
  color: #895900;
  background: rgba(233, 163, 35, .15);
}

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

.tvcv-details-grid > div {
  min-width: 0;
  min-height: 94px;
  padding: 17px 18px;
  display: grid;
  align-content: center;
  gap: 6px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff, #f3f8ff);
  border: 1px solid rgba(13, 99, 230, .08);
}

.tvcv-details-grid span,
.tvcv-scope-box > span {
  color: var(--tvcv-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.tvcv-details-grid strong {
  color: var(--tvcv-navy);
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.tvcv-scope-box {
  margin-top: 18px;
  padding: 22px;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(13, 99, 230, .075), rgba(23, 185, 207, .055));
  border: 1px solid rgba(13, 99, 230, .10);
}

.tvcv-scope-box p {
  margin: 8px 0 0;
  color: #3d4e69;
  overflow-wrap: anywhere;
}

.tvcv-pdf-button {
  min-height: 49px;
  margin-top: 20px;
  padding: 12px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--tvcv-blue), #0753c5);
  font-weight: 850;
  text-decoration: none !important;
  box-shadow: 0 12px 25px rgba(13, 99, 230, .20);
}

.tvcv-disclaimer {
  margin: 23px 0 0 !important;
  padding-top: 18px;
  border-top: 1px solid var(--tvcv-line);
  color: var(--tvcv-muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 700px) {
  .tvcv-public-wrap {
    padding-left: 10px;
    padding-right: 10px;
  }

  .tvcv-hero-card {
    padding: 27px 17px;
    border-radius: 23px;
  }

  .tvcv-brand-row {
    align-items: center;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .tvcv-brand-logo {
    width: min(220px, 72vw);
  }

  .tvcv-database-label {
    max-width: 100%;
    text-align: center;
    white-space: normal;
  }

  .tvcv-hero-card h2 {
    font-size: clamp(31px, 10vw, 44px);
    overflow-wrap: anywhere;
  }

  .tvcv-verify-form {
    grid-template-columns: 1fr;
    padding: 7px;
  }

  .tvcv-verify-form button {
    width: 100%;
  }

  .tvcv-result-card {
    padding: 22px 15px;
    border-radius: 21px;
  }

  .tvcv-result-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .tvcv-result-heading {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .tvcv-result-logo {
    width: 165px;
    max-width: 70vw;
  }

  .tvcv-status-badge {
    white-space: normal;
  }

  .tvcv-details-grid {
    grid-template-columns: 1fr;
  }

  .tvcv-details-grid > div {
    min-height: 0;
  }
}
