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(42,11,69,0.48);
  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 var(--line);
  border-radius: 20px;
  background: var(--paper);
  padding: 30px;
  box-shadow: 0 30px 90px rgba(42,11,69,0.26);
}

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

.contact-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

.contact-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.contact-close:hover { background: var(--bg-3); }

.contact-form { display: grid; gap: 18px; text-align: left; }
.contact-form label { display: grid; gap: 8px; }

.contact-form label > span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  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(184,58,117,0.14);
}

.contact-submit {
  width: fit-content;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #3B1865 0%, #6B2A82 40%, #B83A75 75%, #D14B85 100%);
  color: var(--paper);
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 800;
}

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

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

.form-status.success { color: #386641; }
.form-status.error { color: #b42318; }

.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: 600px) {
  .contact-lightbox { padding: 14px; }
  .contact-panel { padding: 22px; border-radius: 16px; }
}
