/* Digilancer — Job Details (Freeio, no Tailwind) */

.dl-job-details {
    font-family: var(--title-font-family, "DM Sans", sans-serif);
    color: #222;
    background: #f8f9fd;
}

.dl-job-details .dl-jd-breadcrumb {
    font-size: 14px;
    color: #6b7177;
    margin-bottom: 20px;
}

.dl-job-details .dl-jd-breadcrumb a {
    color: #6b7177;
    text-decoration: none;
}

.dl-job-details .dl-jd-breadcrumb a:hover {
    color: var(--main-color-one);
}

.dl-job-details .dl-jd-breadcrumb .sep {
    margin: 0 8px;
    color: #c4c8ce;
}

.dl-job-details .dl-jd-title {
    font-family: var(--title-font-family, "DM Sans", sans-serif);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.3;
    color: #222;
    margin: 0;
}

@media (max-width: 767.98px) {
    .dl-job-details .dl-jd-title {
        font-size: 22px;
    }
}

.dl-job-details .dl-jd-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.dl-job-details .dl-jd-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--main-color-one);
    border: 1px solid var(--main-color-one);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.dl-job-details .dl-jd-download:hover {
    background: #222;
    border-color: #222;
    color: #fff;
}

.dl-job-details .dl-jd-section {
    margin-bottom: 32px;
}

.dl-job-details .dl-jd-section-title {
    font-family: var(--title-font-family, "DM Sans", sans-serif);
    font-size: 20px;
    font-weight: 500;
    color: #222;
    margin: 0 0 16px;
}

.dl-job-details .dl-jd-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
}

@media (max-width: 991.98px) {
    .dl-job-details .dl-jd-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .dl-job-details .dl-jd-overview {
        grid-template-columns: 1fr;
    }
}

.dl-job-details .dl-jd-overview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.dl-job-details .dl-jd-overview-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--main-color-one) 10%, #fff);
    color: var(--main-color-one);
    font-size: 15px;
}

.dl-job-details .dl-jd-overview-item h4 {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin: 0 0 2px;
}

.dl-job-details .dl-jd-overview-item span {
    font-size: 13px;
    color: #6b7177;
    word-break: break-word;
}

.dl-job-details .dl-jd-desc {
    color: #6b7177;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.dl-job-details .dl-jd-desc p,
.dl-job-details .dl-jd-desc ul,
.dl-job-details .dl-jd-desc ol {
    margin: 0 0 10px;
}

.dl-job-details .dl-jd-desc p:last-child,
.dl-job-details .dl-jd-desc ul:last-child,
.dl-job-details .dl-jd-desc ol:last-child {
    margin-bottom: 0;
}

/* Collapse empty / spacer paragraphs from rich-text editors */
.dl-job-details .dl-jd-desc p:empty,
.dl-job-details .dl-jd-desc p:has(> br:only-child),
.dl-job-details .dl-jd-desc p:has(> br:first-child:last-child) {
    display: none;
    margin: 0;
    padding: 0;
    height: 0;
    line-height: 0;
}

.dl-job-details .dl-jd-desc br + br {
    display: none;
}

.dl-job-details .dl-jd-desc ul,
.dl-job-details .dl-jd-desc ol {
    padding-left: 1.2em;
}

.dl-job-details .dl-jd-desc li {
    margin-bottom: 4px;
}

.dl-job-details .dl-jd-desc li:last-child {
    margin-bottom: 0;
}

.dl-job-details .dl-jd-desc h1,
.dl-job-details .dl-jd-desc h2,
.dl-job-details .dl-jd-desc h3,
.dl-job-details .dl-jd-desc h4 {
    color: #222;
    font-size: 16px;
    font-weight: 500;
    margin: 14px 0 8px;
    line-height: 1.35;
}

.dl-job-details .dl-jd-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #222;
    margin: 0 0 12px;
}

.dl-job-details .dl-jd-skills {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.dl-job-details .dl-jd-skills li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    color: #6b7177;
    font-size: 14px;
}

.dl-job-details .dl-jd-skills li i {
    color: var(--main-color-one);
    margin-top: 3px;
    flex-shrink: 0;
}

