/**
 * Lab Test Manager Plugin Styles
 * Medical-themed design with clean, professional aesthetics
 */

/* Container and Wrapper */
.lab-test-single-container {
    max-width: 1650px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: transparent;
}

.lab-test-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

/* Left Content Area */
.lab-test-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.lab-test-content-inner {
    padding: 40px;
}

/* Header Section */
.lab-test-header {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e8eef5;
}

.lab-test-thumbnail {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.lab-test-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.lab-test-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.lab-test-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.lab-test-category {
    display: inline-block;
    padding: 6px 16px;
    background: #046c42;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Content Sections */
.lab-test-section {
    margin-bottom: 35px;
}

.lab-test-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #046c42;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #046c42;
}

.lab-test-section p,
.lab-test-text-content {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
    margin: 0;
}

.lab-test-main-content {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
}

/* Bullet Point List */
.lab-test-bullet-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.lab-test-bullet-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
}

.lab-test-bullet-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0;
    color: #046c42;
    font-size: 18px;
    font-weight: 700;
}

.lab-test-bullet-list li:hover {
    color: #2d3748;
}

.lab-test-bullet-list li:hover::before {
    color: #035a36;
}


/* Details Grid */
.lab-test-details-section {
    margin-top: 40px;
}

.lab-test-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.lab-test-detail-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f6faff 100%);
    border-radius: 10px;
    border: 2px solid #eaf4ff;
    transition: all 0.3s ease;
}

.lab-test-detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(4, 108, 66, 0.15);
}

.lab-test-detail-card.price-card {
    background: #046c42;
    border-color: #046c42;
}

.lab-test-details-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #046c42;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
}

.detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    color: #046c42;
    flex-shrink: 0;
}

.price-card .detail-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 13px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-card .detail-label {
    color: rgba(255, 255, 255, 0.8);
}

.detail-value {
    font-size: 18px;
    font-weight: 600;
    color: #1a3a5c;
}

.price-value {
    font-size: 24px;
    color: #ffffff;
}

/* Right Sidebar */
.lab-test-sidebar {
    position: relative;
}

.lab-test-sidebar-sticky {
    position: sticky;
    top: 30px;
}

/* Booking Form */
.lab-test-booking-form-wrapper {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.lab-test-booking-form {
    padding: 25px 20px;
}

.lab-test-booking-form h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px 0;
    padding: 0;
    border: none;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-group label .required {
    color: #dc2626;
    margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #9ca3af;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #046c42;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(4, 108, 66, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 70px;
}

/* Date Input Specific Styles */
.form-group input[type="date"] {
    position: relative;
    z-index: 1;
}

.form-group input[type="date"]:focus {
    z-index: 10;
}


/* Submit Button */
.form-group.form-actions {
    margin-top: 20px;
    text-align: right;
}

.lab-test-submit-btn {
    display: inline-block;
    min-width: 120px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #046c42;
    background: #ffffff;
    border: 2px solid #046c42;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
}

.lab-test-submit-btn:hover {
    background: #046c42;
    color: #ffffff;
    transform: none;
    box-shadow: 0 2px 8px rgba(4, 108, 66, 0.2);
}

.lab-test-submit-btn:active {
    transform: scale(0.98);
}

.lab-test-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ffffff;
    color: #046c42;
}

/* Form Messages */
.lab-test-form-messages {
    padding: 0;
    margin: 0;
}

