/* Help page: a request form on the left, live support on the right. */

.support-page {
  max-width: calc(980px + 2 * var(--gutter));
}

.support-head h1 {
  font-size: 2rem;
  line-height: 1.2;
}

.support-lead {
  max-width: 640px;
  margin: 10px 0 24px;
  color: var(--ash);
  line-height: 1.55;
  text-wrap: pretty;
}

.support-lead a,
.support-email a {
  color: var(--ember-light);
  text-underline-offset: 3px;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--gutter);
  align-items: start;
}

.support-panel {
  padding: 24px;
}

.support-panel h2 {
  margin: 0;
  font-size: 1.25rem;
}

.support-note {
  margin: 6px 0 0;
  color: var(--ash);
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
}

.support-label {
  margin-top: 10px;
  font-size: var(--text-sm);
  font-weight: 700;
}

.support-label:first-child {
  margin-top: 0;
}

.support-select {
  appearance: none;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ash) 50%), linear-gradient(135deg, var(--ash) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.support-message {
  min-height: 150px;
  resize: vertical;
  line-height: 1.5;
}

.support-count {
  margin: 0;
  color: var(--ash);
  font-size: var(--text-xs);
  text-align: right;
}

.support-hint {
  margin: 6px 0 10px;
  color: var(--ash);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.support-result {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--success-text);
  border-radius: var(--radius-inner);
  background: var(--surface-well);
  font-size: var(--text-sm);
  font-weight: 600;
}

.support-result[data-kind="error"] {
  border-left-color: var(--danger-text);
}

/* Live support: the agent with a headset, centred */
.support-live {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.support-agent {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
  background: var(--tint-ember);
  border: 1px solid var(--line-ember);
  border-radius: 50%;
}

.support-agent .icon {
  width: 40px;
  height: 40px;
  stroke-width: 1.6;
  color: var(--ember-light);
}

.support-live-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.support-live-button .icon {
  width: 20px;
  height: 20px;
  color: var(--ember-light);
}

.support-email {
  margin: 14px 0 0;
  color: var(--ash);
  font-size: var(--text-sm);
}

@media (max-width: 760px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}
