* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Keep the shell scrollable when content is taller than the viewport. */
body.portal-shell-page > .container {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.support-page {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-bottom: 2.5rem;
}

.support-header {
  margin-bottom: 24px;
  padding-top: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.support-header h1 {
  color: #ffffff;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.support-header p {
  color: #cbd5e1;
  line-height: 1.5;
  max-width: 760px;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 18px;
  width: 100%;
  min-width: 0;
}

.support-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 22px;
  min-width: 0;
  max-width: 100%;
}

.support-card-full {
  grid-column: 1 / -1;
}

.support-card h2 {
  color: #ffcf4a;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.support-card p {
  color: #d1d5db;
  line-height: 1.5;
}

.support-mailto-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.support-email-address {
  font-weight: 600;
  color: #ffcf4a;
  letter-spacing: 0.01em;
  word-break: break-word;
}

.btn {
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  max-width: 100%;
}

.btn-primary {
  background: #ffb500;
  color: #21110d;
  padding: 10px 16px;
}

.btn-primary:hover {
  background: #ffc730;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 10px 16px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.support-form {
  margin-top: 8px;
  width: 100%;
  min-width: 0;
}

.form-group {
  margin-bottom: 14px;
  min-width: 0;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  padding: 11px 13px;
  font-size: 0.95rem;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(255, 181, 0, 0.5);
  outline-offset: 1px;
}

.form-group input[readonly] {
  opacity: 0.8;
}

.form-help {
  margin-top: 5px;
  color: #94a3b8;
  font-size: 0.79rem;
}

.message-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.79rem;
  color: #94a3b8;
}

.support-status {
  display: none;
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  line-height: 1.45;
  word-break: break-word;
}

.support-status.show {
  display: block;
}

.support-status.success {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.4);
  color: #bbf7d0;
}

.support-status.error {
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fecdd3;
}

.support-status.info {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.4);
  color: #bfdbfe;
}

.support-list {
  padding-left: 18px;
  margin-top: 10px;
  color: #d1d5db;
}

.support-list li {
  margin-bottom: 10px;
  line-height: 1.45;
}

.support-privacy {
  margin-top: 16px;
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.5;
}

.support-privacy a {
  color: #ffcf4a;
}

.loading {
  text-align: center;
  padding: 42px;
  color: #cbd5e1;
}

@media (max-width: 980px) {
  .support-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .support-card {
    padding: 16px;
  }

  .support-header h1 {
    font-size: 1.7rem;
  }

  .support-page {
    padding-bottom: 3rem;
  }
}
