:root {
  --green: #004d32;
  --green-2: #08643f;
  --green-3: #0c7a4c;
  --gold: #d9b44a;
  --cream: #f7f5ef;
  --text: #16362b;
  --muted: #6d7c76;
  --line: #e3e8e5;
  --danger: #a52525;
}

/* =========================================================
   GENERAL RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #02150f;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 28px 16px;

  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);

  background:
    radial-gradient(
      circle at top,
      #0b5f40 0,
      #05291d 38%,
      #02150f 100%
    );
}

button,
a {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   MAIN PAGE LAYOUT
   ========================================================= */

.page-shell {
  width: min(590px, 100%);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

.phone-panel {
  overflow: hidden;

  border-radius: 22px;

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.28);
}


/* =========================================================
   EMPLOYEE PROFILE PAGE
   ========================================================= */

.verification-panel {
  padding-bottom: 18px;

  background:
    linear-gradient(
      180deg,
      #00583a,
      #003a27
    );
}


/* =========================================================
   PROFILE HEADER
   ========================================================= */

.brand-header {
  min-height: 215px;

  padding:
    24px
    28px
    58px;

  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;

  background:
    linear-gradient(
      130deg,
      transparent 76%,
      rgba(217, 180, 74, 0.95) 77%,
      rgba(217, 180, 74, 0.95) 83%,
      transparent 84%
    ),
    linear-gradient(
      135deg,
      #005b3d,
      #003b29
    );
}

.brand-header-content {
  width: 100%;

  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 10px;

  text-align: center;
}

.company-logo {
  display: block;

  max-width: 100%;
  height: auto;

  object-fit: contain;

  background: transparent;
}

.header-logo {
  width: 290px;
  max-height: 112px;

  flex-shrink: 0;
}

.header-title {
  margin: 0;

  color: white;

  font-size: 24px;
  font-weight: 800;

  line-height: 1.2;

  letter-spacing: 1.4px;

  text-align: center;

  white-space: nowrap;

  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   STATUS MESSAGE
   ========================================================= */

.status-banner {
  margin: 14px 18px;
  padding: 12px 16px;

  border-radius: 10px;

  background: #fff2f2;
  color: var(--danger);

  font-weight: 700;
}

.hidden {
  display: none;
}


/* =========================================================
   EMPLOYEE PROFILE CARD
   ========================================================= */

.profile-card {
  width: calc(100% - 34px);

  margin: 0 auto;

  padding:
    86px
    28px
    26px;

  position: relative;

  border-radius: 22px;

  background: white;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.12);
}

.verify-icon {
  width: 108px;
  height: 108px;

  position: absolute;

  top: -54px;
  left: 50%;

  transform: translateX(-50%);

  display: grid;
  place-items: center;

  border: 15px solid white;
  border-radius: 50%;

  background: var(--green);
  color: white;

  font-size: 46px;

  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.13);
}

h1 {
  margin: 0;

  color: var(--green);

  font-size: 26px;

  text-align: center;
}

.certification {
  max-width: 600px;

  margin:
    14px
    auto
    28px;

  color: #416559;

  line-height: 1.55;

  text-align: center;
}


/* =========================================================
   SECTION TITLES
   ========================================================= */

.section-title {
  margin-top: 24px;
  padding-bottom: 8px;

  position: relative;

  border-bottom:
    1px solid
    var(--line);

  color: var(--green);

  font-size: 14px;
  font-weight: 800;

  letter-spacing: 0.2px;
}

.section-title::after {
  content: "";

  width: 36px;
  height: 2px;

  position: absolute;

  bottom: -1px;
  left: 0;

  background: var(--gold);
}


/* =========================================================
   EMPLOYEE INFORMATION ROWS
   ========================================================= */

.info-list {
  display: grid;
  gap: 0;
}

.info-row {
  display: grid;

  grid-template-columns:
    34px
    150px
    1fr;

  gap: 10px;

  align-items: center;

  padding: 12px 0;

  border-bottom:
    1px solid
    #f0f2f1;
}

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

