/* =========================================================
   Ollato Student Panel - Expert Counselling Page
========================================================= */

.expert-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.expert-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
    padding: 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.16), transparent 32%),
        radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.14), transparent 34%),
        linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid #dbe3ef;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.expert-eyebrow {
    margin: 0 0 8px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.expert-hero h1 {
    margin: 0;
    color: #0f172a;
    font-size: 32px;
    font-weight: 950;
    line-height: 1.15;
}

.expert-hero p {
    max-width: 720px;
    margin: 12px 0 0;
    color: #64748b;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.65;
}

.expert-hero-card {
    min-width: 190px;
    padding: 20px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.expert-hero-card span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.expert-hero-card strong {
    display: block;
    margin-top: 8px;
    color: #16a34a;
    font-size: 24px;
    font-weight: 950;
}

.expert-hero-card p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

/* Toolbar */
.expert-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 14px;
    margin-bottom: 22px;
}

.expert-search-box input,
.expert-toolbar select {
    width: 100%;
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid #dbe3ef;
    background: #ffffff;
    color: #0f172a;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 750;
    outline: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.expert-search-box input:focus,
.expert-toolbar select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

/* Grid */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.expert-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
    transition: 0.25s ease;
}

.expert-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: 0 22px 48px rgba(37, 99, 235, 0.12);
}

.expert-card-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    padding-right: 128px;
}

.expert-photo {
    width: 82px;
    height: 82px;
    border-radius: 22px;
    overflow: hidden;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    flex: 0 0 auto;
}

.expert-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-basic {
    min-width: 0;
}

.expert-status {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
}

.expert-status.available {
    color: #047857;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
}

.expert-basic h2 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.2;
}

.expert-basic p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
}

/* Booking count badge */
.expert-booking-count {
    position: absolute;
    top: 18px;
    right: 18px;
    min-width: 108px;
    padding: 9px 12px;
    border-radius: 18px;
    text-align: center;
    z-index: 10;
    border: 1px solid transparent;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10);
}

.expert-booking-count span {
    display: block;
    margin-bottom: 4px;
    font-size: 9px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
}

.expert-booking-count strong {
    display: block;
    font-size: 16px;
    font-weight: 950;
    line-height: 1;
}

.expert-booking-count.available {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #047857;
    border-color: #86efac;
}

.expert-booking-count.full {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
}

.expert-card.is-full {
    opacity: 0.9;
}

.expert-card.is-full .expert-photo,
.expert-card.is-full .expert-basic,
.expert-card.is-full .expert-info-list {
    filter: grayscale(0.15);
}

/* Info */
.expert-info-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.expert-info-list div {
    padding: 12px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.expert-info-list span {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.expert-info-list strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.45;
}

/* Button */
.expert-book-btn {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 15px;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    font-size: 14px;
    font-weight: 950;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
    transition: 0.22s ease;
}

.expert-book-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

.expert-book-btn.disabled,
.expert-book-btn:disabled {
    cursor: not-allowed;
    background: #94a3b8 !important;
    box-shadow: none !important;
    opacity: 0.9;
}

.expert-book-btn.disabled:hover,
.expert-book-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Empty */
.expert-empty-state {
    display: none;
    padding: 34px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    text-align: center;
}

.expert-empty-state.show {
    display: block;
}

.expert-empty-state h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 950;
}

.expert-empty-state p {
    margin: 0;
    color: #64748b;
}

/* Modal */
.booking-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(6px);
}

.booking-modal-overlay.show {
    display: flex;
}

.booking-modal {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.24);
}

.booking-modal-large {
    max-width: 880px;
}

.booking-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    font-size: 22px;
    font-weight: 850;
    z-index: 5;
}

.booking-modal-header {
    padding: 26px 28px 18px;
    border-bottom: 1px solid #e2e8f0;
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 34%),
        linear-gradient(135deg, #ffffff, #f8fbff);
}

.booking-modal-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 26px;
    font-weight: 950;
}

.booking-modal-header p {
    margin: 9px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.booking-form {
    padding: 24px 28px 28px;
}

.booking-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 14px;
}

.booking-section-title span {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.booking-section-title h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
}

.student-booking-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.student-booking-info div {
    padding: 13px 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.student-booking-info span {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.student-booking-info strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
    word-break: break-word;
}

.booking-selected-expert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.booking-selected-expert span {
    display: block;
    margin-bottom: 4px;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.booking-selected-expert strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 950;
}

.booking-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #dbe3ef;
    background: #ffffff;
    color: #0f172a;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 700;
    outline: none;
}

.form-group input,
.form-group select {
    min-height: 46px;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.booking-message {
    display: none;
    align-items: flex-start;
    gap: 12px;
    margin: 8px 0 16px;
    padding: 16px;
    border-radius: 18px;
    color: #047857;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
}

.booking-message.show {
    display: flex;
}

.booking-success-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #16a34a;
    color: #ffffff;
    font-size: 20px;
    font-weight: 950;
    flex: 0 0 auto;
}

.booking-message h3 {
    margin: 0 0 4px;
    color: #047857;
    font-size: 17px;
    font-weight: 950;
}

.booking-message p {
    margin: 0;
    color: #065f46;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.5;
}

.booking-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.booking-cancel-btn,
.booking-submit-btn {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 950;
}

.booking-cancel-btn {
    color: #334155;
    background: #ffffff;
    border: 1px solid #cbd5e1;
}

.booking-submit-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border: 0;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.booking-submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 992px) {
    .expert-hero {
        flex-direction: column;
    }

    .expert-hero-card {
        width: 100%;
    }

    .expert-grid {
        grid-template-columns: 1fr;
    }

    .student-booking-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .expert-hero {
        padding: 20px;
        border-radius: 22px;
    }

    .expert-hero h1 {
        font-size: 25px;
    }

    .expert-toolbar {
        grid-template-columns: 1fr;
    }

    .expert-card {
        padding: 16px;
        border-radius: 20px;
    }

    .expert-booking-count {
        position: static;
        display: inline-block;
        margin-bottom: 14px;
        min-width: 112px;
    }

    .expert-card-top {
        padding-right: 0;
        align-items: flex-start;
    }

    .expert-photo {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }

    .expert-basic h2 {
        font-size: 18px;
    }

    .booking-modal {
        border-radius: 22px;
    }

    .booking-modal-header,
    .booking-form {
        padding-left: 20px;
        padding-right: 20px;
    }

    .booking-form-grid,
    .student-booking-info {
        grid-template-columns: 1fr;
    }

    .booking-actions {
        flex-direction: column;
    }

    .booking-cancel-btn,
    .booking-submit-btn {
        width: 100%;
    }
}



.booking-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(6px);
}

.booking-modal-overlay.show {
    display: flex !important;
}

.booking-modal {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.24);
}

.booking-modal-large {
    max-width: 880px;
}


/* Add this to assets/css/experts.css */
.expert-basic {
    min-width: 0;
    flex: 1;
}

.expert-basic .expert-title {
    margin: 4px 0 0;
}

.expert-title-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    margin-top: 12px;
}

.expert-title-detail {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.expert-title-detail span {
    font-size: 12px;
    line-height: 1.3;
    opacity: 0.7;
}

.expert-title-detail strong {
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

