/* ─────────────────────────────────────────────────────────────────────────────
   CONTACT PAGE — Dark Vercel theme
   Alinhado ao smtp-relay.css / about-us.css / faq.css / status.css dark
───────────────────────────────────────────────────────────────────────────── */

.contact-page {
  --blue: #0070f3;
  --green: #00c851;
  --orange: #ef4444;
  --amber: #f5a623;
  --mono: "Fira Code", "Consolas", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r-sm: 6px;
  --r-md: 10px;

  background: #0a0a0a;
  min-height: 100vh;
  position: relative;
}

/* dot grid background */
.contact-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   LAYOUT
════════════════════════════════════════════════════════════════════════════ */
.contact-details {
  padding: 110px 0 80px;
  position: relative;
  z-index: 1;
}
@media (min-width: 1260px) {
  .contact-details {
    padding-top: 152px;
  }
}

.contact-details__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  align-items: start;
}

/* ════════════════════════════════════════════════════════════════════════════
   INFO CARD — esquerda
════════════════════════════════════════════════════════════════════════════ */
.contact-info-card {
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: var(--r-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  position: sticky;
  top: 100px;
}

.contact-info-card__headset {
  font-size: 28px;
  display: block;
  margin-bottom: 14px;
}

.contact-info-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}

.contact-info-card__desc {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

.contact-info-card__top {
  padding-bottom: 0;
}

.contact-info-card__divider {
  height: 1px;
  background: #1f1f1f;
  margin: 18px 0;
}

.contact-info-card__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-info-card__meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info-card__meta-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.contact-info-card__meta-link {
  font-size: 13px;
  color: #7dd3fc;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.15s;
}
.contact-info-card__meta-link:hover {
  color: #bae6fd;
}

.contact-info-card__meta-text {
  font-size: 13px;
  color: #555;
}

.contact-info-card__social-label {
  font-size: 12px;
  color: #333;
  margin: 0 0 10px;
}

.contact-info-card__dashboard-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #ededed;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #2a2a2a;
  border-radius: var(--r-sm);
  padding: 8px 14px;
  text-decoration: none;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.contact-info-card__dashboard-btn:hover {
  border-color: #444;
  background: rgba(255, 255, 255, 0.07);
}

/* ════════════════════════════════════════════════════════════════════════════
   FORM CARD — direita
════════════════════════════════════════════════════════════════════════════ */
.contact-form-card {
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: var(--r-md);
  padding: 24px;
}

.contact-form-card__section-title {
  font-size: 14px;
  font-weight: 700;
  color: #ededed;
  margin-bottom: 4px;
}

.contact-form-card__section-sub {
  font-size: 13px;
  color: #444;
  margin-bottom: 16px;
}

.contact-form-card__divider {
  height: 1px;
  background: #1a1a1a;
  margin: 20px 0;
}

.contact-form-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.contact-form-card__note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #2a2a2a;
  font-family: var(--mono);
}

/* ════════════════════════════════════════════════════════════════════════════
   TOPIC SELECTOR
════════════════════════════════════════════════════════════════════════════ */
.contact-topics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 8px;
  margin-bottom: 4px;
}

.contact-topic {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  cursor: pointer;
  border: 1px solid #1f1f1f;
  background: #0a0a0a;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.contact-topic:hover {
  background: #141414;
  border-color: #2a2a2a;
}
.contact-topic.active {
  border-color: var(--topic-color);
  background: var(--topic-bg);
}

.contact-topic__icon {
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1;
}

.contact-topic__label {
  font-size: 13px;
  font-weight: 600;
  color: #ededed;
}

/* ════════════════════════════════════════════════════════════════════════════
   FORM FIELDS
════════════════════════════════════════════════════════════════════════════ */
.contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-field--full {
  grid-column: 1 / -1;
}

.contact-field label {
  font-size: 11px;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--mono);
}

.contact-field input,
.contact-field textarea {
  background: #0a0a0a;
  border: 1px solid #1f1f1f;
  border-radius: var(--r-sm);
  padding: 10px 13px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  color: #ededed;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  resize: none;
  width: 100%;
  box-sizing: border-box;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #2a2a2a;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: rgba(0, 112, 243, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.08);
}

.contact-field input.invalid,
.contact-field textarea.invalid {
  border-color: rgba(239, 68, 68, 0.5);
}

/* ════════════════════════════════════════════════════════════════════════════
   SUBMIT BUTTON
════════════════════════════════════════════════════════════════════════════ */
.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #000;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition:
    background 0.18s,
    transform 0.18s var(--ease),
    box-shadow 0.18s;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.contact-submit-btn:hover:not(:disabled) {
  background: #e6e6e6;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}
.contact-submit-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* spinner inside button */
.contact-btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: contactSpin 0.7s linear infinite;
}
@keyframes contactSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   ERROR BANNER
════════════════════════════════════════════════════════════════════════════ */
.contact-error-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  margin-bottom: 16px;
  font-size: 13px;
  color: #fca5a5;
  font-family: var(--mono);
}

/* ════════════════════════════════════════════════════════════════════════════
   SUCCESS STATE
════════════════════════════════════════════════════════════════════════════ */
.contact-success {
  padding: 40px 20px;
  text-align: center;
}

.contact-success__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 200, 81, 0.08);
  border: 1px solid rgba(0, 200, 81, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
}

.contact-success__title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.contact-success__desc {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

.contact-success__highlight {
  color: #7dd3fc;
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════════════════
   LOADING / NOT FOUND
════════════════════════════════════════════════════════════════════════════ */
.contact-loading {
  padding: 56px;
  text-align: center;
}

.contact-loading__spinner {
  width: 32px;
  height: 32px;
  border: 2px solid #1f1f1f;
  border-top-color: #0070f3;
  border-radius: 50%;
  animation: contactSpin 0.8s linear infinite;
  margin: 0 auto;
}

.contact-not-found {
  padding: 56px;
  text-align: center;
}

.contact-not-found__icon {
  font-size: 40px;
  display: block;
  margin: 0 auto 16px;
  opacity: 0.3;
}

.contact-not-found__title {
  font-size: 18px;
  font-weight: 700;
  color: #ededed;
  margin: 0 0 8px;
}

.contact-not-found__desc {
  font-size: 14px;
  color: #444;
  margin: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .contact-details__inner {
    grid-template-columns: 1fr;
  }
  .contact-info-card {
    position: static;
  }
}

@media (max-width: 600px) {
  .contact-details {
    padding: 80px 0 48px;
  }
  .contact-fields {
    grid-template-columns: 1fr;
  }
  .contact-form-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-topics {
    grid-template-columns: 1fr 1fr;
  }
}
