
.patient-insurance-container {
    max-width: 800px;
    /*margin: 0 auto;*/
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #888 #f0f4f8; /* Firefox */
}

/* Webkit scrollbar styling */
.patient-insurance-container::-webkit-scrollbar {
    width: 8px;
}

.patient-insurance-container::-webkit-scrollbar-track {
    background: #f0f4f8;
}

.patient-insurance-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.patient-insurance-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.form-image-uploader {
    max-width: 380px;
}

/* Section headers */
.section-header {
    margin: 1.25rem 0 0.75rem;
    font-size: 1.1rem;
    color: #333;
}
.section-header2 {
    margin: 1.25rem 0 0.75rem;
    font-size: 1.0125rem;
    color: #333;
}

/* Insurance card styling */
.insurance-card {
    background: linear-gradient(145deg, #f0f4f8, #ffffff);
    border: 2px solid #3EC5EE;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    transition: all 0.5s ease;
}

.insurance-card .card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.insurance-card .company-name {
    font-size: 1.25rem;
    color: #1a73e8;
    font-weight: 600;
    gap: 0.4rem;
}

.insurance-card .policy-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.9rem;
    color: #555;
}

/* Radio group styling */
.radio-group {
    margin: 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

input[type="radio"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #0288d1;
}

input[type="radio"] + label.radio-label {
    margin-left: 0.4rem;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
}

input[type="radio"]:checked + label.radio-label {
    font-weight: 600;
    color: #0288d1; /* Match radio button color */
}

/* Form rows */
.form-row {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-row.flex-row {
    flex-direction: row;
    gap: 1rem;
}

.pr-2 {
    padding-right: 0.5rem;
}

.pl-2 {
    padding-left: 0.5rem;
}

/* Animated collapsible sections */
.edit-form,
.policy-holder-section,
.address-section {
    overflow: hidden;
    transition: max-height 0.8s ease-in-out, opacity 0.6s ease-in-out;
}

.proven-box {
    max-height: 2000px;
    opacity: 1;
}

.hidden-section {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

/* General control spacing */
.w-50 {
    width: 50%;
}

.proven-field {
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .patient-insurance-container {
        padding: 0.75rem;
    }

    .insurance-card {
        padding: 0.75rem;
    }

    .section-header {
        font-size: 1rem;
    }

    .form-row.flex-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .pr-2, .pl-2 {
        padding-right: 0;
        padding-left: 0;
    }
}

.image-container {
    width: 300px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensures image scales properly */
}

.image-placeholder {
    border: 2px solid #ccc;
    color: #666;
    font-size: 16px;
    text-align: center;
}

/* Ensure TelerikDropZone matches the container size */
.proven-drop-image {
    width: 100%;
    height: 100%;
}

.contact-information {
    margin: 0 0 10px 0;
}

.changes-box textarea {
    height: 100px;
}



/* Grouped Checkbox Component */
.grouped-checkbox-container {
    width: 100%;
    max-width: 100%;
}

.grouped-checkbox-header {
    padding: 4px 8px;
    border-bottom: 1px solid var(--kendo-component-border, #dee2e6);
    margin-bottom: 4px;
    font-weight: bold;
    font-size: 1.15em;
    color: var(--kendo-body-text, #212529);
}

.grouped-checkbox-items {
    display: flex;
    flex-direction: column;
}

/* Two Column Layout - requires 2 form columns (640px) */
.grouped-checkbox-container.two-columns .grouped-checkbox-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.grouped-checkbox-container.two-columns .grouped-checkbox-item {
    border-bottom: 1px solid var(--kendo-neutral-20, rgba(0,0,0,0.05));
}

/* Alternating row backgrounds for two-column grid (items 1-2, 5-6, 9-10, etc.) */
.grouped-checkbox-container.two-columns.options-right .grouped-checkbox-item:nth-child(4n+1),
.grouped-checkbox-container.two-columns.options-right .grouped-checkbox-item:nth-child(4n+2) {
    background-color: var(--kendo-neutral-10, rgba(0,0,0,0.02));
}

/* Options Right Layout - compact row with label left, options right */
.grouped-checkbox-container.options-right .grouped-checkbox-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 3px 8px;
    gap: 4px 8px;
    min-height: 28px;
}

.grouped-checkbox-container.options-right.single-column .grouped-checkbox-item:nth-child(odd) {
    background-color: var(--kendo-neutral-10, rgba(0,0,0,0.02));
}

.grouped-checkbox-container.options-right .grouped-checkbox-label {
    flex: 1;
    min-width: 25%;
    color: var(--kendo-body-text, #212529);
    font-size: 0.9em;
    line-height: 1.3;
}

.grouped-checkbox-container.options-right .grouped-checkbox-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    max-width: 75%;
    margin-left: auto;
}

/* Options Below Layout - always stacked: label top, options below */
.grouped-checkbox-container.options-below .grouped-checkbox-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 4px 8px;
    gap: 4px;
}

.grouped-checkbox-container.options-below .grouped-checkbox-label {
    color: var(--kendo-body-text, #212529);
    font-weight: 500;
}

.grouped-checkbox-container.options-below .grouped-checkbox-options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.grouped-checkbox-options {
    flex-wrap: wrap;
}

.grouped-checkbox-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 1px 5px;
    border: 1px solid var(--kendo-component-border, #dee2e6);
    border-radius: var(--kendo-border-radius-md, 3px);
    min-width: 24px;
    user-select: none;
    font-size: 0.8em;
    background: var(--kendo-color-surface, #fff);
    color: var(--kendo-body-text, #212529);
    transition: background-color 0.15s, border-color 0.15s;
}

.grouped-checkbox-option:hover:not(.disabled) {
    background: var(--kendo-hover-bg, #e9ecef);
    border-color: var(--kendo-primary-60, #80b3ff);
}

.grouped-checkbox-option.selected {
    background: var(--kendo-primary-100, #0d6efd);
    color: var(--kendo-color-on-primary, #fff);
    border-color: var(--kendo-primary-100, #0d6efd);
}

.grouped-checkbox-option.disabled {
    opacity: 0.6;
    cursor: default;
    background: var(--kendo-neutral-20, #f8f9fa);
}

/* NA Spacer - invisible placeholder to align options when some items have NA and others don't */
.grouped-checkbox-option-spacer {
    display: inline-flex;
    min-width: 24px;
    padding: 1px 5px;
    visibility: hidden;
}

/* Readonly view styling - constrained width, no alternating backgrounds */
.grouped-checkbox-readonly {
    width: fit-content;
    max-width: 100%;
}

.grouped-checkbox-readonly .grouped-checkbox-item {
    background-color: white !important;
}

.grouped-checkbox-readonly .grouped-checkbox-option.selected {
    color: #000 !important;
    font-weight: 600;
}

/* Print view styling - match readonly view with print-friendly colors */
.grouped-checkbox-print {
    width: fit-content;
    max-width: 100%;
}

.grouped-checkbox-print .grouped-checkbox-item {
    background-color: white !important;
}

.grouped-checkbox-print .grouped-checkbox-option {
    border: 1px solid #666 !important;
    background-color: white !important;
    color: #333 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.grouped-checkbox-print .grouped-checkbox-option.selected {
    background-color: #333 !important;
    color: white !important;
    border-color: #333 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}