/* /*Submit Page CSS is located in the Submit Page Layout CSS */

.single-barb-form-builder .container {
  width: 100%;
  /* max-width: 1440px;  You can adjust this */
  margin: 0 auto; /* Centers the container */
  box-sizing: border-box;
  max-width: 1170px !important;
}

.barb-form-header {
  height: 100px;
  align-items: center;
  padding: 20px 0px 0px 0px;
}

/* .main-content header div.container { */
/* padding: 35px 0px 5px 0px !important;
} */

.bard-form-header-right {
  width: 50% !important;
}

/*Ensure SVG Icons are the right colour*/
.right svg path {
  fill: #188381 !important;
}

.form-progress-placeholder {
  width: 100%;
  display: flex;
  justify-content: right;
}


.single-barb-form-builder header, .single-barb-form-builder .main-content header {
    background-color: #EC653E !important;
    height: 100px;
    margin-bottom: 50px;
}

.page-id-1481 .main-content, .page-id-1149 .main-content, .page-id-1659 .main-content, .single-barb-form-builder .main-content, .page-id-2078  .main-content{
    background: rgba(143, 207, 207, 0.2); 
    min-height: 100vh !important;
    display: flex;
    margin-top: -15px;
    padding-bottom: 150px;
    flex-direction: column;
}

.page-id-1481 .main-content .has-white-background-color, .page-id-1149 .has-white-background-color, .single-barb-form-builder, .has-white-background-color, .page-id-2078 .has-white-background-color {
    background: transparent !important;
}

/* ============================
   Global Variables (Colors + Fonts)
   ============================ */
:root {
  /* 🎨 Colour Palette */
  --color-primary: #188481;
  --color-secondary: #64748b;
  --color-accent: #EC653E;
  --color-background: #ffffff;
  --color-surface: transparent;
  --color-text: rgba(24, 132, 129, 1); /* ✅ Updated color */
  --color-muted: rgba(24, 132, 129, 0.5);
  --color-border: ##188481;
  --color-error: #dc2626;

  /* 🖋️ Fonts */
  --font-base: 'Open Sans', sans-serif; /* ✅ Updated font */
  --font-heading: 'Open Sans', sans-serif;
  --font-size-base: 19px; /* ✅ Updated base font size */
  --letter-spacing-base: -0.011em; /* ✅ -1.1% converted to em */
  --line-height-base: 1.35; /* ✅ 135% = 1.35 */
}

/* ============================
   🧱 Global Reset & Box Model
   ============================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================
   🧱 Base Typography Rules
   ============================ */
html,  body {
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  font-weight: 400; /* ✅ Normal text weight */
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-base);
  line-height: var(--line-height-base);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
}

/* ============================
   🔠 Typography
   ============================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
/* h2 { font-size: 27px; } */
h2 { font-size: 1.1rem;
    line-height: 30px !important;}
h3 { font-size: 1rem; }
h4 { font-size: .9rem; }
h5 { font-size: .8rem; }
h6 { font-size: .7rem; }

p {
  margin-bottom: 1em;
  color: var(--color-text);
  font-size: 14px !important;
}

h2 a { font-size: 1.1rem;
      color: var(--color-accent) !important;
     }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ============================
   🧩 Default Forms & Inputs
   ============================ */
input,

select,
button {
  font-family: inherit;
  font-size: 15px;
  height: 38px;  
  padding-bottom: 0px;

  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text); /*Replace with color #fff if we have any issues with text visibility */
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"] {
  /* width: 600px !important; */
  color: var(--color-primary) !important;
  border: none;
  border-bottom: 1px solid var(--color-primary);
  outline: none;
  padding: 10px 0px 15px 0px !important; 
  background-color: transparent !important; 
    /* font-size: 15px !important; */
font-size: .9rem !important; 
}
input::placeholder,
textarea::placeholder {
  color: var(--color-muted);
  font-size: .9rem !important;  
 
}

input:focus {
  border-bottom: 6px solid var(--color-primary);
}
textarea:focus,
select:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}

.acf-required{
    display: none;
}

/* Target the select field */
#af-field_67f7ad88e2250,
.af-input select {
  border: 2px solid var(--color-primary); /* Customize border color if needed */
  padding-left: 25px !important; 
  color: var(--color-primary);
  background-color: #fff; /* Optional for clarity */
  appearance: none; /* Optional for custom styling */
  border-radius: 10px;
  height: 60px !important;
  /* width: 600px !important; */
  font-size: .8rem !important;
}

/* Style dropdown options */
.af-input select option:hover {
  background-color: orange !important;
   color: #fff !important; 
}

.af-field-instructions{
    margin-top: 10px !important;
}

textarea{
    border-radius: 10px !important;
    border-color: var(--color-primary);

}

textarea label{
    display: none !important;
}

/* .af-calculated-content p, */

/* ============================
   🔘 Buttons
   ============================ */
