/* صفحه‌ی تماس با ما — فرم و کارت اطلاعات، کنار هم روی دسکتاپ و زیر هم روی موبایل. */

.ct-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--s4);
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}

/* نظام اندازه‌ی یکدست: ظرف ۹۶۰، کارت ۲۴ (موبایل ۱۶) با گوشه‌ی ۱۶، کنترل ۴۸/۱۶، برچسب ۱۴/۵۰۰. */
.ct-form, .ct-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s3);
}

.ct-h { font-size: 20px; margin: 0 0 var(--s3); }

.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }

.ct-field { display: block; margin-bottom: var(--s3); }
.ct-field > span {
  display: block; font-size: 14px; font-weight: 500;
  margin-bottom: 8px; color: var(--body);
}
.ct-field > span b { color: #C0392B; font-weight: 700; }

.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%; box-sizing: border-box;
  height: 48px; padding: 0 12px;
  border: 1px solid rgba(15, 76, 69, .3); border-radius: var(--r-sm);
  background: #fff; font-family: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.ct-field textarea { resize: vertical; line-height: 1.8; height: auto; min-height: 144px; padding: 12px; }

.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  outline: 2px solid var(--primary); outline-offset: 2px; border-color: var(--primary);
}
/* فیلد نامعتبر پس از تلاش برای ارسال */
.ct-field.invalid input,
.ct-field.invalid textarea { border-color: #C0392B; }

.ct-note {
  margin: 0 0 var(--s3); padding: 12px 16px;
  border-radius: var(--r-sm); font-size: 13.5px; line-height: 1.85;
}
.ct-note.err  { background: rgba(192,57,43,.08);  color: #8E2A20; }
.ct-note.ok   { background: rgba(46,139,87,.10);  color: #1E5E3A; }
.ct-note.info { background: rgba(15,76,69,.07);   color: var(--primary); }

.ct-side { display: grid; gap: var(--s3); }
.ct-card h3 { font-size: 16px; margin: 0 0 var(--s2); }

.ct-list { list-style: none; margin: 0; padding: 0; }
.ct-list li {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.ct-list li:last-child { border-bottom: none; padding-bottom: 0; }
.ct-label { font-size: 14px; color: var(--body); }
.ct-list a { color: var(--primary); text-decoration: none; }
.ct-list a:hover { text-decoration: underline; }

.ct-hint { background: rgba(15,76,69,.04); }
.ct-hint p { font-size: 13.5px; line-height: 1.95; margin: 0 0 10px; color: var(--body); }
.ct-hint p:last-child { margin-bottom: 0; }
.ct-hint a { color: var(--primary); }

@media (max-width: 860px) {
  .ct-layout { grid-template-columns: 1fr; }
  .ct-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ct-form, .ct-card { padding: var(--s2); }
}
