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

.hidden {
    display: none !important;
}

.aux-field-row {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.aux-field-label,
.aux-field-input {
    display: block;
}

.font-heading-arial {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
}

.font-sans-official {
    font-family: 'Inter', sans-serif;
}

.page-body {
    margin: 0;
    background-color: rgba(241, 245, 249, 0.8);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

.page-body ::selection {
    background-color: #1e3a8a;
    color: #ffffff;
}

.bg-backdrop {
    position: fixed;
    inset: 0;
    z-index: -10;
    pointer-events: none;
    opacity: 0.15;
    background-image: url('BG.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(1.05);
}

/* Icons */
.icon-sm {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.icon-md {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.icon-lg {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}

/* Main Header */
.main-header {
    background-image: linear-gradient(to right, #172554, #312e81, #1e3a8a);
    color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.main-header-inner {
    max-width: 64rem;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 10;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.header-logos-box {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
    background-color: transparent;
}

.header-logo {
    object-fit: contain;
    display: block;
}

.header-logo-lg {
    width: 3rem;
    height: 3rem;
}

.header-logo-sm {
    width: 2.5rem;
    height: 2.5rem;
}

.header-logo-divider {
    width: 1px;
    height: 2rem;
    background-color: rgba(255, 255, 255, 0.25);
}


.header-title-main {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.25;
    text-transform: uppercase;
    color: #fcd34d;
}

.header-title-sub {
    margin: 0.125rem 0 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.header-title-region {
    margin: 0.125rem 0 0;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #dbeafe;
    letter-spacing: 0.1em;
}

/* Main Container */
.main-container {
    max-width: 64rem;
    margin: 0 auto;
    width: 100%;
    padding: 2rem 1rem;
    flex-grow: 1;
}

.inquiry-card {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #cbd5e1;
    overflow: hidden;
    border-top: 4px solid #f59e0b;
}

.inquiry-card-header {
    background-color: #0f172a;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.inquiry-card-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.inquiry-icon-badge {
    padding: 0.5rem;
    background-color: rgba(245, 158, 11, 0.1);
    border-radius: 0.5rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inquiry-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fcd34d;
    text-transform: uppercase;
}

.inquiry-card-subtitle {
    margin: 0.125rem 0 0;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.inquiry-header-building {
    display: none;
    color: #94a3b8;
    opacity: 0.8;
}

/* System Notice Bar */
.system-notice-bar {
    background-color: #fffbeb;
    border-bottom: 1px solid #fde68a;
    padding: 0.75rem 1.5rem;
    font-size: 12px;
    color: #78350f;
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.notice-icon {
    color: #d97706;
    margin-top: 0.125rem;
}

.notice-text {
    font-weight: 500;
    line-height: 1.5;
}

/* Form Content */
.form-content-wrap {
    padding: 1.5rem;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.count-bar {
    background-color: #f8fafc;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.count-field-group {
    max-width: 24rem;
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.records-header-row {
    border-bottom: none;
    padding: 0 0.25rem;
}

.section-heading {
    margin: 0;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-heading-icon {
    color: #1e3a8a;
}

.step-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
}

.field-group {
    display: flex;
    flex-direction: column;
}

.field-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #334155;
    margin-bottom: 0.375rem;
}

.card-field-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #334155;
    margin-bottom: 0.25rem;
}

.required-star {
    color: #dc2626;
}

.optional-note {
    font-size: 10px;
    color: #64748b;
    font-weight: 500;
    text-transform: none;
}

.field-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 12px;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.field-input::placeholder {
    color: #94a3b8;
}

.field-input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.25);
}

.field-input-bold {
    font-weight: 600;
}

.field-select {
    cursor: pointer;
}

/* Dynamic Foreign National Cards */
.records-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.records-container-single {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.records-container-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.fn-record-card {
    background-color: rgba(248, 250, 252, 0.8);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease;
    position: relative;
}

.fn-record-card:hover {
    border-color: rgba(30, 64, 175, 0.4);
}

.fn-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding-bottom: 0.5rem;
}

.fn-card-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fn-card-num {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    background-color: #1e3a8a;
    color: #fcd34d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
}

.clear-card-btn {
    font-size: 10px;
    color: #475569;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.clear-card-btn:hover {
    color: #b91c1c;
    background-color: #fef2f2;
    border-color: #fecaca;
}

.fn-card-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fn-card-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 12px;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.fn-card-input::placeholder {
    color: #94a3b8;
}

.fn-card-input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.25);
}

.fn-card-input-name {
    text-transform: uppercase;
    font-weight: 600;
}

.fn-card-input-trx {
    text-transform: uppercase;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.fn-card-subgrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.625rem;
}

.trx-hint {
    font-size: 10px;
    margin-top: 0.125rem;
    display: block;
}

.trx-hint-neutral {
    color: #94a3b8;
}

.trx-hint-warn {
    color: #d97706;
    font-weight: 700;
}

.trx-hint-valid {
    color: #059669;
    font-weight: 700;
}

.input-duplicate-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px #fca5a5 !important;
}

/* Status Message */
.status-message {
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.status-error {
    background-color: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.status-success {
    background-color: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.status-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

/* Immediate On-Screen Status Results Panel */
.live-status-panel {
    background-color: #f8fafc;
    border: 1px solid #93c5fd;
    border-left: 4px solid #1e3a8a;
    padding: 1.25rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    font-size: 12px;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.08);
}

.live-status-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 0.75rem;
}

.live-status-title {
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-status-icon {
    color: #059669;
}

.live-status-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.live-status-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.live-status-card-new {
    border-color: #fde68a;
    background-color: #fffbeb;
}

.live-status-name {
    margin: 0;
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
}

.live-status-company {
    margin: 0.25rem 0 0;
    color: #1e3a8a;
    font-weight: 600;
    font-size: 11px;
}

.live-status-meta {
    margin: 0.125rem 0 0;
    color: #64748b;
    font-size: 11px;
}

.live-status-badge {
    display: inline-block;
    background-color: #dbeafe;
    color: #1e3a8a;
    border: 1px solid #93c5fd;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.live-status-badge-new {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
    border-radius: 0.5rem;
    text-transform: none;
    line-height: 1.4;
}

.print-receipt-btn {
    background-color: #047857;
    color: #ffffff;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.15s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.print-receipt-btn:hover {
    background-color: #065f46;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background-image: linear-gradient(to right, #1e3a8a, #312e81, #172554);
    color: #ffffff;
    font-weight: 700;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    font-size: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    border: 1px solid rgba(30, 58, 138, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.submit-btn:hover:not(:disabled) {
    background-image: linear-gradient(to right, #172554, #0f172a);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.12), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.submit-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.submit-btn-icon {
    color: #fbbf24;
}

.submit-spinner {
    animation: spin 1s linear infinite;
    margin-left: -0.25rem;
    margin-right: 0.5rem;
    height: 1rem;
    width: 1rem;
    color: #ffffff;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Card Footer */
.inquiry-card-footer {
    background-color: #f8fafc;
    padding: 0.875rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.card-footer-text {
    margin: 0;
    font-size: 11px;
    color: #475569;
    font-weight: 600;
}

.card-footer-code {
    margin: 0;
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(15, 23, 42, 0.6);
    padding: 1rem;
}

.modal-backdrop-dark {
    background-color: rgba(15, 23, 42, 0.7);
}

.modal-dialog {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    animation: modal-pop 0.15s ease-out;
}

.modal-dialog-sm {
    max-width: 32rem;
}

.modal-dialog-md {
    max-width: 42rem;
}

@keyframes modal-pop {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    background-color: #0f172a;
    color: #ffffff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1e293b;
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header-icon {
    color: #fbbf24;
}

.modal-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fcd34d;
}

.modal-close-x {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}

.modal-close-lg {
    font-size: 1.125rem;
}

.modal-close-x:hover {
    color: #ffffff;
}

.modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 65vh;
    overflow-y: auto;
    font-size: 12px;
    color: #334155;
    line-height: 1.625;
}

.modal-body-left {
    text-align: left;
}

.modal-body-justified {
    text-align: justify;
}

.modal-records-heading {
    margin: 0 0 0.5rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.modal-record-badge {
    background-color: #dbeafe;
    color: #1e3a8a;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 700;
    font-size: 10px;
}

.modal-records-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-record-item {
    background-color: #f8fafc;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-record-name {
    margin: 0;
    font-weight: 700;
    color: #1e293b;
}

.modal-record-meta {
    margin: 0.125rem 0 0;
    font-size: 11px;
    color: #64748b;
}

.modal-warning-box {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    padding: 0.75rem;
    border-radius: 0.75rem;
    color: #78350f;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.modal-warning-icon {
    color: #d97706;
    margin-top: 0.125rem;
}

.modal-footer {
    background-color: #f1f5f9;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 0.75rem;
}

.modal-footer-end {
    justify-content: flex-end;
}

.modal-cancel-btn {
    padding: 0.625rem 1rem;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-weight: 700;
    border-radius: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-family: inherit;
}

.modal-cancel-btn:hover {
    background-color: #f8fafc;
}

.modal-confirm-btn {
    padding: 0.625rem 1.25rem;
    background-image: linear-gradient(to right, #1e3a8a, #312e81);
    color: #fcd34d;
    font-weight: 700;
    border: none;
    border-radius: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-image 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.modal-confirm-btn:hover {
    background-image: linear-gradient(to right, #172554, #1e1b4b);
}

.terms-section-title {
    margin: 0 0 0.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 11px;
    color: #1e3a8a;
}

.modal-body-justified p {
    margin: 0;
}

.terms-notice-box {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    padding: 0.75rem;
    border-radius: 0.75rem;
    color: #78350f;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.terms-notice-icon {
    color: #d97706;
    margin-top: 0.125rem;
}

/* Site Footer */
.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    border-top: 1px solid #1e293b;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 12px;
    margin-top: auto;
}

.site-footer-inner {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-copyright {
    margin: 0;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 0.025em;
}

.footer-subtitle {
    margin: 0;
    font-size: 11px;
    color: #94a3b8;
}

.footer-meta-links {
    padding-top: 0.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.terms-link-btn {
    background: transparent;
    border: none;
    padding: 0;
    color: #fbbf24;
    cursor: pointer;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: inherit;
}

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

/* Receipt Dynamic Cell Helpers */
.receipt-cell-num {
    padding: 7px 8px;
    border: 1px solid #cbd5e1;
    text-align: center;
}

.receipt-cell-name {
    padding: 7px 8px;
    border: 1px solid #cbd5e1;
    font-weight: bold;
}

.receipt-cell-trx {
    padding: 7px 8px;
    border: 1px solid #cbd5e1;
    font-family: monospace;
}

.receipt-cell-company {
    padding: 7px 8px;
    border: 1px solid #cbd5e1;
}

.receipt-cell-status {
    padding: 7px 8px;
    border: 1px solid #cbd5e1;
    color: #1e3a8a;
    font-weight: 600;
}

/* Responsive Breakpoints */
@media (min-width: 640px) {
    .header-logo-lg {
        width: 3.5rem;
        height: 3.5rem;
    }

    .header-logo-sm {
        width: 3rem;
        height: 3rem;
    }

    .header-title-main {
        font-size: 1.5rem;
    }

    .header-title-sub {
        font-size: 0.875rem;
    }

    .header-title-region {
        font-size: 12px;
    }

    .inquiry-card-header {
        padding: 1rem 2rem;
    }

    .inquiry-card-title {
        font-size: 1.125rem;
    }

    .inquiry-header-building {
        display: block;
    }

    .system-notice-bar {
        padding: 0.75rem 2rem;
    }

    .form-content-wrap {
        padding: 2rem;
    }

    .live-status-header,
    .live-status-card {
        flex-direction: row;
        align-items: center;
    }

    .inquiry-card-footer {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .main-header-inner {
        flex-direction: row;
    }

    .header-brand {
        gap: 1.25rem;
        justify-content: flex-start;
    }

    .records-container-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================================
   OFFICIAL GOVERNMENT PRINTABLE RECEIPT STYLING
   ========================================================== */
#printableReceipt { display: none; }

@media print {
    body * { visibility: hidden !important; }
    #printableReceipt, #printableReceipt * { visibility: visible !important; }
    #printableReceipt {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white;
        color: black;
        z-index: 9999;
    }
}

.receipt-sheet {
    font-family: 'Times New Roman', Times, serif, Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    color: #111827;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.receipt-header {
    text-align: center;
    border-bottom: 3px double #1e3a8a;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.receipt-logo-table {
    margin: 0 auto 12px auto;
    border-collapse: collapse;
}

.receipt-logo-table td {
    padding: 0 10px;
    vertical-align: middle;
}

.logo-divider {
    border-left: 1px solid #cbd5e1;
    border-right: 1px solid #cbd5e1;
}

.receipt-logo {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.receipt-logo-sm {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.receipt-gov-title {
    margin: 0;
    font-size: 11.5px;
    color: #475569;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.receipt-header h2 {
    margin: 3px 0;
    font-size: 18px;
    color: #1e3a8a;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.receipt-header h3 {
    margin: 0;
    font-size: 14px;
    color: #b45309;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.receipt-badge-container {
    margin-top: 14px;
    display: inline-block;
    background: #1e3a8a;
    color: #ffffff;
    padding: 5px 20px;
    border-radius: 2px;
}

.receipt-badge-container span {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.receipt-meta-box {
    margin-bottom: 24px;
    font-size: 11px;
    background: #f8fafc;
    padding: 16px 20px;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #1e3a8a;
}

.receipt-meta-table {
    width: 100%;
    border-collapse: collapse;
}

.receipt-meta-table td {
    padding: 4px 0;
}

.meta-label {
    width: 28%;
    color: #475569;
    font-weight: bold;
    text-transform: uppercase;
}

.meta-val {
    font-weight: 600;
    color: #0f172a;
}

.meta-label-right {
    width: 22%;
    color: #475569;
    font-weight: bold;
    text-transform: uppercase;
    text-align: right;
}

.meta-val-right {
    font-weight: 700;
    color: #1e3a8a;
    text-align: right;
    font-family: monospace;
}

.uppercase-text {
    text-transform: uppercase;
}

.receipt-section-title {
    margin-bottom: 8px;
    border-bottom: 1.5px solid #1e3a8a;
    padding-bottom: 4px;
}

.receipt-section-title span {
    font-size: 12px;
    text-transform: uppercase;
    color: #1e3a8a;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.receipt-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10.5px;
    margin-bottom: 24px;
}

.receipt-data-table th {
    background: #1e3a8a;
    color: white;
    padding: 8px 10px;
    border: 1px solid #1e3a8a;
    text-align: left;
}

.receipt-data-table th.col-center {
    text-align: center;
    width: 6%;
}

.receipt-data-table td {
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
}

.receipt-footer-section {
    margin-top: 30px;
    font-size: 10.5px;
    page-break-inside: avoid;
}

.receipt-cert-text {
    margin: 0 0 20px 0;
    color: #334155;
    line-height: 1.5;
    text-align: justify;
}

.receipt-sig-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.receipt-sig-note {
    width: 60%;
    vertical-align: bottom;
    color: #64748b;
    font-size: 9.5px;
}

.receipt-sig-box {
    width: 40%;
    text-align: center;
    vertical-align: bottom;
}

.sig-line {
    border-bottom: 1px solid #0f172a;
    margin-bottom: 6px;
    height: 35px;
}

.sig-title {
    margin: 0;
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
}

.sig-sub {
    margin: 2px 0 0 0;
    font-size: 9.5px;
    color: #475569;
}

.receipt-bottom-bar {
    margin-top: 35px;
    font-size: 9.5px;
    color: #64748b;
    border-top: 1px solid #cbd5e1;
    padding-top: 12px;
    text-align: center;
    letter-spacing: 0.3px;
}

.bottom-agency {
    margin: 0 0 3px 0;
    font-weight: bold;
    color: #1e3a8a;
}

.bottom-address {
    margin: 0;
}