/* Custom CSS for ConsultHub - Consultant Directory */

:root {
    --primary-color: #241D56;
    --primary-dark: #1a1540;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --purple-color: #6f42c1;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, #241D56 0%, #3d3480 100%);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.125);
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --transition: all 0.3s ease;
}

/* Bootstrap Primary Color Overrides */
.text-primary {
    color: #241D56 !important;
}

.bg-primary {
    background-color: #241D56 !important;
}

.btn-primary {
    background-color: #241D56 !important;
    border-color: #241D56 !important;
}

.btn-primary:hover {
    background-color: #1a1540 !important;
    border-color: #1a1540 !important;
}

.btn-outline-primary {
    color: #241D56 !important;
    border-color: #241D56 !important;
}

.btn-outline-primary:hover {
    background-color: #241D56 !important;
    border-color: #241D56 !important;
    color: white !important;
}

.bg-primary.bg-opacity-10 {
    background-color: rgba(36, 29, 86, 0.1) !important;
}

.border-primary {
    border-color: #241D56 !important;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark-color);
    background-color: #fff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
}

.text-purple {
    color: var(--purple-color) !important;
}

/* Navbar Styles */
.navbar {
    padding: 0.75rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.5rem;
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-color) !important;
    transition: var(--transition);
    padding: 0.5rem 1rem !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    padding: 4rem 0;
}

.hero-section h1 {
    font-size: 2.75rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
}

