/* Whitelabel Journey Steps - base styles */

.sj-step {
    max-width: 720px;
    margin: 2rem auto;
    padding: 1.75rem 1.5rem;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    position: relative;
}

.sj-step-title {
    margin-top: 0;
    margin-bottom: 0.35rem;
    font-size: 1.35rem;
    color: #1c355e;
}

.sj-step-intro {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: #475569;
    font-size: 0.95rem;
}

.sj-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sj-field-group {
    margin-bottom: 0.75rem;
}

.sj-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: #0f172a;
}

.sj-input,
.sj-select,
.sj-textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.55rem;
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.sj-input:focus,
.sj-select:focus,
.sj-textarea:focus {
    outline: none;
    border-color: #00b2ff;
    box-shadow: 0 0 0 2px rgba(0, 178, 255, 0.2);
}

.sj-textarea {
    resize: vertical;
}

.sj-input-with-icon {
    position: relative;
}

.sj-input-with-icon .sj-input {
    padding-right: 2.25rem;
}

.sj-input-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 1.1rem;
    opacity: 0.7;
}

.sj-help {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.2rem;
}

.sj-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.sj-status {
    font-size: 0.85rem;
    color: #0f766e;
}

.sj-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.sj-button-primary {
    background: #1c355e;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
}

.sj-button-primary:hover {
    background: #172349;
    transform: translateY(-1px);
}

.sj-button-secondary {
    background: #e0f2fe;
    color: #075985;
}

.sj-button-secondary:hover {
    background: #bae6fd;
}

/* Quick Date Selection Buttons */
.sj-date-quick-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.sj-quick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sj-quick-btn:hover {
    background: #f0f9ff;
    border-color: #00b2ff;
    color: #075985;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 178, 255, 0.15);
}

.sj-quick-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}


.sj-radio-group {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.sj-radio-group input {
    margin-right: 0.4rem;
}

/* Destination autocomplete */
.sj-field-has-autocomplete {
    position: relative;
}

.sj-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    margin-top: 0.25rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    max-height: 260px;
    overflow-y: auto;
    z-index: 50;
}

.sj-autocomplete-item {
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

.sj-autocomplete-item:hover {
    background: #eff6ff;
}

/* Selected Destinations Tags */
.sj-selected-destinations {
    margin-bottom: 1.5rem;
}

.sj-destination-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.sj-destination-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #1c355e, #2d4a7c);
    color: white;
    padding: 0.6rem 0.75rem;
    border-radius: 999px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(28, 53, 94, 0.25);
    transition: all 0.2s ease;
}

.sj-destination-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(28, 53, 94, 0.35);
}

.sj-tag-name {
    font-weight: 600;
}

.sj-tag-region {
    font-size: 0.8rem;
    opacity: 0.85;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.sj-tag-remove {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 0.25rem;
}

.sj-tag-remove:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

/* Destinations Summary */
.sj-destinations-summary {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 1rem;
    border: 1px solid #bae6fd;
}

.sj-destinations-summary h4 {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: #1c355e;
}

.sj-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.sj-summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e0f2fe;
}

.sj-summary-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.sj-summary-value {
    font-size: 1.25rem;
    color: #1c355e;
    font-weight: 700;
}

.sj-destination-result {
    margin-top: 1rem;
    padding: 0.9rem 0.9rem 0.7rem;
    border-radius: 0.75rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.sj-destination-result h4 {
    margin: 0 0 0.5rem;
    font-size: 0.98rem;
}

.sj-result-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.86rem;
    padding: 0.2rem 0;
    border-bottom: 1px dashed #e2e8f0;
}

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

/* Travellers - Card Based */
.sj-travellers-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.sj-traveller-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.sj-traveller-card:hover {
    border-color: #00b2ff;
    box-shadow: 0 4px 12px rgba(0, 178, 255, 0.1);
}

.sj-traveller-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

.sj-traveller-number {
    font-size: 1rem;
    font-weight: 700;
    color: #1c355e;
}

.sj-traveller-lead-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.sj-traveller-remove {
    background: #fee2e2;
    border: none;
    color: #dc2626;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: 700;
}

.sj-traveller-remove:hover {
    background: #fecaca;
    transform: scale(1.1);
}

.sj-traveller-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.sj-traveller-fields .sj-field-group:nth-child(3) {
    grid-column: 1 / 2;
}

.sj-traveller-fields .sj-field-group:nth-child(4) {
    grid-column: 1 / -1;
}

.sj-lead-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
}

.sj-lead-label:hover {
    background: #f0f9ff;
    border-color: #00b2ff;
}

.sj-lead-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1c355e;
}

.sj-lead-label span {
    font-size: 0.9rem;
    color: #0f172a;
    font-weight: 500;
}

/* Age Validation Warnings */
.sj-age-warning {
    margin-top: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.5;
    font-weight: 500;
}

.sj-age-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.sj-age-info {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.sj-age-success {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* Old traveller row styles - kept for backward compatibility */
.sj-traveller-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.sj-traveller-row span {
    font-size: 0.9rem;
    color: #0f172a;
}

/* Medical Screening */
.sj-medical-travellers-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.sj-medical-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.sj-medical-card:hover {
    border-color: #00b2ff;
    box-shadow: 0 4px 12px rgba(0, 178, 255, 0.1);
}

.sj-medical-header h4 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: #1c355e;
    font-weight: 700;
}

.sj-medical-question {
    margin-bottom: 1rem;
}

.sj-medical-question .sj-label {
    display: block;
    margin-bottom: 0.5rem;
}

.sj-conditions-section {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.sj-conditions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    min-height: 40px;
}

.sj-condition-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
    transition: all 0.2s ease;
}

.sj-condition-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.sj-condition-name {
    font-weight: 500;
}

.sj-condition-remove {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: 700;
}

.sj-condition-remove:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.15);
}

.sj-condition-autocomplete {
    max-height: 300px;
}

.sj-autocomplete-empty {
    color: #64748b;
    font-style: italic;
    cursor: default;
}

.sj-autocomplete-empty:hover {
    background: transparent;
}

/* Medical Summary Container */
.sj-medical-summary-container {
    margin-top: 1.5rem;
}

/* Medical Summary */
.sj-medical-summary {
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.sj-summary-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: #1c355e;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #00b2ff;
    padding-bottom: 0.5rem;
}

