* ,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #cfcfcf;
}

body {
    width: 794px;
    min-height: 1123px;
    margin: 20px auto;
    padding: 0;
    position: relative;
    background-color: #ffffff;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    line-height: 1.25;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

a {
    color: inherit;
    text-decoration: none;
}

.challan-page {
    position: absolute;
    top: 0;
    left: 128px;
    width: 538px;
    min-height: 1019px;
    overflow: visible;
    background-color: #ff9700;
}

.note-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 78px;
    padding: 8px 10px 4px 10px;
    background-color: transparent;
    font-size: 9px;
    line-height: 15px;
}

.note-en {
    margin-bottom: 16px;
    font-weight: bold;
    font-size: 17px;
    line-height: 1.8;
}

.note-hi {
    margin-bottom: 0;
    font-weight: bold;
    font-size: 17px;
    line-height: 1.8;
}

.note-en a,
.note-hi a {
    color: inherit;
    text-decoration: underline;
}

.divider {
    position: absolute;
    top: 78px;
    left: 10px;
    width: calc(100% - 20px);
    height: 1px;
    margin: 0;
    border: none;
    background-color: #999;
}

.header-section {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 160px;
    background-color: transparent;
}

.emblem {
    position: absolute;
    top: 29px;
    left: 245px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: contain;
}

.govt-title {
    position: absolute;
    top: 82px;
    left: 0;
    width: 100%;
    color: #000;
    font-size: 16px;
    font-weight: 800;
    line-height: 18px;
    letter-spacing: 0;
    text-align: center;
}

.dept-title {
    position: absolute;
    top: 102px;
    left: 0;
    width: 100%;
    color: #000;
    font-size: 16px;
    font-weight: 800;
    line-height: 18px;
    letter-spacing: 0;
    text-align: center;
}

.form-title {
    position: absolute;
    top: 120px;
    left: 0;
    width: 100%;
    font-size: 12px;
    font-weight: normal;
    line-height: 14px;
    text-align: center;
}

.form-rules {
    position: absolute;
    top: 135px;
    left: 0;
    width: 100%;
    font-size: 9.6px;
    font-weight: normal;
    line-height: 11px;
    text-align: center;
}

.form-desc {
    position: absolute;
    top: 148px;
    left: 0;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    right: 0;
    font-size: 9.6px;
    font-weight: normal;
    line-height: 11px;
    text-align: center;
}

.echallan-title {
    position: absolute;
    top: 164px;
    left: 0;
    width: 100%;
    font-size: 12px;
    font-weight: 800;
    line-height: 13px;
    letter-spacing: 0;
    text-align: center;
}

.challan-number-section {
    position: absolute;
    top: 230px;
    left: 0;
    width: 100%;
    height: 28px;
    text-align: center;
}

.challan-no-label {
    font-size: 16px;
    font-weight: 800;
}

.challan-no-value {
    color: #ffe93a !important;
    font-size: 16px;
    font-weight: 800;
    text-align: left;
    margin-left: 8px;
}

.qr-section {
    position: absolute;
    top: 278px;
    left: 0;
    width: 100%;
    height: 145px;
    text-align: center;
}

.qr-placeholder {
    position: absolute;
    top: 0;
    left: 209px;
    width: 100px;
    height: 100px;
    background-color: #fff;
}

.qr-placeholder img,
.qr-placeholder svg {
    width: 100%;
    height: 100%;
    display: block;
}

.qr-label {
    position: absolute;
    top: 124px;
    left: 0;
    width: 100%;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
}

.mineral-section {
    position: absolute;
    top: 445px;
    left: 0;
    width: 100%;
    height: 28px;
    text-align: center;
}

.mineral-text {
    color: #ffe93a;
    font-size: 14px;
    font-weight: 800;
}

.mineral-value,
.mineral-qty {
    color: #ffe93a;
    font-weight: 800;
}

.mineral-value {
    margin-left: 8px;
}

.validity-section {
    position: absolute;
    top: 493px;
    left: 0;
    width: 100%;
    height: 56px;
    color: #000;
    font-size: 16px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}

.validity-en {
    position: absolute;
    top: 2px;
    left: 0;
    width: 100%;
    font-size: 16px;
    font-weight: 800;
}

.validity-hi {
    position: absolute;
    top: 26px;
    left: 0;
    width: 100%;
    font-size: 16px;
    font-weight: 800;
}

