/*
 * SehatNexa — lab-detail.css
 * Brand: #1C3F8F navy | #00A8CC teal | #27C96A green | #00C9A7 teal-green | #0D2B6E dark
 */

/* ── LAB PROFILE SECTION ──────────────────────────────────── */
.lab-profile-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #071124 0%, #0D2B6E 50%, #1C3F8F 100%);
    position: relative;
    overflow: hidden;
}

.lab-profile-section::before {
    content: '';
    position: absolute;
    top: -30%; right: -10%;
    width: 400px; height: 400px;
    background: rgba(0,168,204,0.1);
    border-radius: 50%;
    pointer-events: none;
}

.lab-profile-section::after {
    content: '';
    position: absolute;
    bottom: -20%; left: -8%;
    width: 300px; height: 300px;
    background: rgba(39,201,106,0.08);
    border-radius: 50%;
    pointer-events: none;
}

.lab-profile-card {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(13,43,110,0.2);
    border: 1px solid rgba(0,168,204,0.15);
    position: relative;
    z-index: 1;
}

/* ── LAB IMAGE ────────────────────────────────────────────── */
.lab-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(28,63,143,0.15);
}

.lab-image {
    width: 100%; height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lab-image-wrapper:hover .lab-image { transform: scale(1.05); }

/* ── LAB INFO ─────────────────────────────────────────────── */
.lab-info { padding-left: 30px; }

.lab-header { margin-bottom: 30px; }

.lab-name {
    font-size: 2.5rem; font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #1C3F8F 0%, #00A8CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lab-rating { display: flex; align-items: center; gap: 10px; }
.stars { color: #ffc107; font-size: 1.2rem; }
.rating-text { color: #64748b; font-weight: 600; }

/* ── DETAIL ITEMS ─────────────────────────────────────────── */
.lab-details { margin-bottom: 30px; }

.detail-item {
    display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px;
}

.detail-item i {
    color: #00A8CC; font-size: 1.2rem;
    margin-top: 2px; width: 24px;
}

.detail-content { flex: 1; }

.detail-label {
    display: block; font-weight: 600;
    color: #0D2B6E; margin-bottom: 4px; font-size: 0.9rem;
}

.detail-value { color: #475569; font-weight: 500; line-height: 1.5; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.lab-actions { display: flex; gap: 15px; flex-wrap: wrap; }

.btn-appointment-large {
    background: linear-gradient(135deg, #1C3F8F 0%, #00A8CC 100%);
    color: white; border: none; border-radius: 12px;
    padding: 15px 30px; font-weight: 600; font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(28,63,143,0.3);
}
.btn-appointment-large:hover {
    background: linear-gradient(135deg, #27C96A 0%, #00C9A7 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,168,204,0.35);
    color: white;
}

.btn-call-large {
    border: 2px solid #1C3F8F;
    color: #1C3F8F; border-radius: 12px;
    padding: 15px 30px; font-weight: 600; font-size: 1rem;
    transition: all 0.3s ease; background: transparent;
}
.btn-call-large:hover {
    background: linear-gradient(135deg, #1C3F8F, #00A8CC);
    color: white; border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28,63,143,0.3);
}

/* ── SECTION HEADER ───────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 50px; }

.section-title {
    font-size: 2.5rem; font-weight: 800;
    color: #0D2B6E; margin-bottom: 10px;
}

.section-subtitle { color: #00A8CC; font-size: 1.1rem; font-weight: 500; }

/* ── REVIEWS SECTION ──────────────────────────────────────── */
.lab-reviews-section {
    background: linear-gradient(135deg, #E8F7FF 0%, #F0FFF8 100%);
}

/* ── REVIEW FORM CARD ─────────────────────────────────────── */
.review-form-card {
    background: white; border-radius: 20px;
    padding: 40px; margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(28,63,143,0.1);
    border: 1px solid rgba(0,168,204,0.12);
}

.review-form-header { text-align: center; margin-bottom: 30px; }

.review-form-header h3 {
    color: #0D2B6E; font-size: 1.8rem; font-weight: 700; margin-bottom: 10px;
}

.review-form-header p { color: #64748b; font-size: 1rem; }

.review-form .form-group { margin-bottom: 25px; }

.review-form .form-label {
    display: block; margin-bottom: 8px;
    font-weight: 600; color: #0D2B6E; font-size: 0.95rem;
}

.review-form .form-control {
    width: 100%; padding: 12px 15px;
    border: 2px solid rgba(0,168,204,0.2);
    border-radius: 10px; font-size: 1rem;
    transition: all 0.3s ease;
}

.review-form .form-control:focus {
    border-color: #00A8CC;
    box-shadow: 0 0 0 3px rgba(0,168,204,0.12);
    outline: none;
}

/* ── STAR RATING ──────────────────────────────────────────── */
.rating-input { display: flex; align-items: center; gap: 15px; }
.star-rating { display: flex; gap: 5px; }
.star-rating input[type="radio"] { display: none; }
.star-rating .star { font-size: 1.5rem; color: #ddd; cursor: pointer; transition: color 0.2s ease; }
.star-rating .star:hover { color: #ffc107; }
.rating-text { color: #64748b; font-size: 0.9rem; }

/* ── SUBMIT BUTTON ────────────────────────────────────────── */
.btn-submit-review {
    background: linear-gradient(135deg, #1C3F8F 0%, #00A8CC 100%);
    color: white; border: none;
    padding: 14px 40px; border-radius: 50px;
    font-size: 1rem; font-weight: 700; cursor: pointer;
    box-shadow: 0 5px 15px rgba(28,63,143,0.3);
    transition: all 0.3s ease;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-submit-review:hover {
    background: linear-gradient(135deg, #27C96A 0%, #00C9A7 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,168,204,0.35);
    color: white;
}

/* ── REVIEWS GRID ─────────────────────────────────────────── */
.reviews-grid { display: grid; gap: 25px; margin-bottom: 40px; }

.review-card {
    background: white; border-radius: 16px; padding: 30px;
    box-shadow: 0 5px 20px rgba(28,63,143,0.07);
    border: 1px solid rgba(0,168,204,0.1);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(28,63,143,0.12);
    border-color: rgba(0,168,204,0.25);
}

.review-header {
    display: flex; justify-content: space-between;
    align-items: flex-start; margin-bottom: 20px;
}

.reviewer-info { display: flex; align-items: center; gap: 15px; }

.reviewer-avatar {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, #1C3F8F 0%, #00A8CC 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem;
}

.reviewer-name { font-size: 1.1rem; font-weight: 600; color: #0D2B6E; margin-bottom: 5px; }
.review-date   { color: #64748b; font-size: 0.85rem; }
.review-rating { display: flex; gap: 2px; }
.review-rating i { color: #ffc107; font-size: 1rem; }

.review-content { margin-bottom: 20px; }
.review-content p { color: #0D2B6E; line-height: 1.6; font-size: 1rem; }

.review-footer { border-top: 1px solid #E8F7FF; padding-top: 15px; }
.review-actions { display: flex; gap: 15px; }

.btn-helpful,
.btn-report {
    background: none; border: 1px solid rgba(0,168,204,0.2);
    padding: 8px 15px; border-radius: 20px;
    font-size: 0.85rem; cursor: pointer;
    transition: all 0.3s ease; color: #64748b;
}

.btn-helpful:hover {
    border-color: #27C96A; color: #27C96A;
    background: rgba(39,201,106,0.08);
}

.btn-report:hover {
    border-color: #ef4444; color: #ef4444;
    background: rgba(239,68,68,0.08);
}

/* ── LOAD MORE ────────────────────────────────────────────── */
.load-more-container { text-align: center; }

.btn-load-more {
    background: linear-gradient(135deg, #1C3F8F 0%, #00A8CC 100%);
    color: white; border: none;
    padding: 12px 30px; border-radius: 50px;
    font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: all 0.3s ease;
}
.btn-load-more:hover {
    background: linear-gradient(135deg, #27C96A 0%, #00C9A7 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,201,167,0.3);
}

/* ── NO REVIEWS ───────────────────────────────────────────── */
.no-reviews { text-align: center; padding: 60px 20px; color: #64748b; }
.no-reviews i { font-size: 4rem; color: #00A8CC; margin-bottom: 20px; opacity: 0.6; }
.no-reviews h3 { font-size: 1.5rem; margin-bottom: 10px; color: #0D2B6E; }
.no-reviews p  { font-size: 1rem; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .lab-profile-card { padding: 20px; }
    .lab-info { padding-left: 0; margin-top: 20px; }
    .lab-name { font-size: 1.8rem; }
    .lab-actions { justify-content: center; }
    .btn-appointment-large, .btn-call-large { flex: 1; text-align: center; }
    .review-form-card { padding: 25px; }
    .review-header { flex-direction: column; gap: 15px; }
    .reviewer-info { width: 100%; }
    .review-rating { align-self: flex-start; }
    .review-actions { justify-content: center; }
    .btn-helpful, .btn-report { flex: 1; text-align: center; }
}

/* ========================================================= */
/* ── NAYA SECTION: AVAILABLE TESTS (Sirf Yeh Add Hua Hai) ── */
/* ========================================================= */

.lab-tests-section {
    background-color: #ffffff;
    padding: 60px 0;
}

.tests-list-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(28,63,143,0.08);
    border: 1px solid rgba(0,168,204,0.12);
}

.tests-table {
    margin-bottom: 0;
    width: 100%;
}

.tests-table thead th {
    background: #f8fafc;
    color: #0D2B6E;
    font-weight: 700;
    border-bottom: 2px solid rgba(0,168,204,0.2);
    padding: 15px;
    white-space: nowrap;
}

.tests-table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

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

.test-name {
    color: #0D2B6E;
    font-size: 1.05rem;
}

.test-desc {
    font-size: 0.9rem;
    color: #64748b;
    display: block;
    max-width: 300px;
}

.test-price {
    color: #27C96A;
    font-weight: 700;
    font-size: 1.1rem;
}

.price-na {
    color: #ef4444;
    font-size: 0.9rem;
    font-weight: 600;
}

/* WhatsApp & Book Buttons */
.btn-wa-ask, .btn-book-test {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-wa-ask {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.btn-wa-ask:hover {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-book-test {
    background: linear-gradient(135deg, #1C3F8F 0%, #00A8CC 100%);
    color: white;
    border: none;
}

.btn-book-test:hover {
    background: linear-gradient(135deg, #27C96A 0%, #00C9A7 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0,168,204,0.3);
}

/* No Tests Found */
.no-tests {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.no-tests i {
    font-size: 4rem;
    color: #00A8CC;
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-tests h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #0D2B6E;
}

.no-tests p {
    font-size: 1rem;
}

/* Available Tests Responsive */
@media (max-width: 768px) {
    .tests-list-card {
        padding: 15px;
    }
    .tests-table thead {
        display: none;
    }
    .tests-table, .tests-table tbody, .tests-table tr, .tests-table td {
        display: block;
        width: 100%;
    }
    .tests-table tr {
        margin-bottom: 15px;
        border: 1px solid #f1f5f9;
        border-radius: 10px;
        padding: 10px;
    }
    .tests-table td {
        border: none;
        padding: 8px 10px;
        text-align: left !important;
    }
    .test-desc {
        max-width: 100%;
    }
    .btn-wa-ask, .btn-book-test {
        width: 100%;
        justify-content: center;
    }
}
/* ========================================================= */
/* ── NAYA SECTION: LAB NOTES / MESSAGE ───────────────────── */
/* ========================================================= */

.lab-notes-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.notes-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(28,63,143,0.08);
    border: 1px solid rgba(0,168,204,0.15);
    border-left: 6px solid #00A8CC;
    position: relative;
    overflow: hidden;
}

.notes-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(0,168,204,0.05);
    border-radius: 50%;
}

.notes-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1C3F8F 0%, #00A8CC 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0,168,204,0.3);
}

.notes-content {
    flex: 1;
}

.notes-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0D2B6E;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notes-text {
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
    padding-left: 5px;
    border-left: 3px solid rgba(0,168,204,0.3);
    padding-left: 15px;
}

/* Responsive Notes */
@media (max-width: 576px) {
    .notes-card {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
    .notes-text {
        border-left: none;
        border-top: 3px solid rgba(0,168,204,0.3);
        padding-left: 0;
        padding-top: 15px;
    }
}
.lab-hospitals-section .info-card {
    background: #fff;
    border: 1px solid #e8eef3;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.lab-hospitals-section .info-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f7fafc;
    border-bottom: 1px solid #e8eef3;
}

.lab-hospitals-section .info-card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0f2b3d;
}

.lab-hospitals-section .info-card-header h5 i {
    color: #00A8CC;
    margin-right: 6px;
}

.lab-hospitals-section .info-card-body {
    padding: 12px 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.lab-hospitals-section .hosp-chip-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    background: #f8fbfd;
    border: 1px solid #eef4f8;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.lab-hospitals-section .hosp-chip-item:hover {
    background: #eef7fb;
    border-color: #b8e3f0;
    transform: translateY(-1px);
}

.lab-hospitals-section .hc-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00A8CC;
    color: #fff;
    border-radius: 9px;
    font-size: 0.95rem;
}

.lab-hospitals-section .hc-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: #0f2b3d;
    line-height: 1.3;
}

.lab-hospitals-section .hc-city {
    font-size: 0.78rem;
    color: #6b8299;
    margin-top: 3px;
}

@media (max-width: 576px) {
    .lab-hospitals-section .info-card-body {
        grid-template-columns: 1fr;
    }
}