/* Lumea website: Support page only (the contact form layout). */

/* ---------- Support page ----------
   Computers: the contact form on the left stays in view while the help
   answers on the right scroll. Phones: answers first, then the form. */

.support {
  display: grid;
  grid-template-columns: minmax(20rem, 25rem) minmax(0, 1fr);
  grid-template-areas:
    "head head"
    "form help";
  gap: 0 clamp(2.5rem, 5vw, 4.5rem);
  max-width: 68rem;
  margin: 0 auto;
  padding-top: clamp(2rem, 6vw, 4rem);
}

.support-head {
  grid-area: head;
  margin-bottom: 2.5rem;
}

.support-head h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
}

.support-head .intro {
  margin-top: 1rem;
  font-size: 1.15rem;
  color: var(--text-soft);
}

.support-jump {
  display: none;
}

.support-form {
  grid-area: form;
}

.form-card {
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--wall-lit), var(--wall));
}

.form-card h2 {
  font-size: 1.6rem;
  margin: 0 0 1rem;
}

@media (min-width: 52.01rem) and (min-height: 48rem) {
  .form-card {
    position: sticky;
    top: 1.25rem;
  }
}

.support-help {
  grid-area: help;
  max-width: none;
  margin: 0;
  padding-top: 0;
}

.support-help > h2:first-of-type {
  margin-top: 0.75rem;
}

/* Form fields */
.field + .field {
  margin-top: 0.8rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font: 500 0.92rem/1.3 var(--sans);
  color: var(--text);
}

.field .hint {
  margin-left: 0.35rem;
  font-weight: 400;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--wall);
  color: var(--text);
  font: 400 1rem/1.4 var(--sans);
  transition: border-color 150ms ease;
}

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

.field select {
  appearance: none;
  padding-right: 2.25rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(-45deg, transparent 50%, var(--text-muted) 50%);
  background-position: calc(100% - 1.15rem) 55%, calc(100% - 0.8rem) 55%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

.field select:invalid {
  color: var(--text-muted);
}

.field input::placeholder {
  color: #6f6a62;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.field-note {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.field-note.count {
  text-align: right;
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.button-gold {
  width: 100%;
  min-height: 2.9rem;
  margin-top: 1.1rem;
  background: var(--gold);
  border-color: var(--gold);
  color: #17140f;
  font-weight: 600;
  cursor: pointer;
}

.button-gold:hover {
  background: #d8bb80;
  border-color: #d8bb80;
}

.button-gold:disabled {
  opacity: 0.7;
  cursor: progress;
}

.form-privacy {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-status {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  color: #e5a39a;
}

.form-status:empty {
  display: none;
}

.form-done-title {
  margin: 0 0 0.4rem;
  font: 400 1.6rem/1.2 var(--serif);
  color: var(--text);
}

.form-done:focus {
  outline: none;
}

@media (max-width: 52rem) {
  .support {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "help"
      "form";
  }

  .support-jump {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
  }

  .support-jump::after {
    content: " ↓";
  }

  .form-card {
    position: static;
    margin-top: 3rem;
  }
}