button {
  padding-bottom: 2px;
  background-color: var(--color-surface);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 27px;  
  width: 145px;  
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
  /* fill: var(--color-primary); */
  stroke: var(--color-primary);
     stroke-width: 3 !important;
}

button:hover, input[type="submit"]:hover {
    background-color: var(--color-accent);
    color: #fff;  
    border-color:  var(--color-accent); 
    /* fill: #fff !important; */
    stroke: #fff !important;
    stroke-width: 3 !important;
}

/*This aligns the button to the left column */

.af-submit {
    padding: 0px !important;
}

.last-step .af-submit {
    padding: 0px !important;
    margin-top: -100px;
}

.af-next-button acf-button{
  margin-top: -50px !important;
}

.af-next-button{
    margin-right: 20px !important;
    padding-bottom: 0px !important;
}

.af-previous-button {
    margin-right: 20px !important;
    padding-bottom: 1px !important;
}

.acf-notice.-error {
    background: var(--color-accent) !important;

}
.acf-notice p{
    color: #fff !important;
}

.af-page-button .title, .af-field-type-message .af-label{

    display: none !important;
    
}
#step-indicator{
  font-size: 14px !important;
}
/* ============================
   📋 Lists
   ============================ */
ul, ol {
  margin-left: 2em;
  margin-bottom: 1em;
}

li {
  margin-bottom: 0.5em;
}

/* ============================
   📦 Misc Utility Styling
   ============================ */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2em  0;
}

.line-break{
    margin-bottom: -50px!important;
}
/* ============================
    ACF Override
   ============================ */
/* ACF progress bar */
.af-page-wrap{
    width: 600px;
}

/* ACF form field border */
.acf-fields.-border {
    border: none !important; 
    background: transparent !important;
}

/* ACF Input Fields */

/* Hide native radio */
.acf-radio-list input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: none;
}

/* Style the full label as a button */
.acf-radio-list label {
  display: block !important;             
  width: 145px !important;
  height: 38px;
  line-height: 32px;                 
  border: 2px solid var(--color-primary);
  border-radius: 27px;
  background-color: #ffffff;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.011em;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  user-select: none;
}

/* Style the RADIO field full label as a button */
.option-buttons .acf-radio-list label {
  display: block !important;             
  width: 100% !important;
  height: 56px;
  /* line-height: 38px;                  */
  border: 2px solid var(--color-primary);
  border-radius: 10px;
  text-align: left !important;
  padding: 9px 0 15px 15px;  
  font-size:  .75rem !important; 
   font-weight: 400;
    
}
.option-buttons .acf-radio-list li{
    margin-bottom: 1rem !important;
}

/* Hover effect */
.acf-radio-list label:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* Checked radio = label gets selected class from ACF */
.acf-radio-list label.selected {
  width: 145px;  
  background-color: var(--color-primary);
  color: #ffffff;
}

.acf-field.line-break{
    margin-top: 25px !important;
    border-top: 1px solid var(--color-primary);
    /* width: 600px; */
    height: 30px;
}

/* ACF Groups */

.page-column-wrapper{
       flex-wrap: wrap;
} 
.page-column-wrapper .right{

    padding:  50px; 
    background-color: #fff; 
    border-radius: 10px; 
    color: var(--color-primary);
     max-width: 350px;
    flex-shrink: 0; /* prevents shrinking */
    
}
.page-column-wrapper .left{
     flex: 1;
    min-width: 0; /* ensures overflow doesn't break layout */
    /* width: 74% !important;
    flex: none !important; */
    padding-right: 8%;
}   

.single-barb-form-builder .step-label {
    text-align: left;
    font-weight: bold;
    /* font-size: 1.4em; */
    margin-bottom: 0.5em;
    margin-top: -12px;
}


.acfe-field-group-layout-block, .af-field-type-group{
    padding:0px !important;
}

.af-input .group-right p{
    font-size: .9rem !important;
}

.group-right p strong
{
    font-size: 17px;
}
.af-field-step9-group-right{
    background-color: #fff;
    border-radius: 10px;
    padding: 50px !important;
}

.af-field-step9-group-right textarea{
    border: 1px solid var(--color-primary) !important;
    border-radius: 10px;
}

.acf-field-message{
    background-color: transparent !important;
}


/* ============================
   BARB ACF Override
   ============================ */
input:focus::placeholder,
textarea:focus::placeholder {
  color: transparent;
  opacity: 0;
}

/* Vendor-specific rules for broader browser support */
input:focus::-webkit-input-placeholder,
textarea:focus::-webkit-input-placeholder {
  color: transparent;
  opacity: 0;
}

input:focus::-moz-placeholder,
textarea:focus::-moz-placeholder {
  color: transparent;
  opacity: 0;
}

input:-moz-placeholder,
textarea:-moz-placeholder {
  color: transparent;
  opacity: 0;
}


