/* ══════════════════════════════════════════════════════════════
   Kamala Nehru College — eShiksa Fee Payment Portal
   Exact Match to erp.eshiksa.net
   - No outer box boundary around the scrollable form
   - Clean bordered header box
   - Borderless gray input rows
   - Native scrollbar
══════════════════════════════════════════════════════════════ */

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

html {
    background-color: #F8F8F8;
    color: #000000;
    font-size: 16px;
    font-family: sans-serif;
    height: 100%;
}

body {
    background-color: #F8F8F8;
    color: #212121;
    font-family: 'Nunito', sans-serif;
    font-size: 12.8px;
    min-height: 100vh;
    padding: 12px 18px 24px;
    display: flex;
    flex-direction: column;
}

/* ── Card Container Fills Page Width and Height ── */
.card {
    background-color: #ffffff;
    border: 1px solid #e4e7eb;
    border-radius: 3px;
    width: 100%;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card-body {
    padding: 24px 28px 18px;
    color: #212121;
    font-family: 'Nunito', sans-serif;
    font-size: 12.8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ── Top Header with Subtle Outline ── */
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    border: 1px solid #e4e7eb;
    border-radius: 2px;
    background: #ffffff;
    margin-bottom: 22px;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    flex: 1;
}

.header-right {
    justify-content: flex-end;
}

.college-title {
    font-size: 22px;
    font-weight: 600;
    color: #212121;
    text-align: center;
    letter-spacing: -0.2px;
}

.eshiksa-logo-svg {
    height: 40px;
    width: auto;
}

/* IDBI Bank Badge */
.idbi-badge {
    display: inline-flex;
    align-items: center;
    background-color: #005f3b;
    border-radius: 3px;
    padding: 5px 14px 5px 6px;
    gap: 10px;
    user-select: none;
}

.idbi-emblem {
    width: 30px;
    height: 30px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.idbi-emblem svg {
    width: 26px;
    height: 26px;
}

.idbi-text {
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.9px;
    font-family: Arial, Helvetica, sans-serif;
}

/* ── Main Form + Navy Panel Row ── */
.main-row {
    display: flex;
    gap: 22px;
    align-items: stretch;
    flex: 1;
}

/* ── Left Form Column (NO OUTER BOX BOUNDARY) ── */
.form-container-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.scrollable-form-box {
    flex: 1;
    min-height: 520px;
    overflow-y: scroll;
    border: none; /* NO OUTER BOX BOUNDARY */
    padding: 2px 8px 10px 0;
    background: transparent;
}

/* Clean Scrollbar matching screenshot */
.scrollable-form-box::-webkit-scrollbar {
    width: 10px;
}

.scrollable-form-box::-webkit-scrollbar-track {
    background: #f1f3f5;
}

.scrollable-form-box::-webkit-scrollbar-thumb {
    background: #888d96;
    border-radius: 4px;
}

.scrollable-form-box::-webkit-scrollbar-thumb:hover {
    background: #6c727c;
}

/* ── Form Rows ── */
.field-row {
    display: flex;
    align-items: stretch;
    margin-bottom: 8px;
    height: 48px;
}

.icon-box {
    width: 44px;
    flex-shrink: 0;
    border: 1px solid #e0e3e8;
    background: #ffffff;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #212121;
    font-size: 14px;
}

.content-box {
    flex: 1;
    margin-left: 8px;
    padding: 4px 14px;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.content-box.white-box {
    background: #ffffff;
    border: 1px solid #e0e3e8;
    transition: border-color 0.15s;
}

.content-box.white-box.focused,
.content-box.white-box.roll-valid {
    border-color: #2e7d32 !important;
}

.content-box.white-box.roll-error {
    border-color: #d32f2f !important;
}

.content-box.gray-box {
    background: #ebedf0;
    border: none;
}

.field-label {
    font-size: 10.5px;
    color: #4f545b;
    line-height: 1.1;
    margin-bottom: 2px;
    font-weight: 500;
}

.field-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13.5px;
    color: #212121;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    padding: 0;
}

.field-input::placeholder {
    color: #8c939e;
}

.field-select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13.5px;
    color: #212121;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24'%3E%3Cpath fill='%23555' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 18px;
}

.roll-indicator {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

/* Proceed Button (revealed on scrolling) */
.proceed-row {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 8px;
}

.btn-proceed-pill {
    background-color: #0b113a;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 8px 38px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: background-color 0.2s, opacity 0.2s;
}

.btn-proceed-pill:hover:not(:disabled) {
    background-color: #162060;
}

.btn-proceed-pill:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.form-error-inline {
    font-size: 12px;
    color: #d32f2f;
    margin: 4px 0 8px 52px;
}

/* ── Right Dark Navy Panel ── */
.navy-panel-col {
    width: 400px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.navy-card {
    background-color: #080b33;
    flex: 1;
    min-height: 520px;
    border-radius: 2px;
    color: #ffffff;
    padding: 34px 26px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.navy-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.3px;
    margin-bottom: 26px;
}

.support-block {
    text-align: center;
    font-size: 13px;
    line-height: 1.7;
    color: #ffffff;
    margin-bottom: 22px;
}

.support-block strong {
    font-weight: 700;
}

.support-block a {
    color: #ffffff;
    text-decoration: none;
}

.support-block a:hover {
    text-decoration: underline;
}

.navy-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    width: 88%;
    margin: 12px auto 22px;
}

.txn-notice {
    font-size: 12.8px;
    line-height: 1.6;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    word-break: break-all;
    padding: 0 4px;
}

.txn-notice strong {
    color: #ffffff;
    font-weight: 600;
}

.verify-btn-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.btn-verify-pill {
    background-color: #eaedf0;
    color: #212121;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    padding: 11px 24px;
    border-radius: 22px;
    text-align: center;
    display: block;
    width: 88%;
    box-sizing: border-box;
    transition: background-color 0.2s;
}

.btn-verify-pill:hover {
    background-color: #dde0e4;
    color: #000;
}

/* ── Footer ── */
.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #ebeff2;
    font-size: 12px;
    color: #555555;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #1b4b72;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #f18701;
    text-decoration: underline;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-eshiksa-logo svg {
    height: 22px;
    width: auto;
    vertical-align: middle;
}

/* ── Policy & Compliance Pages ── */
.policy-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e0e3e8;
    border-radius: 4px;
    padding: 36px 40px;
    line-height: 1.7;
    color: #333333;
}

.policy-container h1 {
    font-size: 24px;
    color: #080b33;
    margin-bottom: 8px;
    font-weight: 700;
}

.policy-subtitle {
    font-size: 13px;
    color: #777777;
    margin-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.policy-section {
    margin-bottom: 24px;
}

.policy-section h2 {
    font-size: 16px;
    color: #1b4b72;
    margin-bottom: 8px;
    font-weight: 600;
}

.policy-section p, .policy-section ul {
    font-size: 13px;
    color: #444444;
    margin-bottom: 10px;
}

.policy-section ul {
    padding-left: 20px;
}

.policy-section li {
    margin-bottom: 6px;
}

.contact-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.contact-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 18px 20px;
}

.contact-card h3 {
    font-size: 14px;
    color: #080b33;
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-card p {
    font-size: 13px;
    color: #555555;
    margin: 4px 0;
}

/* ── UPI Page & Verify Page Styles ── */
.upi-summary-card {
    background: #ffffff;
    border: 1px solid #e0e3e8;
    border-radius: 2px;
    padding: 28px 32px;
    flex: 1;
}

.summary-heading {
    font-size: 16px;
    font-weight: 700;
    color: #080b33;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eaedf1;
    font-size: 13.5px;
}

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

.data-label {
    color: #555555;
}

.data-val {
    color: #212121;
    font-weight: 600;
}

.data-val.amt {
    color: #2e7d32;
    font-weight: 700;
    font-size: 16px;
}

.btn-upi-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #1a73e8;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    text-decoration: none;
    padding: 13px 20px;
    border-radius: 6px;
    margin-top: 22px;
    transition: background 0.2s;
}

.btn-upi-large:hover {
    background: #1558b0;
    color: #fff;
}

.btn-back-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: #555555;
    text-decoration: none;
}

