﻿:root {
    --primary: #2563eb;
    --primary2: #22c55e;
    --dark: #111827;
    --text: #374151;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f5f7fb;
    --card: #ffffff;
    --shadow: 0 20px 60px rgba(17,24,39,.08);
}

body {
    font-family: 'Poppins',sans-serif;
    background: radial-gradient(circle at top left, rgba(37,99,235,.10), transparent 28%), radial-gradient(circle at bottom right, rgba(34,197,94,.10), transparent 28%), var(--bg);
    color: var(--text);
}

.booking-wrap {
    max-width: 1280px;
    margin: 2px auto;
    padding: 0 16px;
}

.glass-card {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.section-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px;
    box-shadow: 0 10px 26px rgba(17,24,39,.03);
    height: 370px;
    overflow-y: auto;
    overflow-x: hidden;
}

.doctor-card {
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    background: linear-gradient(180deg,#fff,#fbfdff);
}

.doctor-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(37,99,235,.12);
}

.doctor-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2px;
}

.badge-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f97316;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    margin-left: 6px;
}

.doctor-role {
    color: #4f46e5;
    font-weight: 500;
    margin-bottom: 6px;
}

.doctor-meta {
    color: #6b7280;
    font-size: .95rem;
}

.form-label {
    font-size: .95rem;
    font-weight: 500;
    color: var(--dark);
}

.custom-select, .custom-input {
    border-radius: 6px;
    border: 1px solid var(--border);
    padding: 8px 12px;
    transition: .25s ease;
    box-shadow: none;
}

    .custom-select:focus, .custom-input:focus {
        border-color: rgba(37,99,235,.5);
        box-shadow: 0 0 0 .25rem rgba(37,99,235,.10);
    }

.service-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
}

.service-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    background: #fff;
    cursor: pointer;
    transition: .25s ease;
    min-height: 82px;
    overflow: hidden;
}

    .service-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 28px rgba(37,99,235,.08);
        border-color: rgba(37,99,235,.35);
    }

    .service-card input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .service-card .check {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        border-radius: 6px;
        border: 2px solid #cbd5e1;
        display: grid;
        place-items: center;
        color: #fff;
        transition: .25s ease;
        font-size: 12px;
    }

    .service-card input:checked + .service-content .check {
        background: linear-gradient(135deg,var(--primary),var(--primary2));
        border-color: transparent;
    }

    .service-card input:checked ~ .service-border {
        opacity: 1;
    }

.service-border {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 2px solid rgba(37,99,235,.65);
    opacity: 0;
    transition: .25s ease;
    pointer-events: none;
}

.service-name {
    font-weight: 600;
    font-size: .98rem;
    margin-bottom: 4px;
    color: var(--dark);
}

.service-price {
    color: #6b7280;
    font-size: .92rem;
}

.step-pane {
    display: none;
    animation: fadeUp .35s ease;
}

    .step-pane.active {
        display: block;
    }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 5px;
}

.btn-nav {
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 500;
    transition: .3s ease;
}

