/* Scan & Go tag-scan demo (/verify-demo) */

.verify-demo {
    padding: 52px 0 80px;
    min-height: calc(100vh - 64px);
    background: #fff8e1;
}

.verify-demo__inner {
    max-width: 420px;
    margin: 0 auto;
}

.verify-demo__inner--wide {
    max-width: 720px;
}

.verify-demo__badge {
    text-align: center;
    margin: 0 0 14px;
}

.verify-demo__badge span {
    display: inline-block;
    background: #FDD000;
    color: #2e3644;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.4em 1.15em;
    border-radius: 2em;
    text-transform: uppercase;
}

/* Full-width yellow banner at top of esa-wizard card */
.verify-demo__card-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -28px -20px 24px;
    padding: 16px 20px;
    background: #FDD000;
    border-radius: 0.75rem 0.75rem 0 0;
    font-family: Quicksand, Nunito, system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2e3644;
    line-height: 1.2;
    text-align: center;
}

@media (min-width: 576px) {
    .verify-demo__card-banner {
        margin: -40px -36px 28px;
        padding: 18px 36px;
        border-radius: 1.5rem 1.5rem 0 0;
        font-size: 0.875rem;
    }
}

.verify-demo__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 18px rgba(15, 27, 45, 0.12);
    border-radius: 0.75rem;
    padding: 28px 24px 24px;
}

.verify-demo__photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    background: #f5f5f5;
    border: 3px solid #eee;
    display: block;
    margin: 0 auto 1.35rem;
}

.verify-demo__fields {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin: 0 0 1.5rem;
    padding: 0;
    text-align: center;
}

.verify-demo__fields > div {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.verify-demo__fields dt {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #55647a;
    margin: 0;
}

.verify-demo__fields dd {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    color: #0f1b2d;
}

.verify-demo__card .btn {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Request access — match site form + CTA styles ------------------- */
.verify-demo__intro {
    margin: 0 0 28px;
    color: #2e3644;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.55;
}

.verify-demo__intro p + p {
    margin-top: 0.85rem;
}

.verify-demo__form-card {
    background: #fff;
    box-shadow: 0 4px 18px rgba(15, 27, 45, 0.1);
    border-radius: 0.75rem;
    padding: 36px 32px;
}

.verify-demo__page-title {
    margin: 0 0 18px;
    font-size: 2rem;
    font-weight: 800;
    color: #0f1b2d;
    line-height: 1.2;
}

.verify-demo__form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 22px;
}

.verify-demo__form-grid .form-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #0f1b2d;
    margin-bottom: 0.5rem;
}

.verify-demo__form-grid .form-control {
    display: block;
    width: 100%;
    padding: 1.0625rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    border-radius: 0.625rem;
}

.verify-demo__form-actions {
    margin-top: 32px;
    text-align: center;
}

.verify-demo__form-actions .btn {
    min-width: 220px;
}

@media (max-width: 575.98px) {
    .verify-demo__form-grid {
        grid-template-columns: 1fr;
    }

    .verify-demo__form-actions .btn {
        width: 100%;
        min-width: 0;
    }
}

/* Waiting confirmation --------------------------------------------------- */
.verify-demo__waiting-card {
    background: #fff;
    box-shadow: 0 4px 18px rgba(15, 27, 45, 0.1);
    border-radius: 0.75rem;
    padding: 36px 28px;
}

.verify-demo__waiting-card h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f1b2d;
    margin: 0 0 18px;
}

.verify-demo__waiting-card .text-block {
    color: #383f49;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.55;
    margin-bottom: 22px;
}

.verify-demo__waiting-card .text-block p + p {
    margin-top: 0.85rem;
}

.verify-demo__dest {
    background: #f7f8fa;
    border-radius: 0.625rem;
    padding: 16px 18px;
    margin: 0 0 22px;
    color: #0f1b2d;
    font-size: 1rem;
    line-height: 1.5;
}

.verify-demo__dest strong {
    font-weight: 700;
}

.verify-demo__note {
    color: #55647a;
    font-size: 0.95rem;
    margin: 0;
}

/* Request access — logo band inside card -------------------------------- */
.verify-demo__card-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -28px -20px 24px;
    padding: 18px 20px;
    background: #FDD000;
    border-radius: 0.75rem 0.75rem 0 0;
}

