/*
 * Contact page. Loads on top of services.css, which supplies the shell,
 * design tokens, header, footer and buttons.
 */

/* ---- contact detail cards ---- */

.ct-details { padding-top: 36px; padding-bottom: 0; }

.ct-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1px;
  background: var(--rule);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ct-card {
  background: var(--bg);
  padding: 18px 20px 20px 0;
}
.ct-cards li:not(:first-child) .ct-card,
.ct-card + .ct-card { padding-left: 20px; }

.ct-big {
  display: block;
  margin-top: 7px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--ink);
  transition: color .15s;
}
.ct-big:hover { color: var(--accent-text); }

.ct-small {
  display: block;
  margin-top: 5px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
a.ct-small:hover { color: var(--accent-text); }

.ct-address {
  margin: 7px 0 0;
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink);
}

/* ---- form ---- */

.ct-form-section { padding-top: 44px; }

.ct-form {
  margin-top: 28px;
  border: 1px solid var(--rule);
  background: var(--bg-raised);
  padding: 34px 34px 30px;
}

.ct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 0 28px;
}

.ct-field { margin: 0 0 22px; }
.ct-field-wide { grid-column: 1 / -1; }

.ct-field label,
.ct-fieldset legend {
  display: block;
  margin: 0 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}

.ct-req { color: var(--accent-text); }

.ct-field input,
.ct-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(var(--ink-rgb), 0.22);
  background: var(--bg-input);
  color: var(--ink);
  font: inherit;
  border-radius: 0;               /* square, like every control on the site */
}

.ct-field textarea { resize: vertical; min-height: 8rem; }

.ct-field input:focus,
.ct-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.ct-field input::placeholder,
.ct-field textarea::placeholder { color: var(--text-faint); }

/* Real fieldset/legend so a screen reader announces the question, not four
   loose checkboxes. Default fieldset chrome is stripped. */
.ct-fieldset {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.ct-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 4px;
}

.ct-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  color: var(--text-soft);
  cursor: pointer;
}
.ct-check input { width: 17px; height: 17px; accent-color: var(--accent-text); cursor: pointer; }

.ct-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 8px 0 0;
}
.ct-actions .sv-btn { padding: 15px 30px; cursor: pointer; }

.ct-note { margin: 16px 0 0; font-size: 0.9rem; color: var(--text-faint); }

/* Notices injected by contact-form.js / contact-prefill.js sit inside the
   form, so give them room and keep them legible on the dark panel. */
.ct-form .contact-form-notice,
.ct-form [role="status"] { margin-top: 20px; }

@media (max-width: 900px) {
  .ct-details { padding-top: 40px; }
  .ct-card,
  .ct-card + .ct-card { padding: 22px 0 24px; }
  .ct-form { padding: 24px 20px 22px; }
  .ct-actions .sv-btn { width: 100%; text-align: center; }
}

/* Note shown when fields are filled from the signed-in account or from the
   services pages. */
.ct-prefill {
  margin: 0 0 20px;
  padding: .75rem 1rem;
  border-left: 4px solid #1a7f37;
  background: rgba(26, 127, 55, .14);
  border-radius: 0;
  font-size: .95rem;
  line-height: 1.5;
}
.ct-prefill a { color: var(--accent-soft); font-weight: 600; }

.ct-field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(var(--ink-rgb), 0.22);
  background: var(--bg-input);
  color: var(--ink);
  font: inherit;
  border-radius: 0;
  appearance: none;
  /* caret drawn in CSS so it matches the palette rather than the OS */
  background-image: linear-gradient(45deg, transparent 50%, rgba(var(--ink-rgb), .6) 50%),
                    linear-gradient(135deg, rgba(var(--ink-rgb), .6) 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% + 2px), calc(100% - 13px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}
.ct-field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.ct-field select option,
.ct-field select optgroup { background: var(--bg-input); color: var(--ink); }