.dl-job-details .dl-jd-muted {
    color: #6b7177;
    font-size: 14px;
    margin-bottom: 24px;
}

.dl-job-details .dl-jd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dl-job-details .dl-jd-tag {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    color: #6b7177;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 999px;
}

.dl-job-details .dl-jd-author {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
}

.dl-job-details .dl-jd-author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e9e9e9;
    background: #f8f9fd;
}

.dl-job-details .dl-jd-author-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.dl-job-details .dl-jd-author-name h3 {
    font-size: 16px;
    font-weight: 500;
    color: #222;
    margin: 0;
}

.dl-job-details .dl-jd-author-name i {
    color: var(--main-color-one);
}

.dl-job-details .dl-jd-author-role {
    font-size: 13px;
    color: #6b7177;
    margin-bottom: 10px;
}

.dl-job-details .dl-jd-author-bio {
    font-size: 14px;
    color: #6b7177;
    line-height: 1.55;
    margin: 0;
}

.dl-job-details .dl-jd-related .row > [class*="col-"] {
    display: flex;
    margin-bottom: 24px;
}

/* Sidebar — sticky while left column scrolls
   Freeio `.wrapper.ovh { overflow:hidden }` breaks sticky; override on this page. */
body:has(.dl-job-details) .wrapper.ovh {
    overflow: visible;
}

body:has(.dl-job-details) .body_content {
    overflow: visible;
}

@media (min-width: 992px) {
    .dl-job-details > .container > .row {
        align-items: flex-start;
    }

    .dl-job-details .dl-jd-sidebar-col {
        position: sticky;
        top: 110px;
        align-self: flex-start;
        z-index: 5;
    }

    .dl-job-details .dl-jd-sidebar {
        position: static;
    }
}

.dl-job-details .dl-jd-sidebar {
    width: 100%;
}

.dl-job-details .dl-jd-client-card {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.dl-job-details .dl-jd-client-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.dl-job-details .dl-jd-client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e9e9e9;
}

.dl-job-details .dl-jd-client-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    color: #222;
    margin: 0 0 2px;
}

.dl-job-details .dl-jd-client-name i {
    color: var(--main-color-one);
    font-size: 14px;
}

.dl-job-details .dl-jd-client-country {
    font-size: 13px;
    color: #6b7177;
    margin: 0;
}

.dl-job-details .dl-jd-client-meta {
    border-top: 1px solid #f1f2f4;
    padding-top: 12px;
}

.dl-job-details .dl-jd-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
}

.dl-job-details .dl-jd-meta-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7177;
}

.dl-job-details .dl-jd-meta-label i {
    color: var(--main-color-one);
    width: 16px;
    text-align: center;
}

.dl-job-details .dl-jd-meta-value {
    font-size: 13px;
    font-weight: 500;
    color: #222;
    text-align: right;
}

.dl-job-details .dl-jd-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--main-color-one);
    border-radius: 8px;
    background: var(--main-color-one);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.dl-job-details .dl-jd-apply-btn:hover {
    background: #222;
    border-color: #222;
    color: #fff;
}

.dl-job-details .dl-jd-apply-btn i {
    font-size: 14px;
}

.dl-job-details .dl-jd-note {
    text-align: center;
    padding: 16px;
    background: #f3f4f6;
    border-radius: 8px;
}

.dl-job-details .dl-jd-note p {
    margin: 0;
    font-size: 13px;
    color: #6b7177;
}

.dl-job-details .dl-jd-note-error p {
    color: #dc2626;
}

.dl-job-details .dl-jd-profile-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #e5e7eb;
    color: #374151;
    font-size: 13px;
    text-decoration: none;
    transition: background .2s ease;
}

.dl-job-details .dl-jd-profile-link:hover {
    background: #d1d5db;
    color: #111;
}

.dl-job-details .dl-jd-desktop-cta {
    display: block;
}

.dl-job-details .dl-jd-mobile-cta {
    display: none;
}