.verify-demo__card-logo img {
    display: block;
    width: 132px;
    height: auto;
}

@media (min-width: 576px) {
    .verify-demo__card-logo {
        margin: -40px -36px 28px;
        padding: 22px 36px;
        border-radius: 1.5rem 1.5rem 0 0;
    }
}

/* Verified profile — card 1 (identity) ---------------------------------- */
body:has(.vp),
body:has(.vp) .main {
    background: #fefced;
}

.vp {
    background: #fefced;
    min-height: calc(100vh - 4.25rem);
    padding: 28px 20px 64px;
    box-sizing: border-box;
}

.vp__title {
    margin: 0 auto 18px;
    max-width: 22rem;
    text-align: center;
    font-family: Quicksand, Nunito, system-ui, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: #2a2a2a;
}

.vp__stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: 22.5rem;
    margin: 0 auto;
}

.vp__card {
    width: 100%;
    margin: 0;
    background: #fff;
    border-radius: 1.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 28px 28px 32px;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}

.vp__card-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -28px -28px 22px;
    padding: 16px 20px;
    background: #FDD000;
    font-family: Quicksand, Nunito, system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.25;
    color: #2a2a2a;
    text-align: center;
}

.vp__photo {
    display: block;
    width: 9.5rem;
    height: 9.5rem;
    margin: 0 auto 8px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e8e4d8;
    box-sizing: border-box;
}

.vp__fields {
    margin: 0;
    padding: 0;
}

.vp__field {
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid #f0ebe0;
}

.vp__field:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.vp__field dt {
    margin: 0 0 4px;
    font-family: Quicksand, Nunito, system-ui, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.3;
    color: #8a8478;
}

.vp__field dd {
    margin: 0;
    font-family: Quicksand, Nunito, system-ui, sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.35;
    color: #2a2a2a;
}

.vp__field--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    text-align: center;
}

.vp__field--split > div {
    min-width: 0;
}

@media (min-width: 576px) {
    .vp {
        padding: 40px 24px 80px;
    }

    .vp__title {
        font-size: 2rem;
        margin-bottom: 22px;
    }

    .vp__stack {
        max-width: 26rem;
        gap: 22px;
    }

    .vp__card {
        border-radius: 2rem;
        padding: 36px 40px 40px;
    }

    .vp__card-banner {
        margin: -36px -40px 26px;
        padding: 18px 28px;
        font-size: 1.35rem;
    }

    .vp__photo {
        width: 11rem;
        height: 11rem;
    }

    .vp__field {
        padding: 16px 0;
    }

    .vp__field dt {
        font-size: 0.75rem;
    }

    .vp__field dd {
        font-size: 1.125rem;
    }
}

/* Credentials section --------------------------------------------------- */
.vp-creds {
    width: 100%;
    max-width: 22.5rem;
    margin: 36px auto 0;
}

.vp-creds__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.vp-cred {
    background: #fff;
    border: 1px solid #ebe6da;
    border-radius: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0 0 18px;
    text-align: left;
    box-sizing: border-box;
    overflow: hidden;
}

.vp-cred__banner {
    display: block;
    margin: 0 0 14px;
    padding: 14px 18px;
    background: #FDD000;
    font-family: Quicksand, Nunito, system-ui, sans-serif;
    font-size: 1.0625rem;
    font-weight: 800;
    line-height: 1.3;
    color: #2a2a2a;
    text-align: center;
}

.vp-cred__id {
    margin: 0 0 14px;
    padding: 0 18px;
    font-family: Quicksand, Nunito, system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #8a8478;
    line-height: 1.4;
    text-align: center;
}

.vp-cred__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
    margin: 0 0 16px;
    padding: 0 18px;
}

.vp-cred__grid > div {
    min-width: 0;
}

.vp-cred__grid dt {
    margin: 0 0 3px;
    font-family: Quicksand, Nunito, system-ui, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a8478;
    line-height: 1.3;
}

.vp-cred__grid dd {
    margin: 0;
    font-family: Quicksand, Nunito, system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #2a2a2a;
    line-height: 1.35;
    word-break: break-word;
}

.vp-cred__note {
    margin: 0 18px 14px;
    padding: 12px 14px;
    background: #fff6d6;
    border-radius: 0.75rem;
    font-family: Quicksand, Nunito, system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.5;
    color: #4a463c;
}