.sj-summary-condition {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.sj-summary-condition:last-child {
    margin-bottom: 0;
}

.sj-summary-condition-name {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: #7c3aed;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sj-summary-condition-name::before {
    content: '🏥';
    font-size: 1.1rem;
}

.sj-summary-questions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sj-summary-qa {
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border-left: 3px solid #00b2ff;
}

.sj-summary-question,
.sj-summary-answer {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.sj-summary-answer {
    margin-bottom: 0;
}

.sj-qa-number,
.sj-qa-label {
    font-weight: 700;
    color: #1c355e;
    min-width: 30px;
    flex-shrink: 0;
}

.sj-summary-question .sj-qa-text {
    color: #0f172a;
    font-weight: 600;
    line-height: 1.4;
}

.sj-summary-answer .sj-qa-text {
    color: #475569;
    line-height: 1.4;
}

/* Options - Enhanced Sliders */
.sj-slider-value {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1c355e;
    text-align: center;
    padding: 0.5rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 0.5rem;
}

/* Range Input Styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #1c355e 0%, #00b2ff 100%);
    border-radius: 999px;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

input[type="range"]:hover {
    box-shadow: 0 2px 8px rgba(0, 178, 255, 0.3);
}

/* Webkit (Chrome, Safari, Edge) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border: 3px solid #1c355e;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(28, 53, 94, 0.3);
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(28, 53, 94, 0.4);
    border-color: #00b2ff;
}

input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(28, 53, 94, 0.5);
}

/* Firefox */
input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #ffffff;
    border: 3px solid #1c355e;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(28, 53, 94, 0.3);
    transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(28, 53, 94, 0.4);
    border-color: #00b2ff;
}

input[type="range"]::-moz-range-thumb:active {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(28, 53, 94, 0.5);
}

input[type="range"]::-moz-range-track {
    background: linear-gradient(to right, #1c355e 0%, #00b2ff 100%);
    border-radius: 999px;
    height: 8px;
}

.sj-input-prefix {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sj-input-prefix span {
    font-size: 0.95rem;
    color: #64748b;
}

/* Summary */
.sj-summary-panels {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 1rem;
}

.sj-summary-panel {
    background: #ffffff;
    border-radius: 0.9rem;
    border: 1px solid #e2e8f0;
    padding: 0.9rem 0.9rem 0.8rem;
}

.sj-summary-panel h4 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
}

.sj-summary-line {
    font-size: 0.88rem;
    padding: 0.15rem 0;
}

.sj-json-block {
    margin: 0;
    padding: 0.55rem 0.65rem;
    font-size: 0.8rem;
    background: #0f172a;
    color: #e5e7eb;
    border-radius: 0.5rem;
    max-height: 260px;
    overflow: auto;
}

/* Policy Selection */
.sj-policy-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.sj-policy-card {
    position: relative;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sj-policy-card:hover {
    border-color: #00b2ff;
    box-shadow: 0 12px 30px rgba(0, 178, 255, 0.15);
    transform: translateY(-2px);
}

.sj-policy-card.sj-policy-selected {
    border-color: #1c355e;
    background: #f0f9ff;
    box-shadow: 0 12px 30px rgba(28, 53, 94, 0.2);
}

.sj-policy-card.sj-policy-recommended {
    border-color: #10b981;
}

.sj-policy-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.sj-policy-name {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    color: #1c355e;
    font-weight: 700;
}

.sj-policy-price {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 0.75rem;
}

.sj-price-amount {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #1c355e;
    line-height: 1;
}

.sj-price-label {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.sj-policy-details {
    margin: 1rem 0;
}

.sj-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.9rem;
}

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

.sj-detail-row span {
    color: #64748b;
}

.sj-detail-row strong {
    color: #1c355e;
}

/* Policy Table Wrapper - Scrollable */
.sj-policy-details-table-wrapper {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 1rem 0;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #ffffff;
}

/* Custom Scrollbar for Table Wrapper */
.sj-policy-details-table-wrapper::-webkit-scrollbar {
    width: 8px;
}

.sj-policy-details-table-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 0 0.5rem 0.5rem 0;
}

.sj-policy-details-table-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.sj-policy-details-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Policy Table Styles */
.sj-policy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.sj-policy-table thead {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #1c355e, #2d4a7c);
    color: white;
    z-index: 10;
}

.sj-policy-table th {
    padding: 0.75rem 0.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #00b2ff;
}

.sj-policy-table td {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.sj-policy-table tbody tr:hover {
    background: #f8fafc;
}

.sj-policy-table tbody tr:last-child td {
    border-bottom: none;
}

.sj-policy-table .tick-col {
    text-align: center;
    font-size: 1rem;
}

.sj-button-select-policy {
    width: 100%;
    margin-top: 1rem;
    background: #1c355e;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sj-button-select-policy:hover {
    background: #172349;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(28, 53, 94, 0.3);
}

/* Policy Options */
.sj-policy-options-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sj-policy-option-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.2s ease;
}

.sj-policy-option-card:hover {
    border-color: #00b2ff;
    box-shadow: 0 4px 12px rgba(0, 178, 255, 0.1);
}

.sj-policy-option-card.sj-option-included {
    background: #f0fdf4;
    border-color: #86efac;
}

.sj-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.sj-option-header label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.sj-policy-option-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.sj-option-price {
    font-weight: 700;
    color: #1c355e;
    font-size: 1.1rem;
}

.sj-option-description {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.sj-option-badge {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Payment Summary */
.sj-payment-summary {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sj-payment-summary h4 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: #1c355e;
}

.sj-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.95rem;
}

.sj-summary-row:last-child {
    border-bottom: 2px solid #1c355e;
    font-size: 1.1rem;
    font-weight: 700;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.sj-summary-row span {
    color: #64748b;
}

.sj-summary-row strong {
    color: #1c355e;
    font-weight: 700;
}

/* Mobile */
@media (max-width: 768px) {
    .sj-step {
        margin: 1.5rem 1rem;
        padding: 1.25rem 1rem;
    }

    .sj-summary-panels {
        grid-template-columns: 1fr;
    }

    .sj-policy-list {
        grid-template-columns: 1fr;
    }

    .sj-option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .sj-traveller-fields {
        grid-template-columns: 1fr;
    }

    .sj-traveller-fields .sj-field-group:nth-child(3),
    .sj-traveller-fields .sj-field-group:nth-child(4) {
        grid-column: 1 / -1;
    }

    .sj-traveller-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .sj-medical-card {
        padding: 1rem;
    }

    .sj-conditions-section {
        padding: 0.75rem;
    }
}

/* Dev Tools - Test Mode Only */
#sj-dev-tools {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    z-index: 9999;
}

.sj-dev-clear-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sj-dev-clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
}

.sj-dev-clear-btn:active {
    transform: translateY(0);
}

.sj-dev-clear-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.sj-dev-label {
    background: #1c355e;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(28, 53, 94, 0.3);
}

/* Medical Screening Modal */
.sj-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
}

.sj-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
}

