/* ═══════════════════════════════════════════════════════════════
   public_contact.css — تماس با ما
   ═══════════════════════════════════════════════════════════════ */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 30px;
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
}

/* ─── Contact Info Sidebar ─── */
.contact-info-card {
    background: #fff;
    border-radius: var(--r-lg);
    padding: 30px 26px;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--border);
    position: sticky;
    top: 90px;
}
.contact-info-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 6px;
}
.contact-info-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0 0 22px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--border-strong);
}
.contact-info-item:last-child { border-bottom: none; padding-bottom: 0; }

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-light), #dbeafe);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}
.contact-info-body { flex: 1; min-width: 0; }
.contact-info-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin: 0 0 4px;
}
.contact-info-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    word-break: break-word;
    direction: ltr;
    text-align: right;
}
.contact-info-value.rtl { direction: rtl; }
.contact-info-value a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--fast);
}
.contact-info-value a:hover { color: var(--primary); }

/* ─── Form Card ─── */
.contact-form-card {
    background: #fff;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--border);
}
.contact-form-header {
    padding: 22px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}
.contact-form-header::before {
    content: '';
    position: absolute;
    top: -50px; left: -50px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 201, 240, 0.25), transparent 70%);
    pointer-events: none;
}
.contact-form-header i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.contact-form-header h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    position: relative;
    z-index: 1;
}

.contact-form-body { padding: 28px; }

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}
.contact-form-body .pub-form-group { margin-bottom: 18px; }

.contact-submit-btn {
    width: 100%;
    margin-top: 8px;
}

/* ─── Feedback Section ─── */
.feedback-section {
    margin-top: 50px;
    background: linear-gradient(135deg, #f0f7ff, #e8f0fb);
    border-radius: 30px;
    padding: 50px 30px;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}
.feedback-header {
    text-align: center;
    margin-bottom: 36px;
}
.feedback-header h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0 8px;
}
.feedback-header p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* ─── Star Rating ─── */
.rating-container {
    display: flex;
    gap: 8px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
.rating-container input[type="radio"] { display: none; }
.rating-container label.star-label {
    cursor: pointer;
    font-size: 32px;
    color: #cbd5e1;
    transition: all var(--fast);
    line-height: 1;
}
.rating-container label.star-label:hover,
.rating-container label.star-label:hover ~ label.star-label,
.rating-container input:checked ~ label.star-label {
    color: #fbbf24;
    transform: scale(1.1);
}

/* ─── Feedback Type Chips ─── */
.feedback-types {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.feedback-type-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 30px;
    background: #fff;
    border: 1.5px solid var(--border-strong);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
    transition: all var(--fast);
    user-select: none;
}
.feedback-type-chip input { display: none; }
.feedback-type-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}
.feedback-type-chip:has(input:checked) {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(44, 109, 180, 0.28);
}

/* ─── Responsive ─── */
@media (max-width: 992px) {
    .contact-layout { grid-template-columns: 1fr; gap: 20px; }
    .contact-info-card { position: static; }
}
@media (max-width: 640px) {
    .contact-form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form-row .pub-form-group { margin-bottom: 18px; }
    .contact-form-body { padding: 22px; }
    .contact-form-header { padding: 18px 22px; }
    .contact-form-header h2 { font-size: 1rem; }
    .feedback-section { padding: 30px 18px; border-radius: 20px; margin-top: 30px; }
    .feedback-header h3 { font-size: 1.3rem; }
    .rating-container label.star-label { font-size: 28px; }
    .feedback-type-chip { padding: 8px 14px; font-size: 12px; }
}