.gfield {
    padding-left: 30px !important;
    padding-right: 30px !important;
    padding: 20px 0px;
background: #f5f5f5;border-radius: 10px;}
.gfield:not(.blue_section){
    margin-bottom: 30px;
}
.gform_footer {
    margin-top: unset!important;
    padding-left: 30px;
}
.wrap_two {
 grid-column: 1 / -1; /* span from first to last column */
  display: flex;
  gap: 10px;
  width: 100%; /* make sure it stretches */
  box-sizing: border-box;
}
.wrap_two .gfield {
  /*  display: flex; */
  align-items: center;   /* align label and input vertically */
  gap: 10px;             /* space between label and input */
  width: 100%;
}
.docusign_intake h4 {
    color: #fff;
}
.gform_wrapper.gravity-theme .gfield-choice-input+label {
    max-width: 100%!important;
    padding-top: 20px;
    padding-bottom: 20px;
}
.wrap_two .gfield .ginput_container  {
    width: 100%;
}
.wrap_two .gfield input {
  flex: 1;               /* input takes up remaining space */
  width: 100%;           /* ensure it doesn't shrink */
  box-sizing: border-box;
}
.wrap_two .gfield label {
     
    white-space: nowrap;   /* prevents label from wrapping */
  width: auto; 
    
}

.wrap_two .one_half,
.wrap_two .last_half {
  flex: 1; /* makes them take equal width */
  box-sizing: border-box; /* keep padding/margin inside */
}
.form-section{
    background-color: #f5f5f5;
    grid-column: 1 / -1;        /* span all columns in the grid */
  width: 100%;                /* take full width */
  box-sizing: border-box;
  flex-wrap: wrap;
  border-radius: 10px;
  padding-top: 20px;
  padding-bottom: 30px;
}
.form-section .gfield {
  flex: 0 0 calc(50% - 10px); /* 50% width minus half the gap */
  box-sizing: border-box;
  padding-left: 30px!important;
  padding-right: 30px!important;
}
/*address fields city state and zip in one row */
.rkt--address .ginput_complex.ginput_container_address {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* Optional spacing */
  place-items: flex-end;
}

/* Target City, State, Zip only */
.rkt--address .address_city,
.rkt--address .address_state,
.rkt--address .address_zip {
  flex: 1 1 0!important;
  min-width: 0;
  box-sizing: border-box;
  
}
/*address fields code ends here*/
/*code for radio buttons starts here */
/* 1. Style radio labels */
.gfield_radio .gchoice label {
  display: block;
  padding: 12px 16px;
  border: 2px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* 2. Hide the default radio button */
.gfield_radio .gchoice input[type="radio"] {
  display: none;
}

/* 3. Style the label when the radio is selected */
.gfield_radio .gchoice input[type="radio"]:checked + label {
  background-color: #003366; /* Dark blue */
  color: #fff;
  border-color: #003366;
}
/* inlining radio buttons */
.gfield_radio .gchoice {
  display: inline-block;
  margin-right: 10px;
}
.blue_section {
    background-color: #004b7e;
    border-bottom-left-radius: unset!important;
	border-bottom-right-radius: unset!important;
}
/* code for radio buttons ends here */
.page-id-22498 .gform_fields .gfield:nth-child(7) {width: 100%;}