/* ── Main Layout ── */
.main-body {
    padding: 44px 0 72px;
    background: #F0EDE8;
}

.main-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 1024px) {
    .main-inner {
        padding: 0;
    }
}

/* ── Form Card ── */
.form-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08), 0 8px 32px rgba(0, 0, 0, .06);
}

.fch {
    background: linear-gradient(135deg, var(--navy) 0%, #16213e 100%);
    padding: 24px 28px;
}

.fch-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}

.fch-sub {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .45);
    font-weight: 300;
}

.fcb {
    padding: 28px;
}

.f-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.f-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.f-label {
    font-size: 11px;
    font-weight: 700;
    color: #374151;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.f-req {
    color: var(--red);
}

.f-input {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--navy);
    background: #fafafa;
    border: 1.5px solid #e5e7eb;
    border-radius: 9px;
    padding: 12px 15px;
    outline: none;
    width: 100%;
    transition: all .2s;
}

.f-input::placeholder {
    color: #9ca3af;
}

.f-input:focus {
    border-color: var(--red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, .07);
}

.f-hint {
    font-size: 11.5px;
    color: #9ca3af;
    line-height: 1.4;
}

.btn-find {
    background: var(--red);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 20px;
    border-radius: 9px;
    border: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .2s;
    cursor: pointer;
}

.btn-find:hover {
    background: #a50d26;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.35);
}

.btn-find:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.pay-note {
    text-align: center;
    font-size: 12.5px;
    color: #9ca3af;
    margin-top: 10px;
}

.pay-note a {
    color: var(--red);
    font-weight: 600;
    text-decoration: none;
}

/* Instructions Box */
.inst-box {
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    margin-top: 16px;
    border: 1.5px solid #e5e7eb;
}

.inst-head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
}

.inst-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.inst-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    color: #6b7280;
    line-height: 1.5;
}

.inst-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
    margin-top: 5px;
}

/* ── Right Results ── */
.placeholder {
    background: #fff;
    border-radius: 16px;
    border: 2px dashed #e5e7eb;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    padding: 48px 32px;
}

.ph-icon {
    font-size: 60px;
}

.ph-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    font-family: 'Inter', sans-serif;
}

.ph-sub {
    font-size: 13px;
    color: #9ca3af;
    max-width: 240px;
    line-height: 1.6;
}

/* Found Panel */
.found-panel {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.found-topbar {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
}

.found-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    font-family: 'Inter', sans-serif;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
}

.found-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 7px;
    transition: all .2s;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.btn-print {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    color: #374151;
}

.btn-print:hover {
    border-color: #374151;
}

.btn-pdf {
    background: var(--red);
    border: none;
    color: #fff;
}

.btn-pdf:hover {
    background: #a50d26;
}

/* ── Admit Card Design ── */
.admit-card {
    margin: 16px;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #d1d5db;
    background: #fff;
}

.ac-head {
    background: linear-gradient(90deg, #1a1a2e 0%, #1e1040 60%, #2a0a1e 100%);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ac-head-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ac-nat {
    background: var(--red);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    padding: 8px 12px;
    border-radius: 7px;
    letter-spacing: .04em;
    font-family: 'Inter', sans-serif;
}

.ac-org-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .01em;
    margin-bottom: 2px;
    font-family: 'Inter', sans-serif;
}

.ac-org-sub {
    font-size: 10px;
    color: rgba(255, 255, 255, .45);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ac-head-right {
    text-align: right;
}

.ac-admit-title {
    font-size: 15px;
    font-weight: 800;
    color: #f59e0b;
    letter-spacing: .02em;
    font-family: 'Inter', sans-serif;
}

.ac-admit-sub {
    font-size: 10px;
    color: rgba(255, 255, 255, .4);
    margin-top: 2px;
}

.ac-body {
    padding: 18px 20px;
}

.ac-cand-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.ac-label {
    font-size: 9px;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: .09em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ac-cand-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -.01em;
    font-family: 'Inter', sans-serif;
}

.ac-photo {
    width: 72px;
    height: 84px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    overflow: hidden;
}

.ac-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ac-photo-icon {
    font-size: 22px;
    color: #9ca3af;
}

.ac-photo-txt {
    font-size: 8px;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.3;
}

.ac-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}

.ac-grid-item {
    padding: 13px 0;
    border-top: 1px solid #e5e7eb;
}

.ac-grid-item.no-border {
    border-top: none;
    padding-top: 0;
}

