:root {
    color-scheme: light;
    --ink: #19191c;
    --primary: #b82035;
    --primary-dark: #90192b;
    --paper: #f6f6f7;
    --line: #e4e4e7;
    --accent: #c8283d;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.topbar {
    height: 82px;
    padding: 0 max(6.7vw, 28px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #e8e8ea;
}

.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font: 800 13px "Manrope", sans-serif; letter-spacing: .1em; }
.brand-copy small { margin-top: 5px; font-size: 8px; font-weight: 700; letter-spacing: .13em; color: #77777c; }
.topbar-note { display: flex; align-items: center; gap: 9px; color: #66666c; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.live-dot { height: 7px; width: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px #f4e5e7; }

main { max-width: 1280px; margin: 0 auto; padding: 0 6.7%; }
.hero { position: relative; min-height: 410px; display: flex; align-items: center; overflow: hidden; }
.hero-copy { position: relative; z-index: 1; width: 61%; padding: 45px 0 60px; }
.eyebrow { margin: 0 0 20px; color: var(--primary); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.eyebrow-line { display: inline-block; vertical-align: middle; width: 25px; height: 1px; margin-right: 7px; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font: 800 clamp(44px, 5vw, 65px)/1.08 "Manrope", sans-serif; letter-spacing: -.055em; }
h1 span { color: var(--primary); }
.hero-description { max-width: 470px; margin-bottom: 28px; color: #69696f; font-size: 15px; line-height: 1.8; }
.trust-note { display: flex; align-items: center; gap: 11px; }
.shield-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; color: var(--primary); background: #f3e6e8; font-weight: 700; }
.trust-note strong, .trust-note small { display: block; }
.trust-note strong { font-size: 11px; }
.trust-note small { margin-top: 4px; color: #828288; font-size: 10px; }

.hero-art { position: absolute; right: 0; top: 50%; width: 46%; height: 100%; display: flex; align-items: center; justify-content: center; transform: translateY(-50%); pointer-events: none; }
.hero-image { display: block; width: min(100%, 390px); max-height: 390px; object-fit: contain; filter: drop-shadow(0 16px 22px rgba(25, 25, 28, .12)); }

.lookup-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 55px; align-items: start; padding: 52px 0 70px; border-top: 1px solid #e5e5e8; }
.lookup-intro { padding-top: 12px; }
.lookup-intro .eyebrow { margin-bottom: 14px; }
.step-tag { margin-left: 9px; color: #a0a0a6; font-size: 9px; }
.lookup-intro h2, .results-heading h2, .empty-state h2 { margin-bottom: 11px; font: 700 28px "Manrope", sans-serif; letter-spacing: -.04em; }
.lookup-intro > p:not(.eyebrow) { max-width: 330px; margin-bottom: 31px; color: #77777d; font-size: 13px; line-height: 1.7; }
.steps { display: flex; align-items: center; gap: 10px; color: #99999f; font-size: 9px; font-weight: 600; }
.step { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.step i { display: grid; width: 21px; height: 21px; place-items: center; border: 1px solid #dfe5df; border-radius: 50%; font-style: normal; font-size: 9px; }
.step.active { color: var(--primary); }
.step.active i { border-color: var(--primary); color: #fff; background: var(--primary); }
.step-rule { width: 15px; height: 1px; background: #e0e0e3; }

.lookup-card { padding: 27px 29px 20px; border: 1px solid #e7e7ea; border-radius: 12px; background: #fff; box-shadow: 0 14px 40px rgba(25, 25, 28, .045); }
.card-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }
.card-icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 10px; color: var(--primary); background: #f4e8ea; font-size: 25px; }
.card-heading h3 { margin-bottom: 4px; font: 700 15px "Manrope", sans-serif; }
.card-heading p { margin: 0; color: #87918b; font-size: 11px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 14px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field-label { color: #626268; font-size: 9px; font-weight: 700; letter-spacing: .11em; }
.field-label b { color: var(--primary); }
.select-wrap, .date-wrap { position: relative; display: block; }
select, input[type="date"] { width: 100%; height: 45px; appearance: none; border: 1px solid #e3e8e2; border-radius: 6px; outline: none; padding: 0 13px; background: #fff; color: var(--ink); font: 500 12px "DM Sans", sans-serif; transition: border-color .2s, box-shadow .2s; }
select:disabled { color: #a0a0a6; background: #fafafa; }
select:focus, input[type="date"]:focus { border-color: #d16c7a; box-shadow: 0 0 0 3px #f7e9eb; }
.select-chevron { position: absolute; top: 17px; right: 14px; width: 8px; height: 8px; border-right: 1.5px solid #74747a; border-bottom: 1.5px solid #74747a; transform: rotate(45deg); pointer-events: none; }
.date-hint { display: block; margin-top: 6px; color: #99999f; font-size: 10px; }
.submit-button { display: flex; width: 100%; height: 48px; align-items: center; justify-content: space-between; margin-top: 22px; padding: 0 16px; border: 0; border-radius: 6px; color: #fff; background: var(--primary); font: 700 12px "DM Sans", sans-serif; cursor: pointer; transition: background .2s, transform .2s; }
.submit-button:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-1px); }
.submit-button:disabled { opacity: .55; cursor: not-allowed; }
.button-arrow { font-size: 17px; }
.form-message { min-height: 14px; margin: 11px 0 0; color: #85858b; font-size: 10px; text-align: center; }
.form-message.is-error { color: #a51f32; }
.form-message.is-loading { color: var(--primary); }

.results-section, .empty-state { margin: 0 0 60px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.results-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.results-heading .eyebrow { margin-bottom: 8px; }
.results-heading h2 { margin-bottom: 0; }
.verified-badge { display: inline-flex; align-items: center; gap: 7px; color: #a51f32; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.verified-badge span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #f5e6e8; font-size: 12px; }
.results-list { display: grid; gap: 12px; }
.certificate-card { display: grid; grid-template-columns: minmax(180px, 1fr) 1.2fr; gap: 18px; padding: 21px; border: 1px solid #e8e5e6; border-radius: 8px; background: linear-gradient(110deg, #fbf7f8, #fff 58%); }
.certificate-number-label { margin-bottom: 5px; color: #748078; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.certificate-number { overflow-wrap: anywhere; color: var(--primary); font: 800 clamp(24px, 4vw, 38px)/1.15 "Manrope", sans-serif; letter-spacing: -.04em; }
.certificate-detail { display: flex; flex-direction: column; justify-content: center; }
.participant-name { margin-bottom: 10px; font: 700 18px "Manrope", sans-serif; }
.detail-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-pill { padding: 6px 9px; border-radius: 4px; color: #59565a; background: #f1edef; font-size: 10px; }
.empty-state { text-align: center; padding: 39px 24px; }
.empty-icon { display: grid; width: 42px; height: 42px; place-items: center; margin: 0 auto 15px; border-radius: 50%; color: var(--primary); background: #f4e7e9; font-size: 25px; }
.empty-state h2 { font-size: 20px; }
.empty-state p { max-width: 440px; margin: 0 auto; color: #77777d; font-size: 12px; line-height: 1.7; }
.footer { display: flex; justify-content: space-between; gap: 15px; padding: 22px max(6.7vw, 28px); border-top: 1px solid #e6e6e9; color: #808086; background: #fff; font-size: 10px; }

@media (max-width: 800px) {
    .hero { min-height: 365px; }
    .hero-copy { width: 70%; }
    .hero-art { right: -5%; width: 50%; }
    .lookup-layout { grid-template-columns: 1fr; gap: 25px; padding-top: 39px; }
    .lookup-intro > p:not(.eyebrow) { margin-bottom: 20px; }
}

@media (max-width: 560px) {
    .topbar { height: 68px; padding: 0 20px; }
    .topbar-note { font-size: 8px; letter-spacing: .07em; }
    main { padding: 0 20px; }
    .hero { min-height: 345px; }
    .hero-copy { width: 100%; padding: 42px 0; }
    .hero-art { right: -32%; width: 72%; opacity: .16; }
    .hero-description { max-width: 390px; font-size: 13px; }
    .lookup-layout { padding-bottom: 45px; }
    .lookup-card { padding: 22px 18px 16px; }
    .form-grid { gap: 15px 10px; }
    .field:not(.field-wide) { grid-column: 1 / -1; }
    .steps { gap: 6px; font-size: 8px; }
    .step { gap: 4px; }
    .step-rule { width: 8px; }
    .results-section { padding: 20px 16px; }
    .results-heading { align-items: flex-start; gap: 12px; }
    .verified-badge { margin-top: 5px; font-size: 7px; white-space: nowrap; }
    .certificate-card { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
    .footer { flex-direction: column; padding: 19px 20px; }
}
