
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --red: #9B1C1C;
    --gold: #D97706;
    --red-light: #FEF2F2;
    --red-mid: #DC2626;
    /* Add these missing ones: */
    --color-background-primary: #ffffff;
    --color-background-secondary: #f8f8f8;
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #6b7280;
    --color-text-tertiary: #9ca3af;
    --color-border-tertiary: #e5e7eb;
    --color-border-secondary: #d1d5db;
    --color-background-success: #f0fdf4;
    --color-text-success: #166534;
    --color-border-success: #bbf7d0;
    --color-background-danger: #fef2f2;
    --color-text-danger: #991b1b;
    --color-border-danger: #fecaca;
}

.fw {
    font-family: 'Poppins',sans-serif;
    padding-bottom: 2rem;
    max-width: 800px;
    width: 100%;
    margin: 0px auto;
}

.hdr {
    background: #9B1C1C;
    border-radius: 12px;
    padding: 1.4rem 1.5rem 1.2rem;
    text-align: center;
    margin-bottom: 1.2rem
}

.hdr-org {
    font-family: 'Noto Sans Devanagari',sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #FCD34D;
    line-height: 1.3
}

.hdr-addr {
    font-family: 'Noto Sans Devanagari',sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,.75);
    margin: 3px 0 10px
}

.hdr-badge {
    display: inline-block;
    background: #FCD34D;
    color: #7C1C1C;
    font-family: 'Noto Sans Devanagari',sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 5px 22px;
    border-radius: 6px
}

.hdr-sub {
    font-family: 'Noto Sans Devanagari',sans-serif;
    font-size: 10px;
    color: rgba(255,255,255,.6);
    margin-top: 5px
}

.col-heads {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 10px;
    margin-bottom: 6px
}

.col-head {
    text-align: center;
    padding: 7px 10px;
    border-radius: 8px;
    background: var(--color-background-secondary);
    border: 0.5px solid var(--color-border-tertiary);
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: .4px;
    text-transform: uppercase
}

    .col-head .hi {
        font-family: 'Noto Sans Devanagari',sans-serif;
        font-size: 12px;
        text-transform: none;
        letter-spacing: 0
    }

.top-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) 108px;
    gap: 14px;
    margin-bottom: 0
}

.fields-col {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.photo-col {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.photo-box {
    width: 108px;
    height: 128px;
    border: 1.5px dashed #DC2626;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #FEF2F2;
    transition: border-color .15s,background .15s;
    overflow: hidden
}

    .photo-box:hover {
        border-color: #9B1C1C;
        background: #FEE2E2
    }

    .photo-box i {
        font-size: 26px;
        color: #DC2626;
        margin-bottom: 5px
    }

    .photo-box span {
        font-family: 'Noto Sans Devanagari',sans-serif;
        font-size: 9px;
        color: #9B1C1C;
        text-align: center;
        line-height: 1.4;
        padding: 0 8px
    }

    .photo-box img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

.serial-under {
    margin-top: 4px
}

.fg {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.lbl {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-secondary)
}

.lbl-hi {
    font-family: 'Noto Sans Devanagari',sans-serif;
    font-size: 12px;
    color: #DC2626;
    font-weight: 500
}

.lbl-sep {
    color: var(--color-border-secondary);
    font-size: 10px
}

.ai-dot {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #FEE2E2;
    color: #9B1C1C;
    font-size: 9px;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 20px;
    margin-left: 2px
}

.pair {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 8px
}

.txtBox_Error {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 2px solid red;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Poppins',sans-serif;
    background: var(--color-background-primary);
    color: var(--color-text-primary);
    outline: none;
    transition: border-color .15s,box-shadow .15s;
}

.txtBox {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-border-secondary);
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Poppins',sans-serif;
    background: var(--color-background-primary);
    color: var(--color-text-primary);
    outline: none;
    transition: border-color .15s,box-shadow .15s;
}

    .txtBox:focus {
        border-color: #DC2626;
        box-shadow: 0 0 0 3px rgba(220,38,38,.1)
    }

    .txtBox::placeholder {
        color: var(--color-text-tertiary);
        font-size: 12px
    }

.hi-input {
    font-family: 'Noto Sans Devanagari',sans-serif !important;
    font-size: 14px !important;
    background: #FFFBFB !important;
    border-color: #FECACA !important;
    color: #7C1C1C !important;
    cursor: default
}

    .hi-input::placeholder {
        color: #FCA5A5 !important;
        font-size: 13px !important
    }

    .hi-input:focus {
        border-color: #DC2626 !important;
        box-shadow: 0 0 0 3px rgba(220,38,38,.08) !important
    }

.translating-state {
    opacity: .55;
    font-style: italic
}

.divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 6px
}

    .divider::before, .divider::after {
        content: '';
        flex: 1;
        height: 0.5px;
        background: var(--color-border-tertiary)
    }

    .divider span {
        font-size: 10px;
        font-weight: 500;
        color: var(--color-text-tertiary);
        text-transform: uppercase;
        letter-spacing: .6px;
        white-space: nowrap
    }

    .divider .hi-d {
        font-family: 'Noto Sans Devanagari',sans-serif;
        text-transform: none;
        letter-spacing: 0;
        font-size: 11px
    }

.two-col {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 12px
}

.full-col {
    width: 100%
}

.btn-submit {
    width: 100%;
    height: 46px;
    margin-top: 14px;
    background: #9B1C1C;
    color: #FCD34D;
    border: none;
    border-radius: 9px;
    font-family: 'Poppins',sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s
}

    .btn-submit:hover {
        background: #7C1C1C
    }

    .btn-submit:active {
        transform: scale(.99)
    }

.status {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 12px
}

    .status.ok {
        display: flex;
        background: var(--color-background-success);
        color: var(--color-text-success);
        border: 0.5px solid var(--color-border-success)
    }

    .status.err {
        display: flex;
        background: var(--color-background-danger);
        color: var(--color-text-danger);
        border: 0.5px solid var(--color-border-danger)
    }

@media(max-width:560px) {
    .top-row {
        grid-template-columns: 1fr
    }

    .photo-col {
        flex-direction: row;
        align-items: center;
        gap: 10px
    }

    .photo-box {
        width: 90px;
        height: 90px
    }

    .two-col, .pair {
        grid-template-columns: 1fr
    }

    .col-heads {
        grid-template-columns: 1fr
    }
}


