﻿:root {
    --primary: #1e3a8a;
    --primary-light: #2563eb;
    --primary-bg: #f0fdf4;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --bg-body: #f3f4f6;
    --bg-card: #ffffff;
    --border-color: #d1d5db;
    --success: #16a34a;
    --warning-bg: #fffbeb;
    --warning-border: #f59e0b;
    --warning-text: #78350f;
    --radius-md: 8px;
    --radius-sm: 4px;
    --transition: all 0.2s ease-in-out;
}

.access-card {
    background: var(--bg-card);
    max-width: 1050px;
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2.5rem;
    margin: 2rem auto;
}

.access-card-title {
    font-size: 1.75rem;
    color: var(--primary);
    border-bottom: 2px solid var(--bg-body);
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
}

.access-form-section {
    background-color: #fbfbfc;
    border: 1px solid #f0f0f2;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.access-form-section-title {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1.25rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-left: 4px solid var(--primary-light);
    padding-left: 0.5rem;
}

.access-form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

    .access-form-group:last-child {
        margin-bottom: 0;
    }

.access-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (max-width: 600px) {
    .access-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.access-form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.access-form-group input[type="text"],
.access-form-group input[type="date"],
.access-form-group select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.access-form-group select {
    width: 100%;
    padding: 0.625rem 2.5rem 0.625rem 0.75rem;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}


    .access-form-group input:focus,
    .access-form-group select:focus {
        border-color: var(--primary-light);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    }

    .access-form-group input.input-error,
    .access-form-group select.input-error {
        border-color: #dc2626;
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    }

.required-star {
    color: #dc2626;
    font-weight: 700;
}

.requirement-notice {
    font-size: 0.8rem;
    color: #b45309;
    font-weight: 500;
    display: inline-block;
    margin-left: 0.25rem;
}

.field-error {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-weight: 500;
    display: none;
}

.blockquote-consent {
    background-color: var(--primary-bg);
    border-left: 4px solid var(--success);
    padding: 1rem;
    font-style: italic;
    font-size: 0.9rem;
    color: #14532d;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 1.25rem;
}

.blockquote-attestation {
    background-color: var(--warning-bg);
    border-left: 4px solid var(--warning-border);
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--warning-text);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 1.5rem;
}

.track-container {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
}

/*.track-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}*/

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-main);
    font-weight: normal;
}

    .checkbox-label input[type="checkbox"] {
        width: 1.05rem;
        height: 1.05rem;
        accent-color: var(--primary-light);
        cursor: pointer;
    }

.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.25rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: normal;
    color: var(--text-main);
}

    .radio-label input[type="radio"] {
        width: 1.1rem;
        height: 1.1rem;
        accent-color: var(--primary-light);
        cursor: pointer;
    }

.access-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 1rem;
}

    .access-btn:hover {
        background-color: var(--primary-light);
        transform: translateY(-1px);
    }

.access-toast {
    visibility: hidden;
    min-width: 300px;
    background-color: #1e293b;
    color: #fff;
    text-align: left;
    border-left: 5px solid var(--success);
    border-radius: var(--radius-sm);
    padding: 1rem;
    position: fixed;
    z-index: 10;
    right: 2rem;
    bottom: 2rem;
    font-size: 0.9rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

    .access-toast.show {
        visibility: visible;
        opacity: 1;
    }

.error-msg {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
    display: none;
}

.captcha-module {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.track-disabled {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

    /*.track-disabled::after {*/
    /*content: "🔒 Disabled (mutually exclusive)";*/
    /*content: attr(data-disabled-msg);
        position: absolute;
        top: 5px;
        right: 10px;
        font-size: 0.75rem;
        color: #9a3412;
        font-weight: 600;
    }*/
    .track-disabled::after {
        content: attr(data-disabled-msg);
        display: block;
        margin-top: 6px;
        font-size: 0.75rem;
        color: #9a3412;
        font-weight: 600;
        /* REMOVE: position absolute, top, right */
    }

/* ─── Exclusion Button ─── */
.excl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #1e3a8a;
    background: #f5f3ff;
    border: 1.5px solid #1e3a8a;
    border-radius: 6px;
    padding: 4px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    line-height: 1.5;
}

    .excl-btn:hover {
        background: #1e3a8a;
        color: #fff;
    }

    .excl-btn svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

/* ─── Exclusion Modal Overlay ─── */
.excl-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .excl-overlay.open {
        display: flex;
    }

/* ─── Modal Card ─── */
.excl-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 620px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
}

/* ─── Modal Header ─── */
.excl-modal-head {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.excl-modal-head-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.excl-modal-badge {
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.excl-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.excl-modal-close {
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    transition: background 0.15s;
}

    .excl-modal-close:hover {
        background: rgba(255,255,255,0.35);
    }

/* ─── Modal Alert Banner ─── */
.excl-modal-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    margin: 16px 20px 0;
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    font-size: 12.5px;
    color: #92400e;
    line-height: 1.5;
}

.excl-modal-alert-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ─── Modal Body ─── */
.excl-modal-body {
    padding: 14px 20px 20px;
    overflow-y: auto;
    flex: 1;
}

    .excl-modal-body ol {
        padding-left: 20px;
        margin: 0;
    }

    .excl-modal-body li {
        font-size: 13.5px;
        color: #374151;
        line-height: 1.7;
        margin-bottom: 10px;
    }

    .excl-modal-body ul {
        margin-top: 6px;
        padding-left: 18px;
    }

        .excl-modal-body ul li {
            list-style: disc;
            margin-bottom: 4px;
            font-size: 13px;
        }

    .excl-modal-body strong {
        font-weight: 600;
        color: #111827;
    }

/* ─── Modal Footer ─── */
.excl-modal-foot {
    padding: 14px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    background: #f9fafb;
}

.excl-modal-close-btn {
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 8px;
    border: 1.5px solid #1e3a8a;
    background: #1e3a8a;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
}

    .excl-modal-close-btn:hover {
        background: #2563eb;
        border-color: #2563eb;
    }

/* ─── Track Title Row ─── */
/*.track-title {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}*/
.track-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.track-disabled .excl-btn {
    pointer-events: all;
    opacity: 1;
}

a:hover {
    color: blue;
}

.modal-submit-btn {
    width: 10%;
    margin-right: auto;
    margin-left: auto;
    margin-top: 0;
    margin-bottom: 2%;
    padding: 10px;
}

.modal-tbl-responsive {
    max-height: 500px;
    width: 100%;
}

.familydoctor-search-btn {
    padding: 1%;
    width: 50%;
    margin-top: 0;
    float: right;
}

.full-width {
    width: 100%;
}

input[readonly] {
    background-color: #f5f5f5 !important;
    color: #666;
    cursor: not-allowed;
    border: 1px solid #ccc;
}

@media (max-width:1367px) {
    .modal-submit-btn {
        width: 50%;
    }
}

.npisearcLink,
.npisearcLink:link,
.npisearcLink:visited {
    color: var(--bs-link-color) !important;
}

    .npisearcLink:hover,
    .npisearcLink:focus,
    .npisearcLink:active {
        color: blue !important;
    }
