/**
 * Mercer Materials - site-level rules.
 *
 * Only holds what Elementor's free widget controls cannot express on their own:
 * styling inside a heading (the clay italic word), the photo status badge, and
 * the WPForms skin. Everything else is set through native Elementor controls so
 * it stays editable in the builder.
 */

:root {
  --mercer-ink: #191D22;
  --mercer-forest: #111922;
  --mercer-olive: #68727A;
  --mercer-clay: #BB6F42;
  --mercer-paper: #FBFAF6;
  --mercer-cream: #F5F1E8;
  --mercer-sand: #E8DFCE;
  --mercer-field: #F7F4ED;
  --mercer-line: rgba(25, 29, 34, 0.18);
}

/* The one emphasised word inside the hero and section headings. Elementor free
   has no per-widget custom CSS, so the widget carries .mercer-em and the rule
   lives here. */
.mercer-em em,
.mercer-em i {
  color: var(--mercer-clay);
  font-style: italic;
  font-weight: 400;
}

/* "Coming soon" badge sitting over a material photo. */
.mercer-badge .elementor-heading-title,
.mercer-badge {
  background: var(--mercer-paper);
  color: var(--mercer-ink);
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 8px 10px;
  text-transform: uppercase;
}

/* Circular arrow link on each material card. */
.mercer-arrow .elementor-icon {
  align-items: center;
  border: 1px solid var(--mercer-line);
  border-radius: 50%;
  display: flex;
  height: 42px;
  justify-content: center;
  width: 42px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.mercer-arrow .elementor-icon:hover {
  background: var(--mercer-forest);
  border-color: var(--mercer-forest);
  color: #FFFFFF;
}

/* Numerals in the how-it-works step list. */
.mercer-step-num .elementor-heading-title {
  color: var(--mercer-clay);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
}

/* ---------------------------------------------------------------
   WPForms skin - square, hairline, on-brand.
   WPForms Lite ships its own base stylesheet; these rules sit on top.
   --------------------------------------------------------------- */

.mercer-form-shell .wpforms-container {
  margin: 0;
}

.mercer-form-shell .wpforms-form {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mercer-form-shell .wpforms-field,
.mercer-form-shell .wpforms-submit-container,
.mercer-form-shell .mercer-prefill-note {
  grid-column: 1 / -1;
  padding: 0;
}

.mercer-form-shell .wpforms-field.wpforms-half {
  grid-column: span 1;
}

.mercer-form-shell .wpforms-field-label {
  color: var(--mercer-ink) !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .04em;
  margin-bottom: 9px;
}

.mercer-form-shell .wpforms-field-sublabel,
.mercer-form-shell .wpforms-field-description {
  color: var(--mercer-olive);
  font-size: 11px;
}

.mercer-form-shell input[type="text"],
.mercer-form-shell input[type="email"],
.mercer-form-shell input[type="tel"],
.mercer-form-shell input[type="number"],
.mercer-form-shell select,
.mercer-form-shell textarea {
  background: var(--mercer-field) !important;
  border: 1px solid transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--mercer-ink) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 14px !important;
  min-height: 50px;
  padding: 14px !important;
  width: 100% !important;
}

.mercer-form-shell textarea { min-height: 110px; resize: vertical; }

.mercer-form-shell input:focus,
.mercer-form-shell select:focus,
.mercer-form-shell textarea:focus {
  border-color: var(--mercer-olive) !important;
  outline: 0;
}

/* Delivery / Pickup reads as a segmented control rather than loose radios. */
.mercer-form-shell .wpforms-field-radio ul {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mercer-form-shell .wpforms-field-radio li {
  flex: 1;
  margin: 0 !important;
}
.mercer-form-shell .wpforms-field-radio label {
  border: 1px solid var(--mercer-line);
  cursor: pointer;
  display: block;
  font-size: 13px;
  font-weight: 600;
  padding: 15px 12px;
  text-align: center;
}
.mercer-form-shell .wpforms-field-radio li + li label { border-left: 0; }
.mercer-form-shell .wpforms-field-radio input { margin-right: 8px; }

.mercer-form-shell .wpforms-submit-container { margin-top: 4px; }

.mercer-form-shell button[type="submit"],
.mercer-form-shell .wpforms-submit {
  background: var(--mercer-forest) !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #FFFFFF !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 18px 26px !important;
  transition: background-color .15s ease;
}
.mercer-form-shell button[type="submit"]:hover,
.mercer-form-shell .wpforms-submit:hover {
  background: var(--mercer-clay) !important;
}

.mercer-form-shell .wpforms-confirmation-container-full {
  background: var(--mercer-cream);
  border: 0;
  border-left: 3px solid var(--mercer-clay);
  color: var(--mercer-ink);
}

@media (max-width: 660px) {
  .mercer-form-shell .wpforms-form { grid-template-columns: 1fr; }
  .mercer-form-shell .wpforms-field.wpforms-half { grid-column: 1 / -1; }
  .mercer-form-shell .wpforms-field-radio ul { flex-direction: column; }
  .mercer-form-shell .wpforms-field-radio li + li label { border-left: 1px solid var(--mercer-line); border-top: 0; }
}
