/* Base Styles */
* {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
    font-family: 'CircularStd', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: #fcfdfe;
}

/* Header */
.header {
    position: relative;
    display: flex;
    align-items: center;
    height: 86px;
    background-image: linear-gradient(92deg, #041865, #50a0ff);
    background: linear-gradient(92deg, rgba(4, 24, 101, .9), #50a0ff), url(../assets/images/bg-verified.svg) no-repeat, linear-gradient(92deg, #041865, #50a0ff);
    background-size: cover;
}

.header__wrapper {
    width: 1180px;
    margin: 0 auto;
    justify-content: space-between;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.navbar-brand {
    display: inline-block;
    width: 146px;
    height: 39px;
    margin-left: 0;
    background-image: url(../assets/images/logo.svg);
    background-size: contain;
    background-repeat: no-repeat;
}

.header__nav {
    display: flex;
    align-items: center;
}

.header__link {
    display: flex;
    align-items: center;
    margin-left: 30px;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    opacity: .8;
    cursor: pointer;
    transition: opacity 0.2s;
}

.header__link:hover {
    opacity: 1;
}

.header__searchField {
    position: relative;
    margin-left: 40px;
    color: #caccd4;
}

.header__searchField input {
    width: 233px;
    height: 38px;
    padding-left: 40px;
    padding-right: 20px;
    border: none;
    border-radius: 20px;
    outline: none !important;
}

.header__searchField svg {
    position: absolute;
    left: 15px;
    top: 12px;
}

/* Warning Banner */
.WarningBanner {
    background-color: #fff8e1;
    color: #856404;
    padding: 8px 15px;
    font-size: 12px;
    line-height: 1.4;
    border-bottom: 1px solid #ffeeba;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
    position: relative;
    z-index: 1100;
}

.WarningBanner p {
    margin: 0;
    flex: 1;
    padding: 0 10px;
}

.WarningBanner .warning-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23856404'%3E%3Cpath d='M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

/* ... existing close-banner styles ... */

/* ... (skip to media query for ResultGrid) ... */

.ResultGrid .params__field .params__value {
    display: table-cell;
    width: 55%;
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
    color: #333;
    font-weight: 400;
    vertical-align: middle;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.WarningBanner .close-banner {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    cursor: pointer;
    opacity: 0.8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23856404'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
    flex-shrink: 0;
}

.WarningBanner .close-banner:hover {
    opacity: 1;
}

/* Mobile Menu Overlay */
.MobileMenuOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #041865 0%, #1976d2 100%);
    z-index: 2000;
    display: none;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
}

.MobileMenuOverlay.active {
    display: flex;
}

.MobileMenuOverlay .close-menu {
    position: absolute;
    top: 220px;
    right: 20px;
    color: white;
    font-size: 36px;
    cursor: pointer;
    font-family: sans-serif;
    font-weight: 300;
    line-height: 1;
}

.MobileMenuOverlay ul {
    list-style: none;
    padding: 40px 20px;
    margin: 0;
}

.MobileMenuOverlay ul li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.MobileMenuOverlay ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

/* Header Back Button */
.header .back-btn {
    text-decoration: none;
    display: none;
    margin-right: 20px;
    align-items: center;
}

.header .back-btn svg {
    stroke: white;
}

.hiddenDesktop {
    display: none;
}

/* Result Page */
/* Result Page */
.ResultPage {
    background-color: #fcfdfe;
    min-height: calc(100vh - 86px - 300px);
    padding-bottom: 50px;
    /* Background removed from body/page */
}

.ResultBlock {
    color: #000;
    width: 1180px;
    margin: 0 auto;
    text-align: center;
}

/* Card Container */
.VerificationCard {
    position: relative;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    padding: 60px 40px 40px;
    margin-bottom: 110px;
}

/* Main Card specific styles (Top one) */
.VerificationCard.MainCard {
    /* Background image removed */
    margin-top: 100px;
    /* Space for badge overlap */
}

/* PDF Card specific styles (Bottom one) */
.VerificationCard.PDFCard {
    padding: 0;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #e8ecf1;
}

.ResultBlock h1 {
    color: #041865;
    font-size: 50px;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Download Button Container */
.ResultDownload {
    margin-top: 30px;
    margin-bottom: 50px;
    text-align: center;
}

.button {
    padding: 15px 30px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background-color: #2bc0ff;
    /* Bright blue */
    border: none !important;
    border-radius: 4px;
    /* Slightly rounded */
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.2s;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.button:hover {
    background-color: #24a0d6;
    transform: translateY(-1px);
}

/* Grid Card */
.ResultGrid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-column-gap: 20px;
    grid-row-gap: 50px;
    /* Increased row gap */
    border-radius: 8px;
    border: 1px solid #e8ecf1;
    background-color: #fff;
    padding: 60px;
    /* Increased padding */
    margin: 50px auto 0;
    text-align: left;
    max-width: 1000px;
    /* Constrain width */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.ResultGrid .params__field {
    overflow: hidden;
}

.ResultGrid .params__field .params__key {
    color: #a1a7b7;
    /* Light gray label */
    /* margin-bottom: 8px; */
    font-size: 16px;
    font-weight: 400;
}

.ResultGrid .params__field .params__value {
    color: #3d4461;
    /* Dark text */
    overflow: visible;
    /* Allow wrap for long IDs if needed, handled by flex/grid */
    font-weight: 400;
    /* Regular weight based on screenshot */
    font-size: 18px;
    line-height: 1.4;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .header__wrapper {
        width: 100%;
        padding: 0 20px;
    }

    .ResultBlock {
        width: 100%;
        padding: 20px;
    }

    .ResultGrid {
        grid-template-columns: 1fr 1fr;
        margin: 10px 0;
        padding: 10px;
    }

    .hiddenDesktop {
        display: block !important;
    }

    .hiddenMobile {
        display: none !important;
    }

    .mobileMenuBtn {
        color: #fff;
        cursor: pointer;
    }

    .header .back-btn {
        display: flex;
        align-items: center;
    }

    .VerificationCard.MainCard {
        margin-top: 70px;
    }

    .SearchResultImg {
        top: -50px;
        width: 100px;
        height: 100px;
    }

    .ResultBlock h1 {
        font-size: 36px;
    }
}

@media (max-width: 575px) {
    .VerificationCard {
        margin-bottom: 20px;
        padding: 85px 20px 40px;
    }

    /* Center Logo on Mobile */
    .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }

    .VerificationCard.MainCard {
        margin-top: 50px;
    }

    .VerificationCard.PDFCard {
        margin-bottom: 20px;
    }

    .ResultGrid {
        display: table;
        width: 100%;
        border: 1px solid #ddd;
        border-radius: 8px;
        margin: 20px 0 0;
        padding: 0;
        background-color: #fff;
        border-collapse: separate;
        border-spacing: 0;
        overflow: hidden;
    }

    .ResultGrid .params__field {
        display: table-row;
    }

    .ResultGrid .params__field:last-child .params__key {
        border-bottom: none;
    }

    .ResultGrid .params__field:last-child .params__value {
        border-bottom: none;
    }

    .ResultGrid .params__field .params__key {
        display: table-cell;
        width: 45%;
        padding: 12px 15px;
        margin: 0;
        font-weight: 400;
        font-size: 14px;
        color: #888;
        vertical-align: middle;
        border-bottom: 1px solid #e0e0e0;
    }

    .ResultGrid .params__field .params__value {
        display: table-cell;
        width: 55%;
        padding: 12px 15px;
        text-align: left;
        font-size: 14px;
        color: #333;
        font-weight: 400;
        vertical-align: middle;
        background-color: #fff;
        border-bottom: 1px solid #e0e0e0;
    }

    .ResultGrid .params__field .params__value.green {
        color: #4caf50;
        font-weight: 500;
    }

    .SearchResultImg {
        top: -40px;
        width: 80px;
        height: 80px;
    }

    .SearchResultImg img {
        width: 100%;
        height: auto;
    }

    .ResultBlock h1 {
        font-size: 28px;
        margin-top: 10px;
        margin-bottom: 15px;
    }

    .button {
        width: 90%;
        max-width: 340px;
        padding: 15px 0;
        font-size: 13px;
    }

    .ResultDownload {
        margin-top: 25px;
        margin-bottom: 30px;
    }

    #the-canvas {
        width: 100%;
        height: auto;
    }
}

/* Badge Positioning */
.SearchResultImg {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    /* Removed white background and shadow */
    display: flex;
    align-items: center;
    justify-content: center;
}

.SearchResultImg img {
    display: block;
    width: 100%;
    height: auto;
}

/* Footer (Simplified) */
.AppFooter {
    padding-top: 72px;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.AppFooter .Grid {
    width: 860px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding-bottom: 50px;
}

.AppFooter h5 {
    color: #041865;
    font-size: 16px;
    margin-bottom: 20px;
}

.AppFooter ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.AppFooter ul li {
    padding: 10px 0;
    font-size: 14px;
    color: #858a97;
    cursor: pointer;
}

.AppFooter .Copyright {
    width: 860px;
    margin: 0 auto;
    padding: 30px 0;
    font-size: 14px;
    color: #858a97;
    border-top: 1px solid #eee;
    text-align: center;
}

/* PDF Viewer */
.PDFSection {
    margin-top: 0;
    background-color: #fff;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

#pdf-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #525659;
    /* Standard PDF viewer bg color, or white? Screenshot seems white/transparent */
    background-color: transparent;
    overflow: auto;
}

#the-canvas {
    border: none;
    box-shadow: none;
    max-width: 100%;
}

.PDFControls {
    background-color: #e8ecf1;
    /* Light gray footer */
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3d4461;
    font-size: 16px;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #041865;
    padding: 0 15px;
    font-weight: bold;
}

.nav-btn:hover {
    color: #2bc0ff;
}

.page-info {
    margin: 0 10px;
    font-weight: 500;
}

@media (max-width: 1024px) {

    .AppFooter .Grid,
    .AppFooter .Copyright {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}