/* ==============================================================
   VACANCY.NG - PROJECT DETAIL & HIRE SERVICE STYLESHEET
   Extracted from D:\BHNG\freelancer.vacancy.ng\freelancers\project-detail.php
   ============================================================== */

body.page-freelancer {
    background: #fbfaff !important;
    color: #101828;
    --fl-primary: #7c3aed;
    --fl-primary-strong: #6d28d9;
    --fl-primary-deep: #5b21b6;
    --fl-soft: #f4edff;
    --fl-soft-strong: #ede4ff;
    --fl-border: #e9ddfb;
    --fl-border-light: #f1e9fd;
    --fl-card: #ffffff;
    --fl-text: #101828;
    --fl-muted: #64748b;
    --fl-star: #f59e0b;
}

/* Breadcrumb & Navigation Bar */
.fl-top-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 4px 2px;
}

.fl-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #64748b;
}

.fl-breadcrumbs a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.18s ease;
}

.fl-breadcrumbs a:hover {
    color: #7c3aed;
}

.fl-breadcrumbs .sep {
    color: #cbd5e1;
    font-size: 11px;
}

.fl-breadcrumbs .current {
    color: #101828;
    font-weight: 600;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fl-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fl-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #7c3aed;
    background: #ffffff;
    border: 1px solid #e9ddfb;
    border-radius: 20px;
    padding: 6px 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.fl-btn-back:hover {
    background: #f4edff;
    border-color: #7c3aed;
    transform: translateX(-2px);
}

.fl-share-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e9ddfb;
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.fl-share-action-btn:hover {
    color: #7c3aed;
    border-color: #7c3aed;
    background: #f4edff;
}

.fl-share-action-btn.copied {
    color: #16a34a !important;
    border-color: #16a34a !important;
    background: #e8f8ef !important;
}

/* Master 2-Column Responsive Layout */
.fl-detail-screen {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
    align-items: start;
}

@media (min-width: 1300px) {
    .fl-detail-screen {
        grid-template-columns: minmax(0, 1fr) 410px;
        gap: 32px;
    }
}

@media (max-width: 1024px) {
    .fl-detail-screen {
        grid-template-columns: minmax(0, 1fr) 350px;
        gap: 22px;
    }
}

@media (max-width: 900px) {
    .fl-detail-screen {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Left Column Elements */
.fl-main-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* Section Card Base */
.fl-card {
    background: #ffffff;
    border: 1px solid #e9ddfb;
    border-radius: 16px;
    padding: clamp(20px, 3vw, 28px);
    box-shadow: 0 4px 20px rgba(91, 33, 182, 0.04);
}

/* Header Presentation Card */
.fl-header-card {
    padding: clamp(22px, 3vw, 32px);
    background: #ffffff;
    border: 1px solid #e9ddfb;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(91, 33, 182, 0.04);
}

.fl-header-pills-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.fl-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 12px;
    border-radius: 20px;
}

.fl-badge-pill.cat {
    background: #f4edff;
    color: #7c3aed;
    border: 1px solid #e9ddfb;
}

.fl-badge-pill.status-open {
    background: #e8f8ef;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.fl-badge-pill.status-pending {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.fl-badge-pill.status-assigned,
.fl-badge-pill.status-in_progress {
    background: #f4edff;
    color: #7c3aed;
    border: 1px solid #e9ddfb;
}

.fl-badge-pill.status-completed {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.fl-badge-pill.status-cancelled {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.fl-header-title {
    margin: 0 0 14px;
    font-size: clamp(20px, 2.6vw, 29px);
    font-weight: 700;
    color: #101828;
    line-height: 1.32;
    letter-spacing: -0.3px;
}

/* Service Metadata Strip */
.fl-meta-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    color: #64748b;
}

.fl-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fl-meta-item svg {
    color: #7c3aed;
    flex-shrink: 0;
}

.fl-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #101828;
}

.fl-rating-stars {
    color: #f59e0b;
    display: inline-flex;
    align-items: center;
}

/* Media Showcase (Hero Image) */
.fl-media-box {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e9ddfb;
    position: relative;
    box-shadow: 0 8px 24px rgba(91, 33, 182, 0.05);
}

.fl-media-box img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.fl-media-fallback {
    padding: 60px 24px;
    text-align: center;
    background: linear-gradient(135deg, #faf5ff 0%, #ede4ff 100%);
    color: #5b21b6;
}

.fl-media-fallback svg {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    color: #7c3aed;
}

/* Freelancer Spotlight Banner */
.fl-freelancer-spotlight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid #e9ddfb;
    border-radius: 16px;
    padding: 18px 24px;
    box-shadow: 0 4px 18px rgba(91, 33, 182, 0.04);
}

.fl-freelancer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fl-freelancer-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.fl-freelancer-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.2);
}

.fl-freelancer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fl-verified-icon-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: #16a34a;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.fl-freelancer-meta-col h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #101828;
}

