.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: start;
}

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 32px);
}

.contact-note {
  background: #f8fcfd;
  border: 1px solid var(--border);
  border-left: 5px solid var(--brand-blue);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.contact-note h3,
.contact-note p {
  margin: 0;
}

.contact-note h3 {
  font-size: 1.16rem;
  line-height: 1.35;
}

.contact-note p + h3 {
  margin-top: 18px;
}

.contact-note p {
  margin-top: 8px;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-weight: 800;
}

.form-hint {
  color: var(--muted);
  font-size: 1rem;
}

.contact-frame {
  display: block;
  width: 100%;
  min-height: 760px;
  border: 0;
  background: #fff;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c7d5d9;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}

.contact-form textarea {
  min-height: 190px;
  resize: vertical;
}

.contact-form input[type="file"] {
  min-height: auto;
  padding: 9px 10px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand-blue);
  outline: 3px solid rgba(61, 181, 230, 0.22);
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 180px;
  min-height: 54px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 13px 22px;
}

.contact-submit:hover {
  background: #27313b;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.contact-status {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.contact-status[hidden] {
  display: none;
}

.contact-status.is-success {
  background: #edf9f0;
  border-color: #9dd8aa;
}

.contact-status.is-info {
  background: #f8fcfd;
  border-color: #9bcfe3;
}

.contact-status.is-error {
  background: #fff7e0;
  border-color: #e4ba4f;
}

.required-mark {
  color: #b3261e;
}

.contact-fallback {
  margin-top: 14px;
}

.contact-fallback a {
  font-weight: 800;
}

@media (max-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-submit {
    width: 100%;
  }
}