.info-icon {
  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: var(--green);
  color: white;

  font-size: 14px;
}

.info-label {
  color: #39564d;

  font-size: 14px;
}

.info-value {
  overflow-wrap: anywhere;

  color: #1c332b;

  font-size: 14px;
  font-weight: 700;

  text-align: right;
}


/* =========================================================
   EMPLOYEE STATUS CAPSULES
   ========================================================= */

.status-badge {
  display: inline-block;

  min-width: 120px;

  padding: 7px 16px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 800;

  letter-spacing: 0.4px;

  line-height: 1.2;

  text-align: center;
  text-transform: uppercase;

  white-space: nowrap;
}

.status-active {
  background: #16a34a;
  color: #ffffff;
}

.status-on-leave {
  background: #7c3aed;
  color: #ffffff;
}

.status-absent {
  background: #facc15;
  color: #332700;
}

.status-suspended {
  background: #f97316;
  color: #ffffff;
}

.status-terminated {
  background: #dc2626;
  color: #ffffff;
}

.status-default {
  background: #6b7280;
  color: #ffffff;
}


/* =========================================================
   CALL, EMAIL, SAVE, EDIT BUTTONS
   ========================================================= */

.action-row {
  margin-top: 28px;

  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 12px;
}

.action-btn,
.download-btn {
  min-height: 54px;

  padding: 10px 12px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  border:
    1px solid
    var(--green);

  border-radius: 8px;

  background: white;
  color: var(--green);

  font-size: 13px;
  font-weight: 800;

  text-decoration: none;

  cursor: pointer;
}

.action-btn.primary,
.download-btn {
  background: var(--green);
  color: white;
}

.action-btn:hover,
.download-btn:hover {
  filter: brightness(0.96);
}

.button-icon {
  font-size: 17px;
}


/* =========================================================
   VERIFY THIS ID BUTTON
   ========================================================= */

.verification-footer {
  width: calc(100% - 34px);

  margin:
    16px
    auto
    0;

  padding: 18px 22px;

  display: grid;

  grid-template-columns:
    1fr
    auto;

  align-items: center;

  border: 0;
  border-radius: 12px;

  background:
    rgba(0, 0, 0, 0.13);

  color: white;

  text-align: left;

  cursor: pointer;
}

.verification-footer:hover {
  background:
    rgba(0, 0, 0, 0.22);
}

.verification-footer:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.verification-footer-content {
  display: grid;
  gap: 5px;
}

.verification-footer strong {
  color: white;

  font-size: 15px;
}

.verification-footer span {
  color: #d8eee6;

  font-size: 14px;
}

.footer-arrow {
  color: white !important;

  font-size: 32px !important;

  line-height: 1;
}


/* =========================================================
   VCARD PREVIEW PAGE
   ========================================================= */

.vcard-panel {
  display: none;

  padding:
    26px
    22px
    34px;

  background: #fbfbf9;
}


/* SHOW ONE PAGE AT A TIME */

.page-shell.show-vcard .verification-panel {
  display: none;
}

.page-shell.show-vcard .vcard-panel {
  display: block;
}


/* =========================================================
   VCARD PAGE HEADING
   ========================================================= */

.vcard-heading-row {
  margin-bottom: 8px;

  display: grid;

  grid-template-columns:
    42px
    1fr
    42px;

  align-items: center;
}

.vcard-heading-row h2 {
  margin: 4px 0 20px;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 12px;

  color: var(--green);

  font-size: 23px;

  text-align: center;
}

.vcard-heading-row h2 span {
  width: 40px;
  height: 2px;

  background: var(--gold);
}

.back-btn {
  padding: 0 0 18px;

  border: 0;

  background: transparent;
  color: var(--green);

  font-size: 42px;

  line-height: 1;

  cursor: pointer;
}

.heading-spacer {
  width: 42px;
}


/* =========================================================
   VCARD INFORMATION CARD
   ========================================================= */

.vcard-card {
  overflow: hidden;

  border:
    1px solid
    #e5e8e6;

  border-radius: 18px;

  background: white;

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.08);
}