.st0{
    fill: #188381 !important;
}

/*Submit Page */
.calculated-results-default{
    color: var(--color-muted) !important;
      font-size: 1rem !important;
     font-weight: 400 !important;
}
.af-calculated-content,
.calculated-results{
     font-size: 1rem !important;
     font-weight: 400 !important;
}

/*ACF Labels */
.acf-field-message .acf-label{
    display: none; 
}

.af-field-type-message{
    margin-top: -25px !important;
}
.af-field-type-radio .af-label {
    display: none !important;
} 

.af-field-type-select label{
    font-size: 22px !important;
    font-weight: 700 !important;
}

.step-1.af-field-type-text label{
    display: none !important;
}

.af-field-type-text label{
    font-size: 22px !important;
    font-weight: 700 !important;
}

.acf-field-calculated .af-label{
     font-size: 22px !important;
     font-weight: 700 !important;
}

.af-field-type-calculated{
    border-bottom: 1px solid var(--color-primary) !important;
    padding-top: 50px !important;
}
.step-9 .af-field-type-calculated{
     border-bottom: none !important;
}

.acf-field-calculated.total {
    color: var(--color-accent);
    border-bottom: 5px solid var(--color-accent) !important;
    font-size: 28px !important;
    width: 50% !important;
    margin-bottom: 40px;
}

.acf-field{
     padding: 10px 0px !important;
}

.acf-field .acf-label label {
    font-weight: 900 !important;
    font-size: 1rem !important;
}

/* ACF Select Fields */

/* 📦 Outer container */
.select2-container--default {
  /* width: 600px !important; */
  font-size: 1rem;
  font-weight: 400;
}

/* 🧾 Selected value (the field before clicking) */
.select2-selection--single {
  background-color: #ffffff;
  border: 2px solid var(--color-primary) !important;
  border-radius: 10px !important;
  height: 56px !important;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  font-size: 22px !important;
  font-weight: 400;
  color: #1f2937;
  cursor: pointer;
  transition: border 0.2s ease-in-out;
}

/* 🟡 Placeholder text */
.select2-selection__placeholder {
    
  color: var(--color-primary) !important;
 
}

.acf-selection{
     font-size: 18px !important;
     color: var(--color-primary);
}

 /* .select2-container--focus{
     background-color: var(--color-accent) !important;
 }
 */
/* 🔽 Dropdown arrow */
.select2-selection__arrow b {
  border-color: #1f2937 transparent transparent transparent;
}

/* ⬇️ Dropdown options menu */
.select2-container--default .select2-results > .select2-results__options {
  
  border: 1px solid var(--color-primary);
  border-radius: 6px;
  font-size: 22px !important;
  font-weight: 400;
  color: #1f2937;
  max-height: 250px;
  overflow-y: auto;
}

/* 📌 Each dropdown item */
.select2-results__option {
  padding: 10px 15px;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    
}

/* Hovered item */
.select2-results__option--highlighted {
  background-color: var(--color-accent) !important;
  color: #ffffff !important;

}

.select2-container .select2-results__option--highlighted[aria-selected] * {
  color: white !important;
}

/* Selected item */
.select2-results__option[aria-selected="true"] {
  background-color: var(--color-accent) !important;
  color: #fff !important;  
 
}

.select2-selection__arrow b {
  display: none !important;
}

.select2-selection__arrow::after {
  content: "";
  display: block;
  width: 1em;
  height: 1em;
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2215%22%20height%3D%2220%22%20viewBox%3D%220%200%2015%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M2%2012.5L8%2018.5L13.5%2012.5%22%20stroke%3D%22%23188481%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3Cpath%20d%3D%22M8%2018L8%202%22%20stroke%3D%22%23188481%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: 100%;
  left: 0%;
  transform: translate(-50%, -50%);
}
.select2-container .select2-search--dropdown {
  display: none !important;
}



.message-line{
    margin-bottom: 1px solid var(--color-primary) !important;
}

.margin-space-top{
    margin-top: 50px !important; 
}


/* Left column: stacked */
.thanks-column{
  grid-column: 1;
  grid-row: 1;
}

/* Right column: top */
    .grid-column-last-page {
        grid-column: 2;
        grid-row: 1 / span 2;
        /* width: 195px; */
    }

 
/* Style the autocomplete dropdown */

.ui-autocomplete {
    background: white;
    width: 600px;
    /* border: 1px solid var(--color-primary); */
    max-height: 200px;
    overflow-y: auto;
    font-size: 20px !important;
    z-index: 10000 !important; /* Make sure it’s above other elements */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Style individual items */
.ui-menu-item {
    padding: 5px 10px;
    cursor: pointer;
    font-size: 20px;
}

/* Highlighted/selected item */
.ui-state-active {
    background: var(--color-accent);
    color: white;
    padding: 5px;
}