.vp-cred__actions {
    margin: 0 18px 14px;
}

.vp-cred__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: #FDD000;
    color: #111;
    font-family: Quicksand, Nunito, system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.vp-cred__btn:hover,
.vp-cred__btn:focus-visible {
    background: #f0c400;
    color: #111;
}

.vp-cred__btn-icon {
    flex-shrink: 0;
    display: block;
}

.vp-cred__foot {
    margin: 0 18px;
    padding-top: 12px;
    border-top: 1px solid #f0ebe0;
    font-family: Quicksand, Nunito, system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.45;
    color: #8a8478;
}

@media (min-width: 576px) {
    .vp-creds {
        max-width: 26rem;
        margin-top: 44px;
    }

    .vp-creds__list {
        gap: 16px;
    }

    .vp-cred {
        border-radius: 1.5rem;
        padding-bottom: 20px;
    }

    .vp-cred__banner {
        padding: 16px 24px;
        font-size: 1.125rem;
    }

    .vp-cred__grid dd {
        font-size: 1rem;
    }

    .vp-cred__note {
        margin: 0 24px 14px;
        padding: 14px 16px;
        font-size: 0.875rem;
    }

    .vp-cred__actions {
        margin: 0 24px 14px;
    }

    .vp-cred__foot {
        margin: 0 24px;
    }

    .vp-cred__id {
        padding-left: 24px;
        padding-right: 24px;
    }

    .vp-cred__grid {
        padding-left: 24px;
        padding-right: 24px;
        gap: 16px 20px;
    }
}

/* Desktop: animal + handler side by side; credentials two-up */
@media (min-width: 900px) {
    .vp__stack,
    .vp-creds {
        max-width: 54rem;
    }

    .vp__stack {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        align-items: stretch;
    }

    .vp__card {
        height: 100%;
    }

    .vp-creds__list {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
}

/* Vaccination records detail page --------------------------------------- */
.vp-doc {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
}

.vp-doc__back {
    margin: 0 0 14px;
    padding: 0 2px;
}

.vp-doc__back a {
    font-family: Quicksand, Nunito, system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: #55647a;
    text-decoration: none;
}

.vp-doc__back a:hover,
.vp-doc__back a:focus-visible {
    color: #2a2a2a;
}

.vp-doc__card {
    width: 100%;
}

.vp-doc__body {
    padding: 0 20px 2px;
    box-sizing: border-box;
}

.vp-doc__body .vp-cred__id {
    margin-bottom: 16px;
    padding: 0;
}

.vp-doc__body .vp-cred__grid {
    margin-bottom: 18px;
    padding: 0;
}

.vp-doc__body .vp-cred__note {
    margin-left: 0;
    margin-right: 0;
}

.vp-doc__body .vp-cred__foot {
    margin-left: 0;
    margin-right: 0;
}

.vp-doc__section {
    margin: 0 0 10px;
    font-family: Quicksand, Nunito, system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a8478;
}

.vp-doc__section:first-of-type {
    margin-top: 4px;
}

.vp-doc__table-wrap {
    overflow-x: auto;
    margin: 0 0 18px;
    border: 1px solid #f0ebe0;
    border-radius: 0.75rem;
}

.vp-doc__table {
    width: 100%;
    border-collapse: collapse;
    font-family: Quicksand, Nunito, system-ui, sans-serif;
    font-size: 0.8125rem;
}

.vp-doc__table th,
.vp-doc__table td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #f0ebe0;
}

.vp-doc__table tr:last-child td {
    border-bottom: 0;
}

.vp-doc__table th {
    background: #fef9e8;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a8478;
    white-space: nowrap;
}

.vp-doc__table td {
    font-weight: 600;
    color: #2a2a2a;
    line-height: 1.35;
}

.vp-doc__status {
    display: inline-block;
    padding: 0.2em 0.55em;
    border-radius: 999px;
    background: #e6f7ec;
    color: #15803d;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (min-width: 576px) {
    .vp-doc__body {
        padding-left: 24px;
        padding-right: 24px;
    }

    .vp-doc__table {
        font-size: 0.875rem;
    }

    .vp-doc__table th,
    .vp-doc__table td {
        padding: 12px 14px;
    }
}
