.btn-disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(1);
}

/* Keep the docs layout footer area aligned with the rest of the site. */
.hextra-sidebar-container > div:last-child {
  display: none;
}

.hextra-sidebar-container ~ article main > div[class*="hx:mt-12"][class*="hx:text-xs"] {
  display: none;
}

.crossdesk-logo {
  filter: none;
}

html[class~="dark"] .crossdesk-logo {
  filter: invert(1) !important;
}

.theme-image {
  display: block;
  width: 100%;
  height: auto;
}

.support-form-shell {
  margin: 1.5rem 0 2rem;
}

.support-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.support-field {
  display: grid;
  gap: 0.45rem;
}

.support-field label {
  font-weight: 600;
}

.support-field textarea,
.support-field input[type="email"],
.support-field input[type="file"] {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.9rem;
  background: #ffffff;
  color: #0f172a;
  padding: 0.85rem 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.support-field input[type="file"] {
  padding: 0.75rem;
  background: #f8fafc;
}

.support-field textarea {
  min-height: 10rem;
  resize: vertical;
}

.support-field textarea:focus,
.support-field input[type="email"]:focus,
.support-field input[type="file"]:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.support-field-help,
.support-submit-note {
  margin: 0;
  font-size: 0.95rem;
  color: #475569;
}

.support-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.support-submit {
  border: 0;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff;
  font-weight: 600;
  padding: 0.85rem 1.35rem;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
}

.support-submit:hover {
  background: #115e59;
  transform: translateY(-1px);
}

.support-submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.support-status[hidden] {
  display: none;
}

.support-status {
  border-radius: 0.95rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
}

.support-status[data-state="success"] {
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #166534;
}

.support-status[data-state="error"] {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

html[class~="dark"] .support-form {
  border-color: #334155;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(17, 24, 39, 0.92) 100%);
  box-shadow: none;
}

html[class~="dark"] .support-field textarea,
html[class~="dark"] .support-field input[type="email"],
html[class~="dark"] .support-field input[type="file"] {
  border-color: #475569;
  background: #0f172a;
  color: #e2e8f0;
}

html[class~="dark"] .support-field input[type="file"] {
  background: #111827;
}

html[class~="dark"] .support-field-help,
html[class~="dark"] .support-submit-note {
  color: #94a3b8;
}

html[class~="dark"] .support-status[data-state="success"] {
  border-color: #166534;
  background: rgba(20, 83, 45, 0.35);
  color: #bbf7d0;
}

html[class~="dark"] .support-status[data-state="error"] {
  border-color: #7f1d1d;
  background: rgba(127, 29, 29, 0.3);
  color: #fecaca;
}
