/* RCSpotter — Contact page */

.rcs-contact-page {
  --contact-text-halo:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 3px rgba(0, 0, 0, 0.92),
    0 2px 10px rgba(0, 0, 0, 0.82),
    0 4px 22px rgba(0, 0, 0, 0.55);
  --contact-text-halo-strong:
    0 0 2px rgba(0, 0, 0, 1),
    0 1px 4px rgba(0, 0, 0, 0.95),
    0 3px 14px rgba(0, 0, 0, 0.88),
    0 6px 28px rgba(0, 0, 0, 0.65);
}

.rcs-contact-page .rcs-contact-wrap {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

.rcs-contact-chrome .rcs-pilot-chrome-row {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.rcs-contact-back {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-shadow: var(--contact-text-halo);
}

.rcs-contact-hero {
  margin-bottom: 8px;
  padding: 22px 20px 24px;
  border-radius: 18px;
  background: rgba(11, 18, 32, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rcs-contact-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
}

.rcs-contact-lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.94);
}

.rcs-contact-panel {
  padding: 24px 22px;
  border-radius: 18px;
  background: rgba(11, 18, 32, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .rcs-contact-panel {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.1);
}

.rcs-contact-panel label {
  display: block;
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--rcs-text);
}

.rcs-contact-panel label:first-child {
  margin-top: 0;
}

.rcs-contact-panel input,
.rcs-contact-panel select,
.rcs-contact-panel textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--rcs-border);
  background: var(--rcs-input-bg);
  color: var(--rcs-text);
  font: inherit;
  font-size: 15px;
}

.rcs-contact-panel textarea {
  min-height: 140px;
  resize: vertical;
}

.rcs-contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.rcs-contact-turnstile {
  margin: 14px 0 4px;
  min-height: 65px;
}

.rcs-contact-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.rcs-contact-status {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--rcs-muted);
}

.rcs-contact-status.is-ok {
  color: var(--rcs-success);
}

.rcs-contact-status.is-error {
  color: var(--rcs-error);
}

.rcs-contact-guest-note {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--rcs-muted);
}

.rcs-contact-signed-as {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--rcs-accent-dim);
  border: 1px solid rgba(221, 2, 6, 0.2);
  font-size: 14px;
  line-height: 1.5;
  color: var(--rcs-text);
}

.rcs-contact-signed-as strong {
  color: var(--rcs-accent-text);
}

.rcs-contact-panel--guest textarea {
  min-height: 100px;
}

.rcs-contact-label {
  display: block;
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--rcs-text);
}

.rcs-contact-hint {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--rcs-muted);
}

.rcs-contact-drop {
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed var(--rcs-border);
  background: color-mix(in srgb, var(--rcs-input-bg) 80%, transparent);
  text-align: center;
  cursor: pointer;
}

.rcs-contact-drop.is-over {
  border-color: var(--rcs-accent);
}

.rcs-contact-drop p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--rcs-muted);
}

.rcs-contact-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
}

.rcs-contact-preview {
  position: relative;
  width: 88px;
  height: 88px;
}

.rcs-contact-preview img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--rcs-border);
}

.rcs-contact-preview-rm {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: var(--rcs-error);
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
}

.rcs-contact-recent-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--rcs-border);
  background: var(--rcs-input-bg);
  color: var(--rcs-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.rcs-contact-recent-item span {
  font-size: 13px;
  color: var(--rcs-muted);
}

.rcs-contact-thread-nav {
  margin: 0 0 12px;
}

.rcs-contact-thread-meta {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--rcs-muted);
}

.rcs-contact-msg {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--rcs-border);
  background: var(--rcs-input-bg);
}

.rcs-contact-msg.is-staff {
  border-color: color-mix(in srgb, var(--rcs-accent) 40%, var(--rcs-border));
}

.rcs-contact-msg header {
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--rcs-muted);
}

.rcs-contact-msg-body {
  margin: 0;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.5;
}

.rcs-contact-msg-shots,
.rcs-contact-loose-shot {
  margin-top: 8px;
}

.rcs-contact-msg-shots img,
.rcs-contact-loose-shot {
  max-width: min(100%, 280px);
  border-radius: 8px;
  border: 1px solid var(--rcs-border);
}

.rcs-contact-translate {
  margin-top: 8px;
}

.rcs-contact-mt-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--rcs-muted);
}

#member-trans textarea {
  min-height: 72px;
}