.sj-modal-content {
    position: relative;
    max-width: 600px;
    margin: 2rem auto;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.4);
    max-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
}

.sj-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.sj-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1c355e;
    font-weight: 700;
}

.sj-modal-close {
    background: #fee2e2;
    border: none;
    color: #dc2626;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: 700;
}

.sj-modal-close:hover {
    background: #fecaca;
    transform: scale(1.1);
}

.sj-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.sj-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 2px solid #e2e8f0;
}

/* Screening Progress */
.sj-screening-progress {
    margin-bottom: 1.5rem;
}

.sj-progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.sj-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1c355e, #00b2ff);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.sj-progress-text {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* Screening Question */
.sj-screening-question {
    margin-bottom: 1.5rem;
}

.sj-screening-question p {
    font-size: 1rem;
    color: #0f172a;
    line-height: 1.6;
    margin: 0;
}

/* Screening Answers */
.sj-screening-answers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sj-screening-answer {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sj-screening-answer:hover {
    background: #f0f9ff;
    border-color: #00b2ff;
}

.sj-screening-answer input[type="radio"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1c355e;
    flex-shrink: 0;
}

.sj-screening-answer input[type="radio"]:checked+span {
    font-weight: 600;
    color: #1c355e;
}

.sj-screening-answer span {
    flex: 1;
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.5;
}

/* Screening Complete */
.sj-screening-complete {
    text-align: center;
    padding: 2rem 1rem;
}

.sj-complete-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.sj-screening-complete h4 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: #1c355e;
    font-weight: 700;
}

.sj-screening-complete p {
    margin: 0;
    font-size: 1rem;
    color: #64748b;
}

/* Insured Cards */
.sj-insured-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.sj-insured-card {
    position: relative;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sj-insured-card:hover {
    border-color: #00b2ff;
    box-shadow: 0 8px 20px rgba(0, 178, 255, 0.15);
    transform: translateY(-2px);
}

.sj-insured-card.sj-insured-selected {
    border-color: #1c355e;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    box-shadow: 0 8px 20px rgba(28, 53, 94, 0.2);
}

.sj-insured-card.sj-insured-included {
    border-color: #10b981;
}

.sj-card-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.sj-insured-name {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: #1c355e;
    font-weight: 700;
}

.sj-insured-price {
    text-align: center;
    margin: 1rem 0;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 0.5rem;
}

.sj-insured-price .sj-price-amount {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1c355e;
    line-height: 1;
}

.sj-insured-price .sj-price-detail {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.sj-insured-description {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0.5rem 0 0;
    line-height: 1.4;
}

/* Total Price Section */
.sj-total-price-section {
    background: linear-gradient(135deg, #1c355e, #2d4a7c);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 2rem 0 1.5rem;
    box-shadow: 0 12px 30px rgba(28, 53, 94, 0.3);
}

.sj-total-price-section h4 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 700;
}

.sj-total-price-display {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.sj-price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sj-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.95rem;
}

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

.sj-price-row.sj-price-total {
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    font-weight: 700;
}

.sj-price-row.sj-price-total strong {
    font-size: 1.5rem;
    color: #10b981;
}

.sj-price-row.sj-price-detail {
    border: none;
    padding-top: 0;
    margin-top: -0.5rem;
}

.sj-price-row strong {
    font-weight: 700;
}

.sj-price-row small {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Medical Screening Modal */
.sj-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
}

.sj-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.sj-modal-content {
    position: relative;
    max-width: 600px;
    margin: 5% auto;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.sj-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.sj-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1c355e;
    font-weight: 700;
}

.sj-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.sj-modal-close:hover {
    background: #f1f5f9;
    color: #1c355e;
}

.sj-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.sj-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 2px solid #f1f5f9;
}

/* Screening Progress */
.sj-screening-progress {
    margin-bottom: 1.5rem;
}

.sj-progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.sj-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1c355e, #00b2ff);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.sj-progress-text {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
}

/* Screening Question */
.sj-screening-question {
    margin-bottom: 1.5rem;
}

.sj-screening-question p {
    margin: 0;
    font-size: 1.1rem;
    color: #0f172a;
    line-height: 1.6;
}

/* Screening Answers */
.sj-screening-answers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sj-screening-answer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.sj-screening-answer:hover {
    background: #f0f9ff;
    border-color: #00b2ff;
    transform: translateX(4px);
}

.sj-screening-answer input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #1c355e;
    flex-shrink: 0;
}

.sj-screening-answer span {
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 500;
    flex: 1;
}

.sj-screening-answer input[type="radio"]:checked~span {
    color: #1c355e;
    font-weight: 600;
}

.sj-screening-answer:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #1c355e;
    box-shadow: 0 4px 12px rgba(28, 53, 94, 0.15);
}

/* Slide-in Animation for Answers */
.sj-answer-slide-in {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInAnswer 0.4s ease forwards;
}

@keyframes slideInAnswer {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Screening Complete */
.sj-screening-complete {
    text-align: center;
    padding: 2rem;
}

.sj-complete-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.sj-screening-complete h4 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    color: #1c355e;
    font-weight: 700;
}

.sj-screening-complete p {
    margin: 0;
    font-size: 1rem;
    color: #64748b;
}

/* Total Price Section */
.sj-total-price-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #f0f9ff);
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.sj-price-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.sj-price-header h4 {
    margin: 0;
    font-size: 1.25rem;
    color: #1c355e;
    font-weight: 700;
}