.fl-freelancer-meta-col h3 a {
    color: #101828;
    text-decoration: none;
}

.fl-freelancer-meta-col h3 a:hover {
    color: #7c3aed;
}

.fl-freelancer-subtitle {
    margin: 2px 0 0;
    font-size: 13px;
    color: #64748b;
}

.fl-freelancer-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.fl-freelancer-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #7c3aed;
    background: #f4edff;
    border: 1px solid #e9ddfb;
    text-decoration: none;
    transition: all 0.2s ease;
}

.fl-freelancer-profile-btn:hover {
    background: #7c3aed;
    color: #ffffff;
    border-color: #7c3aed;
    transform: translateY(-1px);
}

/* Service Highlights Compact Cards */
.fl-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.fl-highlight-item {
    background: #faf8ff;
    border: 1px solid #e9ddfb;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fl-highlight-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ffffff;
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.08);
}

.fl-highlight-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 600;
}

.fl-highlight-value {
    font-size: 14px;
    font-weight: 700;
    color: #101828;
    margin-top: 2px;
}

/* Service Scope & Description */
.fl-content-card h3.fl-section-heading {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: #101828;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fl-content-card h3.fl-section-heading svg {
    color: #7c3aed;
}

.fl-prose-body {
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
    word-break: break-word;
}

.fl-prose-body p {
    margin: 0 0 14px;
}

.fl-prose-body p:last-child {
    margin-bottom: 0;
}

/* Skills Badges */
.fl-skills-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.fl-skill-chip {
    background: #f4edff;
    color: #7c3aed;
    border: 1px solid #e9ddfb;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.18s ease;
}

.fl-skill-chip:hover {
    background: #ede4ff;
    transform: translateY(-1px);
}

/* Reviews & Ratings Section */
.fl-reviews-header-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 20px;
}

.fl-rating-summary-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fl-big-score {
    font-size: 36px;
    font-weight: 800;
    color: #101828;
    line-height: 1;
}

.fl-score-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fl-review-card-item {
    padding: 18px 0;
    border-bottom: 1px solid #f1f5f9;
}

.fl-review-card-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.fl-reviewer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

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

.fl-reviewer-avatar-sm {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f4edff;
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.fl-reviewer-name {
    font-size: 14px;
    font-weight: 600;
    color: #101828;
}

.fl-review-date {
    font-size: 12px;
    color: #64748b;
}

.fl-review-comment {
    font-size: 14px;
    line-height: 1.65;
    color: #475569;
    margin: 6px 0 0;
}

/* Owner Replies to Reviews */
.fl-owner-reply-box {
    margin: 12px 0 0 32px;
    padding: 14px 18px;
    background: #faf8ff;
    border: 1px solid #e9ddfb;
    border-radius: 12px;
}

.fl-owner-reply-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.fl-owner-reply-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: #f4edff;
    color: #7c3aed;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Review Forms */
.fl-review-form-card {
    background: #faf8ff;
    border: 1px solid #e9ddfb;
    border-radius: 14px;
    padding: 22px;
    margin-top: 24px;
}

.fl-review-form-card h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #101828;
}

.fl-review-form-card p {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px;
}

.fl-star-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.fl-star-picker-label {
    font-size: 13px;
    font-weight: 600;
    color: #101828;
}

.fl-star-input {
    display: inline-flex;
    gap: 4px;
    direction: rtl;
}

.fl-star-input input {
    display: none;
}

.fl-star-input label {
    cursor: pointer;
    font-size: 26px;
    color: #e2e8f0;
    transition: color 0.15s ease;
    line-height: 1;
}

