@charset "UTF-8";
/*
 * Form Builder Frontend Styles
 *
 * Structural / functional / mechanical CSS only. Visual defaults (colors,
 * backgrounds, decorative borders, border-radius, button/input/label
 * colors, message colors, decorative shadows) are intentionally NOT here —
 * they are generated per-form as a scoped inline <style> block by
 * Form_Builder::render_form_markup() (Form Styling, Free) with an
 * extension point for Pro's Custom CSS. See ARCHITECTURE notes in
 * form-builder.php. This file must make the form fully usable (rows,
 * responsiveness, hidden states, validation, submit, conditional states)
 * with Form Styling turned off — the theme/browser then provides the
 * visual appearance.
 */
.aofb-frontend-form {
  max-width: 100%;
  margin: 0 auto;
}

.aofb-frontend-field,
.form-group {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.d-block {
  display: block !important;
}

.aofb-frontend-form .ao-form-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  width: 100%;
}

.aofb-frontend-form .ao-form-row > .aofb-layout-width-quarter {
  grid-column: span 3;
}

.aofb-frontend-form .ao-form-row > .aofb-layout-width-third {
  grid-column: span 4;
}

.aofb-frontend-form .ao-form-row > .aofb-layout-width-half {
  grid-column: span 6;
}

.aofb-frontend-form .ao-form-row > .aofb-layout-width-two_thirds {
  grid-column: span 8;
}

.aofb-frontend-form .ao-form-row > .aofb-layout-width-three_quarter {
  grid-column: span 9;
}

.aofb-frontend-form .ao-form-row > .aofb-layout-width-full {
  grid-column: span 12;
}

.aofb-frontend-form .ao-form-row--gap-sm {
  gap: 8px;
}

.aofb-frontend-form .ao-form-row--gap-md {
  gap: 16px;
}

.aofb-frontend-form .ao-form-row--gap-lg {
  gap: 24px;
}

.aofb-frontend-form .ao-form-row > .aofb-frontend-submit {
  align-self: end;
}

@media (max-width: 640px) {
  .aofb-frontend-form .ao-form-row--stack-mobile {
    grid-template-columns: 1fr;
  }
  .aofb-frontend-form .ao-form-row--stack-mobile > [class*=aofb-layout-width-] {
    grid-column: span 1;
  }
}
.form-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Box model only — no color, background, or border-color. Those are
 * supplied by generated Form Styling when enabled; without it the browser
 * default input chrome shows through, which is the intended OFF state. */
.form-control,
.form-select {
  display: block;
  width: 100%;
  padding: var(--aofb-padding-y, 0.375rem) var(--aofb-padding-x, 0.75rem);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  background-clip: padding-box;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
}

.invalid-feedback.d-block {
  display: block !important;
}

.form-text {
  margin-top: 0.25rem;
  font-size: 0.875em;
}

.form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 1.5em;
  margin-bottom: 0.125rem;
}

.aofb-choice-list--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.aofb-choice-list--inline .form-check {
  margin-bottom: 0;
}

.aofb-character-counter {
  text-align: right;
}

/* Positioning/sizing only — appearance:none + the colored checked-state
 * indicator are part of the generated visual skin (Form Styling), so a
 * native unstyled checkbox/radio still renders correctly with Form
 * Styling off. */
.form-check-input {
  float: left;
  margin-left: -1.5em;
  width: 1em;
  height: 1em;
  margin-top: 0.25em;
  vertical-align: top;
}

.form-check-input[type=radio] {
  border-radius: 50%;
}

.aofb-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.aofb-rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
}

.aofb-rating-star {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease-in-out, transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* The half-star rendering is color trickery, but the behavior itself
 * (clipping an overlaid glyph) is structural, not decorative — its
 * color comes from generated Form Styling. */
.aofb-rating-star.is-half::before {
  position: absolute;
  inset: 0 50% 0 0;
  overflow: hidden;
  content: "★";
}

.aofb-rating-value {
  min-width: 3rem;
  font-size: 0.875rem;
}

.btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: var(--aofb-padding-y, 0.375rem) var(--aofb-padding-x, 0.75rem);
  font-size: 1rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.aofb-spinner {
  display: inline-block;
  width: 0.875em;
  height: 0.875em;
  margin-left: 0.5em;
  border: 0.15em solid currentcolor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -0.125em;
  animation: aofb-spin 0.75s linear infinite;
}

@keyframes aofb-spin {
  to {
    transform: rotate(360deg);
  }
}
.aofb-frontend-notice {
  padding: 1rem;
  margin: 1rem 0;
  border: 1px solid transparent;
}

.aofb-frontend-success-state {
  margin: 0;
}

/*# sourceMappingURL=form-builder-frontend.css.map */
