:root {
  --bg: #f7f2ee;
  --surface: #ffffff;
  --ink: #211917;
  --muted: #70635f;
  --line: #eadfd9;
  --brand: #5a1608;
  --brand-dark: #3d0d03;
  --success: #1e9b55;
  --success-soft: #eaf8ef;
  --danger: #b42318;
  --shadow: 0 22px 58px rgba(60, 22, 8, .14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

.verifyTopbar {
  min-height: 96px;
  padding: 18px clamp(18px, 4vw, 48px);
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brandMark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.brandMark img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: block;
}

.whatsappLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.verifyShell {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 62px) clamp(14px, 4vw, 28px);
}

.verifyCard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 5vw, 46px);
}

.verifyIntro {
  text-align: center;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.55rem);
  line-height: 1.12;
  color: var(--ink);
}

.introText {
  margin: 12px auto 0;
  max-width: 560px;
  color: var(--muted);
}

.verifyForm {
  display: grid;
  gap: 12px;
}

.fieldLabel {
  color: var(--ink);
  font-weight: 800;
}

#certificateNumberInput {
  width: 100%;
  min-height: 58px;
  border: 1px solid #d9cfca;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 1.08rem;
  outline: none;
}

#certificateNumberInput:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(90, 22, 8, .1);
}

#verifyCertificateBtn {
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(90, 22, 8, .2);
}

#verifyCertificateBtn:disabled {
  cursor: wait;
  opacity: .72;
}

.message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.message.error {
  color: var(--danger);
}

.resultCard {
  margin-top: 32px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.resultStatus {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  color: #176b43;
  font-size: 1.35rem;
  line-height: 1.25;
}
.resultCard.invalid .resultStatus { color: var(--danger); }
.resultCard.invalid .statusBadge { background: var(--danger); box-shadow: none; }

.statusBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1e8b55;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 0 0 5px var(--success-soft);
}

.certificateGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border: 1px solid #dce7e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.certificateGrid div {
  min-width: 0;
  padding: 17px 20px;
  border-bottom: 1px solid #e5ece8;
}

.certificateGrid div:first-child {
  grid-column: 1 / -1;
}

.certificateGrid div:nth-child(2n + 3) {
  border-left: 1px solid #e5ece8;
}

.certificateGrid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.certificateGrid dt,
.certificateGrid dd {
  margin: 0;
  min-width: 0;
}

.certificateGrid dt {
  margin-bottom: 5px;
  color: #65736b;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.certificateGrid dd {
  color: #1b2b25;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.certificateGrid div:first-child {
  background: #f2faf5;
}

.certificateGrid div:first-child dd {
  color: #176b43;
  font-weight: 800;
}

.seoMicroFaq {
  margin-top: 22px;
  border: 1px solid rgba(90, 22, 8, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
  color: var(--muted);
  overflow: hidden;
}

.seoMicroFaq summary {
  cursor: pointer;
  padding: 10px 12px;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.3;
}

.seoMicroFaq summary::-webkit-details-marker {
  display: none;
}

.seoMicroFaq div {
  padding: 0 12px 12px;
}

.seoMicroFaq p {
  margin: 0;
  font-size: .78rem;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .verifyTopbar {
    min-height: 86px;
  }

  .brandMark {
    width: 64px;
    height: 64px;
  }

  .brandMark img {
    width: 56px;
    height: 56px;
  }

  .whatsappLink {
    min-height: 42px;
    padding: 0 16px;
  }

  .verifyCard {
    padding: 22px 16px;
  }

  .resultStatus {
    font-size: 1.2rem;
  }

  .certificateGrid {
    grid-template-columns: 1fr;
  }

  .certificateGrid div {
    padding: 14px 16px;
  }

  .certificateGrid div:first-child {
    grid-column: auto;
  }

  .certificateGrid div:nth-child(2n + 3) {
    border-left: 0;
  }

  .certificateGrid div:nth-last-child(2) {
    border-bottom: 1px solid #e5ece8;
  }
}
 [hidden] { display: none !important; }
