/* ===========================================
   Visit Selection
=========================================== */

.patient-info-wrapper {
    padding: 20px;
}

.patient-card {
    background: #fff;
    border-radius: 12px;
}

.card-header-custom {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.card-header-custom i {
    font-size: 22px;
    color: var(--apns-accent);
}

.card-header-custom h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.card-body {
    margin: 0 15%;
}

/* ===========================================
   Search
=========================================== */

.search-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.search-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--apns-input-border);
    font-size: 16px;
}

.search-wrapper input {
    height: 52px;
    border-radius: 12px;
    padding-left: 45px;
    border: 1px solid #D0D5DD;
    font-size: 16px;
}

.search-wrapper input:focus {
    border-color: var(--apns-accent);
    box-shadow: none;
}

/* ===========================================
   Visit List
=========================================== */

.visit-list {
    display: flex;
    flex-direction: column;
    gap: 0rem;

    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;

    padding-right: 8px;
}

/* Chrome, Edge, Safari */

.visit-list::-webkit-scrollbar {
    width: 8px;
}

.visit-list::-webkit-scrollbar-track {
    background: #F2F4F7;
    border-radius: 20px;
}

.visit-list::-webkit-scrollbar-thumb {
    background: #C7CBD1;
    border-radius: 20px;
}

.visit-list::-webkit-scrollbar-thumb:hover {
    background: var(--apns-input-border);
}

/* Firefox */

.visit-list {
    scrollbar-width: thin;
    scrollbar-color: #C7CBD1 #F2F4F7;
}

/* ===========================================
   Card
=========================================== */

.appointment-option-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;

    width: 100%;
    padding: 18px 22px;

    background: #fff;
    border: 1px solid #E4E7EC;
    border-radius: 12px;

    cursor: pointer;
    text-align: left;

    transition: all .25s ease;
}

.appointment-option-card:hover {
    border-color: var(--apns-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}

.appointment-option-card.selected {
    border: 2px solid var(--apns-accent);
    background: var(--apns-primary);
    color: white !important;
}

/* ===========================================
   Radio
=========================================== */

.option-radio {
    width: 22px;
    height: 22px;

    border: 2px solid #D0D5DD;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    margin-top: 2px;
}

.option-radio span {
    width: 10px;
    height: 10px;

    border-radius: 50%;
    background: var(--apns-accent);

    display: none;
}

.appointment-option-card.selected .option-radio {
    border-color: var(--apns-accent);
}

.appointment-option-card.selected .option-radio span {
     display: block;
    background: var(--apns-accent);
}

.appointment-option-card.selected .option-title {
    color: #fff;
}

/* ===========================================
   Content
=========================================== */

.option-content {
    flex: 1;
}

.option-title {
    font-size: 16px;
    font-weight: 600;
    color: #101828;
    line-height: 1.5;
}

/* ===========================================
   Continue Button
=========================================== */

/* Continue sits after the list (main.css places it). */
.continue-btn-d {
    float: none;
    margin-bottom: 0;
}

/* ===========================================
   Responsive
=========================================== */

@media (max-width: 992px) {

    .card-body {
        margin: 0 5%;
    }

    .visit-list {
        max-height: 380px;
    }
}

@media (max-width: 768px) {

    .card-body {
        margin: 0;
    }

    .appointment-option-card {
        padding: 16px;
    }

    .option-title {
        font-size: 16px;
    }

    .visit-list {
        max-height: 320px;
    }
}