.contact-wrap {
  max-width: 1100px; margin: 0 auto; padding: 6rem 2rem 8rem;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: start;
}
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 1.5rem 6rem; } }

/* ── Left info panel ── */
.contact-info .page-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); background: rgba(124,106,255,0.08);
  border: 1px solid rgba(124,106,255,0.25); border-radius: 6px;
  padding: 0.35rem 0.8rem; margin-bottom: 1.6rem;
}
.contact-info h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -1.5px;
  line-height: 1.1; color: #fff; margin-bottom: 1.2rem;
}
.contact-info p { font-size: 0.92rem; color: var(--muted); line-height: 1.75; margin-bottom: 2.5rem; }

.contact-meta { display: flex; flex-direction: column; gap: 1rem; }
.meta-item {
  display: flex; align-items: flex-start; gap: 0.9rem;
  padding: 1.1rem 1.2rem; border-radius: 12px;
  background: var(--bg2); border: 1px solid var(--border);
}
.meta-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.meta-item h4 { font-size: 0.78rem; font-weight: 700; color: var(--muted); letter-spacing: 0.5px; margin-bottom: 0.25rem; }
.meta-item p, .meta-item a { font-size: 0.88rem; color: #ccc; line-height: 1.5; }
.meta-item a:hover { color: #fff; }

/* ── Form card ── */
.contact-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 18px;
  padding: 2.5rem;
}
.contact-card h2 { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 0.3rem; }
.contact-card .sub { font-size: 0.83rem; color: var(--muted); margin-bottom: 2rem; }

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

.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field label {
  font-size: 0.78rem; font-weight: 600; color: var(--muted); letter-spacing: 0.3px;
}
.field label .req { color: var(--accent); margin-left: 2px; }
.field input, .field textarea {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 9px; color: #fff; font-size: 0.9rem;
  font-family: inherit; padding: 0.7rem 1rem; outline: none;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: #3a3a4a; }
.field input:focus, .field textarea:focus {
  border-color: rgba(124,106,255,0.5);
  background: rgba(124,106,255,0.04);
}
.field.has-error input, .field.has-error textarea { border-color: rgba(239,68,68,0.6); }
.field .err-msg { font-size: 0.75rem; color: #f87171; }
.field textarea { resize: vertical; min-height: 130px; }

.btn-submit {
  width: 100%; padding: 0.85rem; border-radius: 10px; border: none; cursor: pointer;
  font-size: 0.9rem; font-weight: 700; font-family: inherit;
  background: linear-gradient(135deg, var(--accent), #6055cc); color: #fff;
  transition: all .2s; margin-top: 0.5rem;
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(124,106,255,0.35); }
.btn-submit:active { transform: none; }

/* ── Success state ── */
.success-box { text-align: center; padding: 2rem 1rem; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(52,211,153,0.15), rgba(52,211,153,0.05));
  border: 1px solid rgba(52,211,153,0.3);
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.success-box h3 { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 0.6rem; }
.success-box p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }
.success-box .back-link { display: inline-block; margin-top: 1.5rem; font-size: 0.85rem; color: var(--accent); }
.success-box .back-link:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .contact-info { order: 1; }
  .contact-card { order: 2; }
}
@media (max-width: 480px) {
  .contact-card { padding: 1.6rem 1.2rem; }
  .contact-info h1 { font-size: 1.9rem; }
  .meta-item { padding: 1rem; }
  .meta-item h4 { font-size: 0.72rem; }
}
