/* ---------- General form fixes for greyBackgroundForm ---------- */
.greyBackgroundForm.thankyou {
  display: flex;
  flex-direction: column; /* make all controls stack vertically */
  align-items: center;    /* center all child controls */
}

/* ---------- Bedrooms radio group ---------- */
/* Bedrooms radio buttons in a single line and centered */
.greyBackgroundForm.thankyou .prof-form__bed table {
  display: flex !important;       /* use flex instead of table layout */
  flex-wrap: nowrap !important;   /* prevent wrapping to next line */
  justify-content: center !important; /* center horizontally */
  margin: 0 auto !important;
}

.greyBackgroundForm.thankyou .prof-form__bed td {
  white-space: nowrap;            /* keep label and input together */
  /*padding: 0 0.5rem;              /* small spacing between items */
  text-align: center;
}

.greyBackgroundForm.thankyou .prof-form__bed label {
  display: inline-block;
  margin: 0;
}

/* ---------- Bathrooms radio group ---------- */
.greyBackgroundForm.thankyou .prof-form__bath table {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  margin: 0 auto !important;
}
.greyBackgroundForm.thankyou .prof-form__bath td {
  white-space: nowrap;
  /* padding: 0 0.5rem; */
  text-align: center;
}
.greyBackgroundForm.thankyou .prof-form__bath label {
  display: inline-block;
  margin: 0;
}

/* ---------- Carparks radio group ---------- */
.greyBackgroundForm.thankyou .prof-form__carpark table {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  margin: 0 auto !important;
}
.greyBackgroundForm.thankyou .prof-form__carpark td {
  white-space: nowrap;
  padding: 0 0.5rem;
  text-align: center;
}
.greyBackgroundForm.thankyou .prof-form__carpark label {
  display: inline-block;
  margin: 0;
}

/* ---------- Household cycle radio group (single line, centered) ---------- */
.greyBackgroundForm.thankyou .prof-form__cycle table {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  margin: 0 auto !important;
}
.greyBackgroundForm.thankyou .prof-form__cycle td {
  white-space: nowrap;
  /* padding: 0 0.5rem; */
  text-align: center;
}
.greyBackgroundForm.thankyou .prof-form__cycle label {
  display: inline-block;
  margin: 0;
}

@media (min-width: 769px) {
  .form-assembly-wrapper .progressive-profiling  form > div:nth-of-type(3),
  .form-assembly-wrapper .progressive-profiling  form > div:nth-of-type(4),
  .form-assembly-wrapper .progressive-profiling  form > div:nth-of-type(6),
  .form-assembly-wrapper .progressive-profiling  form > div:nth-of-type(7) {
    width: calc(100% - 15px);
    display: inline-block;
  }
}

  /* Hide both by default */
  .control-label.radio.progressive-profiling_2,
  label.control-label:has(+ .progressive-profiling_2) {
    display: none !important;
  }

  /* Show label + section when "Owner Occupier" (id ends in 3403) is checked */
  .progressive-profiling_1:has(#tfa_3590416183403:checked)
  ~ label.control-label:has(+ .progressive-profiling_2),
  .progressive-profiling_1:has(#tfa_3590416183403:checked)
  ~ .progressive-profiling_2 {
    display: block !important;
  }

  /* Hide both again when "Investor" (id ends in 3404) is checked */
  .progressive-profiling_1:has(#tfa_3590416183404:checked)
  ~ label.control-label:has(+ .progressive-profiling_2),
  .progressive-profiling_1:has(#tfa_3590416183404:checked)
  ~ .progressive-profiling_2 {
    display: none !important;
  }

 /* Force left alignment and remove unwanted padding */
.privacy-statement-wrapper {
  text-align: left !important;
  padding-left: 0 !important;
  margin-left: 0 !important; /* optional, just in case */
}

/* Ensure the link title and hidden text block are left-aligned and flush */
.privacy-statement-wrapper .privacy-statement-link,
.privacy-statement-wrapper .privacy-statement {
  text-align: left !important;
  display: block;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* Optional: better spacing for readability */
.privacy-statement-wrapper .privacy-statement-link {
  margin-bottom: 10px;
}

.privacy-statement-wrapper .privacy-statement p {
  margin: 0;
  line-height: 1.6;
}


/* text area*/
/* .input-wrapper--text-area {
  display: block;
  width: 100%;
}

.input-wrapper--text-area label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.input-wrapper--text-area textarea.form-control {
  display: block;
  width: 100%;
  min-height: 120px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
  resize: vertical;
  background-color: #fff;
}

.input-wrapper--text-area textarea.form-control:focus {
  border-color: #0078d4;
  outline: none;
} */
