/* Result page screen presentation. The A4 document itself remains controlled
   by professional-marksheet.css and is isolated during printing. */

body.public-page-modern .result-service-page {
    background: #f3f6fb;
}

body.public-page-modern .result-service-page .student-service-hero {
    position: relative;
    overflow: hidden;
    padding: 38px var(--public-gutter) 40px;
    border-bottom: 0;
    color: #fff;
    background:
        radial-gradient(circle at 84% 20%, rgba(255, 255, 255, .13) 0 2px, transparent 3px) 0 0 / 26px 26px,
        linear-gradient(122deg, #061f4a 0%, #0a3b7d 62%, #0d57a4 100%);
}

body.public-page-modern .result-service-page .student-service-hero::after {
    position: absolute;
    top: -92px;
    right: clamp(28px, 8vw, 150px);
    width: 250px;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    box-shadow:
        0 0 0 32px rgba(255, 255, 255, .04),
        0 0 0 72px rgba(255, 255, 255, .025);
    content: "";
    pointer-events: none;
}

body.public-page-modern .result-service-page .student-service-hero-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 1200px);
}

body.public-page-modern .result-service-page .student-service-hero h1 {
    margin-bottom: 10px;
    color: #fff;
    font-size: clamp(38px, 4vw, 54px);
    letter-spacing: -.04em;
}

body.public-page-modern .result-service-page .student-service-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, .8);
    font-size: 16px;
    line-height: 1.55;
}

body.public-page-modern .result-service-page .student-corner-container {
    width: 100%;
    min-height: 0;
    padding: clamp(28px, 4vw, 52px) var(--public-gutter) clamp(56px, 7vw, 88px);
    background: #f3f6fb;
}

body.public-page-modern .result-service-page .student-corner-card {
    max-width: 580px;
    padding: clamp(30px, 4vw, 46px);
    border: 1px solid #dce5f0;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(6, 31, 74, .1);
}

body.public-page-modern .result-service-page .student-corner-title {
    margin-bottom: 24px;
    color: #061f4a;
    font-size: clamp(28px, 3vw, 36px);
    letter-spacing: -.025em;
}

body.public-page-modern .result-service-page .verification-form {
    gap: 18px;
    padding-bottom: 0;
}

body.public-page-modern .result-service-page .form-label {
    margin-bottom: 9px;
    color: #20334f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}

body.public-page-modern .result-service-page .form-control {
    min-height: 52px;
    padding: 13px 15px;
    border: 1px solid #d7e1ed;
    border-radius: 11px;
    color: #10213a;
    background: #f8fafc;
    font-family: inherit;
    font-size: 15px;
}

body.public-page-modern .result-service-page .form-control:focus {
    border-color: #1768b2;
    outline: 0;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(23, 104, 178, .12);
}

body.public-page-modern .result-service-page .btn-verify {
    min-height: 52px;
    border-radius: 11px;
    background: #0a3b7d;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(10, 59, 125, .2);
}

body.public-page-modern .result-service-page .btn-verify:hover {
    background: #062a63;
    transform: translateY(-1px);
}

.result-document-shell {
    width: min(100%, 1080px);
    overflow: hidden;
    border: 1px solid #d7e1ed;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 78px rgba(6, 31, 74, .13);
    animation: result-shell-enter .5s cubic-bezier(.22, 1, .36, 1) both;
}

.result-document-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 22px;
    border-bottom: 1px solid #dfe7f1;
    background: #fff;
}

.result-document-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
}

.result-document-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 13px;
    color: #0a3b7d;
    background: #e9f2fb;
    font-size: 19px;
}

.result-document-heading h2 {
    margin: 0 0 4px;
    color: #081f44;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.2;
}

.result-document-heading p {
    max-width: 420px;
    margin: 0;
    overflow: hidden;
    color: #66758a;
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-document-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.result-verified-state {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid #cce8d8;
    border-radius: 10px;
    color: #166534;
    background: #f0fdf4;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.result-secondary-action,
.result-service-page .btn-marksheet {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.result-secondary-action {
    border: 1px solid #d7e1ed;
    color: #17345d;
    background: #fff;
}

.result-secondary-action:hover {
    border-color: #9fb5ce;
    color: #061f4a;
    background: #f8fafc;
}

.result-service-page .btn-marksheet {
    min-width: 112px;
    border: 1px solid #0a3b7d;
    color: #fff;
    background: #0a3b7d;
    box-shadow: 0 8px 18px rgba(10, 59, 125, .2);
}

.result-service-page .btn-marksheet:hover {
    border-color: #062a63;
    background: #062a63;
    box-shadow: 0 11px 22px rgba(6, 42, 99, .24);
    transform: translateY(-1px);
}

.result-document-stage {
    padding: clamp(24px, 4vw, 42px);
    overflow-x: auto;
    background:
        linear-gradient(rgba(255, 255, 255, .46), rgba(255, 255, 255, .46)),
        repeating-linear-gradient(135deg, #e8eef6 0 1px, transparent 1px 12px),
        #edf2f8;
    scrollbar-color: #9fb2c8 transparent;
    scrollbar-width: thin;
}

.result-document-stage .professional-marksheet-wrapper {
    padding: 0;
}

.result-document-stage .marksheet-outer-container {
    border: 1px solid rgba(8, 31, 68, .16);
    box-shadow:
        0 2px 5px rgba(8, 31, 68, .08),
        0 24px 55px rgba(8, 31, 68, .16);
}

@keyframes result-shell-enter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .result-document-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .result-document-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .result-service-page .btn-marksheet {
        min-width: 130px;
    }
}

@media (max-width: 600px) {
    body.public-page-modern .result-service-page .student-service-hero {
        padding: 30px 20px 32px;
    }

    body.public-page-modern .result-service-page .student-service-hero h1 {
        font-size: clamp(34px, 10.5vw, 44px);
    }

    body.public-page-modern .result-service-page .student-corner-container {
        padding: 22px 0 52px;
    }

    body.public-page-modern .result-service-page .student-corner-card {
        width: calc(100% - 32px);
    }

    .result-document-shell {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .result-document-toolbar {
        padding: 17px 16px;
    }

    .result-document-heading p {
        max-width: calc(100vw - 96px);
    }

    .result-document-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .result-verified-state {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .result-secondary-action,
    .result-service-page .btn-marksheet {
        width: 100%;
    }

    .result-document-stage {
        padding: 18px 0 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .result-document-shell {
        animation: none;
    }
}