.vcard-brand {
  min-height: 160px;

  padding: 20px 24px;

  display: flex;

  align-items: center;
  justify-content: center;

  color: white;

  background:
    linear-gradient(
      135deg,
      transparent 76%,
      rgba(217, 180, 74, 0.95) 77%,
      rgba(217, 180, 74, 0.95) 83%,
      transparent 84%
    ),
    linear-gradient(
      135deg,
      #005c3d,
      #003824
    );
}

.vcard-logo {
  width: 260px;
  max-height: 110px;

  background: transparent;
}


/* =========================================================
   VCARD INFORMATION ROWS
   ========================================================= */

.compact {
  padding:
    10px
    18px
    18px;
}

.compact .info-row {
  grid-template-columns:
    30px
    125px
    1fr;

  padding: 10px 0;
}

.compact .info-value {
  font-size: 14px;
}


/* =========================================================
   DOWNLOAD VCARD BUTTON
   ========================================================= */

.download-btn {
  width: 100%;

  margin:
    24px
    0
    20px;

  font-size: 16px;
}


/* =========================================================
   VCARD CODE PREVIEW
   ========================================================= */

.code-preview {
  overflow: hidden;

  border:
    1px solid
    #e0e4e2;

  border-radius: 12px;

  background: white;
}

.code-label {
  padding: 10px 14px;

  border-bottom:
    1px solid
    var(--line);

  color: var(--muted);

  font-size: 13px;
}

pre {
  max-height: 290px;

  margin: 0;
  padding: 16px;

  overflow: auto;

  white-space: pre-wrap;

  word-break: break-word;

  color: #384a43;

  font-family:
    "Courier New",
    Courier,
    monospace;

  font-size: 13px;

  line-height: 1.45;
}


/* =========================================================
   VCARD HELP MESSAGE
   ========================================================= */

.help-note {
  margin-top: 16px;
  padding: 16px;

  border-radius: 12px;

  background: #f1f3f2;
  color: #5a6863;

  font-size: 14px;

  line-height: 1.4;
}


/* =========================================================
   TABLET AND MOBILE
   ========================================================= */

@media (max-width: 880px) {

  body {
    padding: 0;

    background: #f2f4f3;
  }

  .page-shell {
    width: min(590px, 100%);
  }

  .phone-panel {
    border-radius: 0;

    box-shadow: none;
  }

  .vcard-panel {
    padding:
      24px
      16px
      34px;
  }

  .info-row,
  .compact .info-row {
    grid-template-columns:
      30px
      120px
      1fr;
  }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 520px) {

  .brand-header {
    min-height: 195px;

    padding:
      20px
      18px
      55px;
  }

  .brand-header-content {
    gap: 8px;
  }

  .header-logo {
    width: 245px;
    max-height: 98px;
  }

  .header-title {
    font-size: 20px;

    letter-spacing: 1px;
  }

  .profile-card {
    width: calc(100% - 20px);

    padding-left: 18px;
    padding-right: 18px;
  }

  .info-row,
  .compact .info-row {
    grid-template-columns:
      30px
      1fr;
  }

  .info-value {
    grid-column: 2;

    padding-bottom: 2px;

    font-weight: 700;

    text-align: left;
  }

  .action-row {
    grid-template-columns: 1fr;
  }

  .action-btn {
    width: 100%;
  }

  .vcard-heading-row h2 {
    gap: 8px;

    font-size: 19px;
  }

  .vcard-heading-row h2 span {
    width: 24px;
  }

  .vcard-brand {
    min-height: 150px;

    justify-content: center;
  }

  .vcard-logo {
    width: 225px;
    max-height: 100px;
  }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

  .brand-header {
    min-height: 185px;

    padding:
      18px
      14px
      52px;
  }

  .header-logo {
    width: 215px;
  }

  .header-title {
    font-size: 18px;

    letter-spacing: 0.7px;
  }

  .vcard-logo {
    width: 200px;
  }

}