/* ═══════════════════════════════════════════════
   SECTION: CONTACT (CORPORATE INDUSTRY STANDARD)
   ═══════════════════════════════════════════════ */

#contact {
  background: var(--bg-raised, #0b1329);
  padding: 80px 0;
}

.cl {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 64px;
  align-items: start;
}

.ci-body {
  font-size: 1.05rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Communication Channels */
.channels {
  display: flex;
  flex-direction: column;
}

.ch {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.ch-icon {
  color: var(--accent, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
}

.ch-lbl {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary, #64748b);
  margin-bottom: 4px;
}

.ch-val {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary, #f8fafc);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ch-val:hover {
  color: var(--accent, #3b82f6);
}

/* Form Styling */
.cf {
  background: var(--bg-high, rgba(15, 23, 42, 0.6));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius, 8px);
  padding: 32px;
}

.cf-legend {
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary, #64748b);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.fg {
  margin-bottom: 20px;
}

.fr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fl {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary, #64748b);
  margin-bottom: 8px;
}

.fc {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg, #020617);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius, 6px);
  color: var(--text-primary, #f8fafc);
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.9rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fc:focus {
  border-color: var(--accent, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.fc::placeholder {
  color: var(--text-tertiary, #475569);
}

textarea.fc {
  resize: vertical;
  min-height: 120px;
}

/* Form Interactive Chips */
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  cursor: pointer;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  color: var(--text-secondary, #94a3b8);
  background: transparent;
  transition: all 0.2s ease;
}

.chip:hover,
.chip.on {
  border-color: var(--accent, #3b82f6);
  color: #ffffff;
  background: rgba(59, 130, 246, 0.15);
}

/* Submit Action Button */
.btn-send {
  width: 100%;
  cursor: pointer;
  background: var(--accent, #3b82f6);
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px;
  border-radius: var(--radius, 6px);
  border: none;
  margin-top: 8px;
  transition: all 0.2s ease;
}

.btn-send:hover {
  background: #2563eb;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

.ch-val {
  cursor: pointer;
  transition: color 0.2s ease;
}

.ch-val.copied {
  color: var(--accent, #3b82f6);
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Responsive Breakpoint */
@media (max-width: 868px) {
  .cl {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .fr {
    grid-template-columns: 1fr;
  }
}


/*
 * ═══════════════════════════════════════════════════════════
 * CONTACT FORM — SECURITY / STATUS / FEEDBACK
 * ═══════════════════════════════════════════════════════════
 */


/* ==========================================================
   HONEYPOT
   ========================================================== */

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;

  width: 1px !important;
  height: 1px !important;

  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* ==========================================================
   CLOUDFLARE TURNSTILE
   ========================================================== */

.turnstile-wrapper {
  width: 100%;

  margin-top: 20px;
  margin-bottom: 20px;

  min-height: 65px;

  display: flex;
  align-items: center;
}

.turnstile-wrapper .cf-turnstile {
  max-width: 100%;
}


/* ==========================================================
   CONTACT STATUS
   ========================================================== */

.contact-status {
  display: block;
  width: 100%;
  box-sizing: border-box;

  margin-top: 14px;
  padding: 12px 14px;

  min-height: 0;

  border-radius: var(--radius, 6px);

  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.03em;

  opacity: 0;

  transition:
    opacity 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.contact-status:not(:empty) {
  opacity: 1;
}


/* ==========================================================
   SUCCESS
   ========================================================== */

.contact-status.success {
  color: #4ade80;

  background: rgba(34, 197, 94, 0.08);

  border: 1px solid rgba(34, 197, 94, 0.25);
}


/* ==========================================================
   ERROR
   ========================================================== */

.contact-status.error {
  color: #f87171;

  background: rgba(239, 68, 68, 0.08);

  border: 1px solid rgba(239, 68, 68, 0.25);
}


/* ==========================================================
   SENDING
   ========================================================== */

.contact-status.sending {
  color: var(--text-secondary, #94a3b8);

  background: rgba(148, 163, 184, 0.06);

  border: 1px solid var(
    --border,
    rgba(255, 255, 255, 0.08)
  );
}


/* ==========================================================
   SUBMIT BUTTON
   ========================================================== */

.btn-send {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 48px;

  cursor: pointer;

  background: var(--accent, #3b82f6);
  color: #ffffff;

  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 600;

  letter-spacing: 0.08em;
  text-transform: uppercase;

  padding: 14px;

  border-radius: var(--radius, 6px);
  border: none;

  margin-top: 8px;

  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.btn-send:hover:not(:disabled) {
  background: #2563eb;

  box-shadow:
    0 4px 16px
    rgba(59, 130, 246, 0.3);

  transform: translateY(-1px);
}

.btn-send:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

.btn-send:disabled {
  opacity: 0.6;

  cursor: not-allowed;

  transform: none;

  box-shadow: none;
}


/* ==========================================================
   LOADING
   ========================================================== */

.btn-send.loading {
  cursor: wait;
  opacity: 0.75;
}

.btn-send.loading::before {
  content: "";

  width: 13px;
  height: 13px;

  margin-right: 9px;

  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;

  border-radius: 50%;

  animation: contact-spinner 0.7s linear infinite;
}

@keyframes contact-spinner {
  to {
    transform: rotate(360deg);
  }
}


/* ==========================================================
   EMAIL COPY
   ========================================================== */

.ch-val {
  cursor: pointer;

  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.ch-val.copied {
  color: var(--accent, #3b82f6);

  font-family: var(--font-mono, monospace);

  font-size: 0.85rem;
  font-weight: 600;
}


/* ==========================================================
   STATUS PREFIXES
   ========================================================== */

.contact-status.success::before {
  content: "✓  ";
  font-weight: 600;
}

.contact-status.error::before {
  content: "×  ";
  font-weight: 600;
}

.contact-status.sending::before {
  content: "→  ";
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 868px) {

  .turnstile-wrapper {
    margin-top: 16px;
    margin-bottom: 16px;

    min-height: 65px;

    overflow-x: auto;
    overflow-y: hidden;
  }

  .contact-status {
    font-size: 0.7rem;
  }
}
