/*
 * The Formidable forms (inc/formidable.php) in the design's form card. The fields carry the
 * design's own classes (field, frm6 for the two side by side), so site.css styles them; this
 * file lays Formidable's markup out as the design's .row2 and .check do, and gives the states
 * the design has no form for: an error under a field, the summary above the form and the
 * message after sending.
 */

.vv-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.vv-form .frm_form_fields .frm_fields_container {
  column-gap: 1rem;
}

/* Formidable stacks the fields up to 600px wide, the design's .row2 from 600px. */
@media (min-width: 600px) {
  .vv-form .frm_fields_container > .frm_form_field.frm6 {
    grid-column: span 6 / span 6 !important;
  }
}

/* The privacy checkbox as the design's .check. In the grid no margins collapse, so it has no top margin. */
.vv-form .vv-check label {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin: 0 0 1.1rem;
  font-size: .92rem;
  color: var(--text);
}

.vv-form .vv-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: .12rem 0 0;
  accent-color: var(--accent);
}

.vv-form .vv-check a {
  color: var(--accent-deep);
  font-weight: 600;
}

/* An error sits in the gap under its field, so it comes and goes without moving the form:
   Formidable removes it on the field's change event, during the mousedown on the next
   control, and a form that shifts then loses that click. */
.vv-form .frm_form_field {
  position: relative;
}

.vv-form .frm_form_field > .frm_error {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 1px);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #B3261E;
}

.vv-form .vv-check > .frm_error {
  top: auto;
  bottom: 0;
}

.vv-form .frm_blank_field input,
.vv-form .frm_blank_field select,
.vv-form .frm_blank_field textarea {
  border-color: #B3261E;
}

.vv-form .frm_error_style {
  margin: 0 0 1.25rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  background: #FCEEEE;
  color: #B3261E;
  font-size: .92rem;
  font-weight: 600;
}

.vv-form .frm_error_style p,
.form-card .frm_message p {
  margin: 0;
}

.form-card .frm_message {
  padding: 1rem 1.2rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 600;
}