.ac-val {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.ac-val.roll {
    font-size: 20px;
    font-weight: 900;
    color: var(--red);
    letter-spacing: .02em;
    font-family: 'Inter', sans-serif;
}

.ac-val.level {
    font-size: 20px;
    font-weight: 900;
    color: var(--navy);
    font-family: 'Inter', sans-serif;
}

.ac-inst-row {
    border-top: 1px solid #e5e7eb;
    padding: 13px 0 0;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-top: 0;
}

.ac-inst-body {
    flex: 1;
}

.ac-inst-title {
    font-size: 10px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ac-inst-text {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.62;
}

.ac-qr-box {
    width: 68px;
    height: 68px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-shrink: 0;
}

.ac-qr-box img {
    width: 100%;
    height: 100%;
}

.ac-qr-txt {
    font-size: 7.5px;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.3;
}

.ac-sig {
    border-top: 1px solid #e5e7eb;
    padding: 24px 20px 30px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 20px;
    align-items: flex-end;
}

.ac-sig-item {
    padding: 0;
}

.ac-sig-item.right {
    text-align: right;
}

.ac-sig-item.center {
    text-align: center;
}

.ac-sig-line {
    border-top: 1.5px solid var(--navy);
    margin-bottom: 6px;
    width: 140px;
    display: inline-block;
}

.ac-sig-item.right .ac-sig-line {
    margin-left: auto;
}

.ac-sig-item.left .ac-sig-line {
    margin-right: auto;
}

.ac-sig-label {
    font-size: 9px;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ac-sig-name {
    font-size: 10px;
    font-weight: 700;
    color: #374151;
    margin-top: 2px;
}

/* Not Found Panel */
.notfound-panel {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #fecdd3;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 48px 32px;
}

.nf-icon {
    font-size: 52px;
}

.nf-title {
    font-size: 18px;
    font-weight: 800;
    color: #9f1239;
    font-family: 'Inter', sans-serif;
}

.nf-sub {
    font-size: 13px;
    color: #be185d;
    line-height: 1.6;
    max-width: 280px;
}

.nf-btns {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.btn-nf {
    font-size: 13px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 9px;
    cursor: pointer;
    transition: all .2s;
    font-family: 'Inter', sans-serif;
}

.btn-try {
    background: var(--red);
    color: #fff;
    border: none;
}

.btn-support {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid #e5e7eb;
}

@media print {

    .page-header,
    .site-footer,
    .form-card,
    .inst-box,
    .found-topbar,
    .placeholder,
    .notfound-panel,
    .state-bar,
    .navbar,
    .breadcrumb-area,
    .notice-bar {
        display: none !important;
    }

    .main-body {
        padding: 0 !important;
        background: white !important;
    }

    .main-inner {
        display: block !important;
        padding: 0 !important;
        max-width: 100% !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .found-panel {
        box-shadow: none !important;
        border: none !important;
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .admit-card {
        margin: 0 !important;
        border: 1px solid #000 !important;
        width: 100% !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .ac-head {
        background: #1a1a2e !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .ac-nat {
        background: #C9002B !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .ac-admit-title {
        color: #f59e0b !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .ac-val.roll {
        color: #C9002B !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .ac-sig-line {
        border-top: 1.5px solid #000 !important;
        width: 140px !important;
    }

    body {
        background: white !important;
    }
}

@media (max-width: 1024px) {
    .main-inner {
        padding: 0;
    }
}

@media (max-width: 900px) {
    .main-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .main-body {
        padding: 20px 0 40px;
    }

    .main-inner {
        padding: 0 10px;
    }

    .admit-card {
        margin: 10px 5px;
    }

    .found-topbar {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        text-align: center;
        padding: 15px;
    }

    .found-actions {
        width: 100%;
        justify-content: center;
    }

    .btn-action {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
        font-size: 11px;
    }

    .ac-head {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 20px 15px;
    }

    .ac-head-left {
        flex-direction: column;
        gap: 8px;
    }

    .ac-head-right {
        text-align: center;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 10px;
    }

    .ac-cand-row {
        flex-direction: column-reverse;
        align-items: center;
        gap: 15px;
        text-align: center;
        padding-bottom: 20px;
    }

    .ac-cand-name {
        font-size: 18px;
        line-height: 1.3;
    }

    .ac-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ac-grid-item {
        padding: 12px 0;
    }

    .ac-label {
        font-size: 8.5px;
    }

    .ac-val.roll,
    .ac-val.level {
        font-size: 18px;
    }

    .ac-inst-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
        padding-top: 18px;
    }

    .ac-qr-box {
        margin: 0 auto;
        width: 80px;
        height: 80px;
    }

    .ac-sig {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 15px;
    }

    .ac-sig-item {
        padding: 0;
        text-align: center !important;
    }

    .ac-sig-line {
        margin: 0 auto 6px !important;
        width: 100px;
    }
}