/* =========================================================
   Certificate Validator – improved layout
   ========================================================= */

#cv-validator-wrapper {
  width: 100%;
  max-width: 760px;
  margin: 60px auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Intro */

#cv-validator-wrapper .cv-intro {
  text-align: center;
  margin-bottom: 38px;
}

#cv-validator-wrapper .cv-intro h3 {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 500;
}

#cv-validator-wrapper .cv-intro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

/* Main form/report panel */

#cv-validator-wrapper .inner-form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 50px;
  box-sizing: border-box;
}

/* Input */

#cv-input-container label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

#cv-input-container input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  margin: 0 0 16px;
  border: 1px solid #cfcfcf;
  border-radius: 3px;
  background: #fff;
  color: #222;
  font-size: 17px;
  box-sizing: border-box;
}

#cv-input-container input:focus {
  border-color: #222;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

/* Buttons */

#cv-validate-btn,
#cv-reset-btn,
#cv-pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border: 1px solid #222;
  border-radius: 3px;
  background: #222;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

#cv-validate-btn {
  width: 100%;
}

#cv-validate-btn:hover,
#cv-reset-btn:hover,
#cv-pdf-link:hover {
  background: #fff;
  color: #222;
}

#cv-validate-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Error */

#cv-error {
  margin: 0 0 16px;
  padding: 12px 15px;
  border-left: 4px solid #b42318;
  background: #fff1f0;
  color: #8a1c14;
  font-size: 15px;
  line-height: 1.5;
}

/* Report area */

#cv-report-container {
  text-align: left;
}

#cv-report-title {
  margin: 0 0 22px;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
}

#cv-issue-date {
  margin: -10px 0 24px;
  color: #666;
  font-size: 15px;
  text-align: center;
}

/* Normal completed report table */

#cv-report-container .report-table {
  width: 100%;
  margin: 0 0 24px;
  border: 0;
  border-collapse: collapse;
}

#cv-report-container .report-table tr {
  border-bottom: 1px solid #e5e5e5;
}

#cv-report-container .report-table tr:nth-child(odd) {
  background: #f7f7f7;
}

#cv-report-container .report-table td {
  padding: 14px 16px;
  border: 0;
  font-size: 16px;
  line-height: 1.5;
  vertical-align: top;
}

#cv-report-container .report-table td:first-child {
  width: 38%;
  font-weight: 600;
}

/* =========================================================
   Report in house
   ========================================================= */

/*
 * When the report title says REPORT IN HOUSE, your JavaScript places
 * the message inside a single table cell. These rules turn it into
 * a clean message card.
 */

#cv-report-container:has(#cv-report-title:not(:empty)) {
  max-width: 680px;
}

#cv-report-title + #cv-issue-date[style*="display: none"] {
  margin: 0;
}

#cv-report-container .report-table tr:only-child {
  border: 0;
  background: transparent;
}

#cv-report-container .report-table tr:only-child td[colspan="2"] {
  width: auto;
  padding: 30px 34px;
  border: 1px solid #dedede;
  border-radius: 4px;
  background: #f8f8f8;
  color: #252525;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  text-align: center;
}

#cv-report-container .report-table tr:only-child td[colspan="2"] strong {
  font-weight: 700;
}

/* Report action buttons */

#cv-report-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

#cv-reset-btn {
  width: 100%;
  background: #fff;
  color: #222;
}

#cv-reset-btn:hover {
  background: #222;
  color: #fff;
}

#cv-pdf-link {
  margin: 0;
}

#cv-report-actions.has-pdf {
  flex-direction: row;
}

#cv-report-actions.has-pdf #cv-pdf-link,
#cv-report-actions.has-pdf #cv-reset-btn {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}

/* Footer */

#cv-validator-wrapper .cv-footer-text {
  margin-top: 65px;
  padding-top: 42px;
  border-top: 1px solid #e2e2e2;
  text-align: center;
}

#cv-validator-wrapper .cv-footer-text h4 {
  margin: 0 0 15px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 500;
}

#cv-validator-wrapper .cv-footer-text h4:not(:first-child) {
  margin-top: 36px;
}

#cv-validator-wrapper .cv-footer-text p {
  max-width: 700px;
  margin: 0 auto 18px;
  font-size: 15px;
  line-height: 1.75;
}

#cv-validator-wrapper .cv-footer-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mobile */

@media (max-width: 640px) {
  #cv-validator-wrapper {
    margin: 35px auto;
    padding: 0 18px;
  }

  #cv-validator-wrapper .cv-intro {
    margin-bottom: 28px;
  }

  #cv-validator-wrapper .cv-intro h3 {
    font-size: 27px;
  }

  #cv-report-title {
    font-size: 29px;
  }

  #cv-report-actions.has-pdf {
    flex-direction: column;
  }

  #cv-report-actions.has-pdf #cv-pdf-link,
  #cv-report-actions.has-pdf #cv-reset-btn {
    width: 100%;
  }

  #cv-report-container .report-table td {
    display: block;
    width: 100%;
    padding: 9px 14px;
    box-sizing: border-box;
  }

  #cv-report-container .report-table td:first-child {
    width: 100%;
    padding-bottom: 2px;
  }

  #cv-report-container .report-table td:last-child {
    padding-top: 2px;
    padding-bottom: 13px;
  }

  #cv-report-container .report-table tr:only-child td[colspan="2"] {
    display: table-cell;
    padding: 24px 20px;
    font-size: 16px;
    line-height: 1.7;
  }

  #cv-validator-wrapper .cv-footer-text {
    margin-top: 45px;
    padding-top: 32px;
  }
}
.cv-document-viewer {
  width: 100%;
  max-width: 1150px;
  margin: 40px auto;
}

.cv-document-intro {
  max-width: 850px;
  margin: 0 auto 35px;
}

.cv-document-intro h1 {
  margin-bottom: 20px;
}

.cv-document-intro p {
  line-height: 1.7;
}

.cv-document-image {
  text-align: center;
}

.cv-document-image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.cv-document-pdf {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%;
  overflow: hidden;
}

.cv-document-pdf iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cv-document-limitations {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid #ddd;
}

.cv-document-limitations h2 {
  font-size: 18px;
}

.cv-document-limitations p {
  line-height: 1.7;
}

.cv-document-date {
  margin-top: 25px;
  font-size: 13px;
  text-align: center;
}

.cv-report-error {
  padding: 20px;
  border: 1px solid #d8b4b4;
  background: #fff4f4;
  text-align: center;
}

@media (max-width: 700px) {
  .cv-document-viewer {
    margin: 25px auto;
  }

  .cv-document-pdf {
    min-height: 650px;
    padding-bottom: 0;
  }
}