.search-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-container .form-control,
.search-container .form-select {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.search-container .form-control:focus,
.search-container .form-select:focus {
    background-color: #fff;
    box-shadow: none;
}

.search-container .input-group-text {
    padding-left: 1rem;
}

/* Consultant Cards */
.consultant-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.consultant-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.consultant-card .card-img-container {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.consultant-card .card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.consultant-card:hover .card-img {
    transform: scale(1.08);
}

.consultant-card .status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.consultant-card .card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.consultant-card .consultant-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.consultant-card .consultant-specialty {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.consultant-card .consultant-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.consultant-card .consultant-rating .stars {
    color: var(--warning-color);
}

.consultant-card .consultant-rating .count {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.consultant-card .consultant-bio {
    font-size: 0.875rem;
    color: var(--secondary-color);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.consultant-card .card-footer {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.consultant-card .price {
    font-weight: 600;
    color: var(--primary-color);
}

.consultant-card .price span {
    font-weight: 400;
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* Status Badge Styles */
.status-online {
    background-color: var(--success-color);
}

.status-offline {
    background-color: var(--secondary-color);
}

.status-busy {
    background-color: var(--danger-color);
}

/* Category Cards */
.category-card {
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.category-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(13, 110, 253, 0.1) 100%);
}

.category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.05) 100%);
}

/* Step Cards */
.step-card {
    position: relative;
}

.step-number .badge {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Pagination */
.pagination .page-link {
    border: none;
    color: var(--secondary-color);
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.5rem !important;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
}

/* View Toggle */
[data-view].active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* List View */
.list-view > div {
    flex: 0 0 100%;
    max-width: 100%;
}

.list-view .consultant-card {
    flex-direction: row;
    align-items: stretch;
}

.list-view .card-img-container {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    padding-top: 0;
    height: 180px;
    border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
}

.list-view .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-view .consultant-bio {
    -webkit-line-clamp: 2;
}

.list-view .card-footer {
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 0.75rem;
    border-top: none;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
    min-width: 140px;
}

@media (max-width: 767px) {
    .list-view .consultant-card {
        flex-direction: column;
    }
    
    .list-view .card-img-container {
        width: 100%;
        max-width: 100%;
        padding-top: 60%;
        height: auto;
        border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    }
    
    .list-view .card-footer {
        flex-direction: row;
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    }
}

/* Footer */
.footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

/* Profile Page Specific Styles */
.profile-hero {
    background: var(--gradient-hero);
    padding: 3rem 0;
    color: white;
}

.profile-hero .breadcrumb-item a,
.profile-hero .breadcrumb-item,
.profile-hero .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.85);
}

.profile-hero .breadcrumb-item a:hover {
    color: white;
}

.profile-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

.profile-hero,
.profile-hero h1,
.profile-hero h2,
.profile-hero h3,
.profile-hero h4,
.profile-hero h5,
.profile-hero p,
.profile-hero span,
.profile-hero div,
.profile-hero .lead,
.profile-hero .fw-semibold,
.profile-hero .display-5 {
    color: white !important;
}

.profile-hero .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.profile-hero .profile-stat-value {
    color: white !important;
    font-weight: 700;
}

.profile-hero .profile-stat-label {
    color: rgba(255, 255, 255, 0.85) !important;
}

.profile-hero .badge.bg-primary {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.profile-hero .stars {
    color: #ffc107 !important;
}

.profile-hero .tag {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.profile-hero .tags-container {
    margin-top: 1rem;
}

.profile-image-main {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: var(--shadow-lg);
}

.profile-gallery {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.profile-gallery-item {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

.profile-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-gallery-item:hover,
.profile-gallery-item.active {
    border-color: var(--primary-color);
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.profile-stat-label {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.booking-card {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.availability-list {
    list-style: none;
    padding: 0;
}

.availability-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.availability-list li:last-child {
    border-bottom: none;
}

.review-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.review-author-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.review-author-initials {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #241D56;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #f0f0f0;
    color: var(--secondary-color);
    padding: 0.375rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
}

/* Gradient Button Styles */
.btn-gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
}

.btn-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    border: none;
    color: white;
}

/* Button Hover Effects */
#payNowBtn:hover,
.btn-call:hover,
.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
    filter: brightness(1.05);
}

#payNowBtn:active,
.btn-call:active,
.btn-pay:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

#payNowBtn,
.btn-call,
.btn-pay {
    transition: all 0.3s ease;
}

/* View Profile Link */
.card-footer a.text-primary:hover {
    text-decoration: underline !important;
}

/* Call Button Animation */
.btn-call {
    position: relative;
    overflow: hidden;
}

.btn-call::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-call:hover::before {
    width: 300px;
    height: 300px;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .profile-image-main {
        width: 180px;
        height: 180px;
    }
    
    .profile-stats {
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .search-container {
        padding: 1rem !important;
    }
    
    .category-card {
        padding: 1rem !important;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .profile-hero {
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .profile-gallery {
        justify-content: center;
    }
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-icon {
    font-size: 4rem;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}



.payment-page {
    min-height: calc(100vh - 70px);
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #f0f0ff 100%);
    padding: 2rem 0 4rem;
}

.payment-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(36, 29, 86, 0.10);
    overflow: hidden;
    max-width: 520px;
    margin: 0 auto;
}

.payment-card-header {
    background: #241D56;
    padding: 1.75rem 2rem;
    text-align: center;
}

    .payment-card-header h2 {
        color: #fff;
        font-size: 1.4rem;
        margin: 0;
    }

    .payment-card-header p {
        color: rgba(255,255,255,0.7);
        font-size: 0.9rem;
        margin: 0.5rem 0 0;
    }

.payment-card-body {
    padding: 2rem;
}

.order-summary {
    background: #f8f7fd;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

    .order-summary .consultant-info {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #e9e5f5;
    }

        .order-summary .consultant-info img {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #241D56;
        }

        .order-summary .consultant-info .name {
            font-weight: 600;
            color: #241D56;
            font-size: 1rem;
        }

        .order-summary .consultant-info .specialty {
            color: #6c757d;
            font-size: 0.85rem;
        }

.order-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.95rem;
}

    .order-row.total {
        border-top: 2px solid #241D56;
        margin-top: 0.5rem;
        padding-top: 0.75rem;
        font-weight: 700;
        font-size: 1.15rem;
        color: #241D56;
    }

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #198754;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

#paypal-button-container {
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #paypal-button-container paypal-button {
        width: 100%;
    }

.paypal-loading {
    text-align: center;
    padding: 1rem;
    color: #6c757d;
}

    .paypal-loading .spinner-border {
        width: 1.5rem;
        height: 1.5rem;
    }

.payment-success {
    text-align: center;
    padding: 2rem 1rem;
    display: none;
}

    .payment-success .success-icon {
        width: 80px;
        height: 80px;
        background: #198754;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1.5rem;
    }

        .payment-success .success-icon i {
            font-size: 2.5rem;
            color: #fff;
        }

.payment-error {
    text-align: center;
    padding: 1.5rem 1rem;
    display: none;
}

    .payment-error .error-icon {
        width: 64px;
        height: 64px;
        background: #dc3545;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1rem;
    }

        .payment-error .error-icon i {
            font-size: 2rem;
            color: #fff;
        }


.payment-cancelled {
    text-align: center;
    padding: 2rem 1rem;
    display: none;
}

    .payment-cancelled .cancel-icon {
        width: 72px;
        height: 72px;
        background: #f59e0b;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1.25rem;
    }

        .payment-cancelled .cancel-icon i {
            font-size: 2rem;
            color: #fff;
        }

.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(36, 29, 86, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .processing-overlay .processing-box {
        background: #fff;
        border-radius: 1rem;
        padding: 2.5rem 3rem;
        text-align: center;
        box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    }

    .processing-overlay .spinner-border {
        width: 2.5rem;
        height: 2.5rem;
        color: #241D56;
    }

    .processing-overlay p {
        margin: 1rem 0 0;
        font-weight: 600;
        color: #241D56;
    }

    .processing-overlay .sub-text {
        font-weight: 400;
        font-size: 0.85rem;
        color: #6c757d;
        margin-top: 0.25rem;
    }

.success-details-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin: 1rem 0 1.5rem;
    text-align: left;
}

    .success-details-box .detail-row {
        display: flex;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.3rem 0;
        font-size: 0.9rem;
    }

        .success-details-box .detail-row .label {
            color: #6c757d;
        }

        .success-details-box .detail-row .value {
            font-weight: 600;
            color: #1e293b;
        }

.back-link {
    color: #241D56;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    transition: opacity 0.2s;
}

    .back-link:hover {
        opacity: 0.7;
        color: #241D56;
    }

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

    .trust-badges .badge-item {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        color: #6c757d;
        font-size: 0.8rem;
    }

        .trust-badges .badge-item i {
            font-size: 1rem;
            color: #241D56;
        }