    .case-type-option-row {
    margin-right: -8px;
    margin-left: -8px;
}

.case-type-option-row > [class*="col-"] {
    padding-right: 8px;
    padding-left: 8px;
}

.radio-option-card {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 12px 14px;
    cursor: pointer;
}

.radio-option-card input[type="radio"] {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 0;
}

.radio-option-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.radio-option-content strong {
    color: #0f172a;
    font-size: 15px;
}

.fee-note {
    color: #0c426f;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 767px) {
    .case-type-option-row > [class*="col-"] {
        margin-bottom: 10px;
    }
}

.appeal-page-hero {
    position: relative;
    overflow: hidden;
}

.hero-kicker,
.section-kicker {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.appeal-page-section {
    position: relative;
}

.appeal-introduction {
    margin-bottom: 24px;
}

.appeal-page-content {
    line-height: 1.8;
}

.appeal-page-content.is-collapsed {
    position: relative;
    max-height: 210px;
    overflow: hidden;
}

.appeal-page-content.is-collapsed::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 70px;
    background: linear-gradient(transparent, #fff);
    content: "";
}

.text-button {
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0c426f;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.appeal-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.appeal-form-card {
    min-width: 0;
}

.form-card-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.form-card-heading h2 {
    margin: 0;
}

.mandatory-note {
    margin: 0;
    padding: 9px 12px;
    border-radius: 8px;
    background: #fff7ed;
    white-space: nowrap;
}

.mandatory-note strong,
label.required::after {
    color: #c62828;
}

label.required::after {
    margin-left: 3px;
    content: "*";
}

.appeal-sidebar {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.sidebar-card h3 {
    margin-top: 0;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 24px;
    line-height: 1.6;
}

.check-list li::before {
    position: absolute;
    top: 2px;
    left: 0;
    content: "✓";
    font-weight: 900;
}

.full-width {
    width: 100%;
}

.appeal-application-form {
    width: 100%;
}

.appeal-application-form .card-heading {
    margin: 30px 0 18px;
    padding: 14px 16px;
    border-left: 4px solid #0c426f;
    border-radius: 6px;
    background: #f1f5f9;
    color: #102a43;
    font-size: 18px;
}

.appeal-application-form .card-body {
    padding: 0 0 10px;
}

.appeal-application-form .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -8px;
    margin-left: -8px;
}

.appeal-application-form [class*="col-"] {
    padding-right: 8px;
    padding-left: 8px;
}

.appeal-application-form .form-group {
    margin-bottom: 18px;
}

.appeal-application-form label {
    display: block;
    margin-bottom: 7px;
    color: #243b53;
    font-weight: 700;
    line-height: 1.45;
}

.appeal-application-form .form-control,
.appeal-application-form input[type="text"],
.appeal-application-form input[type="email"],
.appeal-application-form input[type="file"],
.appeal-application-form select,
.appeal-application-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #102a43;
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.appeal-application-form textarea {
    min-height: 110px;
    resize: vertical;
}

.appeal-application-form input:focus,
.appeal-application-form select:focus,
.appeal-application-form textarea:focus {
    border-color: #0c426f;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(12, 66, 111, .12);
}

.appeal-application-form input[type="radio"],
.appeal-application-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 7px;
    vertical-align: middle;
}

.appeal-application-form label.form-control {
    display: flex;
    min-height: 48px;
    align-items: flex-start;
    margin: 0 0 8px;
    cursor: pointer;
    font-weight: 600;
}

.appeal-application-form label.form-control.active {
    border-color: #0c426f;
    background: #eef6fc;
    box-shadow: 0 0 0 2px rgba(12, 66, 111, .1);
}

.case_type_sel_block,
.court_type_sel_block {
    display: grid;
    gap: 8px;
}

.address-subheading {
    width: 100%;
    margin: 12px 8px 18px;
    padding: 11px 14px;
    border-radius: 6px;
    background: #f8fafc;
    color: #334e68;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-icon input {
    padding-right: 40px;
}

.doc_file {
    display: none;
    width: 100%;
    max-height: 190px;
    margin-top: 8px;
    object-fit: contain;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.doc_file.has-preview {
    display: block;
}

.fee-note {
    color: #0c426f;
    font-size: 14px;
    font-weight: 800;
}

.appeal-note {
    padding: 12px 14px;
    border-left: 4px solid #d97706;
    border-radius: 6px;
    background: #fffbeb;
    color: #6b4f16;
    line-height: 1.65;
}

.appeal-declaration {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #f8fafc;
    line-height: 2;
}

.agree {
    display: inline-block !important;
    width: auto !important;
    min-width: 280px;
    min-height: auto !important;
    padding: 0 8px !important;
    border: 0 !important;
    border-bottom: 1px dashed #334e68 !important;
    border-radius: 0 !important;
    background: transparent !important;
    text-align: center;
}

.form-check ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.form-check ol li {
    flex: 1 1 280px;
}

#criminal_case_status {
    opacity: .45;
    transition: opacity .2s ease;
}

#criminal_case_status.is-active {
    opacity: 1;
}

