body.modal-open { overflow: hidden; }

.contact-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

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

.contact-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(4, 3, 5, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  background: var(--bg-2);
  padding: 30px;
  box-shadow: 0 28px 90px rgba(0,0,0,0.56);
}

.contact-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.contact-header h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 250;
  letter-spacing: -0.035em;
}

.contact-lightbox button { font-family: inherit; cursor: pointer; }

.contact-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-3);
  color: var(--ink);
  font-size: 28px;
  font-weight: 200;
  line-height: 1;
}

.contact-close:hover { border-color: rgba(255,255,255,0.28); }
.contact-form { display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 8px; }

.contact-form label > span {
  color: var(--soft);
  font-size: 13px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-3);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 14px 15px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--magenta);
  box-shadow: 0 0 0 4px rgba(194,56,115,0.18);
}

.contact-submit {
  width: fit-content;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--plum), var(--magenta));
  color: #fff;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
}

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

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-status.success { color: var(--ok); }
.form-status.error { color: #ff9b9b; }

.contact-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  .contact-lightbox { padding: 14px; }
  .contact-panel { padding: 22px; border-radius: 14px; }
}
