/* certificate-verify.css - public verification page */

.verify-section {
    padding: 60px 0 40px;
}

.verify-form {
    max-width: 720px;
    margin: 35px auto 10px;
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.verify-form__input {
    flex: 1;
    min-width: 0;
    height: 56px;
    padding: 0 20px;
    font-size: 17px;
    font-family: 'DM Sans', sans-serif;
    color: #002442;
    background: #ffffff;
    border: 2px solid #c9d5db;
    border-radius: 6px;
    outline: none;
    transition: border-color .2s ease;
}

.verify-form__input:focus {
    border-color: #002442;
}

.verify-form__btn {
    height: 56px;
    padding: 0 34px;
    border: none;
    white-space: nowrap;
    cursor: pointer;
}

.verify-message {
    text-align: center;
    min-height: 24px;
    margin: 6px 0 0;
    font-size: 15px;
    color: #7b848b;
}

.verify-message--warn {
    color: #b26a00;
}

/* ------------------------------------------------------------- result card */

.verify-result {
    max-width: 760px;
    margin: 22px auto 0;
    background: #ffffff;
    border: 1px solid #e3eaee;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 36, 66, .08);
    overflow: hidden;
}

.verify-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    color: #ffffff;
}

.verify-banner > i {
    font-size: 34px;
    line-height: 1;
}

.verify-banner__text {
    display: flex;
    flex-direction: column;
}

.verify-banner__text strong {
    font-size: 21px;
    letter-spacing: .4px;
}

.verify-banner__when {
    font-size: 13px;
    opacity: .85;
    font-weight: 400;
}

.verify-banner--is-valid { background: #147d44; }
.verify-banner--is-revoked { background: #b3261e; }
.verify-banner--is-cancelled { background: #8a1c1c; }
.verify-banner--is-expired { background: #a35a00; }
.verify-banner--is-reissued { background: #002442; }
.verify-banner--is-notfound { background: #4a5560; }

.verify-body {
    padding: 22px 24px 26px;
    font-size: 15px;
    color: #33414d;
}

.verify-details {
    margin: 0 0 14px;
}

.verify-details__row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 0;
    border-bottom: 1px dashed #e3eaee;
}

.verify-details__row:last-child {
    border-bottom: none;
}

.verify-details dt {
    font-weight: 500;
    color: #7b848b;
    order: 1;
    text-align: right;
    flex-shrink: 0;
}

.verify-details dd {
    margin: 0;
    font-weight: 700;
    color: #002442;
    order: 2;
    text-align: left;
    word-break: break-word;
}

.verify-details code {
    background: #edf3f6;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: #002442;
}

.verify-note {
    background: #edf3f6;
    border-left: 4px solid #002442;
    padding: 10px 14px;
    border-radius: 4px;
    margin: 12px 0;
    font-size: 14px;
}

.verify-note--danger {
    background: #fdeceb;
    border-left-color: #b3261e;
    color: #7a1710;
}

.verify-similar__title {
    margin: 14px 0 6px;
    font-weight: 700;
    color: #002442;
}

.verify-similar {
    list-style: none;
    padding: 0;
    margin: 0;
}

.verify-similar li {
    padding: 4px 0;
}

.linklike {
    background: none;
    border: none;
    padding: 0;
    color: #006699;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

/* --------------------------------------------------------- integrity chips */

.verify-integrity {
    margin-top: 18px;
    padding: 14px 16px;
    background: #f7fafc;
    border: 1px solid #e3eaee;
    border-radius: 8px;
}

.verify-integrity h4 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #002442;
}

.verify-integrity__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.integrity-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: #ffffff;
    border: 1px solid #dbe4e9;
    color: #33414d;
}

.integrity-chip--pass { border-color: #147d44; color: #147d44; }
.integrity-chip--fail { border-color: #b3261e; color: #b3261e; }
.integrity-chip--warn { border-color: #a35a00; color: #a35a00; }
.integrity-chip--pending { border-color: #9aadbd; color: #4a5560; }

.integrity-chip__hint {
    font-size: 12px;
    opacity: .8;
}

.verify-integrity__fp {
    margin: 10px 0 0;
    font-size: 12.5px;
    color: #7b848b;
    font-family: monospace;
    word-break: break-all;
}

/* --------------------------------------------------------------- actions */

.verify-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 18px;
}

.verify-actions__secondary {
    background: none;
    border: 1px solid #c9d5db;
    color: #002442;
    padding: 10px 18px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background .2s ease;
}

.verify-actions__secondary:hover {
    background: #edf3f6;
}

/* ------------------------------------------------------- how-to / footer */

.verify-howto {
    margin-top: 45px;
}

.verify-howto__item {
    text-align: center;
    padding: 10px 14px;
}

.verify-howto__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #edf3f6;
    color: #002442;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verify-howto__item h4 {
    font-size: 18px;
    color: #002442;
    margin-bottom: 8px;
}

.verify-howto__item p {
    font-size: 14.5px;
    color: #7b848b;
    margin: 0;
}

.verify-disclaimer {
    max-width: 820px;
    margin: 35px auto 0;
    background: #f7fafc;
    border: 1px dashed #c9d5db;
    border-radius: 8px;
    padding: 16px 20px;
}

.verify-disclaimer p {
    margin: 0;
    font-size: 13.5px;
    color: #4a5560;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 575px) {
    .verify-form {
        flex-direction: column;
    }

    .verify-form__btn {
        width: 100%;
    }

    .verify-banner > i {
        font-size: 28px;
    }

    .verify-banner__text strong {
        font-size: 18px;
    }

    .verify-details__row {
        flex-direction: column;
        gap: 2px;
    }

    .verify-details dt {
        text-align: left;
        order: 0;
        font-size: 13px;
    }

    .verify-details dd {
        order: 1;
    }

    .verify-actions .thm-btn,
    .verify-actions__secondary {
        width: 100%;
        text-align: center;
    }
}