.is-hidden {
    display: none !important;
}

.captcha_input {
    width: 110px !important;
    margin-left: 10px;
}

#cptfile {
    max-width: 180px;
    border: 1px solid #d7e0e8;
    border-radius: 6px;
    vertical-align: middle;
}

.appeal-submit-button {
    min-width: 220px;
}

.button-loader {
    display: none;
    width: 17px;
    height: 17px;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: appeal-spin .7s linear infinite;
}

.is-loading .button-loader {
    display: inline-block;
}

@keyframes appeal-spin {
    to {
        transform: rotate(360deg);
    }
}

.result-heading {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.status-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 22px;
    font-weight: 900;
}

.result-heading h2 {
    margin: 0 0 6px;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.payment-status {
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.payment-status.is-paid {
    background: #dcfce7;
    color: #166534;
}

.payment-status.is-unpaid {
    background: #fee2e2;
    color: #991b1b;
}

.receipt-table-wrap {
    overflow-x: auto;
}

.receipt-table {
    width: 100%;
    border-collapse: collapse;
}

.receipt-table th,
.receipt-table td {
    padding: 13px;
    border: 1px solid #dbe4ee;
    text-align: left;
}

.receipt-table th {
    background: #f8fafc;
}

.receipt-table .total-row th,
.receipt-table .total-row td {
    background: #eef6fc;
    font-size: 17px;
    font-weight: 900;
}

.payment-action-form,
.print-button {
    margin-top: 20px;
}

.message-card.is-error {
    border-left: 4px solid #b91c1c;
}

.appeal-processing-overlay {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, .72);
}

.appeal-processing-overlay[hidden] {
    display: none;
}

.processing-box {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 20px 24px;
    border-radius: 10px;
    background: #fff;
    color: #102a43;
}

.processing-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #cbd5e1;
    border-top-color: #0c426f;
    border-radius: 50%;
    animation: appeal-spin .7s linear infinite;
}

@media (max-width: 991px) {
    .appeal-page-grid {
        grid-template-columns: 1fr;
    }

    .appeal-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .form-card-heading,
    .card-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    .mandatory-note {
        white-space: normal;
    }

    .appeal-sidebar {
        grid-template-columns: 1fr;
    }

    .appeal-application-form [class*="col-md-"],
    .appeal-application-form [class*="col-lg-"] {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .receipt-table th,
    .receipt-table td {
        min-width: 150px;
    }

    .captcha_input {
        display: block;
        width: 100% !important;
        margin: 10px 0 0;
    }
}

@media print {
    .page-hero,
    .appeal-sidebar,
    .payment-action-form,
    .print-button,
    .text-button,
    header,
    footer {
        display: none !important;
    }

    .section,
    .wrap,
    .detail-card {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .receipt-table th,
    .receipt-table td {
        font-size: 11px;
    }
}


/* Compatibility rules for existing preview/edit include files */
.card {
    margin-bottom: 22px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #ffffff;
}

.card-header {
    padding: 16px 18px;
    border-bottom: 1px solid #dbe4ee;
    background: #f8fafc;
}

.card-body {
    padding: 18px;
}

.preview_show {
    text-align: center;
}

#add_link {
    float: right;
}

#add_link a {
    color: #0c426f;
    font-weight: 700;
}

.btn-submit {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border: 0;
    border-radius: 8px;
    background: #0c426f;
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
}

.btn-submit:hover {
    filter: brightness(.94);
}

@media (max-width: 767px) {
    #add_link {
        display: block;
        float: none;
        margin-top: 10px;
    }
}
