/* Contact form for www.peleng.am. Uses tokens from main.css; all classes are prefixed cf- so nothing else is touched. */
.cf-wrap { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 980px; margin: 0 auto 48px; }
@media (min-width: 900px) { .cf-wrap { grid-template-columns: 5fr 7fr; align-items: stretch; } }

.cf-aside {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 34px 30px; color: #fff;
  background: radial-gradient(120% 90% at 0% 0%, #3b8cff 0%, var(--brand) 45%, #123a82 100%);
  box-shadow: var(--shadow-lg);
}
.cf-aside::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 214, 255, .45), transparent 70%);
}
.cf-aside h2 { color: #fff; margin: 0 0 10px; font-size: 1.6rem; }
.cf-aside p { color: rgba(255, 255, 255, .86); margin: 0 0 22px; }
.cf-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.cf-aside li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.cf-aside li svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .16); }
.cf-aside a { color: #fff; text-decoration: none; }
.cf-aside a:hover { text-decoration: underline; }

.cf-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px 30px; box-shadow: var(--shadow-md);
}
.cf-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cf-grid { grid-template-columns: 1fr 1fr; } .cf-full { grid-column: 1 / -1; } }

.cf-field { position: relative; display: block; }
.cf-field > span { display: block; font-size: .82rem; font-weight: 600; color: var(--text-dim); margin: 0 0 6px; }
.cf-field > span i { color: var(--danger); font-style: normal; }
.cf-field input, .cf-field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface-2); border: 1.5px solid transparent;
  border-radius: var(--radius-sm); padding: 13px 14px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.cf-field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: var(--text-muted); opacity: .8; }
.cf-field input:focus, .cf-field textarea:focus {
  outline: none; background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.cf-field.cf-bad input, .cf-field.cf-bad textarea { border-color: var(--danger); background: #fff5f5; }
.cf-err { display: none; color: var(--danger); font-size: .8rem; margin-top: 5px; }
.cf-field.cf-bad .cf-err { display: block; }

.cf-label { font-size: .82rem; font-weight: 600; color: var(--text-dim); margin: 0 0 8px; display: block; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-chips label { position: relative; }
.cf-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cf-chips span {
  display: inline-block; padding: 9px 15px; border-radius: 999px; font-size: .9rem; font-weight: 500; cursor: pointer;
  background: var(--surface-2); color: var(--text-dim); border: 1.5px solid transparent; transition: all .18s;
}
.cf-chips label:hover span { border-color: var(--border); color: var(--text); }
.cf-chips input:checked + span { background: var(--brand-soft); color: var(--brand-hover); border-color: var(--brand); }
.cf-chips input:focus-visible + span { box-shadow: 0 0 0 4px var(--brand-soft); }

.cf-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--text-dim); line-height: 1.45; }
.cf-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.cf-consent a { color: var(--brand); }
.cf-consent.cf-bad { color: var(--danger); }

.cf-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 8px; }
.cf-reply { font-size: .84rem; color: var(--text-muted); }
.cf-reply b { color: var(--text); font-weight: 600; }
.cf-submit[disabled] { opacity: .65; cursor: progress; transform: none; }
.cf-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: cf-r .7s linear infinite; display: none; }
.cf-submit.cf-busy .cf-spin { display: inline-block; }
@keyframes cf-r { to { transform: rotate(360deg); } }
.cf-status { margin-top: 12px; font-size: .9rem; color: var(--danger); min-height: 1.2em; }

.cf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cf-done { display: none; text-align: center; padding: 28px 8px; }
.cf-card.cf-sent form { display: none; }
.cf-card.cf-sent .cf-done { display: block; animation: cf-in .5s ease both; }
.cf-done h3 { margin: 18px 0 8px; font-size: 1.5rem; }
.cf-done p { color: var(--text-dim); max-width: 420px; margin: 0 auto 6px; }
.cf-check { width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; background: rgba(16, 185, 129, .12); display: grid; place-items: center; }
.cf-check svg { width: 38px; height: 38px; stroke: var(--ok); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: cf-d .6s .25s ease forwards; }
@keyframes cf-d { to { stroke-dashoffset: 0; } }
@keyframes cf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cf-done, .cf-check svg, .cf-spin { animation: none; } .cf-check svg { stroke-dashoffset: 0; } }

/* Gagik 05.11: website, messengers, Telegram-bot button */
.cf-aside .cf-bot { margin-top: 18px; position: relative; z-index: 1; background: #fff; color: var(--brand-hover); border-color: #fff; text-decoration: none; }
.cf-aside .cf-bot:hover { background: rgba(255, 255, 255, .9); text-decoration: none; }
.cf-bot[hidden] { display: none; }
.cf-ch { margin-top: 2px; }