.sj-pin-button {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.sj-pin-button:hover {
    background: #f0f9ff;
    border-color: #00b2ff;
    transform: scale(1.1);
}

.sj-pin-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.sj-pin-button.sj-pin-active {
    background: linear-gradient(135deg, #1c355e, #00b2ff);
    border-color: #1c355e;
}

.sj-pin-button.sj-pin-active .sj-pin-icon {
    transform: rotate(45deg);
    filter: brightness(0) invert(1);
}

.sj-price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sj-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #475569;
}

.sj-price-row strong {
    font-size: 1.1rem;
    color: #1c355e;
    font-weight: 700;
}

.sj-price-total {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 2px solid #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
}

.sj-price-total strong {
    font-size: 1.5rem;
    color: #1c355e;
}

.sj-price-detail {
    font-size: 0.85rem;
    color: #64748b;
}

.sj-price-detail small {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Pinned State */
.sj-price-pinned {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 350px;
    z-index: 1000;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: #00b2ff;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments for pinned state */
@media (max-width: 768px) {
    .sj-price-pinned {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        border-radius: 1rem 1rem 0 0;
        animation: slideInUp 0.3s ease;
    }

    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(100px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Holiday Types Grid */
.sj-holiday-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.sj-holiday-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sj-holiday-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #1c355e, #00b2ff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.sj-holiday-card:hover {
    border-color: #00b2ff;
    box-shadow: 0 12px 30px rgba(0, 178, 255, 0.15);
    transform: translateY(-4px);
}

.sj-holiday-card:hover::before {
    transform: scaleX(1);
}

.sj-holiday-card.sj-holiday-selected {
    border-color: #1c355e;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    box-shadow: 0 12px 30px rgba(28, 53, 94, 0.2);
}

.sj-holiday-card.sj-holiday-selected::before {
    transform: scaleX(1);
}

.sj-holiday-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.sj-holiday-card:hover .sj-holiday-icon {
    transform: scale(1.15);
}

.sj-holiday-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1c355e;
    margin-bottom: 0.5rem;
}

.sj-holiday-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

/* Responsive adjustments for holiday types */
@media (max-width: 768px) {
    .sj-holiday-types-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .sj-holiday-card {
        padding: 1.5rem 1.25rem;
    }

    .sj-holiday-icon {
        font-size: 2.5rem;
    }
}

/* Price Line Items Styling */
.sj-price-line-items {
    margin: 0.75rem 0;
    padding: 0.75rem 0;
    border-top: 1px dashed #cbd5e1;
    border-bottom: 1px dashed #cbd5e1;
}

.sj-price-line-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.sj-price-line-item:last-child {
    margin-bottom: 0;
}

.sj-price-line-item:hover {
    background: #f1f5f9;
    transform: translateX(2px);
}

.sj-price-line-item span {
    color: #475569;
    font-weight: 500;
}

.sj-price-line-item strong {
    color: #1c355e;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Medical Risk Alert Styling */
.sj-risk-alert {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sj-risk-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.sj-risk-content {
    flex: 1;
}

.sj-risk-content h5 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.sj-risk-content p {
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

.sj-risk-content p:last-child {
    margin-bottom: 0;
}

/* Risk Alert Variants */
.sj-risk-covered {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border-color: #10b981;
    color: #166534;
}

.sj-risk-excluded {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
    color: #92400e;
}

.sj-risk-not-covered {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-color: #dc2626;
    color: #991b1b;
}

/* Excluded Condition Styling */
.sj-summary-condition.sj-condition-excluded {
    opacity: 0.7;
    border-left: 4px solid #f59e0b;
}

.sj-excluded-badge {
    display: inline-block;
    background: #f59e0b;
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
}

/* Premium Breakdown */
.sj-premium-breakdown {
    font-size: 0.85rem;
    opacity: 0.8;
    font-style: italic;
}

/* Request Callback Button */
.sj-request-callback-btn {
    margin-top: 1rem;
}

/* AI Assistant Button */
.sj-ai-button-container {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
}

.sj-button-ai {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
    width: 44px;
    height: 44px;
    justify-content: center;
}

.sj-button-ai:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    width: auto;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
}

.sj-button-ai:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.sj-ai-robot-icon {
    font-size: 1.4rem;
    line-height: 1;
    animation: robotWave 2s ease-in-out infinite;
    flex-shrink: 0;
}

.sj-ai-button-text {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sj-button-ai:hover .sj-ai-button-text {
    opacity: 1;
    max-width: 100px;
}

@keyframes robotWave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(-10deg);
    }

    20%,
    40% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(0deg);
    }
}

/* FAQ Buttons in AI Modal */
.sj-faq-buttons {
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 0.75rem;
    border: 2px solid #bae6fd;
}

.sj-faq-title {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: #1c355e;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sj-faq-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1c355e;
    text-align: left;
    transition: all 0.2s ease;
}

.sj-faq-button:last-child {
    margin-bottom: 0;
}

.sj-faq-button:hover {
    background: #f0f9ff;
    border-color: #00b2ff;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 178, 255, 0.15);
}

.sj-faq-button:active {
    transform: translateX(2px);
}

.sj-faq-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.sj-faq-answer {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border-left: 4px solid #00b2ff;
}

.sj-faq-answer p {
    margin: 0 0 0.75rem;
    line-height: 1.6;
}

.sj-faq-answer p:last-child {
    margin-bottom: 0;
}

/* ========================================
   POLICY SELECTION CARDS
   ======================================== */

/* Policy List Container */
.sj-policy-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

/* Policy Card */
.sj-policy-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.sj-policy-card:hover {
    border-color: #00b2ff;
    box-shadow: 0 8px 24px rgba(0, 178, 255, 0.15);
    transform: translateY(-2px);
}

.sj-policy-recommended {
    border-color: #fbbf24;
    position: relative;
}

.sj-policy-recommended:hover {
    border-color: #f59e0b;
}

/* Policy Badge */
.sj-policy-badge {
    position: absolute;
    top: -1px;
    right: 1.5rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 0 0 0.75rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    z-index: 10;
}

/* Zero Excess Badge */
.sj-zero-excess-badge {
    position: absolute;
    top: -1px;
    left: 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 0 0 0.75rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    z-index: 10;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    }

    50% {
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
    }
}

/* Zero Excess Policy Card */
.sj-policy-card.sj-zero-excess {
    border-color: #10b981;
}

.sj-policy-card.sj-zero-excess:hover {
    border-color: #059669;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

/* Zero Excess Meta Highlight */
.sj-meta-highlight {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    padding: 0.75rem !important;
    border-radius: 0.5rem;
    border: 2px solid #10b981;
}

.sj-meta-highlight .sj-meta-text {
    color: #065f46;
    font-weight: 700;
}

.sj-meta-highlight .sj-meta-text strong {
    color: #047857;
    font-size: 1.05rem;
}

/* Policy Header */
.sj-policy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 1.75rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 2px solid #e2e8f0;
}

.sj-policy-name {
    margin: 0;
    font-size: 1.35rem;
    color: #1c355e;
    font-weight: 700;
    flex: 1;
}

.sj-policy-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.sj-price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #1c355e;
    line-height: 1;
    transition: all 0.3s ease;
}

.sj-price-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Trip Type Toggle */
.sj-trip-type-toggle {
    padding: 1.25rem 1.75rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-bottom: 2px solid #fbbf24;
}

.sj-toggle-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.sj-toggle-icon {
    font-size: 1.25rem;
}

.sj-toggle-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sj-toggle-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.sj-toggle-option {
    position: relative;
    cursor: pointer;
    display: block;
}

.sj-toggle-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sj-toggle-option-content {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.2s ease;
    height: 100%;
}

.sj-toggle-option:hover .sj-toggle-option-content {
    border-color: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.sj-toggle-option-active .sj-toggle-option-content {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.sj-toggle-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

.sj-toggle-option-active .sj-toggle-option-header {
    border-bottom-color: #fbbf24;
}

.sj-toggle-option-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1c355e;
}

.sj-toggle-option-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f59e0b;
}

.sj-toggle-option-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sj-toggle-detail {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.sj-toggle-savings {
    font-size: 0.85rem;
    color: #059669;
    font-weight: 700;
    margin-top: 0.25rem;
}

/* Policy Meta */
.sj-policy-meta {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 1.75rem;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.sj-policy-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sj-meta-icon {
    font-size: 1.25rem;
}

.sj-meta-text {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

/* Cover Groups Container */
.sj-cover-groups-container {
    padding: 1.5rem 1.75rem;
}

.sj-cover-groups-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.sj-cover-groups-title span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1c355e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sj-expand-all-btn {
    background: #e0f2fe;
    color: #075985;
    border: none;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sj-expand-all-btn:hover {
    background: #bae6fd;
    transform: translateY(-1px);
}

/* Cover Group */
.sj-cover-group {
    margin-bottom: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sj-cover-group:last-child {
    margin-bottom: 0;
}

.sj-cover-group:hover {
    border-color: #cbd5e1;
}

.sj-cover-group-expanded {
    border-color: #00b2ff;
    box-shadow: 0 4px 12px rgba(0, 178, 255, 0.1);
}

/* Cover Group Header */
.sj-cover-group-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.sj-cover-group-header:hover {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

.sj-cover-group-expanded .sj-cover-group-header {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.sj-cover-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sj-cover-group-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 700;
    color: #1c355e;
}

.sj-cover-count {
    font-size: 0.8rem;
    color: #64748b;
    background: #ffffff;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-weight: 600;
}

.sj-cover-toggle {
    background: transparent;
    border: none;
    color: #475569;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sj-cover-toggle svg {
    transition: transform 0.3s ease;
}

.sj-cover-group-expanded .sj-cover-toggle svg {
    transform: rotate(180deg);
}

/* Cover Group Content */
.sj-cover-group-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #ffffff;
}

.sj-cover-group-expanded .sj-cover-group-content {
    max-height: 2000px;
    border-top: 2px solid #e2e8f0;
}

/* Cover Item */
.sj-cover-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.sj-cover-item:last-child {
    border-bottom: none;
}

.sj-cover-item:hover {
    background: #f8fafc;
}

.sj-cover-item-name {
    flex: 1;
    font-size: 0.9rem;
    color: #0f172a;
    font-weight: 500;
    line-height: 1.4;
    padding-right: 1rem;
}

.sj-cover-item-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.sj-cover-limit {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1c355e;
}

.sj-cover-excess {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.sj-cover-no-excess {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 600;
}

/* Policy Actions */
.sj-policy-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem 1.75rem;
    background: #f8fafc;
    border-top: 2px solid #e2e8f0;
}

.sj-button-select-policy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #1c355e, #2d4a7c);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(28, 53, 94, 0.3);
}

.sj-button-select-policy:hover {
    background: linear-gradient(135deg, #172349, #1c355e);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(28, 53, 94, 0.4);
}

.sj-button-select-policy:active {
    transform: translateY(0);
}

.sj-button-select-policy svg {
    width: 20px;
    height: 20px;
}

.sj-policy-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: #ffffff;
    color: #1c355e;
    border: 2px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sj-policy-link:hover {
    background: #f0f9ff;
    border-color: #00b2ff;
    color: #075985;
    transform: translateY(-1px);
}

/* Selected State */
.sj-policy-selected {
    border-color: #10b981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.sj-policy-selected .sj-policy-header {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.sj-policy-selected .sj-button-select-policy {
    background: linear-gradient(135deg, #10b981, #059669);
}

.sj-policy-selected .sj-button-select-policy:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

/* Medical Screening Summary */
.sj-medical-screening-summary {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #fbbf24;
    border-radius: 1rem;
}

.sj-screening-title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: #92400e;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sj-screening-person-card {
    background: #ffffff;
    border: 2px solid #f59e0b;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.sj-screening-person-card:last-child {
    margin-bottom: 0;
}

.sj-screening-person-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #fef3c7;
}

.sj-screening-person-name {
    margin: 0;
    font-size: 1rem;
    color: #1c355e;
    font-weight: 700;
}

.sj-screening-person-score {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.sj-risk-score {
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.sj-risk-negative {
    background: #fee2e2;
    color: #991b1b;
}

.sj-risk-zero {
    background: #dcfce7;
    color: #166534;
}

.sj-risk-positive {
    background: #fef3c7;
    color: #92400e;
}

.sj-screening-conditions h6 {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.sj-condition-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.sj-condition-item:last-child {
    margin-bottom: 0;
}

.sj-condition-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.sj-condition-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.sj-condition-covered .sj-condition-status {
    background: #dcfce7;
    color: #166534;
}

.sj-condition-excluded .sj-condition-status {
    background: #fee2e2;
    color: #991b1b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sj-policy-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .sj-policy-price {
        align-items: flex-start;
    }

    .sj-trip-type-toggle {
        padding: 1rem;
    }

    .sj-toggle-options {
        grid-template-columns: 1fr;
    }

    .sj-policy-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .sj-cover-groups-container {
        padding: 1rem;
    }

    .sj-policy-actions {
        padding: 1rem;
    }

    .sj-cover-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .sj-cover-item-details {
        align-items: flex-start;
    }
}

/* ========================================
   CARD VIEW TOGGLE
   ======================================== */

.sj-card-view-toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #f0f9ff);
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.sj-card-view-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sj-view-icon {
    font-size: 1.25rem;
}

.sj-view-text {
    font-size: 1rem;
    font-weight: 700;
    color: #1c355e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sj-card-view-options {
    display: flex;
    gap: 0.5rem;
    background: #ffffff;
    padding: 0.35rem;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
}

.sj-view-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
}

.sj-view-option:hover {
    background: #f8fafc;
    color: #1c355e;
}

.sj-view-option-active {
    background: linear-gradient(135deg, #1c355e, #2d4a7c);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(28, 53, 94, 0.3);
}

.sj-view-option-active:hover {
    background: linear-gradient(135deg, #172349, #1c355e);
    color: #ffffff;
}

.sj-view-option-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.sj-view-option-name {
    font-weight: 600;
}

/* ========================================
   MEDIUM CARD VIEW
   ======================================== */

.sj-policy-list[data-view-mode="medium"] .sj-policy-card {
    padding: 0;
}

.sj-policy-list[data-view-mode="medium"] .sj-policy-header {
    padding: 1.25rem 1.5rem 1rem;
}

.sj-policy-list[data-view-mode="medium"] .sj-policy-name {
    font-size: 1.15rem;
}

.sj-policy-list[data-view-mode="medium"] .sj-price-amount {
    font-size: 1.65rem;
}

.sj-policy-list[data-view-mode="medium"] .sj-trip-type-toggle {
    padding: 1rem 1.5rem;
}

.sj-policy-list[data-view-mode="medium"] .sj-toggle-option-content {
    padding: 0.75rem;
}

.sj-policy-list[data-view-mode="medium"] .sj-toggle-option-price {
    font-size: 1.15rem;
}

.sj-policy-list[data-view-mode="medium"] .sj-policy-meta {
    padding: 0.75rem 1.5rem;
}

.sj-policy-list[data-view-mode="medium"] .sj-cover-groups-container {
    padding: 1.25rem 1.5rem;
}

.sj-policy-list[data-view-mode="medium"] .sj-cover-group-header {
    padding: 0.75rem 1rem;
}

.sj-policy-list[data-view-mode="medium"] .sj-cover-icon {
    font-size: 1.25rem;
}

.sj-policy-list[data-view-mode="medium"] .sj-cover-group-title {
    font-size: 0.9rem;
}

.sj-policy-list[data-view-mode="medium"] .sj-cover-item {
    padding: 0.75rem 1rem;
}

.sj-policy-list[data-view-mode="medium"] .sj-cover-item-name {
    font-size: 0.85rem;
}

.sj-policy-list[data-view-mode="medium"] .sj-cover-limit {
    font-size: 1rem;
}

.sj-policy-list[data-view-mode="medium"] .sj-policy-actions {
    padding: 1.25rem 1.5rem;
}

/* ========================================
   SLIM CARD VIEW
   ======================================== */

.sj-policy-list[data-view-mode="slim"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.sj-policy-list[data-view-mode="slim"] .sj-policy-card {
    padding: 0;
}

.sj-policy-list[data-view-mode="slim"] .sj-policy-header {
    padding: 1rem 1.25rem 0.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.sj-policy-list[data-view-mode="slim"] .sj-policy-name {
    font-size: 1rem;
}

.sj-policy-list[data-view-mode="slim"] .sj-policy-price {
    width: 100%;
    align-items: flex-start;
}

.sj-policy-list[data-view-mode="slim"] .sj-price-amount {
    font-size: 1.5rem;
}

.sj-policy-list[data-view-mode="slim"] .sj-price-label {
    font-size: 0.75rem;
}

/* Hide trip type toggle in slim view - show as compact badge instead */
.sj-policy-list[data-view-mode="slim"] .sj-trip-type-toggle {
    display: none;
}

/* Compact trip type display for slim view */
.sj-policy-list[data-view-mode="slim"] .sj-trip-type-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-bottom: 1px solid #fbbf24;
    font-size: 0.8rem;
    color: #92400e;
    font-weight: 600;
}

.sj-policy-list[data-view-mode="slim"] .sj-policy-meta {
    padding: 0.75rem 1.25rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.sj-policy-list[data-view-mode="slim"] .sj-meta-icon {
    font-size: 1rem;
}

.sj-policy-list[data-view-mode="slim"] .sj-meta-text {
    font-size: 0.8rem;
}

/* Slim view: Cover groups are collapsed by default with expand button */
.sj-policy-list[data-view-mode="slim"] .sj-cover-groups-container {
    padding: 1rem 1.25rem;
}

.sj-policy-list[data-view-mode="slim"] .sj-cover-groups-title {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
}

.sj-policy-list[data-view-mode="slim"] .sj-cover-groups-title span {
    font-size: 0.95rem;
}

.sj-policy-list[data-view-mode="slim"] .sj-expand-all-btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
}

.sj-policy-list[data-view-mode="slim"] .sj-cover-group {
    margin-bottom: 0.5rem;
}

.sj-policy-list[data-view-mode="slim"] .sj-cover-group-header {
    padding: 0.65rem 0.85rem;
}

.sj-policy-list[data-view-mode="slim"] .sj-cover-icon {
    font-size: 1.1rem;
}

.sj-policy-list[data-view-mode="slim"] .sj-cover-group-title {
    font-size: 0.85rem;
}

.sj-policy-list[data-view-mode="slim"] .sj-cover-count {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

.sj-policy-list[data-view-mode="slim"] .sj-cover-item {
    padding: 0.6rem 0.85rem;
}

.sj-policy-list[data-view-mode="slim"] .sj-cover-item-name {
    font-size: 0.8rem;
}

.sj-policy-list[data-view-mode="slim"] .sj-cover-limit {
    font-size: 0.95rem;
}

.sj-policy-list[data-view-mode="slim"] .sj-cover-excess,
.sj-policy-list[data-view-mode="slim"] .sj-cover-no-excess {
    font-size: 0.7rem;
}

.sj-policy-list[data-view-mode="slim"] .sj-policy-actions {
    padding: 1rem 1.25rem;
}

.sj-policy-list[data-view-mode="slim"] .sj-button-select-policy {
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
}

.sj-policy-list[data-view-mode="slim"] .sj-policy-link {
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
}

/* Slim view: Show key cover highlights instead of full list initially */
.sj-policy-list[data-view-mode="slim"] .sj-cover-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.sj-policy-list[data-view-mode="slim"] .sj-highlight-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.sj-policy-list[data-view-mode="slim"] .sj-highlight-label {
    color: #64748b;
    font-weight: 500;
}

.sj-policy-list[data-view-mode="slim"] .sj-highlight-value {
    color: #1c355e;
    font-weight: 700;
}

/* Responsive adjustments for card view toggle */
@media (max-width: 768px) {
    .sj-card-view-toggle-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .sj-card-view-options {
        width: 100%;
        justify-content: space-between;
    }

    .sj-view-option {
        flex: 1;
        justify-content: center;
        padding: 0.5rem 0.75rem;
    }

    .sj-view-option-name {
        display: none;
    }

    .sj-view-option-icon {
        font-size: 1.3rem;
    }

    /* Slim view: single column on mobile */
    .sj-policy-list[data-view-mode="slim"] {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   POLICY FILTERS
   ======================================== */

.sj-policy-filters-container {
    background: linear-gradient(135deg, #f8fafc, #f0f9ff);
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.sj-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-bottom: 2px solid #e2e8f0;
}

.sj-filters-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sj-filters-icon {
    font-size: 1.25rem;
}

.sj-filters-text {
    font-size: 1rem;
    font-weight: 700;
    color: #1c355e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sj-filters-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sj-filter-clear-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #fecaca;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sj-filter-clear-btn:hover {
    background: #fecaca;
    border-color: #fca5a5;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(153, 27, 27, 0.2);
}

.sj-filters-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #e0f2fe;
    color: #075985;
    border: 2px solid #bae6fd;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sj-filters-toggle-btn:hover {
    background: #bae6fd;
    border-color: #7dd3fc;
}

.sj-toggle-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.sj-filters-collapsed .sj-toggle-arrow {
    transform: rotate(-90deg);
}

.sj-filters-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.sj-filters-collapsed .sj-filters-content {
    display: none;
}

/* Filter Sections */
.sj-filter-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sj-filter-section-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1c355e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

/* Quick Filters */
.sj-quick-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.sj-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.sj-filter-checkbox:hover {
    border-color: #00b2ff;
    background: #f0f9ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 178, 255, 0.1);
}

.sj-filter-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sj-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 0.35rem;
    background: #ffffff;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sj-filter-checkbox input[type="checkbox"]:checked+.sj-checkbox-custom {
    background: linear-gradient(135deg, #1c355e, #2d4a7c);
    border-color: #1c355e;
}

.sj-filter-checkbox input[type="checkbox"]:checked+.sj-checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
}

.sj-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1c355e;
}

.sj-filter-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* Coverage Filters */
.sj-coverage-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.sj-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sj-filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.sj-filter-select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1c355e;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sj-filter-select:hover {
    border-color: #00b2ff;
    background: #f0f9ff;
}

.sj-filter-select:focus {
    outline: none;
    border-color: #00b2ff;
    box-shadow: 0 0 0 3px rgba(0, 178, 255, 0.1);
}

/* Excess Filter */
.sj-excess-filter {
    max-width: 300px;
}

/* Filter Results Counter */
.sj-filter-results {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border: 2px solid #93c5fd;
    border-radius: 0.75rem;
    margin-top: 0.5rem;
}

.sj-results-icon {
    font-size: 1.25rem;
}

.sj-results-text {
    font-size: 0.95rem;
    color: #1e40af;
    font-weight: 500;
}

.sj-results-text strong {
    font-weight: 700;
    color: #1c355e;
}

/* No Results Message */
.sj-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #fbbf24;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.sj-no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.sj-no-results-title {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    color: #92400e;
    font-weight: 700;
}

.sj-no-results-text {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    color: #78350f;
    max-width: 400px;
}

/* Filtered Out Cards */
.sj-policy-card.sj-filtered-out {
    display: none;
}

/* Active Filter Indicator */
.sj-filters-header.sj-has-active-filters {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-bottom-color: #60a5fa;
}

.sj-filters-header.sj-has-active-filters .sj-filters-text {
    color: #1e40af;
}

/* Responsive Design for Filters */
@media (max-width: 768px) {
    .sj-filters-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .sj-filters-actions {
        justify-content: space-between;
        width: 100%;
    }

    .sj-quick-filters {
        flex-direction: column;
    }

    .sj-coverage-filters {
        grid-template-columns: 1fr;
    }

    .sj-excess-filter {
        max-width: 100%;
    }

    .sj-filter-clear-btn,
    .sj-filters-toggle-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Animation for view mode changes */
.sj-policy-card {
    animation: fadeInCard 0.3s ease;
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   LIST VIEW MODE - Compact Table Style
   ======================================== */

/* List view: Display policies as compact horizontal rows */
.sj-policy-list[data-view-mode="list"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.sj-policy-list[data-view-mode="list"] .sj-policy-card {
    padding: 0 !important;
    border-radius: 0.5rem !important;
    overflow: visible !important;
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    position: relative !important;
}

/* Single-line horizontal layout - everything in one row */
.sj-policy-list[data-view-mode="list"] .sj-policy-header {
    display: grid !important;
    grid-template-columns: 2fr auto 1.5fr auto !important;
    align-items: center !important;
    gap: 1.5rem !important;
    padding: 0.85rem 1.25rem !important;
    background: #ffffff !important;
    border: none !important;
    border-bottom: none !important;
    flex-direction: row !important;
}

.sj-policy-list[data-view-mode="list"] .sj-policy-name {
    font-size: 1rem !important;
    margin: 0 !important;
    font-weight: 600 !important;
    color: #1c355e !important;
}

.sj-policy-list[data-view-mode="list"] .sj-policy-price {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.15rem !important;
}

.sj-policy-list[data-view-mode="list"] .sj-price-amount {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #1c355e !important;
}

.sj-policy-list[data-view-mode="list"] .sj-price-label {
    font-size: 0.7rem !important;
    color: #64748b !important;
    display: block !important;
}

/* Policy meta in list view - compact horizontal inline */
.sj-policy-list[data-view-mode="list"] .sj-policy-meta {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
}

.sj-policy-list[data-view-mode="list"] .sj-policy-meta-item {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
}

.sj-policy-list[data-view-mode="list"] .sj-meta-icon {
    font-size: 0.95rem !important;
}

.sj-policy-list[data-view-mode="list"] .sj-meta-text {
    font-size: 0.8rem !important;
    color: #475569 !important;
    white-space: nowrap !important;
}

/* Hide trip type toggle in list view */
.sj-policy-list[data-view-mode="list"] .sj-trip-type-toggle {
    display: none !important;
}

/* Show compact trip type badge in list view - inline with meta */
.sj-policy-list[data-view-mode="list"] .sj-trip-type-compact {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    padding: 0.25rem 0.6rem !important;
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    border-radius: 999px !important;
    font-size: 0.7rem !important;
    color: #075985 !important;
    font-weight: 600 !important;
}

/* Hide cover groups completely in list view */
.sj-policy-list[data-view-mode="list"] .sj-cover-groups-container {
    display: none !important;
}

/* Hide the expand button - we don't need it in compact list view */
.sj-policy-list[data-view-mode="list"] .sj-list-expand-btn {
    display: none !important;
}

/* Policy actions in list view - inline with the row */
.sj-policy-list[data-view-mode="list"] .sj-policy-actions {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-top: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.sj-policy-list[data-view-mode="list"] .sj-button-select-policy {
    padding: 0.6rem 1.25rem !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.sj-policy-list[data-view-mode="list"] .sj-button-select-policy svg {
    width: 16px !important;
    height: 16px !important;
}

/* Hide policy links in compact list view */
.sj-policy-list[data-view-mode="list"] .sj-policy-link {
    display: none !important;
}

/* Badges positioning in list view - smaller and more subtle */
.sj-policy-list[data-view-mode="list"] .sj-policy-badge {
    position: absolute !important;
    top: -8px !important;
    left: 1rem !important;
    font-size: 0.7rem !important;
    padding: 0.25rem 0.65rem !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(251, 191, 36, 0.3) !important;
    z-index: 10 !important;
}

.sj-policy-list[data-view-mode="list"] .sj-zero-excess-badge {
    position: absolute !important;
    top: -8px !important;
    right: 1rem !important;
    font-size: 0.7rem !important;
    padding: 0.25rem 0.65rem !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3) !important;
    z-index: 10 !important;
}

/* Hover effect for list items */
.sj-policy-list[data-view-mode="list"] .sj-policy-card:hover {
    border-color: #00b2ff !important;
    box-shadow: 0 2px 12px rgba(0, 178, 255, 0.15) !important;
    transform: translateY(-1px) !important;
    transition: all 0.2s ease !important;
}

/* Selected state in list view */
.sj-policy-list[data-view-mode="list"] .sj-policy-card.sj-policy-selected {
    border-color: #0f766e !important;
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1) !important;
    box-shadow: 0 2px 12px rgba(15, 118, 110, 0.2) !important;
}

.sj-policy-list[data-view-mode="list"] .sj-policy-card.sj-policy-selected .sj-policy-header {
    background: transparent !important;
}

/* Recommended policy styling in list view */
.sj-policy-list[data-view-mode="list"] .sj-policy-recommended {
    border-color: #fbbf24 !important;
    background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
}

/* Zero excess highlighting in list view */
.sj-policy-list[data-view-mode="list"] .sj-zero-excess .sj-meta-highlight {
    color: #059669 !important;
    font-weight: 700 !important;
}

/* Responsive adjustments for list view */
@media (max-width: 1200px) {
    .sj-policy-list[data-view-mode="list"] .sj-policy-header {
        grid-template-columns: 1.5fr auto 1fr auto !important;
        gap: 1rem !important;
    }

    .sj-policy-list[data-view-mode="list"] .sj-policy-meta {
        gap: 0.75rem !important;
    }
}

@media (max-width: 1024px) {
    .sj-policy-list[data-view-mode="list"] .sj-policy-header {
        grid-template-columns: 1fr auto auto !important;
        gap: 1rem !important;
    }

    .sj-policy-list[data-view-mode="list"] .sj-policy-meta {
        grid-column: 1 / 2 !important;
        flex-direction: column !important;
        gap: 0.35rem !important;
        align-items: flex-start !important;
    }

    .sj-policy-list[data-view-mode="list"] .sj-policy-actions {
        grid-column: 3 / 4 !important;
    }
}

@media (max-width: 768px) {
    .sj-policy-list[data-view-mode="list"] .sj-policy-card {
        border-radius: 0.75rem !important;
    }

    .sj-policy-list[data-view-mode="list"] .sj-policy-header {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
    }

    .sj-policy-list[data-view-mode="list"] .sj-policy-name {
        font-size: 0.95rem !important;
    }

    .sj-policy-list[data-view-mode="list"] .sj-policy-price {
        align-items: flex-start !important;
    }

    .sj-policy-list[data-view-mode="list"] .sj-price-amount {
        font-size: 1.5rem !important;
    }

    .sj-policy-list[data-view-mode="list"] .sj-policy-meta {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.75rem !important;
    }

    .sj-policy-list[data-view-mode="list"] .sj-policy-actions {
        width: 100% !important;
    }

    .sj-policy-list[data-view-mode="list"] .sj-button-select-policy {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ========================================
   ULTRA-SPECIFIC LIST VIEW OVERRIDES
   Using ID selector for maximum specificity
   ======================================== */

/* Force single-line layout */
#sj-policy-list[data-view-mode="list"] .sj-policy-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    height: auto !important;
    padding: 0 !important;
    gap: 0 !important;
}

/* Header takes full width and uses grid */
#sj-policy-list[data-view-mode="list"] .sj-policy-header {
    display: grid !important;
    grid-template-columns: 2fr auto 1.5fr auto !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    gap: 1.5rem !important;
    padding: 0.85rem 1.25rem !important;
    background: #ffffff !important;
    border: none !important;
    border-bottom: none !important;
    flex-direction: row !important;
    height: auto !important;
    flex: 1 !important;
}

/* Meta info inline in header */
#sj-policy-list[data-view-mode="list"] .sj-policy-meta {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
}

/* Actions inline in header */
#sj-policy-list[data-view-mode="list"] .sj-policy-actions {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-top: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

/* CRITICAL: Reorder elements to be in the header row */
#sj-policy-list[data-view-mode="list"] .sj-policy-header {
    order: 1 !important;
}

#sj-policy-list[data-view-mode="list"] .sj-policy-meta {
    order: 2 !important;
}

#sj-policy-list[data-view-mode="list"] .sj-policy-actions {
    order: 3 !important;
}

/* Hide everything else */
#sj-policy-list[data-view-mode="list"] .sj-trip-type-toggle {
    display: none !important;
}

#sj-policy-list[data-view-mode="list"] .sj-cover-groups-container {
    display: none !important;
}

#sj-policy-list[data-view-mode="list"] .sj-policy-link {
    display: none !important;
}

/* Make sure policy name and price are in the header */
#sj-policy-list[data-view-mode="list"] .sj-policy-name {
    grid-column: 1 / 2 !important;
}

#sj-policy-list[data-view-mode="list"] .sj-policy-price {
    grid-column: 2 / 3 !important;
}

/* CRITICAL: Filtered cards must be hidden even in list view */
#sj-policy-list[data-view-mode="list"] .sj-policy-card.sj-filtered-out {
    display: none !important;
}


/* ========================================
   DEV TOOLS PANEL
   ======================================== */

#sj-dev-tools {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #1c355e, #2d4a7c);
    border: 2px solid #00b2ff;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

.sj-dev-clear-btn,
.sj-dev-header-toggle-btn {
    padding: 0.5rem 1rem;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #dc2626;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sj-dev-header-toggle-btn {
    background: #3b82f6;
    border-color: #2563eb;
}

.sj-dev-clear-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.sj-dev-header-toggle-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.sj-dev-label {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}