/* r15b contact modal — editorial, not AI form soup */

.modal-root[hidden] { display: none !important; }

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  padding: 32px 28px 28px;
  border-radius: 4px;
  background: #0a0607;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 80px rgba(0, 0, 0, 0.65);
}

.modal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: #f2f2f3;
}

.modal-close {
  width: auto;
  height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(242, 242, 243, 0.45);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 140ms ease;
}

.modal-close:hover { color: #f2f2f3; }

.modal-close:focus-visible {
  outline: 2px solid rgba(224, 62, 62, 0.85);
  outline-offset: 3px;
}

.field { margin-bottom: 22px; }

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(242, 242, 243, 0.55);
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 0 12px;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #f2f2f3;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  outline: none;
  box-shadow: none;
  transition: border-color 160ms ease;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(242, 242, 243, 0.28);
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: rgba(224, 62, 62, 0.85);
  box-shadow: none;
}

.field textarea { min-height: 110px; }

.hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 18px;
}

.modal-status {
  font-size: 13px;
  color: rgba(242, 242, 243, 0.45);
  min-height: 1.2em;
}
.modal-status.is-ok { color: #8fbf9a; }
.modal-status.is-err { color: #d88a8a; }

.modal-submit {
  height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #f2f2f3;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-bottom: 1px solid rgba(224, 62, 62, 0.9);
  padding-bottom: 2px;
  transition: color 140ms ease, border-color 140ms ease, opacity 140ms ease;
}
.modal-submit:hover:not(:disabled) {
  color: #fff;
  border-bottom-color: #e03e3e;
  transform: none;
  background: transparent;
}
.modal-submit:focus-visible {
  outline: 2px solid rgba(224, 62, 62, 0.85);
  outline-offset: 3px;
}
.modal-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .modal-close,
  .modal-submit,
  .field input,
  .field textarea { transition: none; }
}
