/* Grouped test selector - RequestTest.aspx */
.catalog-modal-open { overflow: hidden; }

.test-picker-launch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 0;
    padding: 18px 20px;
    border: 1px solid #dfe7f1;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fbff 0%, #f1f8fb 100%);
    box-shadow: 0 8px 28px rgba(18, 42, 76, .06);
}

.test-picker-launch-copy { min-width: 0; }
.test-picker-title { color: #0d2240; font-size: 18px; font-weight: 800; margin-bottom: 5px; }
.test-picker-subtitle { color: #65758a; font-size: 13px; line-height: 1.7; }
.test-catalog-open-btn {
    min-width: 185px;
    white-space: nowrap;
    background: #0bb8c8 !important;
    border-color: #0bb8c8 !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(11,184,200,.22);
}

.test-catalog-modal {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}
.test-catalog-modal.is-open { display: flex; }
.test-catalog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 20, 42, .68);
    backdrop-filter: blur(4px);
}
.test-catalog-dialog {
    position: relative;
    width: min(1120px, 96vw);
    height: min(760px, 90vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(4, 18, 38, .32);
    animation: testCatalogIn .18s ease-out;
}
@keyframes testCatalogIn {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.test-catalog-header {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px 16px;
    color: #fff;
    background: linear-gradient(115deg, #071a3c 0%, #0c2f56 68%, #0e6b83 100%);
}
.test-catalog-header h3 { margin: 0 0 7px; font-size: 23px; font-weight: 800; }
.test-catalog-header p { margin: 0; color: rgba(255,255,255,.78); font-size: 13px; }
.test-catalog-close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.08);
    font: 300 28px/32px Arial, sans-serif;
    cursor: pointer;
    transition: .15s ease;
}
.test-catalog-close:hover { background: rgba(255,255,255,.18); transform: rotate(3deg); }

.test-catalog-search-row {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #e7edf5;
    background: #fbfdff;
}
.test-catalog-search {
    flex: 1;
    height: 42px;
    border: 1px solid #d7e1ee;
    border-radius: 11px;
    padding: 0 14px;
    font: inherit;
    color: #132b49;
    outline: none;
    background: #fff;
}
.test-catalog-search:focus {
    border-color: #19b9c7;
    box-shadow: 0 0 0 3px rgba(25,185,199,.11);
}
.catalog-selection-count {
    min-width: 44px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 11px;
    background: #e8f9fb;
    color: #057989;
    font-weight: 900;
    border: 1px solid #c7eff3;
}

.test-catalog-body {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 300px 1fr;
    background: #f6f9fd;
}
.test-group-pane,
.test-list-pane {
    min-height: 0;
    overflow: auto;
}
.test-group-pane {
    padding: 16px 14px 18px;
    border-inline-end: 1px solid #e2e9f2;
    background: #fff;
}
.test-list-pane { padding: 16px 18px 22px; }
.pane-caption {
    margin-bottom: 12px;
    color: #6a7b91;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.test-list-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.clear-catalog-selection {
    border: 0;
    padding: 3px 6px;
    color: #168d9b;
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.test-group-item {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    padding: 9px 12px;
    border: 1px solid #e0e8f1;
    border-radius: 11px;
    background: #fff;
    color: #263e5a;
    text-align: inherit;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .15s ease;
}
.test-group-item:hover { border-color: #b9dfe4; background: #f3fbfc; }
.test-group-item.active {
    color: #064d60;
    border-color: #69cfd8;
    background: linear-gradient(135deg, #eafafb 0%, #eef7ff 100%);
    box-shadow: inset 3px 0 0 #0fb6c6;
}
.lang-ar .test-group-item.active { box-shadow: inset -3px 0 0 #0fb6c6; }
.group-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-count {
    min-width: 27px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 999px;
    color: #52708d;
    background: #edf3f8;
    font-size: 11px;
    font-weight: 900;
}
.test-group-item.active .group-count { color: #087a88; background: #fff; }

.test-catalog-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}
.catalog-test-card {
    position: relative;
    min-height: 86px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 14px;
    border: 1px solid #dfe7f0;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: .15s ease;
    box-shadow: 0 4px 14px rgba(17, 42, 73, .035);
}
.catalog-test-card:hover { border-color: #b9dfe5; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(17,42,73,.07); }
.catalog-test-card.selected {
    border-color: #20b9c8;
    background: linear-gradient(135deg, #f3feff 0%, #f7fbff 100%);
    box-shadow: 0 7px 20px rgba(14,177,192,.10);
}
.catalog-test-check { position: absolute; opacity: 0; pointer-events: none; }
.catalog-test-checkmark {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #c8d4e1;
    border-radius: 7px;
    background: #fff;
}
.catalog-test-card.selected .catalog-test-checkmark { border-color: #0eb5c5; background: #0eb5c5; }
.catalog-test-card.selected .catalog-test-checkmark:after {
    content: "✓";
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}
.catalog-test-info { min-width: 0; }
.catalog-test-info strong {
    display: block;
    margin-bottom: 5px;
    color: #142e4e;
    font-size: 13px;
    line-height: 1.45;
}
.catalog-test-info small {
    display: block;
    color: #8290a2;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.catalog-test-price {
    align-self: center;
    min-width: 86px;
    padding: 7px 8px;
    border-radius: 9px;
    color: #075e70;
    background: #edf9fb;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}
.catalog-no-tests {
    grid-column: 1 / -1;
    padding: 46px 20px;
    color: #7c8da3;
    text-align: center;
    font-weight: 700;
}

.test-catalog-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 20px;
    border-top: 1px solid #e2e9f2;
    background: #fff;
}
.catalog-footer-note { color: #728298; font-size: 12px; }
.catalog-footer-actions { display: flex; align-items: center; gap: 9px; }
.catalog-cancel-btn {
    background: #fff !important;
    color: #42576f !important;
    border: 1px solid #ccd7e4 !important;
}
.catalog-add-btn {
    min-width: 235px;
    background: #0bb8c8 !important;
    border-color: #0bb8c8 !important;
    color: #fff !important;
}

@media (max-width: 900px) {
    .test-catalog-modal { padding: 10px; }
    .test-catalog-dialog { width: 100%; height: 94vh; border-radius: 16px; }
    .test-catalog-body { grid-template-columns: 220px 1fr; }
    .test-catalog-list { grid-template-columns: 1fr; }
    .catalog-test-price { min-width: 72px; }
}

@media (max-width: 650px) {
    .test-picker-launch-row { align-items: stretch; flex-direction: column; }
    .test-catalog-open-btn { width: 100%; }
    .test-catalog-header { padding: 18px 17px 14px; }
    .test-catalog-header h3 { font-size: 18px; }
    .test-catalog-body { display: flex; flex-direction: column; }
    .test-group-pane {
        flex: 0 0 auto;
        max-height: 150px;
        border-inline-end: 0;
        border-bottom: 1px solid #e2e9f2;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 10px;
    }
    .test-group-pane .pane-caption { display: none; }
    .test-group-item { flex: 0 0 auto; width: auto; margin: 0; min-height: 40px; }
    .test-list-pane { flex: 1 1 auto; padding: 12px; }
    .test-catalog-footer { align-items: stretch; flex-direction: column; gap: 9px; }
    .catalog-footer-note { display: none; }
    .catalog-footer-actions { width: 100%; }
    .catalog-footer-actions .btn { flex: 1; min-width: 0; }
    .catalog-test-card { grid-template-columns: 22px minmax(0, 1fr); }
    .catalog-test-price { grid-column: 2; justify-self: start; }
}
.catalog-test-card.already-selected::after {
    content: "مضاف";
    position: absolute;
    top: 6px;
    inset-inline-start: 8px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #0bb8c8;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}
.lang-en .catalog-test-card.already-selected::after { content: "Added"; }
.catalog-test-card.already-selected { cursor: default; }

/* =============================================================
   Global genetic order journey - 2026 v1
   ============================================================= */
.global-order-page { background: #f6f8fc; }
.order-journey-wrap { max-width: 1260px; margin: 0 auto; padding-top: 34px; padding-bottom: 70px; }
.order-journey-card,
.order-success-card {
    background: #fff;
    border: 1px solid #e3e9f2;
    border-radius: 24px;
    box-shadow: 0 18px 55px rgba(9, 29, 61, .08);
    overflow: hidden;
}
.order-hero-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    padding: 34px 38px 28px;
    color: #fff;
    background:
      radial-gradient(circle at 90% 20%, rgba(30,195,211,.18), transparent 27%),
      linear-gradient(118deg, #071633 0%, #0c2347 60%, #0c3b57 100%);
}
.order-eyebrow,
.success-eyebrow { color: #48d1dc; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.order-hero-row h1 { margin: 7px 0 8px; color: #fff; font-size: clamp(28px,4vw,44px); line-height: 1.1; }
.order-hero-row p { max-width: 750px; margin: 0; color: rgba(255,255,255,.74); font-size: 14px; line-height: 1.8; }
.order-security-note {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    margin-top: 7px;
    padding: 10px 13px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    color: rgba(255,255,255,.83);
    background: rgba(255,255,255,.06);
    font-size: 11px;
    font-weight: 700;
}
.order-lock { color: #52d8e3; font-size: 19px; transform: rotate(20deg); }

.order-stepper {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0 24px;
    border-bottom: 1px solid #e8edf4;
    background: #fbfcfe;
}
.order-step {
    position: relative;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-bottom: 3px solid transparent;
    color: #7f8da1;
    background: transparent;
    font: inherit;
    cursor: pointer;
    transition: .18s ease;
}
.order-step + .order-step:before {
    content: "";
    position: absolute;
    top: 40px;
    inset-inline-start: -16%;
    width: 32%;
    border-top: 1px solid #dce4ee;
}
.order-step span {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d5dfe9;
    border-radius: 50%;
    background: #fff;
    color: #7890a9;
    font-size: 12px;
    font-weight: 900;
}
.order-step b { font-size: 12px; font-weight: 800; }
.order-step.is-active { color: #0d334e; border-bottom-color: #11b8c8; }
.order-step.is-active span { border-color: #12b6c6; color: #fff; background: #12b6c6; box-shadow: 0 5px 15px rgba(18,182,198,.22); }
.order-step.is-complete { color: #3e687d; }
.order-step.is-complete span { border-color: #c8eff2; color: #067d8b; background: #eafafa; }

.order-global-msg { display: block; margin: 18px 38px 0; }
.wizard-section { display: none; padding: 30px 38px 36px; animation: wizardFade .18s ease-out; }
.wizard-section.is-active { display: block; }
@keyframes wizardFade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.wizard-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 22px; }
.wizard-section-head > div { display: flex; align-items: center; gap: 12px; }
.wizard-index { color: #14adbd; font-size: 12px; font-weight: 950; letter-spacing: .08em; }
.wizard-section-head h2 { margin: 0; color: #102443; font-size: 23px; line-height: 1.25; }
.wizard-section-head p { max-width: 510px; margin: 0; color: #718198; font-size: 12px; line-height: 1.7; text-align: end; }

.global-form-grid { display: grid !important; gap: 16px 18px !important; align-items: start; }
.global-form-grid.three-cols { grid-template-columns: repeat(3, minmax(0,1fr)); }
.global-form-grid.two-cols { grid-template-columns: repeat(2, minmax(0,1fr)); }
.global-form-grid .field { width: auto !important; min-width: 0; margin: 0 !important; }
.global-form-grid .field.full { grid-column: 1 / -1; }
.global-form-grid .field label { display: block; margin-bottom: 7px; color: #314962; font-size: 12px; font-weight: 800; }
.global-form-grid .txt {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    border: 1px solid #d9e2ed;
    border-radius: 11px;
    background: #fff;
    color: #1a314d;
    transition: .15s ease;
}
.global-form-grid textarea.txt { min-height: 98px; padding-top: 12px; resize: vertical; }
.global-form-grid .txt:focus { border-color: #49c4cf; box-shadow: 0 0 0 3px rgba(18,182,198,.10); outline: none; }
.field-help { display: block; margin-top: 6px; color: #8a98aa; font-size: 10px; }
#homeAddressField { transition: .18s ease; }
#homeAddressField.home-required { padding: 12px; border: 1px solid #ccecef; border-radius: 12px; background: #f5fcfd; }

.global-selected-tests { margin-top: 18px; border: 1px solid #dfe7f0; border-radius: 15px; overflow: hidden; background: #fff; }
.global-selected-tests .selected-tests-head { padding: 13px 15px; background: #f7fafc; }
.global-selected-tests .selected-tests-grid { margin: 0; }
.global-selected-tests .selected-tests-grid th { background: #fbfcfe; color: #607188; font-size: 11px; }
.global-selected-tests .selected-tests-grid td { color: #273f59; font-size: 12px; }

.wizard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #edf1f6;
}
.wizard-actions.one-sided { justify-content: flex-end; }
.wizard-back { min-width: 120px; border: 1px solid #d4deea !important; background: #fff !important; color: #40566d !important; }
.wizard-next,
.wizard-submit { min-width: 230px; border-color: #0eb7c7 !important; background: #0eb7c7 !important; color: #fff !important; box-shadow: 0 8px 22px rgba(14,183,199,.18); }
.wizard-submit:disabled { opacity: .65; cursor: wait; }

.sample-info-strip {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 18px;
    padding: 15px 17px;
    border: 1px solid #d9edf0;
    border-radius: 13px;
    color: #245067;
    background: linear-gradient(135deg,#f5fcfd,#f8fbff);
}
.sample-info-strip > span { color: #0facbb; font-size: 26px; }
.sample-info-strip b { display: block; margin-bottom: 3px; font-size: 12px; }
.sample-info-strip small { color: #7890a0; font-size: 11px; }

.order-review-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.review-card { min-height: 116px; padding: 17px 18px; border: 1px solid #dfe7f0; border-radius: 14px; background: #fbfdff; }
.review-label { display: block; margin-bottom: 12px; color: #0da7b6; font-size: 10px; font-weight: 950; text-transform: uppercase; letter-spacing: .07em; }
.review-card strong { display: block; margin-bottom: 6px; color: #132b48; font-size: 15px; line-height: 1.5; }
.review-card small { display: block; color: #73849a; font-size: 11px; line-height: 1.6; }
.consent-box { margin-top: 18px; padding: 19px; border: 1px solid #dce5ef; border-radius: 15px; background: #fff; }
.consent-check-row { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; color: #334c65; font-size: 12px; line-height: 1.8; }
.consent-checkbox input { width: 18px; height: 18px; accent-color: #0fb6c6; }
.consent-name-field { max-width: 520px; margin-top: 15px; }
.consent-name-field label { display: block; margin-bottom: 6px; color: #4b6078; font-size: 11px; font-weight: 800; }
.consent-name-field .txt { width: 100%; min-height: 44px; box-sizing: border-box; border: 1px solid #d8e2ec; border-radius: 10px; }

.order-success-card { max-width: 880px; margin: 26px auto 0; padding: 42px; text-align: center; }
.success-mark { width: 66px; height: 66px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; border-radius: 50%; color: #fff; background: #12b6c6; font-size: 31px; font-weight: 900; box-shadow: 0 10px 30px rgba(18,182,198,.24); }
.order-success-card h2 { margin: 7px 0; color: #102443; font-size: 30px; }
.order-success-card > p { color: #728297; font-size: 13px; }
.success-reference-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 26px 0; }
.success-reference-grid > div { padding: 15px; border: 1px solid #e0e7ef; border-radius: 13px; background: #f8fafc; }
.success-reference-grid span { display: block; margin-bottom: 5px; color: #8190a3; font-size: 10px; }
.success-reference-grid b { color: #16314f; font-size: 15px; }
.success-samples { margin-top: 20px; text-align: start; }
.success-samples h3 { margin: 0 0 10px; color: #172f4b; font-size: 15px; }
.success-sample-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 14px; border: 1px solid #e3e9f0; border-radius: 11px; background: #fff; margin-bottom: 8px; }
.success-sample-row strong { display: block; color: #263f5a; font-size: 12px; }
.success-sample-row small { color: #8593a5; font-size: 10px; }
.success-sample-row code { direction: ltr; padding: 7px 9px; border-radius: 8px; color: #087987; background: #edfafa; font-family: Consolas,monospace; font-size: 12px; font-weight: 800; }
.success-actions { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }

@media (max-width: 900px) {
    .order-journey-wrap { padding: 18px 12px 45px; }
    .order-hero-row { padding: 27px 24px; }
    .order-security-note { display: none; }
    .order-stepper { padding: 0 8px; }
    .order-step { min-height: 70px; flex-direction: column; gap: 4px; }
    .order-step + .order-step:before { display: none; }
    .wizard-section { padding: 24px; }
    .wizard-section-head { align-items: flex-start; flex-direction: column; gap: 7px; }
    .wizard-section-head p { text-align: start; }
    .global-form-grid.three-cols { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
    .order-hero-row h1 { font-size: 28px; }
    .order-stepper { overflow-x: auto; grid-template-columns: repeat(5, 92px); justify-content: start; }
    .order-step b { font-size: 10px; }
    .wizard-section { padding: 20px 15px 24px; }
    .wizard-section-head h2 { font-size: 19px; }
    .global-form-grid.three-cols,
    .global-form-grid.two-cols,
    .order-review-grid,
    .success-reference-grid { grid-template-columns: 1fr; }
    .wizard-actions { align-items: stretch; flex-direction: column-reverse; }
    .wizard-actions .btn { width: 100%; min-width: 0; }
    .wizard-actions.one-sided { flex-direction: column; }
    .final-actions { flex-direction: column-reverse; }
    .order-success-card { padding: 28px 17px; }
    .success-sample-row { align-items: flex-start; flex-direction: column; }
    .success-actions { flex-direction: column; }
    .success-actions .btn { width: 100%; box-sizing: border-box; }
}
