/**
 * Directory Pro — Devis / Quotes.
 *
 * Formulaire de demande + liste dashboard.
 *
 * @package DirectoryPro
 */

/* ── Formulaire de demande de devis ──────────────────────────── */

.dp-quote-form {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px;
    background: var(--dp-surface, #fff);
    border: 1px solid var(--dp-border, #E2E6EA);
    border-radius: var(--dp-radius, 10px);
    box-shadow: var(--dp-shadow, 0 2px 8px rgba(0,0,0,.08));
}

.dp-quote-form__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dp-text, #1A1A2E);
    margin: 0 0 20px;
}

.dp-quote-form__files {
    padding: 8px;
    border: 1px dashed var(--dp-border, #E2E6EA);
    border-radius: 6px;
    width: 100%;
    cursor: pointer;
}

.dp-quote-form__message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.dp-quote-form__message--success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.dp-quote-form__message--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ── Liste des devis (dashboard) ─────────────────────────────── */

.dp-my-quotes,
.dp-sent-quotes {
    max-width: 800px;
    margin: 0 auto;
}

.dp-my-quotes__title,
.dp-sent-quotes__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dp-text, #1A1A2E);
    margin: 0 0 20px;
}

.dp-quotes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dp-quote-item {
    background: var(--dp-surface, #fff);
    border: 1px solid var(--dp-border, #E2E6EA);
    border-radius: var(--dp-radius, 10px);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.dp-quote-item:hover {
    box-shadow: var(--dp-shadow, 0 2px 8px rgba(0,0,0,.08));
}

.dp-quote-item__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    flex-wrap: wrap;
}

.dp-quote-item__header:hover {
    background: var(--dp-bg, #F7F8FA);
}

.dp-quote-item__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 120px;
}

.dp-quote-item__date {
    font-size: 12px;
    color: var(--dp-text-muted, #6B7280);
}

.dp-quote-item__visitor {
    font-size: 14px;
    font-weight: 600;
    color: var(--dp-text, #1A1A2E);
}

.dp-quote-item__title {
    flex: 1;
    font-size: 14px;
    color: var(--dp-text, #1A1A2E);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dp-quote-item__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.dp-quote-item__budget {
    font-size: 13px;
    color: var(--dp-text-muted, #6B7280);
    background: var(--dp-bg, #F7F8FA);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ── Corps depliable ─────────────────────────────────────────── */

.dp-quote-item__body {
    padding: 18px;
    border-top: 1px solid var(--dp-border, #E2E6EA);
    background: var(--dp-bg, #F7F8FA);
}

.dp-quote-item__description p {
    margin: 8px 0 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--dp-text, #1A1A2E);
}

.dp-quote-item__photos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.dp-quote-item__photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--dp-border, #E2E6EA);
}

/* ── Formulaire de reponse (pro) ─────────────────────────────── */

.dp-quote-respond-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--dp-border, #E2E6EA);
}

.dp-quote-respond-form h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
}

/* ── Reponse du pro (affichage) ──────────────────────────────── */

.dp-quote-item__response {
    margin-top: 16px;
    padding: 16px;
    background: var(--dp-surface, #fff);
    border: 1px solid var(--dp-border, #E2E6EA);
    border-radius: 8px;
}

.dp-quote-item__response h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--dp-primary, #185FA5);
}

.dp-quote-item__actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* ── Statut couleurs (bords gauche) ──────────────────────────── */

.dp-status--pending {
    border-left: 3px solid var(--dp-accent, #E6892A);
}

.dp-status--quoted {
    border-left: 3px solid var(--dp-primary, #185FA5);
}

.dp-status--accepted,
.dp-status--completed {
    border-left: 3px solid var(--dp-success, #639922);
}

.dp-status--rejected,
.dp-status--cancelled,
.dp-status--expired {
    border-left: 3px solid var(--dp-text-muted, #6B7280);
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 600px) {
    .dp-quote-form {
        padding: 16px;
    }

    .dp-quote-item__header {
        padding: 12px 14px;
    }

    .dp-quote-item__meta {
        min-width: auto;
        width: 100%;
    }

    .dp-quote-item__title {
        width: 100%;
        white-space: normal;
    }

    .dp-quote-item__right {
        width: 100%;
        justify-content: flex-end;
    }

    .dp-quote-item__actions {
        flex-direction: column;
    }
}
