/* File: /wp-content/themes/khadim-hospital/css/doctor-finder.min.css */

/* 1. Main Search Bar & Results Dropdown Styling */
.hero-search-wrapper, .finder-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 1.5rem auto 0 auto;
    z-index: 99;
}
.search-input-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid rgba(0, 128, 128, 0.15);
    border-radius: 50px;
    padding: 0.25rem 0.5rem;
    box-shadow: 0 10px 30px rgba(11, 34, 64, 0.08);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.search-input-group:focus-within {
    border-color: #008080;
    box-shadow: 0 15px 40px rgba(0, 128, 128, 0.18);
    transform: translateY(-2px);
}
.search-icon {
    font-size: 1.25rem;
    padding: 0 0.75rem 0 1rem;
    color: #008080;
}
.search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    color: #0b2240;
    background: transparent;
    padding: 0.6rem 0;
}
.search-input::placeholder {
    color: #8899a6;
    transition: opacity 0.3s ease;
}

/* Floating Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(11, 34, 64, 0.06);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(11, 34, 64, 0.15);
    overflow: hidden;
    display: none;
    z-index: 999;
    max-height: 480px;
    overflow-y: auto;
}
.search-result-item {
    display: flex;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(11, 34, 64, 0.05);
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background: rgba(0, 128, 128, 0.03);
}
.result-left {
    margin-right: 1.25rem;
    flex-shrink: 0;
}
.result-avatar, .result-avatar-fallback {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    background: radial-gradient(circle, rgba(0,128,128,0.06) 0%, rgba(11,34,64,0.02) 100%);
    border: 1px solid rgba(0, 128, 128, 0.1);
}
.result-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
}
.result-avatar-fallback svg {
    width: 32px;
    height: 32px;
}
.result-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.result-first-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.result-doc-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0b2240;
    font-family: 'Poppins', sans-serif;
}
.result-dept-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(135deg, #008080 0%, #00a3a3 100%);
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
}
.result-specialty {
    font-size: 0.85rem;
    color: #555555;
    font-weight: 600;
}
.result-reason {
    font-size: 0.78rem;
    color: #008080;
    background: rgba(0, 128, 128, 0.04);
    border: 1px solid rgba(0, 128, 128, 0.08);
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    margin-top: 0.25rem;
    font-weight: 500;
}
.result-meta-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px dashed rgba(11, 34, 64, 0.06);
}
.result-timing {
    font-size: 0.75rem;
    color: #666666;
    font-weight: 600;
}
.result-actions {
    display: flex;
    gap: 0.75rem;
}
.result-view-profile, .result-book-btn {
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.result-view-profile {
    color: #666666;
}
.result-view-profile:hover {
    color: #0b2240;
}
.result-book-btn {
    color: #008080;
}
.result-book-btn:hover {
    color: #0b2240;
    text-shadow: 0 0 1px rgba(0,128,128,0.2);
}
.no-results {
    padding: 1.5rem;
    text-align: center;
    color: #666666;
    font-size: 0.95rem;
    font-style: italic;
}
mark {
    background: rgba(0, 128, 128, 0.12);
    color: #008080;
    font-weight: bold;
    padding: 0 2px;
    border-radius: 2px;
}

/* 2. Dedicated Finder Page Styles */
.finder-hero-section {
    padding: 9rem 1rem 4rem 1rem;
    background: radial-gradient(circle at top right, rgba(0,128,128,0.06) 0%, rgba(11,34,64,0.02) 100%);
    text-align: center;
}
.finder-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #0b2240;
    margin-bottom: 0.75rem;
    font-family: 'Poppins', sans-serif;
}
.finder-hero-sub {
    font-size: 1.15rem;
    color: #555555;
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
}
.finder-search-wrapper {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}
.finder-categories-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}
.finder-categories-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    color: #8899a6;
    margin-bottom: 1.25rem;
    text-align: center;
}
.finder-categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}
.category-pill-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    background: #ffffff;
    border: 1.5px solid rgba(0,128,128,0.1);
    color: #0b2240;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(11,34,64,0.02);
}
.category-pill-btn:hover, .category-pill-btn.active {
    background: #008080;
    color: #ffffff;
    border-color: #008080;
    box-shadow: 0 6px 15px rgba(0, 128, 128, 0.25);
    transform: translateY(-2px);
}
.finder-results-section {
    padding: 4rem 0 6rem 0;
    background: #fbfcfc;
    min-height: 400px;
}
.finder-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.finder-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}
@media (max-width: 1100px) {
    .finder-results-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .finder-results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .finder-results-grid { grid-template-columns: 1fr; }
}

/* 3. Interactive Multi-Step Booking Modal */
.booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 34, 64, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.booking-modal-overlay.show {
    display: flex;
    opacity: 1;
}
.booking-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 580px;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(11, 34, 64, 0.25);
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-sizing: border-box;
}
.booking-modal-overlay.show .booking-modal-card {
    transform: scale(1);
}
.booking-modal-header {
    background: #0b2240;
    padding: 1.5rem 2rem;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.booking-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    margin: 0;
}
.booking-modal-close {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s ease;
}
.booking-modal-close:hover {
    color: #ffffff;
}

/* Progress Indicator */
.booking-steps-nav {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: #f7fafc;
    border-bottom: 1px solid rgba(11, 34, 64, 0.05);
}
.step-nav-item {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #8899a6;
    letter-spacing: 0.5px;
    position: relative;
}
.step-nav-item.active {
    color: #008080;
}
.step-nav-item.completed {
    color: #0b2240;
}

/* Modal Body Forms */
.booking-modal-body {
    padding: 2rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}