.fl-star-input label:hover,
.fl-star-input label:hover ~ label,
.fl-star-input input:checked ~ label {
    color: #f59e0b;
}

/* ============================================================== */
/* Right Column: Sticky Pricing & Action Console                  */
/* ============================================================== */
.fl-sidebar-col {
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fl-pricing-card {
    background: #ffffff;
    border: 2px solid #e9ddfb;
    border-radius: 18px;
    padding: clamp(22px, 3vw, 28px);
    box-shadow: 0 10px 30px rgba(91, 33, 182, 0.07);
}

.fl-pricing-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.fl-price-figure {
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 800;
    color: #7c3aed;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.fl-price-sublabel {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pricing Card Feature Bullets */
.fl-guarantee-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0;
    padding: 14px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.fl-guarantee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #334155;
}

.fl-guarantee-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f4edff;
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fl-guarantee-icon svg {
    width: 13px;
    height: 13px;
}

/* Compact Hire Form inside Sidebar */
.fl-hire-form-wrap {
    margin-top: 8px;
}

.fl-hire-form-title {
    font-size: 16px;
    font-weight: 700;
    color: #101828;
    margin: 0 0 4px;
}

.fl-hire-form-sub {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 16px;
}

.fl-field-group {
    margin-bottom: 12px;
}

.fl-field-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
}

.fl-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.fl-field-icon {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.fl-input-control {
    width: 100%;
    padding: 10px 14px 10px 38px;
    font-size: 13.5px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #101828;
    outline: none;
    transition: all 0.18s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.fl-input-control:focus {
    border-color: #7c3aed;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.fl-textarea-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 13.5px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #101828;
    outline: none;
    transition: all 0.18s ease;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
}

.fl-textarea-control:focus {
    border-color: #7c3aed;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.fl-btn-submit-hire {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #ffffff;
    border: none;
    border-radius: 11px;
    padding: 13px 20px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.3);
    font-family: inherit;
    margin-top: 6px;
}

.fl-btn-submit-hire:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #4c1d95 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.38);
}

.fl-hire-trust-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11.5px;
    color: #16a34a;
    margin-top: 12px;
    text-align: center;
    font-weight: 500;
}

/* Success Modal & Contact Picker */
.fl-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 24, 40, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
    box-sizing: border-box;
}

.fl-modal {
    background: #ffffff;
    border-radius: 20px;
    padding: 34px 28px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
    position: relative;
    animation: flModalPop 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes flModalPop {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.fl-modal-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8f8ef;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.fl-modal-icon-badge svg {
    width: 32px;
    height: 32px;
}

.fl-modal h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #101828;
}

.fl-modal p {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 20px;
    line-height: 1.55;
}

.fl-modal-direct-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.fl-contact-direct-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
}

.fl-contact-direct-btn.whatsapp {
    background: #25D366;
    color: #ffffff;
}

.fl-contact-direct-btn.whatsapp:hover {
    background: #1ebc57;
    transform: translateY(-1px);
}

.fl-contact-direct-btn.phone {
    background: #f4edff;
    color: #7c3aed;
    border: 1px solid #e9ddfb;
}

.fl-contact-direct-btn.phone:hover {
    background: #7c3aed;
    color: #ffffff;
    border-color: #7c3aed;
}

.fl-contact-direct-btn.email {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.fl-contact-direct-btn.email:hover {
    background: #e2e8f0;
}

.fl-modal-dismiss-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    border: none;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.18s ease;
}

.fl-modal-dismiss-btn:hover {
    background: #e2e8f0;
}

/* Mobile Sticky Bottom Bar */
.fl-mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e9ddfb;
    padding: 12px 18px;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    z-index: 999;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.fl-mobile-price-box {
    display: flex;
    flex-direction: column;
}

.fl-mobile-price-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.fl-mobile-price-val {
    font-size: 18px;
    font-weight: 800;
    color: #7c3aed;
    line-height: 1.1;
}

.fl-mobile-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.28);
}

@media (max-width: 900px) {
    .fl-mobile-bottom-bar {
        display: flex;
    }
    body.page-freelancer .main-content {
        padding-bottom: 90px !important;
    }
    .fl-sidebar-col {
        position: static;
    }
}
