/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.ofb-field-list {
  list-style-type: none;
  padding: 0;
}

.ofb-field-wrap {
  margin-bottom: 1.5rem;
}

.ofb-other-wrap {
  display: none;
  margin-bottom: 2rem;
  margin-top: 1.5rem;
}

.ofb-other-wrap.-show {
  display: block;
}

.ofb-profile-message {
  align-items: center;
  display: flex;
  margin-top: 4rem;
}

.ofb-profile-message svg {
  display: inline-block;
  fill: #75a626;
  flex-shrink: 0;
  height: 1.5rem;
  margin-right: 0.75rem;
  vertical-align: middle;
  width: 1.5rem;
}

.ofb-divider {
  margin: 2rem 0;
}

.ofb-label,
.ofb-form h2 {
  display: block;
  font-size: 1rem !important;
  font-weight: bold;
  margin-bottom: 0.5rem !important; /* override p margins */
  padding: 0;
}

.ofb-label-w-input {
  align-items: baseline;
  display: flex;
  margin-bottom: 0.25rem;
}

.ofb-required {
  color: red;
}

.ofb-label-meta {
  color: #777;
  font-weight: normal;
}

.ofb-instructions {
  color: #777;
  font-size: 0.85em;
  margin-bottom: 1rem;
  margin-top: -0.5rem; /* move closer to label */
}

.ofb-instructions.-no-margin {
  margin-bottom: 0rem;
}

.ofb-instructions p + p {
  margin-top: 0.25rem;
}

.ofb-fieldset {
  border: none;
  padding: 0;
}

.ofb-field {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background-color: white;
  border-radius: 4px !important; /* override old styles */
  border: 1px #ccc solid;
  box-sizing: border-box;
  color: #333;
  display: block;
  font-size: 1rem;
  height: 3rem;
  outline: 0;
  padding: 0.5rem;
  width: 100%;
}

.ofb-field:focus {
  outline: auto 3px #64901c;
}

.ofb-field:disabled {
  background-color: #eee;
  color: #555;
  cursor: not-allowed;
  -webkit-text-fill-color: #555; /* Override iOS / Android font color change */
  -webkit-opacity: 1;
}

select.ofb-field {
  background-color: white;
  background-image: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9LmNscy0ye2ZpbGw6IzQ0NDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmFycm93czwvdGl0bGU+PHJlY3QgY2xhc3M9ImNscy0xIiB3aWR0aD0iNC45NSIgaGVpZ2h0PSIxMCIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxLjQxIDQuNjcgMi40OCAzLjE4IDMuNTQgNC42NyAxLjQxIDQuNjciLz48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMy41NCA1LjMzIDIuNDggNi44MiAxLjQxIDUuMzMgMy41NCA1LjMzIi8+PC9zdmc+);
  background-position: right center;
  background-repeat: no-repeat;
  background-size: 24px 42px;
  padding-right: 2rem;
}

select.ofb-field::-ms-expand {
    display: none;
}

.ofb-field-radio,
.ofb-field-checkbox {
  margin-right: 0.5rem;
}

.ofb-field-ranking {
  display: inline-block;
  height: auto;
  margin-right: 1rem;
  width: auto;
}

.ofb-submit {
  align-items: center;
  background-color: #75a626;
  border-radius: 4px;
  display: flex;
  font-size: 1.25rem;
  font-weight: bold;
  justify-content: center;
  letter-spacing: 1px;
  margin-top: 2rem;
  text-transform: uppercase;
  width: 100%;
}

.ofb-submit img {
  display: none;
  height: 20px;
  margin-left: 20px;
  width: 20px;
}

.ofb-submit:hover,
.ofb-submit:focus {
  background-color: #64901c;
}

.ofb-submit[disabled] {
  background-color: #6c747b;
  display: flex;
}

.ofb-submit[disabled] img {
  display: block;
}

.ofb-errors {
  color: #bb0000;
  margin: 2rem 0;
}

.ofb-error-message {
  color: #bb0000;
  font-size: 0.85em;
  margin-top: 0.75rem;
}

.ofb-draggable {
  background-color: #fafafa;
  background-image: url('./grip.svg');
  background-position: -6px center;
  background-repeat: no-repeat;
  background-size: 32px 32px;
  border: 1px #ccc solid;
  border-radius: 0 4px 4px 0;
  cursor: move; /* fallback if grab cursor is unsupported */
  cursor: grab;
  margin-bottom: 0.25rem;
  padding: 0.25rem 1rem 0.25rem 1.5rem;
}

.ofb-draggable .ofb-label-w-input {
  align-items: center;
  cursor: move; /* fallback if grab cursor is unsupported */
  cursor: grab;
  margin-bottom: 0;
}

.ofb-draggable .ofb-label-w-input span {
  line-height: 1.4;
  padding: 0.5rem 0;
}

.ofb-text * {
    margin-bottom: 1rem !important;
  }

.ofb-text *:last-of-type {
  margin-bottom: 0 !important;
}

.form-results-container {
  position: relative;
}

#form-results {
  position: absolute;
  top: -100px;
}