/* ================================================
   Listing Comment Modal — Formulaire commentaire
   ================================================ */

.listing-comment-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.listing-comment-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.listing-comment-form__label {
    font-family: var(--font-rubik);
    font-size: 14px;
    font-weight: 500;
    color: var(--dark2);
}

.listing-comment-form__select,
.listing-comment-form__textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--dark5);
    border-radius: var(--border-radius-small);
    font-family: var(--font-rubik);
    font-size: 14px;
    color: var(--dark1);
    background: var(--white);
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.listing-comment-form__select:focus,
.listing-comment-form__textarea:focus {
    outline: none;
    border-color: var(--main-color);
}

.listing-comment-form__textarea {
    resize: vertical;
    min-height: 100px;
}

.listing-comment-form__section-label {
    font-family: var(--font-rubik);
    font-size: 13px;
    font-weight: 600;
    color: var(--dark3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px;
    border-bottom: 1px solid var(--dark5);
    padding-bottom: 6px;
}

.listing-comment-form__note {
    font-family: var(--font-rubik);
    font-size: 12px;
    color: var(--dark4);
    margin-bottom: 16px;
}

.listing-comment-form__feedback {
    padding: 10px 14px;
    border-radius: var(--border-radius-small);
    font-family: var(--font-rubik);
    font-size: 14px;
    margin-bottom: 16px;
}

.listing-comment-form__feedback--error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

.listing-comment-form__feedback--success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.listing-comment-form__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 16px;
    text-align: center;
}

.listing-comment-form__success-icon {
    font-size: 48px;
    color: var(--main-color);
}

.listing-comment-form__success-title {
    font-family: var(--font-helvetica);
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--dark1);
    margin: 0;
}

.listing-comment-form__success-msg {
    font-family: var(--font-rubik);
    font-size: 14px;
    color: var(--dark3);
    margin: 0;
}

.listing-comment-form__success-actions {
    margin-top: 8px;
}

/* ── "Laisser un commentaire" action button ── */
.listing-comment-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--dark4);
    border-radius: var(--border-radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--dark3);
    font-family: var(--font-rubik);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    text-align: center;
}

.listing-comment-btn:hover {
    border-color: var(--main-color);
    color: var(--main-color);
    background: var(--light2);
}

.listing-comment-btn i {
    font-size: 15px;
}

@media (max-width: 640px) {
    .listing-comment-form__grid {
        grid-template-columns: 1fr;
    }
}
