/* The contact page. Structurally the same card the auth pages use, but on the
   navbar's own palette rather than auth.css's sage: this page is reached from
   the bar, not from a sign-in wall, and the sutra paper and maroon ink are what
   the rest of the site wears. */
:root {
  --enq-ink: #3a2f26;
  --enq-muted: #7a6a58;
  --enq-line: #e3d8bf;
  --enq-paper: #fffdf6;
  --enq-accent: #4e0d0d;
  --enq-gold: #b9a94a;
  --enq-wash: #f8f2e3;
}

.enquiry-shell {
  padding: 2.25rem 1rem 3.5rem;
  background: radial-gradient(circle at 50% 0, #f4ecd8 0, transparent 42%);
}

.enquiry-card {
  width: min(100%, 40rem);
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--enq-line);
  border-radius: 14px;
  background: var(--enq-paper);
  box-shadow: 0 18px 45px rgba(58, 47, 38, 0.09);
}

.enquiry-heading {
  margin-bottom: 1.6rem;
  text-align: center;
}

.enquiry-kicker {
  color: var(--enq-gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
}

.enquiry-heading h1 {
  margin: 0.3rem 0 0.4rem;
  color: var(--enq-accent);
  font-size: 1.55rem;
  letter-spacing: 0.02em;
}

.enquiry-heading p {
  margin: 0 auto;
  max-width: 30rem;
  color: var(--enq-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.enquiry-form {
  display: grid;
  gap: 1.1rem;
}

.enquiry-field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--enq-ink);
  font-weight: 650;
  font-size: 0.9rem;
}

/* All three fields are required, so the mark is on all three rather than
   singling one out. */
.enquiry-required {
  margin-left: 0.2rem;
  color: #a3231b;
  font-weight: 700;
}

.enquiry-field input,
.enquiry-field textarea {
  min-height: 44px;
  background: white;
  border-color: #d8cdb4;
  color: var(--enq-ink);
}

.enquiry-field input:focus-visible,
.enquiry-field textarea:focus-visible {
  outline: 2px solid var(--enq-gold);
  outline-offset: 1px;
  border-color: var(--enq-gold);
}

/* style.css tints .styled-textarea pale blue - the one cool surface on a warm
   page. The box is paper like every other field here. */
.enquiry-field textarea.styled-textarea {
  background-color: white;
  font-size: 1em;
  line-height: 1.6;
  resize: vertical;
}

.enquiry-hint {
  margin: 0.35rem 0 0;
  color: var(--enq-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.enquiry-error,
.enquiry-form .errorlist {
  padding: 0.65rem 0.8rem;
  border: 1px solid #e2aaa6;
  border-radius: 6px;
  background: #fff2f0;
  color: #9b3029;
  font-size: 0.85rem;
  text-align: left;
}

.enquiry-form .errorlist {
  margin-top: 0.4rem;
}

/* Django wraps a non-field error in its own <ul class="errorlist">, and the
   wrapper here is already the box - styled twice it was a red frame inside a
   red frame. */
.enquiry-error .errorlist {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.enquiry-form .errorlist li {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  text-align: left;
}

.enquiry-action {
  display: flex;
  min-height: 46px;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--enq-accent);
  border-radius: 7px;
  background: var(--enq-accent);
  color: #f6efdd;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.2s,
    transform 0.1s;
}

.enquiry-action:hover {
  background: #6a1414;
  color: white;
}

.enquiry-action:active {
  transform: scale(0.99);
}

.enquiry-action:focus-visible {
  outline: 2px solid var(--enq-gold);
  outline-offset: 2px;
}

/* What happens after Send, said once under the button rather than left for the
   sender to wonder about. */
.enquiry-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.4rem;
  padding: 0.8rem 0.9rem;
  border-radius: 8px;
  background: var(--enq-wash);
  color: var(--enq-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.enquiry-note i {
  margin-top: 0.15rem;
  color: var(--enq-gold);
}

.enquiry-note p {
  margin: 0;
}

@media (max-width: 520px) {
  .enquiry-shell {
    padding: 1rem 0.75rem 2.5rem;
  }
  .enquiry-card {
    padding: 1.35rem;
    border-radius: 10px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .enquiry-card {
    animation: enquiry-rise 0.35s ease-out both;
  }
  @keyframes enquiry-rise {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
