.form--header h1 {
  font-size: 80px;
  font-weight: 500;
}
.form--header p {
  font-size: 18px;
  font-weight: 300;
  margin: 30px 0;
}

.item {
  border-bottom: 1px solid #7e9296;
  display: inline-block;
  padding-bottom: 60px;
  max-width: 680px;
  width: 100%;
  margin-top: 30px;
}

.item--header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item h2 {
}

.item--container {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding-left: 25px;
}

.item h2 {
  font-weight: 500;
}

.label {
  margin: 8px 0;
  text-align: left;
  font-weight: 600;
  font-family: "Rubik", sans-serif;
}

input[type="text"], input[type="email"] {
    box-sizing: border-box;
    width: 100%;
    max-width: 300px; 
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #7e9296;
    border-radius: 100px;
    background-color: white;
  }

.custom-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 2rem;
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  color: #0a0a2a; /* dark navy color */
  transition: all .2s cubic-bezier(0.215, 0.610, 0.355, 1);
}
.custom-radio:hover{
    transform: scale(1.05);
}

.custom-radio input[type="radio"] {
  display: none;
}

.radio-mark {
  width: 20px;
  height: 20px;
  border: 1px solid #7e9296;
  border-radius: 50%;
  margin-right: 1rem;
  position: relative;
  transition: all 0.2s ease;
}

.custom-radio input[type="radio"]:checked + .radio-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  background-color: #234446;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

::placeholder {
  color: #0c0c0c;
  font-weight: 300;
  font-style: italic;
}

.radio--buttons {
  display: flex;
}

.custom-dropdown {
  position: relative;
  display: inline-block;
  font-family: sans-serif;
}

/* The button that shows the selected value */
.dropdown-selected {
    position:relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid #ccc;
  border-radius: 30px;
  padding: 12px 16px;
  background-color: #fff;
  color: black;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 0 2px #ccc;
  z-index: 1001;
  width: 134px;
  transition: transform .2s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.dropdown-selected:hover{
    transform: scale(1.03);
}

/* The selected text is italic */
.selected-text {
  font-style: italic;
}

/* The circular caret icon */

.dropdown-options {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    padding: 30px 0 0; 
    background-color: #fff;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.36);
    list-style: none;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 100;
  }
  
  .dropdown-options.show {
    transform: translateY(45px); 
    opacity: 1;
    pointer-events: auto;
    z-index: 1000;
  }
  
.dropdown-option {
  padding: 14px 12px;
  cursor: pointer;
}
.dropdown-option:hover,
.dropdown-option:focus {
  background-color: #f0f0f0;
  outline: none;
}

.percent{
  display: flex;
  align-items: center;
  gap: 20px;

}

.child-age-dropdowns{
    margin: 20px 0 0 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
}

.custom-dropdown {
    /* Make sure dropdowns start visible but hidden by default */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    /* Remove display:none here, handled by .hidden */
  }
  
  .custom-dropdown.show {
    opacity: 1;
    visibility: visible;
  }
  
  .hidden {
    display: none !important;
  }
  
  .dropdown-options {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }
  
  .dropdown-options.show {
    opacity: 1;
    visibility: visible;
  }
  
  /* Default state: SVG arrow pointing down */
.custom-dropdown .dropdown-arrow {
    transition: transform 0.3s ease;
    transform-origin: center;
  }
  
  .custom-dropdown .dropdown-option:hover {
    background-color: #e0e0e0; /* your hover bg */
  }
  
  .custom-dropdown .dropdown-option:last-child:hover {
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
  }

  
  .percentages {
    width: 400px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
  }
  
  .percentages input {
    width: 60px;
    text-align: center;
    font-size: 1rem;
  }
  
  .slider-container {
    flex-grow: 1; 
    display: flex;
    align-items: center;
    padding: 0; 
  }
  
  input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 28px;
    border-radius: 9px;
    background: linear-gradient(
      to right,
      #3E92CC 50%,
      #C3423F 50%
    );
    outline: none;
    margin: 0;
    padding: 0;
    margin-top: 32px;
  }
  
  input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px;
    height: 48px;
    border-radius: 7px;
    background: #fff;
    border: 1px solid #707070;
    cursor: pointer;
  }
  
  input[type=range]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #333;
    cursor: pointer;
  }
  
  .slider-container {
    display: flex;
    align-items: center;
    height: 100%; 
    padding: 20px 20px;
  }
  