.btn-back {
    background: linear-gradient(135deg,#111827,#1f2937);
    color: #fff;
}

.btn-next {
    background: linear-gradient(135deg,var(--primary),var(--primary2));
    color: #fff;
    box-shadow: 0 12px 24px rgba(37,99,235,.22);
}

.btn-nav:hover {
    transform: translateY(-2px);
    opacity: .96;
}

.stepper {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 18px 10px;
    position: relative;
}

    .stepper::before {
        content: '';
        position: absolute;
        left: 40px;
        right: 40px;
        top: 42px;
        height: 2px;
        background: linear-gradient(90deg, rgba(37,99,235,.14), rgba(34,197,94,.14));
        z-index: 0;
    }

.step {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 1;
    min-width: 110px;
}

    .step .circle {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        margin: 0 auto 8px;
        background: #e5e7eb;
        color: #9ca3af;
        font-weight: 700;
        transition: .35s ease;
        border: 3px solid #fff;
        box-shadow: 0 6px 18px rgba(0,0,0,.06);
    }

    .step .label {
        font-size: 13px;
        color: #c4c7ce;
        font-weight: 500;
        transition: .35s ease;
    }

    .step.active .circle,
    .step.completed .circle {
        background: linear-gradient(135deg,var(--primary),var(--primary2));
        color: #fff;
    }

    .step.active .label,
    .step.completed .label {
        color: var(--dark);
        font-weight: 600;
    }

.calendar-shell, .shift-shell {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    background: #fff;
    height: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.month-title {
    font-weight: 700;
    color: var(--dark);
    font-size: 1rem;
}

.nav-month {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--primary);
    font-size: 20px;
    display: grid;
    place-items: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 6px;
}

.calendar-days div {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    font-weight: 600;
    padding-bottom: 2px;
}

.date-box {
    /*aspect-ratio:0.1/0.1;*/
    min-height: 38px;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    transition: .22s ease;
    position: relative;
    box-shadow: 0 6px 14px rgba(17,24,39,.03);
    padding: 4px;
    font-size: 12px;
}

    .date-box strong {
        font-size: 13px;
        line-height: 1;
    }

    .date-box small {
        font-size: 10px;
        opacity: .75;
        line-height: 1.1;
    }

    .date-box:hover {
        transform: translateY(-2px);
        border-color: rgba(37,99,235,.35);
        box-shadow: 0 10px 20px rgba(37,99,235,.08);
    }

    .date-box.active {
        background: linear-gradient(135deg,var(--primary),var(--primary2));
        color: #fff;
        border-color: transparent;
    }

.appointment-shift-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.shift-block {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fbfdff;
}

.shift-row-title {
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: 8px;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 8px;
}

.slot-btn {
    border: 1px solid #dbeafe;
    background: #f8fbff;
    color: #1f2937;
    border-radius: 12px;
    padding: 8px 6px;
    font-weight: 800;
    font-size: 12px;
    transition: .2s ease;
    line-height: 1;
}

    .slot-btn:hover {
        transform: translateY(-2px);
        border-color: var(--primary);
    }

    .slot-btn.active {
        background: linear-gradient(135deg,var(--primary),var(--primary2));
        color: #fff;
        border-color: transparent;
    }

    .slot-btn.disabled {
        background: #f3f4f6;
        color: #9ca3af;
        border-color: #e5e7eb;
        cursor: not-allowed;
        transform: none;
    }

.info-list {
    display: grid;
    gap: 10px;
}

.info-item {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 14px;
    background: #f9fbff;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

    .info-item span {
        color: #6b7280;
        font-size: 13px;
    }

    .info-item strong {
        color: #111827;
        font-size: 13px;
        text-align: right;
    }

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
}

.price-box {
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 14px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

    .price-row.total {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 0;
    }

@media (max-width:992px) {
    .service-grid, .payment-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:768px) {
    .stepper {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 12px;
    }

    .step {
        min-width: 110px;
    }

    .service-grid, .payment-grid {
        grid-template-columns: 1fr;
    }

    .doctor-card {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
    }

    .btn-nav {
        width: 100%;
    }

    .slot-grid {
        grid-template-columns: repeat(1,1fr);
    }

    .calendar-grid {
        gap: 5px;
    }

    .info-item {
        flex-direction: column;
    }

        .info-item strong {
            text-align: left;
        }
}


/*-------Searchbar-----------*/

.search-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 520px;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: .2s ease-in-out;
}

    .search-wrap:focus-within {
        border-color: #4c84ff;
        box-shadow: 0 0 0 3px rgba(76,132,255,.12);
    }

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    color: #6c757d;
    background: #f8f9fa;
    font-size: 12px;
}

.search-input {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100%;
    height: 30px;
    padding: 0 14px;
    background: transparent;
    font-size: 12px;
}

    .search-input:focus {
        box-shadow: none !important;
    }

.test-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    /*padding: 16px;*/
    background: rgba(247, 247, 247, 0.60);
    cursor: pointer;
    transition: .25s ease;
}

    .test-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 28px rgba(37,99,235,.08);
        border-color: rgba(37,99,235,.35);
    }

    .test-card.selected {
        border: 2px solid #0d6efd;
        background: #eef6ff;
    }


.slot-btn.slot-booked {
    background-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    border-style: dashed;
}

/*.slot-btn.slot-free {
    background-color: #0d6efd;
    color: #fff;
}*/
