:root {
  --bg: #ffffff;
  --soft: #f7f7f7;
  --soft2: #f1f3f5;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --black: #111827;
  --blue: #1d7ff2;
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { padding: 24px 14px 56px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.contact-shell { width: min(1040px, 100%); margin: 0 auto; display: grid; gap: 18px; }
.contact-hero, .contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, .06);
}
.contact-hero {
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}
.contact-logo-link { display: inline-flex; align-items: center; justify-content: center; }
.contact-logo { width: 140px; max-width: 100%; height: auto; object-fit: contain; display: block; }
.contact-eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
}
.contact-hero h1 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 56px); line-height: .94; letter-spacing: -.04em; }
.contact-subtext { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.4; }
.contact-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.contact-link-btn, .contact-submit-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--black);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.contact-link-btn-dark, .contact-submit-btn {
  background: #111827;
  color: #fff;
  border-color: #111827;
}
.contact-link-btn:hover { background: var(--soft2); }
.contact-link-btn-dark:hover, .contact-submit-btn:hover { background: #000; }

.contact-card { padding: 24px; }
.contact-card-head h2 { margin: 0 0 6px; font-size: 28px; }
.contact-card-head p { margin: 0 0 18px; color: var(--muted); }
.contact-form { display: grid; gap: 18px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-dynamic-fields {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcfd;
}
.contact-form label { display: grid; gap: 8px; }
.contact-form label span { font-size: 13px; font-weight: 900; color: var(--black); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  border: 1px solid #d8dee8;
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
  color: var(--text);
}
.contact-form input, .contact-form select { min-height: 46px; }
.contact-form textarea { min-height: 160px; padding-block: 12px; resize: vertical; }
.contact-message-row { display: grid; gap: 8px; }
.contact-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.contact-form-status { margin: 0; min-height: 20px; color: var(--muted); font-size: 14px; }
.contact-form-status.is-error { color: #b42318; font-weight: 800; }
.contact-form-status.is-success { color: #0f766e; font-weight: 800; }

@media (max-width: 900px) {
  .contact-hero { grid-template-columns: 1fr; justify-items: start; }
  .contact-hero-actions { justify-content: flex-start; }
}
@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
  body { padding-inline: 10px; }
  .contact-card, .contact-hero { padding: 18px; border-radius: 20px; }
  .contact-logo { width: 120px; }
  .contact-submit-btn { width: 100%; }
}


.contact-upload-block {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px dashed #cfd8e3;
  border-radius: 18px;
  background: #fbfcfd;
}
.contact-upload-head { display: grid; gap: 4px; }
.contact-upload-head span {
  font-size: 13px;
  font-weight: 900;
  color: var(--black);
}
.contact-upload-head small {
  color: var(--muted);
  font-size: 12px;
}
.contact-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.contact-upload-btn,
.contact-upload-clear {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--black);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.contact-upload-btn:hover,
.contact-upload-clear:hover { background: var(--soft2); }
.contact-upload-meta {
  color: var(--muted);
  font-size: 13px;
}
