/* Base Styles & Variables */
:root {
  --primary-color: rgb(18, 18, 18);
  --primary-hover: rgb(45, 45, 45);
  --error-color: #e53e3e;
  --error-bg: rgba(229, 62, 62, 0.05);
  --border-color: #20292F;
  --focus-color: rgb(59, 130, 246);
  --focus-ring: rgba(59, 130, 246, 0.1);
  --text-color: rgb(85, 85, 85);
  --placeholder-color: rgb(156, 163, 175);
  --spacing-unit: 1rem;
  --max-width: 720px;
  --container-padding: 3rem;
  --input-height: 3rem;
  --border-radius: 0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
[data-conditional="true"] {
  display: none; /* Hide conditionally displayed fields by default */
}
[data-hide-label="true"]{
  display: none;
}
/* Reset & Base Styles 
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
*/
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-color);
  line-height: 1.5;
}

/* Form Page Layout */
.form-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.form-container {
  width: 100%;
  max-width: var(--max-width);
  padding: var(--container-padding);
  background-color: #fafafa;
  border-radius: calc(var(--border-radius) * 2);
  box-shadow: var(--shadow-md);
  margin: 0 auto;
}

/* Typography */
.form-page h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: calc(var(--spacing-unit) * 2);
  letter-spacing: -0.025em;
}

/* Grid Layout */
.form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: calc(var(--spacing-unit) * 1.5);
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  width: 100%;
}

[style*="grid-template-columns"] {
  gap: 1.5rem;
}
.df-field{
    margin-bottom: 2rem;
}
.col-span-6 {
  grid-column: span 6;
  min-width: 0;
}

.col-span-12 {
  grid-column: span 12;
  min-width: 0;
}

/* Form Fields */
.form-field {
  position: relative;
  margin-bottom: var(--spacing-unit);
  width: 100%;
}

label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: calc(var(--spacing-unit) * 0.5);
  color: var(--primary-color);
}

label em {
  color: var(--error-color);
  font-style: normal;
  margin-left: 0.25rem;
}
.label-context{
    margin-top: 0rem;
    font-size:.8rem;
}
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  box-sizing: border-box;
  height: var(--input-height);
  padding: 0 calc(var(--spacing-unit) * 1.25);
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid lightgrey;
  border-radius: 10px;
  background-color: white;
  transition: all var(--transition-normal);
  color: var(--primary-color);
}

textarea {
  height: auto;
  min-height: 120px;
  padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.25);
  resize: vertical;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
  color: var(--placeholder-color);
}

/* Focus States */
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--focus-color);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

/* Error States */
[data-has-error="true"] input,
[data-has-error="true"] textarea {
  border-color: var(--error-color);
  background-color: var(--error-bg);
}

[data-error] {
  color: var(--error-color);
  font-size: 0.875rem;
  margin-top: calc(var(--spacing-unit) * 0.5);
}

[data-has-error="true"] [data-error] {
  display: block;
}

/* Hidden Fields */
.honeypot {
  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;
  white-space: nowrap !important;
  border-width: 0 !important;
}

/* Submit Button */
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--input-height);
  padding: 0 calc(var(--spacing-unit) * 2);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: white;
  background-color: var(--primary-color);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

button:active {
  transform: translateY(0);
}

button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Loading State */
button[data-loading="true"] {
  color: transparent;
}

button[data-loading="true"]::after {
  content: "";
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid white;
  border-radius: 50%;
  border-right-color: transparent;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --container-padding: 2rem;
  }

  .form-container {
    margin: var(--spacing-unit);
    padding: var(--container-padding);
  }
  
  .form-grid {
    gap: var(--spacing-unit);
  }
  
  .col-span-6 {
    grid-column: span 12;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  .radio-options{
      flex-direction: column !important;
  }
  .df-dream-input{
      grid-template-columns: 1fr !important;
      gap: 0 !important
  }
  input[type=number] {
    /*float: left;*/
    width: 100% !important;
      
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 1.5rem;
  }

  .form-page {
    padding: var(--spacing-unit);
  }
  
  .form-container {
    margin: 0;
  }
}

/* Print Styles */
@media print {
  .form-page {
    background: none;
    padding: 0;
  }
  
  .form-container {
    box-shadow: none;
    padding: 0;
  }
  
  .submit-button {
    display: none;
  }
}

.multi-step-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
}

#prevBtn, #nextBtn {
  padding: 10px 10px;
  background: #E0E0E0;
  color: black;
  border: none;
  border-radius: 500px;
  cursor: pointer;
}

#prevBtn:disabled, #nextBtn:disabled {
  background: #ccc;
  cursor: not-allowed;
}
#progressBar {
  flex: 1;
  height: 10px;
  background: #e0e0e0;
  margin: 0;
  border-radius: 5px;
  overflow: hidden;
}

#progressIndicator {
  height: 100%;
  width: 0;
  background: #CEFC00;
  transition: width 0.3s ease-in-out;
}