.btn-back-link:hover {
    text-decoration: underline;
}

/* ══════════════════════════════════════════════
   UPI PAYMENT MODAL
══════════════════════════════════════════════ */
.upi-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 12, 53, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.upi-modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modalPop 0.22s ease-out;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header-bar {
    background: #080b33;
    color: #ffffff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header-bar h3 {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.85;
}

.modal-close-btn:hover {
    opacity: 1;
}

.modal-body-content {
    padding: 22px 24px;
    text-align: center;
}

.upi-brand-icons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.upi-brand-pill {
    background: #f1f3f5;
    color: #333333;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 11.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.qr-container {
    background: #ffffff;
    padding: 12px;
    border: 1px solid #e0e3e8;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 14px;
}

.qr-container img {
    display: block;
    border-radius: 4px;
}

.qr-caption {
    font-size: 11.5px;
    color: #555555;
    margin-top: 6px;
    font-weight: 600;
}

.payment-amount-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-amount-box .amt-lbl {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 600;
}

.payment-amount-box .amt-val {
    font-size: 17px;
    font-weight: 800;
    color: #166534;
}

.secure-notice {
    font-size: 11.5px;
    color: #475569;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-confirm-payment {
    width: 100%;
    background: #16a34a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 13px 18px;
    font-size: 14.5px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}

.btn-confirm-payment:hover {
    background: #15803d;
}

/* ══════════════════════════════════════════════
   OFFICIAL FEE RECEIPT STYLES
══════════════════════════════════════════════ */
.receipt-sheet {
    background: #ffffff;
    border: 1px solid #d9dce2;
    border-radius: 4px;
    padding: 28px 34px;
    margin: 10px auto 20px;
    max-width: 920px;
}

