/* ═══════════════════════════════════════════════════════════
   صفحه ارتباط با ما
   ═══════════════════════════════════════════════════════════ */

.contact-body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
.contact-app {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

.back-btn {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 5px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all .15s;
}
.back-btn:hover { color: var(--text); border-color: var(--border-hi); }

.contact-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.info-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  opacity: .5;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(239,68,68,.2), rgba(239,68,68,.05));
  color: var(--accent);
  margin-bottom: 14px;
}

.info-card h2 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -.3px;
}
.info-card h3 { font-size: 15px; margin-bottom: 14px; font-weight: 800; }
.info-card p {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.85;
  margin-bottom: 10px;
}

/* ─── socials ─────────────────────────────────────── */

.socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.social {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.social svg { color: var(--c); flex-shrink: 0; }
.social::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c);
  opacity: 0;
  transition: opacity .2s;
}
.social > * { position: relative; z-index: 1; }
.social:hover {
  border-color: var(--c);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px var(--c);
}
.social:hover::before { opacity: .08; }

.social--telegram  { --c: #0088cc; }
.social--instagram { --c: #e4405f; }
.social--whatsapp  { --c: #25d366; }
.social--x         { --c: #ffffff; }
.social--bale      { --c: #5d75e0; }
.social--email     { --c: #f59e0b; }

.social-note {
  margin-top: 14px !important;
  font-size: 11.5px !important;
  color: var(--text-muted) !important;
}

.social-head {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-dim);
}

/* ─── form ─────────────────────────────────────────── */

.form-intro {
  margin-bottom: 18px !important;
  font-size: 13px !important;
}

.contact-form { display: flex; flex-direction: column; gap: 14px; }

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

.cf-field { display: flex; flex-direction: column; gap: 5px; }
.cf-field--full { grid-column: 1 / -1; }

.cf-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
}

.cf-field input,
.cf-field select,
.cf-field textarea {
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 13.5px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  border-color: var(--accent);
  background: var(--surface-hi);
}
.cf-field textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.cf-field input[dir="ltr"] { direction: ltr; text-align: left; }

.cf-submit {
  margin-top: 6px;
  padding: 12px;
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform .1s, box-shadow .2s;
}
.cf-submit:hover:not(:disabled) {
  box-shadow: 0 6px 20px -6px rgba(239,68,68,.6);
}
.cf-submit:active:not(:disabled) { transform: translateY(1px); }
.cf-submit:disabled { opacity: .6; cursor: wait; }

.cf-msg {
  font-size: 13px;
  min-height: 22px;
  text-align: center;
  padding: 4px 0;
}
.cf-msg.success { color: #86efac; }
.cf-msg.error   { color: #fca5a5; }

/* ─── responsive ─────────────────────────────────── */

@media (max-width: 900px) {
  .contact-main {
    grid-template-columns: 1fr;
    padding: 14px;
  }
}