.validity-en .editable,
.validity-hi .editable {
    margin-left: 8px;
}

.url-section {
    position: absolute;
    top: 569px;
    left: 0;
    width: 100%;
    height: 22px;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.url-link {
    color: #ffe93a !important;
    text-decoration: underline !important;
}

.details-section {
    position: relative;
    width: 520px;
    min-height: 476px;
    margin: 610px 0 0 9px;
    overflow: visible;
    background-color: #ff9700;
    border: 2px solid #8f5709;
}

.detail-row {
    display: block;
    width: 100%;
    min-height: 33px;
    padding: 9px 8px 7px 8px;
    overflow: visible;
    color: #000;
    border-bottom: 2px solid #8f5709;
    font-size: 9px;
    line-height: 13px;
}

.detail-row:first-child {
    min-height: 56px;
    padding-top: 10px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row:nth-child(odd) {
    background-color: #159f81;
}

.detail-row:nth-child(even) {
    background-color: #128567;
}

.detail-row p {
    display: block;
    width: auto;
    overflow: visible;
    white-space: normal;
}

.sub-row {
    margin-top: 2px;
    padding-left: 12px;
}

.approval-section {
    position: relative;
    top: auto;
    left: auto;
    width: 520px;
    height: 140px;
    margin: 30px 0 0 9px;
    padding: 8px 10px 6px 10px;
    background-color: transparent;
    border: 2px solid #8f5709;
}

.approval-section::after {
    content: "";
    position: absolute;
    top: 34px;
    left: 0;
    width: 100%;
    border-top: 2px solid #8f5709;
}

.approval-text {
    position: absolute;
    top: 9px;
    left: 0;
    width: 100%;
    font-size: 11px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
}

.approved-seal {
    position: absolute;
    top: 48px;
    left: 204px;
    width: 112px;
    height: auto;
    display: block;
}

.editable {
    display: inline;
    min-width: 0;
    min-height: 0;
    margin: 0 1px;
    padding: 0;
    overflow: visible;
    border: none;
    outline: none;
    background-color: transparent;
    color: inherit;
    font: inherit;
    font-weight: 800;
    line-height: inherit;
    text-decoration: none;
    vertical-align: baseline;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    cursor: text;
}

.editable:empty {
    display: inline-block;
    min-width: 1ch;
    min-height: 1em;
}

.editable:not(.no-placeholder):empty::before {
    content: "_____________________";
    pointer-events: none;
}

.editable:focus {
    outline: none;
    background-color: transparent;
}

.details-section .editable {
    text-decoration: underline;
    font-weight: 700;
}

.details-section .editable.no-placeholder {
    text-decoration: none;
    border-bottom: none;
    font-weight: 700;
}

.details-section .editable:not(.no-placeholder):empty::before {
    content: "...................................";
    font-weight: 400;
}

.details-section .editable.no-placeholder:empty::before {
    content: "...................................";
    font-weight: 400;
}

.details-section .editable:empty {
    display: inline;
    min-width: 0;
    min-height: 0;
}

/* ============================================================
   VERIFICATION PAGE – mobile-first, normal document flow
   
   Every section switches from position:absolute to static/relative
   so content stacks naturally top-to-bottom. No fixed widths,
   no transform:scale, no overflow-x, no abs-positioning for layout.
   ============================================================ */

html.verification-mode {
    width: 100%;
    min-width: 0;
    background-color: #cfcfcf;
}

body.verification-page {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #cfcfcf;
    box-shadow: none;
}

/* --- challan-page container ---
   Full-width orange block, small side padding for content breathing room.
   No absolute positioning – everything flows. */
body.verification-page .challan-page {
    position: static;
    top: auto;
    left: auto;
    width: calc(100% - 16px);
    max-width: 1160px;
    min-height: auto;
    margin: 30px auto;
    padding: 0 22px;
    overflow: visible;
    background-color: #00bcd4;
}

/* --- note-section (top banner) ---
   Normal flow, auto height. */
body.verification-page .note-section {
    position: static;
    width: 100%;
    height: auto;
    padding: 12px 10px 4px 10px;
    background-color: transparent;
    font-size: clamp(9.5px, 2.8vw, 13px);
    line-height: clamp(16px, 4vw, 20px);
}

body.verification-page .note-en {
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 24px;
    color: #ffffff;
    letter-spacing: 0.3px;
}

body.verification-page .note-hi {
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #ffffff;
    letter-spacing: 0.3px;
}

body.verification-page .note-en strong,
body.verification-page .note-hi strong {
    color: #000;
}

/* --- divider --- */
body.verification-page .divider {
    position: static;
    top: auto;
    width: 100%;
    height: 1px;
    margin: 6px 0 18px 0;
    border: none;
    background-color: #999;
}

/* --- header-section ---
   Normal flow, flex column, centered. */
body.verification-page .header-section {
    position: static;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 0 0 0;
}

body.verification-page .emblem {
    position: static;
    top: auto;
    left: auto;
    width: clamp(65px, 17.5vw, 80px);
    height: clamp(65px, 17.5vw, 80px);
    margin: 0 auto 14px auto;
    display: block;
}

body.verification-page .govt-title {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    font-size: clamp(24px, 6vw, 30px);
    font-weight: 700;
    line-height: clamp(27px, 6.5vw, 33px);
    text-align: center;
    margin-bottom: 0;
}

body.verification-page .dept-title {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    font-size: clamp(24px, 6vw, 30px);
    font-weight: 700;
    line-height: clamp(27px, 6.5vw, 33px);
    text-align: center;
    margin-bottom: 14px;
}

body.verification-page .form-title {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    font-size: clamp(19px, 4.8vw, 23px);
    font-weight: 600;
    line-height: clamp(22px, 5.2vw, 26px);
    text-align: center;
    margin-bottom: 10px;
}

body.verification-page .form-rules {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    font-size: clamp(18px, 4vw, 21px);
    font-weight: 600;
    line-height: clamp(19px, 4.4vw, 22px);
    text-align: center;
    margin-bottom: 0;
    color: #ffffff;
}

body.verification-page .form-desc {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    max-width: none;
    font-size: clamp(18px, 4vw, 21px);
    font-weight: 600;
    line-height: clamp(21px, 4.8vw, 24px);
    text-align: center;
    margin-bottom: 16px;
    color: #ffffff;
}

body.verification-page .echallan-title {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    font-size: clamp(16px, 3.8vw, 19px);
    font-weight: 700;
    line-height: clamp(17px, 4.5vw, 20px);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: normal;
}

/* --- challan number ---
   Normal flow, centered. */
body.verification-page .challan-number-section {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    text-align: center;
    padding: 6px 0;
    margin-bottom: 8px;
}

body.verification-page .challan-no-label {
    font-size: clamp(22px, 5.5vw, 28px);
    font-weight: 700;
    color: #000;
}

body.verification-page .challan-no-value {
    display: inline;
    word-break: break-word;
    font-size: clamp(24px, 6vw, 29px);
    font-weight: 800;
    color: #FFE93B !important;
}

/* --- QR section ---
   Normal flow, centered. QR placeholder is static & centered. */
body.verification-page .qr-section {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    text-align: center;
    padding: 0 0 2px 0;
    margin-bottom: 16px;
}

body.verification-page .qr-placeholder {
    position: static;
    top: auto;
    left: auto;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: block;
    background-color: #fff;
}

body.verification-page .qr-placeholder img,
body.verification-page .qr-placeholder svg {
    width: 100%;
    height: 100%;
    display: block;
}

body.verification-page .qr-label {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    font-size: clamp(19px, 5vw, 24px);
    font-weight: 700;
    color: #000;
    text-align: center;
    margin-top: 2px;
}

/* --- mineral section --- */
body.verification-page .mineral-section {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    text-align: center;
    padding: 2px 0;
    margin-bottom: 28px;
}

body.verification-page .mineral-text {
    font-size: clamp(20px, 5vw, 24px);
    font-weight: 800;
    color: #FFE93B;
}

body.verification-page .mineral-value,
body.verification-page .mineral-qty {
    color: #FFE93B;
    font-weight: 800;
}

/* --- validity section ---
   Normal flow. Children also switch to static.
   Negative side margins break out of parent .challan-page padding
   so the text stretches nearly edge-to-edge. */
body.verification-page .validity-section {
    position: static;
    top: auto;
    left: auto;
    width: calc(100% + 20px);
    margin-left: -10px;
    margin-right: -10px;
    height: auto;
    text-align: center;
    padding: 4px 4px;
    margin-bottom: 28px;
    font-size: clamp(22px, 6.2vw, 29px);
    font-weight: 700;
    color: #000;
    line-height: clamp(30px, 7vw, 40px);
}

body.verification-page .validity-en {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    font-size: clamp(22px, 6.2vw, 29px);
    font-weight: 800;
    color: #000;
    margin-bottom: 6px;
}

body.verification-page .validity-hi {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    font-size: clamp(22px, 6.2vw, 29px);
    font-weight: 800;
    color: #000;
}

/* --- URL section --- */
body.verification-page .url-section {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    text-align: center;
    padding: 0 0 28px 0;
    font-size: clamp(14px, 3.8vw, 17px);
    font-weight: 700;
    color: #000;
}

body.verification-page .url-section strong {
    color: #000;
    font-weight: 800;
}

body.verification-page .url-link {
    color: #FFE93B !important;
    text-decoration: underline !important;
}

/* --- details table ---
   Plain stacked rows on orange background, inline label+value flow. */
body.verification-page .details-section {
    position: static;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    background-color: #159f81;
    border: none;
}

body.verification-page .detail-row {
    border-bottom: 1px solid rgba(255,255,255,0.25);
    padding: 18px 22px;
    min-height: 0;
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
    color: #1a1a1a;
}

body.verification-page .detail-row:last-child {
    border-bottom: none;
}

body.verification-page .detail-row p {
    display: inline;
    margin: 0;
}

body.verification-page .sub-row {
    display: inline;
    margin: 0;
    padding: 0;
}

/* --- approval section --- */
body.verification-page .approval-section {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 120px;
    margin: 56px 0 0 0;
    padding: 24px 28px 32px 28px;
    border: 1px solid #d4d4d4;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.verification-page .approval-section::after {
    display: none;
}

body.verification-page .approval-text {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 800;
    letter-spacing: 1.5px;
    line-height: clamp(16px, 4vw, 20px);
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #d4d4d4;
    align-self: stretch;
    margin-left: -28px;
    margin-right: -28px;
    margin-bottom: 28px;
}

body.verification-page .approved-seal {
    position: static;
    top: auto;
    left: auto;
    width: clamp(150px, 32vw, 185px);
    height: auto;
    display: block;
}

/* --- Bottom spacing so it doesn't feel cramped --- */
body.verification-page .challan-page {
    padding-bottom: 10px;
}

/* ============================================================
   MOBILE (≤768px) – edge-to-edge orange page, tiny gutters
   The entire page background is orange so the challan is not
   a "card" – it fills the screen naturally.
   All spacing uses a consistent clamp scale so every section
   grows proportionally: xs (1vw), sm (2vw), md (3vw), lg (4vw).
   ============================================================ */
@media (max-width: 768px) {
    html.verification-mode {
        background-color: #00bcd4;
        overflow-x: hidden;
    }

    body.verification-page {
        background-color: #00bcd4;
        padding: 0;
    }

    body.verification-page .challan-page {
        width: 100%;
        max-width: none;
        margin: 0;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: clamp(16px, 4vw, 28px);
    }

    /* ---- TOP NOTE ---- */
    body.verification-page .note-section {
        padding: clamp(12px, 3vw, 20px) 10px clamp(4px, 1.5vw, 8px) 10px;
        font-size: clamp(12px, 3.6vw, 16px);
        line-height: clamp(19px, 5vw, 28px);
        font-weight: 400;
    }
    body.verification-page .note-en {
        margin-bottom: 16px;
        font-size: 16px;
        font-weight: 700;
        line-height: 24px;
        color: #ffffff;
        letter-spacing: 0.3px;
    }
    body.verification-page .note-hi {
        font-weight: 700;
        font-size: 16px;
        line-height: 24px;
        color: #ffffff;
        letter-spacing: 0.3px;
    }

    /* ---- DIVIDER ---- */
    body.verification-page .divider {
        margin: clamp(8px, 2.5vw, 16px) 0 clamp(18px, 5vw, 28px) 0;
    }

    /* ---- HEADER ---- */
    body.verification-page .header-section {
        padding: clamp(14px, 4vw, 18px) 0 0 0;
    }
    body.verification-page .emblem {
        width: clamp(65px, 17.5vw, 80px);
        height: clamp(65px, 17.5vw, 80px);
        margin-bottom: clamp(8px, 2.5vw, 14px);
    }
    body.verification-page .govt-title {
        font-size: clamp(24px, 6vw, 30px);
        font-weight: 700;
        line-height: clamp(27px, 6.5vw, 33px);
        margin-bottom: 0;
    }
    body.verification-page .dept-title {
        font-size: clamp(24px, 6vw, 30px);
        font-weight: 700;
        line-height: clamp(27px, 6.5vw, 33px);
        margin-bottom: clamp(10px, 3vw, 14px);
    }
    body.verification-page .form-title {
        font-size: clamp(17px, 4.2vw, 21px);
        font-weight: 600;
        line-height: clamp(20px, 4.6vw, 24px);
        margin-bottom: clamp(6px, 2vw, 10px);
    }
    body.verification-page .form-rules {
        font-size: clamp(15px, 3.2vw, 21px);
        font-weight: 600;
        line-height: clamp(16px, 3.8vw, 22px);
        margin-bottom: 0;
        color: #ffffff;
    }
    body.verification-page .form-desc {
        max-width: none;
        font-size: clamp(15px, 3.2vw, 21px);
        font-weight: 600;
        line-height: clamp(17px, 4.2vw, 24px);
        margin-bottom: clamp(12px, 3.5vw, 16px);
        color: #ffffff;
    }
    body.verification-page .echallan-title {
        font-size: clamp(16px, 4vw, 19px);
        font-weight: 700;
        line-height: clamp(17px, 4.8vw, 20px);
        margin-bottom: clamp(8px, 2.5vw, 12px);
        letter-spacing: normal;
    }

    /* ---- CHALLAN NUMBER ---- */
    body.verification-page .challan-number-section {
        padding: clamp(6px, 1.5vw, 10px) 0;
        margin-bottom: clamp(8px, 2vw, 12px);
    }
    body.verification-page .challan-no-label {
        font-size: clamp(22px, 5.5vw, 28px);
        font-weight: 700;
        color: #000;
    }
    body.verification-page .challan-no-value {
        display: inline;
        word-break: break-word;
        font-size: clamp(24px, 6vw, 29px);
        font-weight: 800;
        color: #FFE93B !important;
    }

    /* ---- QR SECTION ---- */
    body.verification-page .qr-section {
        padding: 0 0 clamp(2px, 1vw, 4px) 0;
        margin-bottom: clamp(12px, 3vw, 16px);
    }
    body.verification-page .qr-placeholder {
        width: 100px;
        height: 100px;
        background-color: #fff;
    }
    body.verification-page .qr-label {
        font-size: clamp(19px, 5vw, 24px);
        font-weight: 700;
        color: #000;
        margin-top: 2px;
    }

    /* ---- MINERAL ---- */
    body.verification-page .mineral-section {
        padding: clamp(2px, 1vw, 4px) 0;
        margin-bottom: clamp(24px, 5vw, 28px);
    }
    body.verification-page .mineral-text {
        font-size: clamp(21px, 5.5vw, 26px);
        font-weight: 800;
        color: #FFE93B;
    }
    body.verification-page .mineral-value,
    body.verification-page .mineral-qty {
        color: #FFE93B;
        font-weight: 800;
    }

    /* ---- VALIDITY ---- */
    body.verification-page .validity-section {
        width: calc(100% + 16px);
        margin-left: -8px;
        margin-right: -8px;
        padding: clamp(4px, 1vw, 6px) 2px;
        font-size: clamp(22px, 6.2vw, 29px);
        font-weight: 700;
        color: #000;
        line-height: clamp(30px, 7vw, 40px);
        margin-bottom: clamp(24px, 5vw, 28px);
    }
    body.verification-page .validity-en {
        font-size: clamp(22px, 6.2vw, 29px);
        font-weight: 800;
        color: #000;
        margin-bottom: clamp(4px, 1vw, 8px);
    }
    body.verification-page .validity-hi {
        font-size: clamp(22px, 6.2vw, 29px);
        font-weight: 800;
        color: #000;
    }

    /* ---- URL ---- */
    body.verification-page .url-section {
        padding: 0 0 clamp(24px, 5vw, 28px) 0;
        font-size: clamp(14px, 3.8vw, 17px);
        font-weight: 700;
        color: #000;
    }
    body.verification-page .url-section strong {
        color: #000;
        font-weight: 800;
    }
    body.verification-page .url-link {
        color: #FFE93B !important;
        text-decoration: underline !important;
    }

    /* ---- TABLE ---- */
    body.verification-page .detail-row {
    border-bottom: 1px solid rgba(255,255,255,0.25);
    padding: clamp(16px, 4vw, 20px) 22px;
        min-height: 0;
        line-height: 1.6;
        color: #1a1a1a;
    }

    /* ---- APPROVAL ---- */
    body.verification-page .approval-section {
        flex-direction: column;
        margin-top: clamp(48px, 10vw, 58px);
        min-height: clamp(130px, 35vw, 180px);
        padding: clamp(18px, 4vw, 26px) 8px clamp(24px, 5vw, 34px) 8px;
        border: 1px solid #d4d4d4;
    }
    body.verification-page .approval-text {
        width: auto;
        font-size: clamp(14px, 3.4vw, 16px);
        font-weight: 600;
        line-height: clamp(18px, 4.8vw, 24px);
        border-bottom: 1px solid #d4d4d4;
        letter-spacing: normal;
        margin-left: -8px;
        margin-right: -8px;
        margin-bottom: clamp(20px, 4vw, 28px);
    }
    body.verification-page .approved-seal {
        width: clamp(130px, 30vw, 170px);
    }
}

/* ===== MOBILE: Form Header Overrides ===== */
@media (max-width: 768px) {
    .form-title {
        font-size: 12px;
        font-weight: normal;
        line-height: 14px;
        text-align: center;
    }

    .form-rules {
        font-size: 9.6px;
        font-weight: normal;
        line-height: 11px;
        text-align: center;
    }

    .form-desc {
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        right: 0;
        font-size: 9.6px;
        font-weight: normal;
        line-height: 11px;
        text-align: center;
    }
}

/* ================================================================
   ENTRY FORM — Simple data-entry layout (non-verification mode)
   ================================================================ */

body:not(.verification-page) {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-shadow: none;
    background-color: #f4f5f7;
}

body:not(.verification-page) .challan-page {
    display: none;
}

body.verification-page .entry-form {
    display: none;
}

.entry-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 32px 40px;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}

.entry-header {
    text-align: center;
    padding: 16px 0 24px;
    margin-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.entry-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px;
}

.entry-header p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.form-row {
    display: flex;
    align-items: flex-start;
    padding: 7px 12px;
    border-bottom: 1px solid #e8e8e8;
}

.form-row:nth-child(odd) {
    background-color: #fafafa;
}

.form-row label {
    width: 280px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    padding: 5px 12px 5px 0;
}

.form-row input,
.form-row textarea {
    flex: 1;
    padding: 5px 8px;
    font-size: 13px;
    font-family: inherit;
    color: #111;
    background-color: #fff;
    border: 1px solid #c8c8c8;
    border-radius: 3px;
    outline: none;
    transition: border-color 0.15s;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: #4a90d9;
    box-shadow: 0 0 0 2px rgba(74,144,217,0.15);
}

.form-row textarea {
    min-height: 36px;
    resize: vertical;
    line-height: 1.4;
}

.form-row .input-sm {
    width: 120px;
    flex: none;
    margin-left: 8px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 24px 0 8px;
    margin-top: 16px;
}

.form-actions button {
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.15s;
}

.form-actions .btn-primary {
    background-color: #2c3e50;
    color: #fff;
}

.form-actions .btn-primary:hover {
    background-color: #1a252f;
}

.form-actions #download-qr-btn {
    background-color: #fff;
    color: #444;
    border: 1px solid #b0b0b0;
}

.form-actions #download-qr-btn:hover:not(:disabled) {
    background-color: #f0f0f0;
}

.form-actions #download-qr-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#generate-success {
    background-color: #eaf7ee;
    border: 1px solid #a5d6a7;
    border-radius: 5px;
    padding: 18px 20px;
    margin-bottom: 24px;
    text-align: center;
}

#generate-success p {
    margin: 0 0 6px;
    font-size: 14px;
    color: #333;
}

#generate-success .success-title {
    font-size: 17px;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 4px;
}

#generate-success .challan-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 18px;
    background-color: #1565c0;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
}

#generate-success .challan-link:hover {
    background-color: #0d47a1;
}

@media (max-width: 700px) {
    .entry-form {
        padding: 16px 12px 32px;
    }
    .form-row {
        flex-wrap: wrap;
        padding: 6px 8px;
    }
    .form-row label {
        width: 100%;
        padding: 2px 0 4px;
    }
    .form-row input,
    .form-row textarea {
        width: 100%;
    }
    .form-row .input-sm {
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
    }
}
