/* =========================================================
   پشتیبانی | support.css
   ========================================================= */

/* ============ پیام‌ها ============ */
.support-alert {
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 2;
}

.support-alert.success {
    background: rgba(76, 175, 80, .1);
    border: 1px solid rgba(76, 175, 80, .4);
    color: #4caf50;
}

.support-alert.error {
    background: rgba(231, 76, 60, .1);
    border: 1px solid rgba(231, 76, 60, .4);
    color: #e74c3c;
}

/* ============ عنوان ============ */
.faq-title,
.contact-title,
.message-form-title {
    margin: 0 0 18px;
    padding-bottom: 12px;
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.faq-title::after,
.contact-title::after,
.message-form-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

/* ============ سوالات متداول ============ */
.faq-section {
    margin-bottom: 30px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all .25s ease;
}

.faq-item[open] {
    border-color: var(--gold-dark);
    background: linear-gradient(135deg, var(--bg-elevated), var(--gold-soft));
}

.faq-item summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
    transition: background .2s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    background: rgba(212, 175, 55, .05);
}

.faq-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-soft);
    border: 1px solid var(--gold-dark);
    border-radius: 10px;
    color: var(--gold);
}

.faq-q {
    flex: 1;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.faq-chevron {
    display: flex;
    color: var(--text-muted);
    transition: transform .3s ease, color .3s;
    flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: var(--gold);
}

.faq-answer {
    padding: 0 18px 18px 64px;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 2;
    animation: faqFadeIn .3s ease;
}

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============ دکمه‌های CTA ============ */
.faq-cta {
    margin-top: 22px;
    padding: 20px;
    background: var(--bg-elevated);
    border: 1px dashed var(--border-light);
    border-radius: 14px;
    text-align: center;
}

.faq-cta-text {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 13px;
}

.faq-cta-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.faq-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: all .25s ease;
    border: 1px solid;
}

.faq-cta-btn.support {
    background: rgba(52, 152, 219, .1);
    border-color: rgba(52, 152, 219, .4);
    color: #3498db;
}

.faq-cta-btn.support:hover {
    background: rgba(52, 152, 219, .2);
    border-color: #3498db;
    transform: translateY(-2px);
}

.faq-cta-btn.manager {
    background: var(--gold-soft);
    border-color: var(--gold-dark);
    color: var(--gold);
}

.faq-cta-btn.manager:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #1a1a1a;
    transform: translateY(-2px);
}

/* ============ فرم پیام ============ */
.message-form-section {
    margin-bottom: 30px;
    padding: 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    animation: faqFadeIn .3s ease;
}

.message-form-desc {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.9;
}

.message-form .form-group {
    margin-bottom: 16px;
}

.message-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
}

.message-form input[type="text"],
.message-form textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all .2s;
}

.message-form input[type="text"]:focus,
.message-form textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.message-form textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.9;
}

/* اولویت */
.priority-options {
    display: flex;
    gap: 10px;
}

.priority-radio {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-soft);
}

.priority-radio input {
    display: none;
}

.priority-radio:has(input:checked) {
    border-color: var(--gold);
    background: var(--gold-soft);
    color: var(--gold);
}

.priority-radio.urgent:has(input:checked) {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, .1);
    color: #e74c3c;
}

/* دکمه‌های فرم */
.message-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-cancel,
.btn-submit {
    flex: 1;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
    border: 1px solid;
}

.btn-cancel {
    background: var(--bg-card);
    border-color: var(--border-light);
    color: var(--text-soft);
}

.btn-cancel:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

.btn-submit {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border-color: var(--gold);
    color: #1a1a1a;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px var(--gold-glow);
}

/* ============ راه‌های ارتباطی ============ */
.contact-section {
    margin-bottom: 30px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all .2s;
}

.contact-card:hover {
    border-color: var(--gold-dark);
    transform: translateY(-2px);
}

.contact-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-soft);
    border: 1px solid var(--gold-dark);
    border-radius: 12px;
    color: var(--gold);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.contact-info span {
    color: var(--text-muted);
    font-size: 11px;
}

.contact-info a {
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    font-family: monospace;
    direction: ltr;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-info strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

/* ============ اینماد ============ */
.support-enamad {
    display: flex;
    justify-content: center;
    padding-top: 26px;
    margin-top: 10px;
    border-top: 1px solid var(--border);
}

.support-enamad img {
    width: 90px;
    height: auto;
    transition: all .2s;
}

.support-enamad img:hover {
    transform: scale(1.05);
}

/* ============ موبایل ============ */
@media (max-width: 600px) {

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .faq-cta-buttons {
        grid-template-columns: 1fr;
    }

    .faq-answer {
        padding: 0 16px 16px 16px;
    }

    .faq-q {
        font-size: 13px;
    }

    .message-form-section {
        padding: 18px;
    }
}