﻿
body {
    background: #f4f6fb;
    font-family: 'Noto Sans Devanagari',sans-serif;
}

.form-card {
    max-width: 560px;
    margin: 40px auto;
    background: #fff;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.10);
}

.title small {
    color: #2c2d2f;
    font-weight: 900;
    font-size: 15px;
}

.btn-main {
    background: #4B2FA3;
    color: #fff;
    border: none;
}

    .btn-main:hover {
        background: #6C4ED9;
    }

.stepbar {
    display: flex;
    gap: 8px;
    margin: 14px 0 18px;
}

.step-item {
    flex: 1;
    padding: 10px 10px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    background: #eef2ff;
    color: #3b2b7a;
    user-select: none;
    border: 1px solid rgba(75,47,163,0.12);
}

    .step-item.active {
        background: #4B2FA3;
        color: #fff;
        border-color: #4B2FA3;
    }

.helper {
    font-size: 12px;
    color: #667085;
    margin-top: 4px;
}

.req {
    color: #d92d20;
    font-weight: 700;
}

.divider {
    height: 1px;
    background: #eef2f6;
    margin: 18px 0;
}

.toast-mini {
    display: none;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
    font-size: 13px;
}

    .toast-mini.err {
        background: #fff1f3;
        color: #b42318;
        border-color: #fda4af;
    }

.sbk-warning-box {
    background: #fff8e1;
    border-left: 5px solid #ffc107;
    padding: 14px;
    border-radius: 8px;
    margin-top: 15px;
}

.sbk-warning-title {
    font-weight: 700;
    color: #b45309;
    margin-bottom: 5px;
}

.sbk-warning-text {
    font-size: 14px;
    color: #7c2d12;
}

@keyframes headingFloat {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0px);
    }
}

.heading-animate {
    animation: headingFloat 2.2s ease-in-out infinite;
}
.form-control.is-invalid,
select.is-invalid,
textarea.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 3px rgba(220,53,69,.3);
}


/* =====================================
   PRINT LAYOUT (A4 GOVERNMENT STYLE)
===================================== */

/* ===============================
   GOVERNMENT A4 PRINT LAYOUT
================================ */
@media print {

    /* -------- PAGE SETUP -------- */
    @page {
        size: A4 portrait;
        margin: 15mm 12mm;
    }

    body {
        background: #fff !important;
        font-family: "Noto Sans Devanagari", Arial, sans-serif;
        font-size: 12.5px;
        line-height: 1.4;
        color: #000;
    }

    /* -------- HIDE UI -------- */
    .no-print,
    .stepbar,
    .btn,
    #btnHome,
    #btnHome2,
    #btnMobile,
    #Nextmob,
    #NextPanc,
    #Back1,
    #Back2,
    #msgOk,
    #msgErr,
    iframe {
        display: none !important;
    }

    /* -------- SHOW ALL STEPS -------- */
    #sec1, #sec2, #sec3 {
        display: block !important;
    }

    /* -------- CONTAINER -------- */
    .form-card {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }

    /* -------- HEADER -------- */
    .title {
        text-align: center;
        border: 2px solid #000;
        padding: 8px;
        margin-bottom: 8px;
    }

    #MainHeading {
        font-size: 16px;
        font-weight: 700;
    }

    /* -------- APPLICATION ID -------- */
    #appIdBar {
        text-align: center;
        font-size: 14px;
        font-weight: 700;
        border: 1px solid #000;
        padding: 5px;
        margin: 8px 0 12px;
    }

    /* -------- LABEL + FIELD -------- */
    label.form-label {
        font-weight: 600;
        margin: 6px 0 2px;
        display: block;
    }

    input,
    textarea,
    select {
        width: 100%;
        border: 1px solid #000 !important;
        padding: 4px 6px !important;
        font-size: 12.5px !important;
        background: #fff !important;
        color: #000 !important;
    }

    textarea {
        min-height: 40px;
    }

    /* -------- FILE INPUTS -------- */
    input[type=file] {
        display: none !important;
    }

    img {
        border: 1px solid #000;
        padding: 2px;
        margin-top: 4px;
        max-height: 90px;
        max-width: 140px;
        display: block;
    }

    /* -------- CHECKBOX -------- */
    input[type=checkbox] {
        transform: scale(1.1);
        margin-right: 6px;
    }

    .form-check-label {
        font-size: 12px;
    }

    /* -------- SECTION DIVIDER -------- */
    .divider {
        border-top: 1px solid #000;
        margin: 10px 0;
    }

    /* -------- PAGE BREAK LOGIC -------- */

    /* Try to keep sec1 + sec2 on first page */
    #sec1, #sec2 {
        page-break-inside: avoid;
    }

    /* Allow sec3 to move to next page if needed */
    #sec3 {
        page-break-before: auto;
        page-break-inside: avoid;
    }

    /* Force new page before sec3 ONLY if overflowing */
    #sec3 {
        break-before: page;
    }

    /* -------- SUCCESS CARD -------- */
    #successCard {
        display: block !important;
        border: 1px solid #000;
        margin-bottom: 10px;
        page-break-inside: avoid;
    }

    /* -------- WATERMARK -------- */
    body::after {
        content: "सुधा बिक्री केन्द्र • APPLICATION";
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-30deg);
        font-size: 60px;
        font-weight: 700;
        letter-spacing: 2px;
        color: rgba(0,0,0,0.05);
        z-index: 0;
        pointer-events: none;
        white-space: nowrap;
    }

    body * {
        position: relative;
        z-index: 1;
    }
}


