/* The Going Rate: minimum service call calculator. The card, fields, result, gate and FAQ styles are
   shared with the flat rate calculator (../electrician-flat-rate-calculator/flat-rate.css). Only extras live here. */

.mjc-fields-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Keep the boxes in a row lined up when one label wraps to two lines */
#mjc .frc-fields label {
  grid-template-rows: 1fr auto;
}

#mjc .frc-fields label > span:first-child {
  align-self: end;
}

.frc-fields .mjc-optional {
  font-weight: 400;
  color: var(--ink-soft);
}

.mjc-covers {
  font-weight: 600;
}

/* Service call fee: the second number */
.mjc-trip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: 8px;
}

.mjc-trip h3 {
  margin-bottom: 4px;
  font-size: 1.4rem;
}

.mjc-trip p {
  font-size: .95rem;
  color: var(--ink-soft);
}

.mjc-trip-num {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 3.2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* What their current charge really pays */
.mjc-reality {
  padding: 14px 18px;
  font-weight: 600;
  background: var(--white);
  border: 2px solid var(--navy);
  border-left: 8px solid #d23f31;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .mjc-fields-2 {
    grid-template-columns: 1fr;
  }

  .mjc-trip {
    flex-direction: column;
    align-items: flex-start;
  }
}
