/* Fluent Forms inside the theme's fixed layouts. */
.theme-form {
  display: block;
}

.theme-form .fluentform,
.theme-form .frm-fluent-form,
.theme-form .frm-fluent-form fieldset {
  width: 100%;
  min-width: 0;
}

.theme-form .frm-fluent-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.theme-form .frm-fluent-form .ff-el-group {
  grid-column: 1 / -1;
  margin: 0;
  min-width: 0;
}

.theme-form .frm-fluent-form .ff-el-group.form-half {
  grid-column: span 1;
}

.theme-form .frm-fluent-form .ff-el-input--label label,
.theme-form .frm-fluent-form .ff-el-input--label {
  color: var(--color-ink);
  font: 600 15px var(--font-sans);
}

.theme-form .frm-fluent-form input.ff-el-form-control,
.theme-form .frm-fluent-form select.ff-el-form-control,
.theme-form .frm-fluent-form textarea.ff-el-form-control {
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 50px;
  border: 1px solid #c9cfc9;
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--color-ink);
  background: #fff;
  font: 400 16px var(--font-sans);
  box-shadow: none;
}

.theme-form .frm-fluent-form textarea.ff-el-form-control {
  min-height: 112px;
  resize: vertical;
}

.theme-form .frm-fluent-form .ff-el-form-check-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  width: auto;
  height: auto;
  font: 400 15px var(--font-sans);
  color: var(--color-ink);
  cursor: pointer;
}

.theme-form .frm-fluent-form input[type="checkbox"],
.theme-form .frm-fluent-form input[type="radio"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  accent-color: #33473a;
}

.theme-form .frm-fluent-form .ff-el-form-check {
  margin: 0 0 8px;
}

.theme-form .frm-fluent-form .ff_tc_label {
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
}

.theme-form .frm-fluent-form .ff-btn-submit {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 0 28px;
  background: var(--color-ink) !important;
  color: #fff !important;
  font: 600 16px var(--font-sans);
  cursor: pointer;
}

.theme-form .frm-fluent-form .ff-btn-submit:hover {
  opacity: .86;
}

.theme-form .ff-message-success,
.theme-form .ff-message-errors {
  border-radius: 12px;
  font: 500 15px var(--font-sans);
}

.theme-form .frm-fluent-form .form-topic .ff-el-input--content {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theme-form .frm-fluent-form .form-topic .ff-el-form-check {
  margin: 0;
}

.theme-form .frm-fluent-form .form-topic .ff-el-form-check-label {
  position: relative;
  align-items: center;
  min-height: 44px;
  border: 1px solid #c9cfc9;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 500;
}

.theme-form .frm-fluent-form .form-topic input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.theme-form .frm-fluent-form .form-topic .ff-el-form-check-label:has(input:checked) {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: #fff;
}

.theme-form .frm-fluent-form .form-topic .ff-el-form-check-label:has(input:focus-visible) {
  outline: 2px solid var(--color-sage);
  outline-offset: 2px;
}

.form-unavailable {
  margin: 0;
  color: var(--color-muted);
}

@media (max-width: 700px) {
  .theme-form .frm-fluent-form fieldset {
    grid-template-columns: 1fr;
  }

  .theme-form .frm-fluent-form .ff-el-group.form-half {
    grid-column: 1;
  }
}