.lab-test-message {
    padding: 15px 20px;
    margin: 0 0 20px 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

.lab-test-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.lab-test-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WhatsApp Button */
.lab-test-whatsapp {
    margin-top: 15px;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 30px;
    background: #25d366;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* Loading State */
.lab-test-booking-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.lab-test-booking-form.loading .lab-test-submit-btn::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ====================================
   Breadcrumb Navigation
   ==================================== */

.lab-test-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.5;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #046c42;
}

.lab-test-breadcrumbs a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.lab-test-breadcrumbs a:hover {
    color: #046c42;
}

.breadcrumb-separator {
    color: #9ca3af;
    font-weight: 400;
    user-select: none;
    margin: 0 4px;
}

.breadcrumb-current {
    color: #046c42;
    font-weight: 600;
}

/* ====================================
   Archive/Category Page Styles
   ==================================== */

/* Archive Container */
.lab-test-archive-container {
    max-width: 1650px;
    margin: 0 auto;
    padding: 40px 20px;
}

.lab-test-archive-wrapper {
    width: 100%;
}

/* Archive Header */
.lab-test-archive-header {
    text-align: left;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid #046c42;
}

.lab-test-archive-header .archive-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a3a5c;
    margin: 0 0 15px 0;
    text-transform: capitalize;
    text-align: center;
}

.lab-test-archive-header .archive-description {
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
    max-width: 1300px;
    margin: 0 auto;
}

/* Grid Layout */
.lab-tests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Test Card */
.lab-test-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e8eef5;
}

.lab-test-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(4, 108, 66, 0.15);
    border-color: #046c42;
}

/* Card Image */
.lab-test-card-image {
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    height: 220px;
}

.lab-test-card-image a {
    display: block;
    height: 100%;
}

.lab-test-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.lab-test-card:hover .lab-test-card-image img {
    transform: scale(1.08);
}

.lab-test-price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #046c42;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(4, 108, 66, 0.3);
}

/* Card Content */
.lab-test-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.lab-test-card-title {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.lab-test-card-title a {
    color: #1a3a5c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lab-test-card-title a:hover {
    color: #046c42;
}

.lab-test-card-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #4a5568;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

/* Card Meta */
.lab-test-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #e8eef5;
}

.lab-test-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.lab-test-meta-item svg {
    color: #046c42;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
}

/* Read More Button */
.lab-test-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #046c42;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    align-self: flex-start;
    width: auto;
    box-sizing: border-box;
}

.lab-test-card-button svg {
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    flex-shrink: 0;
}

.lab-test-card-button:hover {
    background: #035a36 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(4, 108, 66, 0.3);
    text-decoration: none !important;
}

.lab-test-card-button:hover svg {
    transform: translateX(4px);
}

/* Pagination */
.lab-test-pagination {
    margin-top: 60px;
    text-align: center;
}

.lab-test-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lab-test-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #ffffff;
    color: #1a3a5c;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #e8eef5;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.lab-test-pagination .page-numbers:hover,
.lab-test-pagination .page-numbers.current {
    background: #046c42;
    color: #ffffff;
    border-color: #046c42;
}

.lab-test-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* No Results */
.lab-test-no-results {
    text-align: center;
    padding: 80px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #d1d5db;
}

.lab-test-no-results h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 15px 0;
}

.lab-test-no-results p {
    font-size: 16px;
    color: #718096;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .lab-test-wrapper {
        grid-template-columns: 1fr;
    }

    .lab-test-sidebar-sticky {
        position: relative;
        top: 0;
    }

    /* Archive Grid - 2 columns on tablet */
    .lab-tests-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .lab-test-archive-header .archive-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .lab-test-single-container {
        padding: 20px 15px;
    }

    .lab-test-content-inner {
        padding: 25px 20px;
    }

    .lab-test-booking-form {
        padding: 20px;
    }

    .lab-test-title {
        font-size: 26px;
    }

    .lab-test-section h2 {
        font-size: 20px;
    }

    .lab-test-details-grid {
        grid-template-columns: 1fr;
    }

    /* Archive Grid - 1 column on mobile */
    .lab-tests-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .lab-test-archive-container {
        padding: 30px 15px;
    }

    .lab-test-archive-header {
        margin-bottom: 35px;
    }

    .lab-test-archive-header .archive-title {
        font-size: 30px;
    }

    .lab-test-card-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .lab-test-title {
        font-size: 22px;
    }

    .lab-test-section h2 {
        font-size: 18px;
    }

    .lab-test-booking-form h3 {
        font-size: 18px;
    }
}