.booking-step-content {
    display: none;
}
.booking-step-content.active {
    display: block;
    animation: modalStepFade 0.4s ease-out;
}
@keyframes modalStepFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Selected Doctor Info Card */
.selected-doctor-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 128, 128, 0.03);
    border: 1px solid rgba(0, 128, 128, 0.08);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}
.selected-doctor-avatar {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}
.selected-doctor-text {
    display: flex;
    flex-direction: column;
}
.selected-doctor-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0b2240;
}
.selected-doctor-specialty {
    font-size: 0.78rem;
    color: #555555;
    font-weight: 500;
}

/* Slots and Calendars grid */
.date-selector-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-input-date {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid #dcdcdc;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    color: #0b2240;
}
.form-input-date:focus {
    border-color: #008080;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.slot-btn {
    padding: 0.75rem;
    background: #ffffff;
    border: 1.5px solid rgba(11, 34, 64, 0.08);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0b2240;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}
.slot-btn:hover {
    border-color: #008080;
    color: #008080;
    background: rgba(0, 128, 128, 0.02);
}
.slot-btn.active {
    background: #008080;
    border-color: #008080;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 128, 128, 0.2);
}
.no-slots-alert {
    padding: 1rem;
    background: rgba(255, 0, 0, 0.02);
    border: 1px solid rgba(255, 0, 0, 0.08);
    color: #cc0000;
    border-radius: 10px;
    font-size: 0.85rem;
    text-align: center;
    font-weight: 600;
}

/* Patient Form field styling */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-group-modal {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.form-group-modal.full-width {
    grid-column: span 2;
}
.form-group-modal label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #0b2240;
    letter-spacing: 0.5px;
}
.form-input-text, .form-input-textarea, .form-input-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #dcdcdc;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    color: #0b2240;
    box-sizing: border-box;
}
.form-input-text:focus, .form-input-textarea:focus, .form-input-select:focus {
    border-color: #008080;
}

/* Booking confirmation step */
.booking-success-box {
    text-align: center;
    padding: 1.5rem 0;
}
.success-icon-badge {
    width: 65px;
    height: 65px;
    background: rgba(0, 128, 128, 0.1);
    color: #008080;
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
}
.success-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0b2240;
    margin-bottom: 0.5rem;
}
.success-text {
    font-size: 0.92rem;
    color: #555555;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.success-summary-card {
    background: #f7fafc;
    border: 1px solid rgba(11, 34, 64, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}
.summary-label {
    color: #666666;
    font-weight: 500;
}
.summary-val {
    color: #0b2240;
    font-weight: 700;
}

/* Button layouts for multi-step */
.booking-modal-footer {
    padding: 1.25rem 2rem 2rem 2rem;
    border-top: 1px solid rgba(11, 34, 64, 0.05);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.btn-modal {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}
.btn-modal.btn-back {
    background: #f0f0f0;
    color: #555555;
}
.btn-modal.btn-back:hover {
    background: #e5e5e5;
}
.btn-modal.btn-next {
    background: #008080;
    color: #ffffff;
    margin-left: auto;
}
.btn-modal.btn-next:hover {
    background: #0b2240;
}
.btn-modal.btn-close-final {
    background: #008080;
    color: #ffffff;
    width: 100%;
}
.btn-modal.btn-close-final:hover {
    background: #0b2240;
}

/* 4. Reception Dashboard Panel */
.reception-header-section {
    padding: 8rem 1rem 3rem 1rem;
    background: #0b2240;
    color: #ffffff;
    text-align: center;
}
.reception-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}
.reception-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}
.reception-main-content {
    padding: 4rem 0 6rem 0;
    background: #f7fafc;
    min-height: 450px;
}
.reception-table-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(11, 34, 64, 0.05);
    border: 1px solid rgba(11, 34, 64, 0.05);
    overflow: hidden;
    margin-top: 2rem;
}
.reception-table-wrapper {
    overflow-x: auto;
}
.reception-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.reception-table th {
    background: #0b2240;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1rem 1.5rem;
    letter-spacing: 0.5px;
}
.reception-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(11, 34, 64, 0.05);
    font-size: 0.88rem;
    color: #333333;
}
.reception-table tr:last-child td {
    border-bottom: none;
}
.reception-table tr:hover td {
    background: rgba(11, 34, 64, 0.01);
}
.reception-doc-meta {
    display: flex;
    flex-direction: column;
}
.reception-doc-name {
    font-weight: 700;
    color: #0b2240;
}
.reception-doc-dept {
    font-size: 0.72rem;
    color: #666666;
}
.status-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
}
.status-badge.pending {
    background: rgba(255, 140, 0, 0.1);
    color: #ff8c00;
}
.status-badge.confirmed {
    background: rgba(0, 128, 128, 0.1);
    color: #008080;
}
.status-badge.rejected {
    background: rgba(220, 20, 60, 0.1);
    color: #dc143c;
}
.status-badge.rescheduled {
    background: rgba(30, 144, 255, 0.1);
    color: #1e90ff;
}
.reception-actions-cell {
    display: flex;
    gap: 0.5rem;
}
.reception-action-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}
.reception-action-btn.btn-confirm {
    background: #008080;
    color: #ffffff;
}
.reception-action-btn.btn-confirm:hover {
    background: #0b2240;
}
.reception-action-btn.btn-reject {
    background: #dc143c;
    color: #ffffff;
}
.reception-action-btn.btn-reject:hover {
    background: #0b2240;
}
.reception-action-btn.btn-resched {
    background: #1e90ff;
    color: #ffffff;
}
.reception-action-btn.btn-resched:hover {
    background: #0b2240;
}
.reception-empty-state {
    padding: 4rem 2rem;
    text-align: center;
    color: #666666;
    font-size: 1rem;
    font-style: italic;
}
.reception-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
