/**
 * Frontend form styles - BEM, Bootstrap grid compatible.
 *
 * @package TWB_Forms
 * @author  The Web Bakery
 */
/**
 * Breakpoint mixins - Bootstrap 5 compatible.
 * Synced with starter-thema breakpoints.
 *
 * @package TWB_Forms
 * @author  The Web Bakery
 */
.twb-form {
  position: relative;
  /* Error banner is absolutely positioned at top; keep first fields clear */
  /* Inline radios: breakpoint tweaks via mixins/_mixins.scss (media-breakpoint-down, media-breakpoints) */
}
.twb-form--completed .twb-form__body {
  display: none !important;
}
.twb-form--completed .twb-form__fields,
.twb-form--completed .twb-form__captcha,
.twb-form--completed .twb-form__hp {
  display: none !important;
}
.twb-form--completed .twb-form__messages {
  position: static;
  margin-top: 0;
}
.twb-form:has(.twb-form__messages--error) .twb-form__body {
  padding-top: 4.5rem;
}
.twb-form--hide-labels .twb-form__field {
  position: relative;
}
.twb-form--hide-labels .twb-form__label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.twb-form__fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.twb-form__row {
  margin-bottom: 0;
}
.twb-form__col {
  margin-bottom: 0;
}
.twb-form__field--required .twb-form__label::after {
  content: "";
}
.twb-form__label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #0f172a;
}
.twb-form__required {
  color: #dc2626;
}
.twb-form__input {
  width: 100%;
  max-width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.twb-form__input:focus {
  border-color: #0f766e;
  outline: none;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.2);
}
.twb-form__input::placeholder {
  color: #64748b;
}
.twb-form__textarea {
  min-height: 120px;
  resize: vertical;
}
.twb-form__select {
  appearance: auto;
  cursor: pointer;
}
.twb-form__choices {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.twb-form__choices--inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.25rem;
  row-gap: 0.5rem;
}
.twb-form__choices--inline .twb-form__choice {
  flex: 0 1 auto;
}
.twb-form__choice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.twb-form__choice span {
  line-height: 1.35;
}
.twb-form__file {
  padding: 0.25rem 0;
}
.twb-form__error {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: #dc2626;
}
.twb-form__section {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}
.twb-form__section-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
}
.twb-form__section-desc {
  margin: 0;
  color: #64748b;
}
.twb-form__submit {
  padding: 0.75rem 1.5rem;
  background: #0f766e;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.twb-form__submit:hover:not(:disabled) {
  background: #0d9488;
  transform: translateY(-1px);
}
.twb-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.twb-form__messages {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  margin-top: 0;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.twb-form__messages--error {
  background: #fef2f2;
  border: 1px solid #dc2626;
  color: #dc2626;
}
.twb-form__messages--success {
  background: #f0fdf4;
  border: 1px solid #059669;
  color: #059669;
}
.twb-form__messages .twb-form__download-wrap {
  margin: 1rem 0 0;
}
.twb-form__messages .twb-form__download-link {
  color: #0f766e;
  font-weight: 600;
  text-decoration: underline;
}
.twb-form__messages .twb-form__download-link:hover {
  color: #0d9488;
}

.twb-form__hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 991.98px) {
  .twb-form__fields {
    gap: 1rem;
  }
  .twb-form__messages {
    padding: 0.875rem 1rem;
  }
  .twb-form:has(.twb-form__messages--error) .twb-form__body {
    padding-top: 4rem;
  }
  .twb-form__field {
    margin-bottom: 0.5rem;
  }
  /* Inline radio groups: stack on small viewports for tap targets */
  .twb-form__choices--inline {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 0.625rem;
    column-gap: 0;
  }
}

/*# sourceMappingURL=frontend.css.map */
