* {
  box-sizing: border-box;
}

:root {
  --purple: #2b216b;
  --purple-dark: #171044;
  --blue: #1459a6;
  --border: #999;
  --text: #171717;
  --muted: #666;
  --error: #c62828;
  --success: #187a42;
}
html,
body {
  margin: 0;
  font-family: RobotoDraft, "Helvetica Neue", Helvetica, Arial;
}

#top-body {
  background: url(https://spfc.punjab.gov.pk/assets/images/bg.jpg) no-repeat
    center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.top-navbar body,
.top-navbar-large body,
.top-navbar-xlarge body {
  padding-top: 0px;
}
.bottom-footer body {
  padding-bottom: 45px;
}

.cnic {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 5px;
  font-weight: 700;
  color: #797979;
}

.header::before {
  background-color: #fff;
  opacity: 0.86;
}
.header::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    125deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 45%,
    transparent 70%
  );

  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 2;

  max-width: 1050px;
  margin: auto;

  min-height: 100px;

  padding: 12px 20px;

  display: flex;
  align-items: center;
  gap: 16px;
}
.top-head {
  background: #fff;
  opacity: 0.2;
  min-height: 85px;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.container,
.container-fluid {
  margin-right: auto;
  margin-left: auto;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 992px) {
  .navbar.navbar-size-xlarge {
    min-height: 50px;
  }
}
@media (min-width: 992px) {
  .navbar.navbar-size-large {
    min-height: 64px;
  }
}
.transition-navbar-scroll .navbar {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar {
  position: relative;
  min-height: 50px;
  margin-bottom: 18px;
  border: 1px solid transparent;
  top: -75px;
  margin-top: 0px;
}

.logo {
  width: 70px;
  height: 70px;

  flex: 0 0 70px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  border: none;
}

.logo img {
  width: 300px;
  cursor: pointer;
  object-fit: contain;

  opacity: 1;
}

.header-title {
  margin: 0;

  color: #ffffff;

  font-size: 23px;
  font-weight: 700;

  opacity: 1;
}

.header-subtitle {
  margin-top: 5px;

  color: #ffffff;

  font-size: 15px;
  font-weight: 400;

  opacity: 1;
}

main {
  margin: -20px 25px 25px 25px;
  flex: 1;
}

.card {
  margin: 0 auto;
  max-width: 1200px;
  background: white;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.verification {
  padding: 28px 30px;
}
.verification .panel-title {
  margin-bottom: 20px;
  text-align: center;
  font-size: 18px;
  color: inherit;
  font-weight: bold;
  color: #2a1671;
}

.divider {
  margin-top: 20px;
  height: 1px;
  background: #ddd;
  margin-bottom: 25px;
}

.form-inner {
  margin: auto;
}

label {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  max-width: 100%;
  margin-bottom: 5px;
  color: #797979;
}

input {
  width: 100%;
  height: 46px;
  border: 1px solid #ffd0a1;
  padding: 8px 12px;
  font-size: 13px;
  color: #333;
  outline: none;
  transition:
    border-color ease-in-out 0.15s,
    box-shadow ease-in-out 0.15s;
}

input:focus {
  border-color: #dfdfdf;
  box-shadow: none;
}

input.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.08);
}

.captcha-question {
  text-align: center;
  margin: 18px 0 9px;
  font-weight: 800;
  display: block;
  font-size: 16px;
  font-weight: 700;
  /* margin-bottom: 8px; */
  max-width: 100%;
  margin-bottom: 5px;
  color: #797979;
}

.captcha-row {
  display: flex;
  gap: 10px;
}

.refresh {
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  background: #007bff;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

.refresh:hover {
  background: #0056b3;
}

.submit-wrapper {
  text-align: center;
  margin-top: 20px;
}

.submit {
  border: none;
  border-radius: 2px;
  background: #2a1671;
  color: white;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.42857143;
  font-weight: 400;
  cursor: pointer;
}

.submit:hover {
  background: #4b5ab1;
}

.message {
  min-height: 20px;
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
}

.message.error {
  color: var(--error);
}

.message.success {
  color: var(--success);
}

.result {
  display: none;
  border-top: 1px solid #ddd;
  padding: 25px;
}

.result.show {
  display: block;
}

.verified {
  max-width: 850px;
  margin: 0 auto 25px;
  padding: 10px;

  text-align: center;
  font-weight: 800;

  color: #176b3a;
  background: #e9f7ef;
  border: 1px solid #b8dfc6;
  border-radius: 6px;
}

.document-title {
  margin-bottom: 22px;

  text-align: center;

  color: #302070;

  font-size: 15px;
  font-weight: 800;
}

.document-heading {
  display: grid;

  grid-template-columns: 110px 1fr 110px;

  align-items: center;

  gap: 15px;

  margin-bottom: 10px;
}

.demo-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.demo-logo img {
  width: 90px;
  height: 90px;

  object-fit: contain;
}

.heading-text {
  text-align: center;
}

.heading-text h3 {
  margin: 5px 0;

  font-size: 22px;
  line-height: 1.25;
}

.photo-container {
  display: flex;
  justify-content: flex-end;
}

.photo {
  width: 90px;
  height: 110px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #999;

  background: #eee;

  color: #777;

  font-size: 11px;
  font-weight: 700;

  text-align: center;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.meta {
  display: flex;

  justify-content: space-between;

  gap: 20px;

  margin: 12px 0 8px;

  font-size: 12px;
}

.details,
.stay {
  border-collapse: collapse;

  table-layout: fixed;
}

.details .label-col {
  width: 28%;
}

.details .value-col {
  width: 48%;
}

.details .label-col-small {
  width: 14%;
}

.details .value-col-small {
  width: 10%;
}

.document {
  position: relative;
  width: 100%;
  /* max-width: 900px; */
  margin: 0 auto;
  box-sizing: border-box;

  background: #fff;
  /* border: 1px solid #999; */

  overflow: hidden;
}

.demo-watermark {
  position: absolute;

  top: 33%;
  left: 50%;

  width: 360px;
  height: 360px;

  transform: translate(-50%, -50%);

  z-index: 1;

  pointer-events: none;
  user-select: none;

  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-watermark img {
  display: block;

  width: 100% !important;
  height: 100% !important;

  object-fit: contain;

  opacity: 0.1;
}

.document-content {
  position: relative;
  z-index: 2;
}

.details {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;

  position: relative;
  z-index: 2;
}

.details th,
.details td {
  border: 1px solid #999;

  padding: 7px 9px;

  height: 32px;

  box-sizing: border-box;

  font-size: 12px;

  vertical-align: middle;
}

.details th {
  background: rgba(250, 250, 250, 0.35);

  font-weight: 700;
  text-align: left;
}

.details td {
  background: rgba(255, 255, 255, 0.35);

  font-weight: 400;
  text-align: left;

  word-break: normal;
}

.details tr:nth-child(6) th,
.details tr:nth-child(6) td {
  height: 42px;
}

.section-title {
  margin: 23px 0 9px;

  text-align: center;

  font-size: 15px;

  font-weight: 800;

  text-decoration: underline;
}

.stay th,
.stay td {
  border: 1px solid #999;

  padding: 8px 6px;

  font-size: 12px;

  text-align: center;

  vertical-align: middle;
}

.stay th {
  background: #fafafa;

  font-weight: 700;
}

.stay .address {
  width: 42%;

  text-align: left;
}

.stay td.address {
  line-height: 1.4;
}

.record {
  margin-top: 18px;

  font-size: 12px;

  line-height: 1.5;
}

.record p {
  margin: 5px 0;
}

.record-status {
  font-weight: 800;
}

.final-note {
  margin-top: 10px;

  padding: 0 5px;

  font-size: 11px;
}

@media (max-width: 700px) {
  .result {
    padding: 12px;
  }

  .document {
    padding: 12px;
  }

  .document-heading {
    grid-template-columns: 70px 1fr 70px;

    gap: 7px;
  }

  .demo-logo img {
    width: 65px;
    height: 65px;
  }

  .heading-text h3 {
    font-size: 15px;
  }

  .photo {
    width: 60px;
    height: 75px;

    font-size: 8px;
  }

  .details th,
  .details td,
  .stay th,
  .stay td {
    padding: 5px;

    font-size: 9px;
  }

  .meta {
    font-size: 9px;
  }

  .demo-watermark {
    font-size: 22px;
  }
}

.page-note {
  color: #ddd9f0;
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
  margin: 18px auto;
  max-width: 850px;
}
.cnic,
.captcha-question,
.captcha-row {
  color: #797979;
}

footer {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  color: #d5d2e7;
  text-align: center;
  font-size: 14px;

  padding: 15px;

  background-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 700px) {
  .verification {
    padding: 22px 15px;
  }

  .result {
    padding: 15px 8px;
  }

  .document {
    padding: 13px 8px;
  }

  .document-heading h3 {
    font-size: 20px;
  }

  .document-heading h4 {
    font-size: 15px;
  }

  .details td,
  .details th,
  .stay td,
  .stay th {
    font-size: 10px;
    padding: 6px 4px;
  }

  .watermark {
    font-size: 55px;
  }
}

@media (max-width: 480px) {
  .header-title {
    font-size: 16px;
  }

  .header-subtitle {
    font-size: 10px;
  }

  .refresh {
    height: 43px;
  }

  .meta {
    flex-direction: column;
    gap: 5px;
  }

  .photo {
    width: 75px;
    height: 90px;
  }

  .details td,
  .details th,
  .stay td,
  .stay th {
    font-size: 8px;
  }

  .watermark {
    font-size: 38px;
  }
}
