/**
 * Contact Support & Support Ticket Styles - Lafinda Marketplace
 * Clean, professional, minimal styling for support workflows
 */

.support-page-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1.25rem 0.75rem 3rem;
}

@media (min-width: 768px) {
    .support-page-wrapper {
        padding: 2rem 1rem 3.5rem;
    }
}

/* --- Hero Banner (Clean, solid, professional) --- */
.support-hero-card {
    background: #0b1b3c;
    color: #ffffff;
    border-radius: 14px;
    padding: 2rem 1.25rem;
    text-align: center;
    margin-bottom: 1.75rem;
    box-shadow: 0 2px 8px rgba(11, 27, 60, 0.08);
}

@media (min-width: 768px) {
    .support-hero-card {
        padding: 2.5rem 2rem 2.25rem;
        margin-bottom: 2rem;
    }
}

.support-hero-title {
    font-size: 1.625rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .support-hero-title {
        font-size: 2rem;
    }
}

.support-hero-subtitle {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .support-hero-subtitle {
        font-size: 1rem;
    }
}

/* --- Trust Highlights Strip --- */
.support-trust-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 576px) {
    .support-trust-strip {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

.support-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.support-trust-item i {
    color: #fe6a07;
    font-size: 0.9375rem;
    flex-shrink: 0;
}

/* --- Main Form Card (Single, consistent solid color treatment) --- */
.support-form-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.support-form-card__header {
    padding: 1.25rem 1.25rem 0.875rem;
    border-bottom: 1px solid #f3f4f6;
    background: transparent;
}

@media (min-width: 768px) {
    .support-form-card__header {
        padding: 1.5rem 1.75rem 1rem;
    }
}

.support-form-card__title {
    font-size: 1.1875rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.support-form-card__desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0.25rem 0 0 0;
}

.support-form-card__body {
    padding: 1.25rem;
    background: transparent;
}

@media (min-width: 768px) {
    .support-form-card__body {
        padding: 1.75rem;
    }
}

/* --- User / Guest Status Notice --- */
.support-status-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.support-status-banner--auth {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
}

.support-status-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0b1b3c;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.support-status-banner--guest {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #374151;
}

.support-status-banner--guest i {
    font-size: 1.125rem;
    color: #6b7280;
    flex-shrink: 0;
}

/* --- Form Sections --- */
.support-form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.support-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.support-section-heading {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #4b5563;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* --- Form Fields & Inputs --- */
.support-form-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.375rem;
}

.support-form-label .req-star {
    color: #dc2626;
    font-weight: 700;
}

.support-form-card .form-control,
.support-form-card .form-select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    color: #111827;
    background-color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.support-form-card .form-control:focus,
.support-form-card .form-select:focus {
    border-color: #fe6a07;
    box-shadow: 0 0 0 3px rgba(254, 106, 7, 0.12);
    outline: none;
}

.support-form-card .form-control::placeholder {
    color: #9ca3af;
    font-size: 0.875rem;
}

.support-input-helper {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.35rem;
}

/* --- Priority Selector Cards (Clean, consistent styling) --- */
.support-priority-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
}

@media (min-width: 576px) {
    .support-priority-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
}

.support-priority-card {
    position: relative;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.625rem 0.5rem;
    background: #ffffff;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.support-priority-card:hover {
    border-color: #9ca3af;
    background-color: #f9fafb;
}

.support-priority-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.support-priority-card.is-selected {
    border-color: #fe6a07;
    background-color: #fff9f5;
}

.support-priority-badge {
    font-size: 0.8125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.support-priority-badge--low {
    color: #059669;
}

.support-priority-badge--medium {
    color: #0284c7;
}

.support-priority-badge--high {
    color: #d97706;
}

.support-priority-badge--urgent {
    color: #dc2626;
}

.support-priority-desc {
    font-size: 0.6875rem;
    color: #6b7280;
    margin-top: 0.15rem;
}

/* --- Character Counter --- */
.support-char-counter {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: right;
    margin-top: 0.35rem;
    font-variant-numeric: tabular-nums;
}

/* --- Form Actions --- */
.support-form-actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

@media (min-width: 576px) {
    .support-form-actions {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
    }
}

.support-form-actions .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.625rem 1.35rem;
}

.support-privacy-notice {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

/* --- Sidebar Cards (Clean, solid, minimal) --- */
.support-sidebar-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    margin-bottom: 1.25rem;
}

.support-sidebar-card__header {
    padding: 0.875rem 1.125rem;
    border-bottom: 1px solid #f3f4f6;
    background: transparent;
    font-weight: 700;
    font-size: 0.875rem;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.support-sidebar-card__header i {
    color: #4b5563;
    font-size: 0.9375rem;
}

.support-sidebar-card__body {
    padding: 1.125rem;
    background: transparent;
}

.support-faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.support-faq-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.15s ease;
    line-height: 1.4;
}

.support-faq-item:hover {
    color: #fe6a07;
}

.support-faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.support-faq-item i {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.support-hours-table {
    width: 100%;
    margin-bottom: 0.75rem;
}

.support-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.8125rem;
    color: #4b5563;
    border-bottom: 1px dashed #f3f4f6;
}

.support-hours-row:last-child {
    border-bottom: none;
}

.support-hours-day {
    font-weight: 600;
    color: #1f2937;
}

.support-hours-time {
    color: #6b7280;
}

.support-contact-pill {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: #374151;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.support-contact-pill:hover {
    border-color: #d1d5db;
    color: #111827;
}

.support-contact-pill i {
    color: #4b5563;
    font-size: 1rem;
    flex-shrink: 0;
}

/* --- Confirmation & Success Screen --- */
.support-success-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: 640px;
    margin: 1.5rem auto;
}

