/*
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme – optimized CSS
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/*
  Fluid spacings via clamp - replaces separate media queries without changing behavior
*/
:root {
  --margin-top-small: clamp(56px, 3vw + 40px, 64px);
}

/* ------------------------------
   Form
------------------------------ */

.bb-form-wrapper form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Steps */
.bb-form-wrapper .forminator-ui[data-design="none"] .forminator-pagination-steps {
  display: flex !important;
  align-items: center !important;
  width: 100%;
  max-width: 320px;
  margin-bottom: 56px;
}

.bb-form-wrapper .forminator-ui[data-design="none"] .forminator-step-label { display: none; }

.bb-form-wrapper .forminator-ui[data-design="none"] .forminator-pagination-steps .forminator-step {
  background: transparent !important;
  cursor: pointer;
}

.bb-form-wrapper .forminator-ui[data-design="none"] .forminator-step.forminator-current ~ .forminator-step .forminator-step-dot {
  background: var(--wp--preset--color--palette-color-14, var(--theme-palette));
}

.bb-form-wrapper .forminator-ui[data-design="none"] .forminator-step-dot {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: 700;
  background: var(--theme-palette-color-9);
  margin: 0;
}

.bb-form-wrapper .forminator-ui[data-design="none"] .forminator-pagination-steps .forminator-break {
  margin: 0;
  width: 100% !important;
  height: 2px;
  background: var(--theme-palette-color-14);
}

.bb-form-wrapper .forminator-ui[data-design="none"] .forminator-pagination-steps .forminator-step:not(.forminator-current) + .forminator-break {
  background: var(--theme-palette-color-9);
}

/* Steps content */
.bb-form-wrapper [data-step="0"],
.bb-form-wrapper [data-step="1"] { width: 100%; }

.bb-form-wrapper .forminator-pagination--content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Rows */
.bb-form-wrapper .forminator-row {
  display: grid;
  gap: 32px 48px;
  font-size: 14px;
  width: 100%;
}

@media (min-width: 1023px) {
  .bb-form-wrapper [data-step="0"] .forminator-row { grid-template-columns: repeat(2, 1fr); }
}

.bb-form-wrapper [data-step="1"] .forminator-row:is(:nth-child(5), :nth-child(6)) {
  width: 100%;
  grid-template-columns: repeat(2, 1fr);
}

/* Pagination */
.bb-form-wrapper .forminator-pagination-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

/* Labels, errors */
.bb-form-wrapper .forminator-ui[data-design="none"] .forminator-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.bb-form-chances {
  padding: 16px;
  display: flex;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
}

.bb-form-chances p { margin: 0; }

.bb-form-chances.high {
  background: var(--theme-palette-color-2);
  color: var(--theme-palette-color-12);
}

.bb-form-chances.mid { background: var(--theme-palette-color-16); }

.bb-form-chances.low { background: var(--theme-palette-color-14); }

.bb-form-wrapper .forminator-ui[data-design="none"] .forminator-error-message {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  border-radius: 32px;
  padding: 4px 8px !important;
  color: var(--theme-palette-color-12);
  background: var(--theme-palette-color-15);
  border: 1px solid var(--theme-palette-color-12) !important;
  max-width: max-content;
  position: absolute;
  bottom: -16px;
}

/* Inputs, buttons */
.bb-form-wrapper textarea { border-radius: 16px !important; }

.bb-form-wrapper .forminator-button {
  padding: 8px 16px !important;
  font-size: 14px !important;
}

.bb-form-wrapper .forminator-button-next:not(:hover),
.bb-form-wrapper .forminator-button-back:not(:hover) {
  background: transparent !important;
  color: var(--theme-palette-color-2) !important;
}

.bb-form-wrapper .forminator-field {
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.bb-form-wrapper .forminator-field select {
  margin-top: auto;
}

.bb-form-wrapper--white,
.bb-form-wrapper--white a {
  color: var(--theme-palette-color-12) !important;
  line-height: 120% !important;
}

.bb-cta--right {
  align-self: flex-end;
}

.bb-form-wrapper .forminator-row-last {
  margin-bottom: 0 !important
}