/* Contact page — mirrors the layout conventions of datasources.css
   (centred column, top padding to clear the fixed navbar). */

.contact-section {
  max-width: 760px;
  margin: 0 auto 40px;
  /* Reserve space for the fixed-top navbar (~6.5rem). */
  padding: 10.5rem 30px 40px;
}

.contact-intro h1 {
  font-weight: 600;
  margin-bottom: 12px;
}

.contact-intro p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 28px;
}

.contact-intro a {
  color: var(--accent, #38b6ff);
  text-decoration: none;
}

.contact-intro a:hover {
  text-decoration: underline;
}

.contact-card {
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  padding: 30px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Two fields side by side on wider screens. */
.contact-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-row .contact-field {
  flex: 1 1 240px;
}

.contact-field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.contact-field label {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: #14181f;
}

.contact-field .req {
  color: #dd473d;
}

.contact-field input,
.contact-field textarea {
  border: 1px solid #d4d7dd;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #14181f;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--accent, #38b6ff);
  box-shadow: 0 0 0 3px rgba(56, 182, 255, 0.15);
}

.contact-field textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-field input.is-invalid,
.contact-field textarea.is-invalid {
  border-color: #dd473d;
}

.field-error {
  color: #dd473d;
  font-size: 0.82rem;
  margin-top: 5px;
}

/* Honeypot — visually hidden but present for bots. */
.contact-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent, #20d53e);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.contact-submit:hover {
  transform: translateY(-2px);
  filter: brightness(0.96);
  box-shadow: 0 4px 12px rgba(56, 182, 255, 0.28);
}

.contact-submit:active {
  transform: translateY(0);
}

.contact-alert {
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 4px;
}

.contact-alert--success {
  background: #eaf7ef;
  border: 1px solid #b7e0c6;
  color: #1e7a44;
}

.contact-alert--error {
  background: #fdeceb;
  border: 1px solid #f4c2be;
  color: #b02a20;
  margin-bottom: 22px;
}