.receipt-header {
    text-align: center;
    border-bottom: 2px solid #080b33;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.receipt-college {
    font-size: 24px;
    font-weight: 800;
    color: #080b33;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.receipt-sub {
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 12px;
}

.receipt-badge-title span {
    background: #080b33;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 4px 16px;
    border-radius: 14px;
}

.payment-status-banner {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-status-banner i {
    font-size: 26px;
    color: #16a34a;
}

.payment-status-banner .status-main {
    font-size: 14px;
    font-weight: 800;
    color: #166534;
    display: block;
}

.payment-status-banner .status-sub {
    font-size: 11.5px;
    color: #15803d;
}

.receipt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.receipt-grid .grid-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.receipt-grid .lbl {
    font-size: 10.5px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.receipt-grid .val {
    font-size: 13px;
    color: #1e293b;
    font-weight: 700;
}

.receipt-grid .val.mono {
    font-family: monospace;
    font-size: 12px;
}

.receipt-grid .success-tag {
    color: #16a34a;
    font-weight: 800;
}

.receipt-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #080b33;
    border-left: 3px solid #080b33;
    padding-left: 8px;
    margin-bottom: 8px;
    margin-top: 14px;
}

.receipt-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 12.5px;
}

.receipt-table td, .receipt-table th {
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
}

.receipt-table .tb-lbl {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    width: 18%;
}

.receipt-table .tb-val {
    color: #1e293b;
}

.receipt-table .tb-val.bold {
    font-weight: 700;
}

.fee-table th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
}

.fee-table .total-row td {
    background: #f8fafc;
    font-size: 13px;
}

.receipt-footer-notes {
    font-size: 11px;
    color: #64748b;
    border-top: 1px dashed #cbd5e1;
    padding-top: 12px;
    line-height: 1.5;
}

.receipt-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 20px 0 10px;
}

.btn-print {
    background: #080b33;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 9px 28px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-print:hover {
    background: #141b5e;
}

.btn-home {
    background: #eaedf0;
    color: #212121;
    text-decoration: none;
    border-radius: 20px;
    padding: 9px 24px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-home:hover {
    background: #dde0e4;
}

/* Print Styles */
@media print {
    body {
        background: #ffffff !important;
        padding: 0 !important;
    }
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    .card-body {
        padding: 0 !important;
    }
    .no-print {
        display: none !important;
    }
    .receipt-sheet {
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }
}

/* ── Comprehensive Responsive Styles for Tablets and Mobile Phones ── */
@media (max-width: 900px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    body {
        padding: 6px 4px 16px;
    }
    .card {
        border-radius: 2px;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
    }
    .card-body {
        padding: 10px 8px;
    }
    .header-row {
        padding: 10px 8px;
        margin-bottom: 12px;
        gap: 6px;
        justify-content: space-between;
    }
    .header-left {
        flex: 0 0 auto;
    }
    .header-left svg, .eshiksa-logo-svg {
        height: 28px;
        width: auto;
    }
    .college-title {
        font-size: 14px;
        line-height: 1.25;
        padding: 0 4px;
        flex: 1;
        text-align: center;
        letter-spacing: normal;
    }
    .header-right {
        flex: 0 0 auto;
    }
    .idbi-badge {
        padding: 3px 6px 3px 5px;
        gap: 5px;
    }
    .idbi-emblem {
        width: 22px;
        height: 22px;
    }
    .idbi-emblem svg {
        width: 18px;
        height: 18px;
    }
    .idbi-text {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.2px;
    }
    .main-row {
        flex-direction: column;
        gap: 16px;
    }
    .form-container-col {
        width: 100%;
        min-width: 0;
    }
    .scrollable-form-box {
        height: auto;
        min-height: unset;
        overflow-y: visible;
        padding: 0;
    }
    .field-row {
        height: 46px;
        width: 100%;
        margin-bottom: 8px;
    }
    .icon-box {
        width: 40px;
        flex-shrink: 0;
        font-size: 13px;
    }
    .content-box {
        flex: 1;
        margin-left: 6px;
        padding: 4px 10px;
        min-width: 0;
    }
    .field-label {
        font-size: 10.5px;
    }
    .field-input {
        font-size: 12px;
    }
    .navy-panel-col {
        width: 100%;
        min-width: 0;
    }
    .navy-card {
        height: auto;
        min-height: unset;
        padding: 24px 16px;
    }
    .footer-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding-top: 14px;
    }
    .footer-links {
        justify-content: center;
        gap: 8px;
        font-size: 11px;
    }
    .footer-links a {
        font-size: 11px;
    }
    .upi-summary-card {
        padding: 18px 14px;
    }
    .btn-upi-large, .btn-view-receipt {
        padding: 12px 14px;
        font-size: 13px;
    }
}
