/* Contact Page Styles */
.contact-hero {
    background-color: #e0e5fd;
    padding: 20px 0 55px;
    text-align: center;
}
.contact-hero h1 { font-size: 2.6rem; font-weight: 900; margin-bottom: 12px; }
.contact-hero p { font-size: 1.05rem; opacity: 0.85; }
.text-highlight { background: rgba(255,255,255,0.2); padding: 2px 18px; border-radius: 100px; }

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.contact-info-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}
.contact-info-card:hover { box-shadow: 0 12px 30px rgba(106,92,226,0.1); transform: translateY(-4px); }
.info-icon {
    width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px;
    background: #ede9fe;
    background-size: 50%; background-repeat: no-repeat; background-position: center;
}
.ci-phone { background-color: #ede9fe; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236a5ce2' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1-9.4 0-17-7.6-17-17 0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1L6.6 10.8z'/%3E%3C/svg%3E"); }
.ci-email { background-color: #dbeafe; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%232563eb' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E"); }
.ci-location { background-color: #fce7f3; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23db2777' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E"); }
.ci-support { background-color: #d1fae5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23059669' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z'/%3E%3C/svg%3E"); }

.contact-info-card h2, .contact-info-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text-heading); }
.contact-info-card p, .contact-info-card address { font-size: 0.85rem; color: #64748b; margin-bottom: 8px; font-style: normal; line-height: 1.8; }
.contact-info-card a { color: var(--brand-purple); font-weight: 600; text-decoration: none; font-size: 0.95rem; }

/* Contact Form + Map */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form-wrapper, .contact-map-wrapper {
    background: #fff;
    border-radius: 24px;
    padding: 36px;
    border: 1px solid #e2e8f0;
}

.contact-form-wrapper h2, .contact-map-wrapper h2 {
    font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; color: var(--text-heading);
}
.contact-form-wrapper p { color: #64748b; font-size: 0.9rem; margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-heading); margin-bottom: 8px; }
.form-input {
    width: 100%; padding: 12px 16px;
    border: 2px solid #e2e8f0; border-radius: 12px;
    font-family: inherit; font-size: 0.95rem; color: var(--text-main);
    outline: none; transition: var(--transition); background: #f8fafc;
}
.form-input:focus { border-color: var(--brand-purple); background: #fff; }
.form-textarea { resize: vertical; min-height: 130px; }
.form-select { appearance: none; cursor: pointer; }
.btn-submit { width: 100%; padding: 14px; font-size: 1rem; font-weight: 700; border-radius: 14px; transition: 0.3s; }

/* Map Placeholder */
.map-placeholder {
    height: 220px; border-radius: 16px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    margin-bottom: 24px; position: relative;
    overflow: hidden;
}
.map-pin {
    width: 24px; height: 24px; background: var(--brand-purple);
    border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
    margin-bottom: 12px; box-shadow: 0 4px 12px rgba(106,92,226,0.4);
    animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform: rotate(-45deg) translateY(0)} 50%{transform: rotate(-45deg) translateY(-8px)} }
.map-placeholder p { font-weight: 600; color: var(--brand-purple); }

/* Social Contact */
.social-contact h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; color: var(--text-heading); }
.social-links { display: flex; flex-direction: column; gap: 10px; }
.social-link-card {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px; border-radius: 14px;
    text-decoration: none; transition: var(--transition);
}
.social-link-card strong { display: block; font-size: 0.95rem; color: var(--text-heading); }
.social-link-card span { font-size: 0.82rem; color: #94a3b8; }
.social-link-card.telegram { background: #e0f2fe; }
.social-link-card.instagram { background: #fce7f3; }
.social-link-card.linkedin { background: #dbeafe; }
.social-link-card:hover { transform: translateX(-4px); }


/* =============================================
   Additions (CMS): دسترس‌پذیری، خطاها، کپچا، FAQ
   ============================================= */
.contact-hero .hero-crumbs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: .9rem; margin-bottom: 14px; opacity: .85; }
.contact-hero .hero-crumbs a { color: #fff; text-decoration: none; }
.contact-hero .hero-crumbs a:hover { text-decoration: underline; }
@media (max-width: 640px) { .contact-form-wrapper, .contact-map-wrapper { padding: 22px 18px; } .contact-hero h1 { font-size: 2rem; } }

.contact-info-card a:focus-visible, .form-input:focus-visible, .btn:focus-visible, .captcha-refresh:focus-visible { outline: 2px solid var(--brand-purple); outline-offset: 2px; }
.form-group label small { font-weight: 400; color: #94a3b8; font-size: .78rem; }
.form-input:focus { box-shadow: 0 0 0 3px rgba(106, 92, 226, .15); }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2364748b' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; background-size: 20px; padding-left: 40px; }
.form-group.has-error .form-input { border-color: #ef4444; }
.field-error { display: block; color: #b91c1c; font-size: .82rem; margin-top: 6px; }
.field-meta { text-align: left; font-size: .78rem; color: #94a3b8; margin-top: 4px; }
.form-alert { padding: 12px 16px; border-radius: 12px; font-size: .92rem; margin-bottom: 20px; line-height: 1.8; }
.form-alert.success { background: #f0fdf4; color: #065f46; border: 1px solid #bbf7d0; }
.form-alert.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-alert:focus { outline: none; }
.form-privacy { font-size: .8rem; color: #94a3b8; margin: 14px 0 0; text-align: center; line-height: 1.8; }
.btn[disabled] { opacity: .65; cursor: progress; }

.captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha-row img { height: 50px; width: 150px; border-radius: 10px; border: 2px solid #e2e8f0; background: #f8fafc; display: block; }
.captcha-row .captcha-refresh { border: 2px solid #e2e8f0; background: #fff; border-radius: 12px; width: 46px; height: 46px; cursor: pointer; font-size: 1.15rem; }
.captcha-row .form-input { max-width: 170px; text-align: center; letter-spacing: 4px; direction: ltr; font-size: 1.1rem; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.map-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; padding: 0 12px; }
.map-placeholder + .map-actions { margin-top: -8px; }
.map-actions .btn { font-size: .9rem; font-family: inherit; }
.map-placeholder p { text-align: center; padding: 0 16px; line-height: 1.8; }

.contact-faq { margin-top: 56px; max-width: 860px; margin-inline: auto; }
.contact-faq h2 { font-size: 1.4rem; font-weight: 800; color: var(--text-heading); margin-bottom: 18px; text-align: center; }
.contact-faq details { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 0 20px; margin-bottom: 10px; transition: var(--transition); }
.contact-faq details[open] { box-shadow: 0 8px 24px rgba(106, 92, 226, .08); border-color: #c7d2fe; }
.contact-faq summary { cursor: pointer; font-weight: 700; color: var(--text-heading); padding: 16px 0; }
.contact-faq summary:focus-visible { outline: 2px solid var(--brand-purple); outline-offset: 3px; border-radius: 6px; }
.contact-faq details p { margin: 0 0 16px; color: #475569; line-height: 1.9; font-size: .95rem; }


/* نقشه‌ی نشان */
.neshan-map-wrap { margin-bottom: 24px; }
.neshan-map { direction: ltr; height: 320px; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); position: relative; z-index: 0; }
@media (max-width: 640px) { .neshan-map { height: 260px; } }
.neshan-map .leaflet-popup-content { direction: rtl; text-align: right; font-family: inherit; line-height: 1.8; margin: 12px 16px; }
.map-fallback { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; direction: rtl; text-align: center; padding: 16px; }
.map-fallback p { font-weight: 600; color: var(--brand-purple); line-height: 1.8; }
.map-fallback .map-error { color: #b91c1c; font-weight: 400; font-size: .88rem; }
.map-fallback .btn { margin-top: 8px; font-family: inherit; }
.map-noscript { font-size: .9rem; color: #64748b; margin-top: 8px; }
.map-actions { margin-bottom: 28px; }
.map-geo { display: none; }
@media (hover: none) and (pointer: coarse) { .map-geo { display: inline-flex; } } /* geo: فقط روی موبایل معنی دارد */