.field-error {
  border: 2px solid red !important;
  background-color: #ffe6e6;
}

input[type='radio']{
  display: none; 
}
.radio-options {
  display: flex; 
  flex-direction: row; 
  width: 100%; 
  gap: 5px;
}
.radio-options div > span {
  flex: 1 1 auto; 
  display: block; 
}
[type="radio"] + label { 
  flex: 1 1 auto;
  border: solid 1px #20292F; 
  cursor: pointer; 
  display: block; 
  padding: 10px; 
  border-radius: 500px;
  text-align: center;
}
.radio-options :checked + label {
  background: #20292F; 
  color: #fff; 
}

.df-field:has([for="7ouhgehshs53IWpi/02a4c6cd-1555-41a1-b636-a11e875d33f6"]) .radio-options {
    flex-direction: column !important;
}


.checkbox-options label{
    display: inline !important;
}

input[type=number] {
    /*float: left;*/
    width: 70px;
    height: 40px;
    font-size: 1rem;
    padding: 0;
    text-transform: uppercase;
    text-align: center;
    border: 1px #20292F solid;
    border-radius: 0 !important;
    background: none;
    outline: none;
    pointer-events: auto; /* Changed from none to auto */
}

span.spinner {
    display: flex;
    user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

span.spinner > .sub, span.spinner > .add {
    /*float: left;*/
    display: block;
    width: 35px;
    height: 40px;
    text-align: center;
    font-family: Lato;
    font-weight: 700;
    font-size: 1em;
    line-height: 38px;
    border: 1px #20292F solid;
    border-right: 0;
    border-radius: 50px 0 0 50px;
    cursor: pointer;
    transition: 0.1s linear;
    -o-transition: 0.1s linear;
    -ms-transition: 0.1s linear;
    -moz-transition: 0.1s linear;
    -webkit-transition: 0.1s linear;
}

span.spinner > .add {
    top: 0;
    border: 1px #20292F solid;
    border-left: 0;
    border-radius: 0 50px 50px 0;
}

span.spinner > .sub:hover, span.spinner > .add:hover {
    background: black;
    color: white;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none;
}


.spinner{
    transform: unset !important;
}

.drop-zone {
  height: 200px;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 500;
  font-size: 20px;
  cursor: pointer;
  color: #cccccc;
  border: 3px dashed lightgrey;
  border-radius: 10px;
}

.drop-zone--over {
  border-style: solid;
}

.drop-zone__input {
  display: none;
}

.drop-zone__thumb {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background-color: #cccccc;
  background-size: contain;
  position: relative;
  background-position:center;
  background-repeat:no-repeat;
}

.drop-zone__thumb::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 5px 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.75);
  font-size: 14px;
  text-align: center;
}


.block-type-gallery {
  /* Override the inline "display: flex" if necessary */
  display: block !important;
}

/* Make the <ul> a grid with 4 columns */
.block-type-gallery figure ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Each <li> is a grid cell */
.block-type-gallery figure ul li {
  margin: 0;
  padding: 0;
}

/* Ensure images scale correctly */
.block-type-gallery figure ul li img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* optional, helps fill the cell neatly */
}

/* On smaller devices, reduce to 2 columns */
@media (max-width: 640px) {
  .block-type-gallery figure ul {
    grid-template-columns: repeat(2, 1fr);
  }
}




 /* "Chips" area (for selected items) */
.chip {
  display: inline-block;
  padding: 0 10px;
  margin: 5px;
  background: #e0e0e0;
  border-radius: 16px;
  line-height: 32px;
}
.chip .close {
  cursor: pointer;
  margin-left: 8px;
}

/* Option container that replaces the checkbox appearance */
.search-filter-option {
  position: relative;
  cursor: pointer;
  margin: 5px 0;
  border-radius: 4px;
}
.search-filter-option label{
    display:flex !important;
    width:100%;
    padding: 5px 10px;
}
/* Hide the actual checkbox input */
.search-filter-option input[type="checkbox"] {
  display: none;
}

/* When an option is selected */
.search-filter-option.selected {
  background-color: #d0f0d0;
  border: 1px solid #4CAF50;
}

/* Optional checkmark */
.search-filter-option.selected::after {
  content: "✓";
  color: #4CAF50;
  font-weight: bold;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* Hide elements with this class (used for search filtering) */
.hidden {
  display: none;
}

/* Scrollable containers for your options and chips */
.options-group.search-filter {
  border: 1px solid #ccc;
  padding: 10px;
  max-height: 200px;
  overflow-y: auto;
}

/* Optionally limit the height of each group & chips container */
.options-group.search-filter {
  border: 1px solid #ccc;
  padding: 10px;
  max-height: 200px;
  overflow-y: auto;
}
.selected-chips {
  border: 1px solid #ccc;
  padding: 10px;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 1em;
}



select{
    font-size: 1rem;
    padding: 10px;
}
