/* =====================================================================
 * Contact page — custom form
 * Hand-written, page-specific stylesheet (not part of the gulp bundle),
 * mirroring the sales-rep-map.css conventions.
 * Brand: red #BC1830, grays; font inherited (Libre Franklin).
 * ===================================================================== */

.scf {
  --scf-red: #BC1830;
  --scf-ink: #1a1a1a;
  --scf-gray: #666666;
  --scf-line: rgba(0, 0, 0, 0.10);
  --scf-bg: #f7f7f7;
  --scf-error: #b0121b;
  --scf-success: #1e7a35;
  margin: 0 0 3rem;
  scroll-margin-top: 110px; /* clear the sticky site header on #contact anchor */
}

/* --- Layout: info rail + form ------------------------------------- */
.scf__layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2.2fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .scf__layout { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* --- Info rail ------------------------------------------------------ */
.scf__info-title,
.scf__form-title {
  margin: 0 0 1rem !important;
  color: var(--scf-ink);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.scf__card {
  background: var(--scf-bg);
  border: 1px solid var(--scf-line);
  border-radius: 8px;
  padding: 1.25rem 1.4rem;
  margin: 0 0 1.25rem;
}
.scf__card-title {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--scf-ink);
}
.scf__address {
  margin: 0 0 0.9rem;
  font-style: normal;
  color: var(--scf-gray);
  line-height: 1.55;
}
.scf__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.scf__contact-list li {
  display: flex;
  gap: 0.6rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--scf-line);
  font-size: 0.95rem;
}
.scf__contact-list li:first-child { border-top: 0; }
.scf__contact-label {
  flex: 0 0 4.2rem;
  color: var(--scf-gray);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 0.15rem;
}
.scf__contact-list a { color: var(--scf-red); word-break: break-word; }
.scf__contact-list a:hover { text-decoration: underline; }

.scf__card--rep p { margin: 0 0 0.9rem; color: var(--scf-gray); font-size: 0.95rem; line-height: 1.5; }
.scf__rep-link {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  background: #fff;
  border: 1px solid var(--scf-red);
  border-radius: 8px;
  color: var(--scf-red);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.scf__rep-link:hover,
.scf__rep-link:focus {
  background: var(--scf-red);
  color: #fff;
}

/* --- Form ------------------------------------------------------------ */
.scf__form-lead { margin: 0 0 1.25rem; color: var(--scf-gray); font-size: 0.95rem; }
.scf__req { color: var(--scf-red); }

.scf__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
}
.scf__field--full { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .scf__grid { grid-template-columns: 1fr; }
  .scf__field { grid-column: auto !important; }
}

.scf__field label {
  display: block;
  margin: 0 0 0.3rem;
  color: var(--scf-ink);
  font-size: 0.88rem;
  font-weight: 600;
}
.scf__field input[type="text"],
.scf__field input[type="email"],
.scf__field input[type="tel"],
.scf__field select,
.scf__field textarea {
  width: 100%;
  margin: 0;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--scf-ink);
  background-color: #fff; /* NOT the shorthand — selects carry an arrow background-image below */
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
/* Foundation resets select appearance globally, so the dropdown indicator must
   be drawn here explicitly (inline SVG chevron, brand gray). */
.scf__field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23BC1830' stroke-width='2' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  /* Foundation sets background-origin: content-box on selects, which would
     shift the arrow left by the right padding — anchor to the border box. */
  background-origin: border-box;
  background-position: right 0.85rem center;
  background-size: 12px 8px;
  padding-right: 2.5rem;
  cursor: pointer;
}
.scf__field input:focus,
.scf__field select:focus,
.scf__field textarea:focus {
  outline: none;
  border-color: var(--scf-red);
  box-shadow: 0 0 0 3px rgba(188, 24, 48, 0.12);
}
.scf__field textarea { resize: vertical; min-height: 9rem; }

/* invalid state (set by JS after a failed server validation) */
.scf__field.is-invalid input,
.scf__field.is-invalid select,
.scf__field.is-invalid textarea { border-color: var(--scf-error); }

.scf__error {
  margin: 0.3rem 0 0;
  color: var(--scf-error);
  font-size: 0.83rem;
}
.scf__error--form { margin-top: 1rem; font-size: 0.95rem; }

/* consent */
.scf__consent .scf__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--scf-gray);
  line-height: 1.5;
  cursor: pointer;
}
.scf__consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.2rem 0 0;
  accent-color: var(--scf-red);
}
.scf__consent a { color: var(--scf-red); text-decoration: underline; }

/* submit */
.scf__actions { margin-top: 1.5rem; }
.scf__submit {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  background: var(--scf-red);
  border: 1px solid var(--scf-red);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.scf__submit:hover,
.scf__submit:focus { background: #9c1428; }
.scf__submit[disabled] { opacity: 0.6; cursor: default; }

/* status banner */
.scf__status {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.scf__status.is-success {
  background: rgba(30, 122, 53, 0.08);
  border: 1px solid rgba(30, 122, 53, 0.35);
  color: var(--scf-success);
}
.scf__status.is-error {
  background: rgba(176, 18, 27, 0.06);
  border: 1px solid rgba(176, 18, 27, 0.3);
  color: var(--scf-error);
}
.scf__status.is-error a { color: var(--scf-error); text-decoration: underline; }

/* honeypot — off-screen, not display:none (some bots skip hidden fields) */
.scf__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