@media (max-width: 991.98px) {
    .dl-job-details .dl-jd-sidebar-col {
        position: static;
        top: auto;
    }

    .dl-job-details .dl-jd-sidebar {
        position: static;
        margin-top: 28px;
    }

    .dl-job-details .dl-jd-desktop-cta {
        display: none;
    }

    .dl-job-details .dl-jd-mobile-cta {
        display: block;
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1001;
        background: #fff;
        padding: 16px 0;
        border-top: 1px solid #e9e9e9;
        margin-top: 8px;
    }
}

/* Proposal modal */
#modalOverlay.dl-jd-modal {
    position: fixed;
    inset: 0;
    background: rgba(22, 28, 45, .45);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#modalOverlay.dl-jd-modal:not(.hidden) {
    display: flex;
}

#modalOverlay.hidden {
    display: none !important;
}

.dl-jd-modal-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(64, 79, 104, .18);
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dl-jd-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid #e9e9e9;
    flex-shrink: 0;
}

.dl-jd-modal-header h2 {
    font-family: var(--title-font-family, "DM Sans", sans-serif);
    font-size: 20px;
    font-weight: 500;
    color: #222;
    margin: 0;
}

#closeModal {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: color-mix(in srgb, var(--main-color-one) 10%, #fff);
    color: #222;
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, color .2s ease;
}

#closeModal:hover {
    background: var(--main-color-one);
    color: #fff;
}

.dl-jd-modal-body {
    padding: 24px;
    overflow-y: auto;
}

.dl-jd-alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.dl-jd-alert.hidden {
    display: none !important;
}

.dl-jd-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.dl-jd-alert-success {
    background: color-mix(in srgb, var(--main-color-one) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--main-color-one) 28%, #e9e9e9);
    color: #166534;
}

.dl-jd-alert ul {
    margin: 0;
    padding-left: 18px;
}

.dl-jd-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

.dl-jd-form-group {
    margin-bottom: 20px;
}

.dl-jd-amount-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}

.dl-jd-amount-wrap .dl-jd-currency {
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7177;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    height: auto;
    margin: 0;
    padding: 0;
    pointer-events: none;
    z-index: 1;
}

.dl-jd-modal-body input[type="number"],
.dl-jd-modal-body input[type="text"],
.dl-jd-modal-body select,
.dl-jd-modal-body textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.dl-jd-amount-wrap input {
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 32px;
    padding-right: 14px;
    line-height: 1.5;
}

.dl-jd-modal-body input[type="number"]::-webkit-outer-spin-button,
.dl-jd-modal-body input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dl-jd-modal-body input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.dl-jd-modal-body select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236b7177' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.dl-jd-modal-body input:focus,
.dl-jd-modal-body select:focus,
.dl-jd-modal-body textarea:focus {
    outline: none;
    border-color: var(--main-color-one);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--main-color-one) 16%, transparent);
}

.dl-jd-modal-body textarea {
    resize: vertical;
    min-height: 140px;
}

.dl-jd-char-count {
    text-align: right;
    font-size: 12px;
    color: #6b7177;
    margin-top: 6px;
}

.dl-jd-upload {
    border: 2px dashed #e9e9e9;
    border-radius: 12px;
    padding: 28px 16px;
    text-align: center;
    background: #f8f9fd;
    transition: border-color .2s ease, background .2s ease;
}

.dl-jd-upload:hover {
    border-color: color-mix(in srgb, var(--main-color-one) 40%, #e9e9e9);
    background: color-mix(in srgb, var(--main-color-one) 6%, #fff);
}

.dl-jd-upload input[type="file"] {
    display: none;
}

.dl-jd-upload-icon {
    font-size: 28px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.dl-jd-upload-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}

.dl-jd-upload-btn:hover {
    border-color: var(--main-color-one);
    color: var(--main-color-one);
}

#fileStatus {
    margin: 10px 0 0;
    font-size: 13px;
    color: #6b7177;
}

.dl-jd-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: 1px solid var(--main-color-one);
    border-radius: 8px;
    background: var(--main-color-one);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.dl-jd-submit:hover,
.dl-jd-submit:disabled {
    background: #222;
    border-color: #222;
    color: #fff;
}

.dl-jd-submit:disabled {
    opacity: .75;
    cursor: not-allowed;
}

.dl-jd-select-wrap {
    position: relative;
}