.support-success-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #10b981;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.support-ref-badge-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    text-align: center;
}

.support-ref-number {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #111827;
    font-family: monospace, sans-serif;
    margin: 0.25rem 0 0.5rem;
}

.support-copy-btn {
    font-size: 0.8125rem;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
}

/* ==========================================================================
   SUPPORT TICKET LIST & CONVERSATION VIEW (Clean, Minimal, Professional)
   ========================================================================== */

/* --- Page Header for Ticket Views --- */
.support-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.support-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: -0.01em;
}

.support-page-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0.25rem 0 0 0;
}

/* --- Ticket List Cards --- */
.support-ticket-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
    margin-bottom: 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}

.support-ticket-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.support-ticket-item.has-new-messages {
    border-left: 3px solid #fe6a07;
}

.support-ticket-title-link {
    color: #111827;
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.4;
    transition: color 0.15s ease;
}

.support-ticket-title-link:hover {
    color: #fe6a07;
}

.support-ticket-excerpt {
    font-size: 0.875rem;
    color: #4b5563;
    margin: 0.5rem 0;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: break-word;
}

.support-ticket-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.625rem;
}

.support-ticket-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* --- Clean Status & Priority Tags --- */
.support-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    line-height: 1.2;
}

.support-tag--open {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.support-tag--resolved {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.support-tag--closed {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.support-tag--pending {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.support-priority-tag {
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.support-unread-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* --- Minimal Empty State --- */
.support-empty-state {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 3rem 1.5rem;
    text-align: center;
    max-width: 540px;
    margin: 2rem auto;
}

.support-empty-icon {
    font-size: 2.25rem;
    color: #9ca3af;
    margin-bottom: 0.875rem;
}

.support-empty-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.35rem;
}

.support-empty-desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* --- Individual Ticket Details Card --- */
.support-ticket-detail-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.support-ticket-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.support-ticket-detail-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
    line-height: 1.35;
    word-break: break-word;
}

.support-ticket-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem 1rem;
    font-size: 0.8125rem;
    color: #4b5563;
}

/* --- Conversation Thread Container --- */
.support-chat-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.support-chat-header {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
}

.support-chat-messages {
    padding: 1.25rem;
    background: #f9fafb;
    max-height: 520px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* --- Message Bubbles --- */
.support-msg-item {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.support-msg-bubble {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.9375rem 1.125rem;
    max-width: 100%;
}

.support-msg-bubble--admin {
    border-left: 3px solid #0b1b3c;
    background: #ffffff;
}

.support-msg-bubble--user {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.support-msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
    color: #4b5563;
}

.support-msg-sender {
    font-weight: 700;
    color: #111827;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.support-msg-time {
    font-size: 0.75rem;
    color: #6b7280;
}

.support-msg-content {
    font-size: 0.875rem;
    color: #1f2937;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

/* --- Reply Composer --- */
.support-chat-composer {
    padding: 1.25rem;
    background: #ffffff;
    border-top: 1px solid #f3f4f6;
}

.support-chat-composer .form-control {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    color: #111827;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.support-chat-composer .form-control:focus {
    border-color: #fe6a07;
    box-shadow: 0 0 0 3px rgba(254, 106, 7, 0.12);
    outline: none;
}

.support-new-alert {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
