/* Add spacing to form start */
.et_pb_text.form-start-spacing {
  margin-top: 46px !important;
}
/* Making all text fields more loosey goosey */
.gform_wrapper input, .gform_wrapper textarea, .gform_body select {
    padding: 15px !important;
}
/* Start Making Accordian purple and changing icon */
.et_pb_toggle_title:before {
    content: "\E044";
    color: var(--accordian-icon-colour);
}
.et_pb_toggle_open .et_pb_toggle_title:before {
    content: "\E043";
}
/* End Making Accordian purple and changing icon */

/*Start of Progress Bar */
body.et_pb_button_helper_class .gform_wrapper.gravity-theme .gform_save_link:hover {
    opacity:80%;
}
.gform_wrapper.gravity-theme .gform_save_link.button svg {
    display:none!important;
}

.gform_wrapper.gravity-theme .gf_progressbar {
    background: var(--progress-bar-background-colour);
    border-radius: 4px!important;
    margin-bottom: 0;
    position: relative;
}
.gform_wrapper.gravity-theme .gf_progressbar_percentage {
   border-radius: 4px !important;
}
/* Progress Step Title */
.gform_wrapper.gravity-theme .gf_progressbar_title {
    color: var(--progress-bar-title-colour);
    font-size: 14px;
}
.gf_step_current_page, .gf_step_page_count {
    font-weight: 800;
}
/* Progress Bar */
 .gform_wrapper.gravity-theme .gf_progressbar_percentage.percentbar_blue {
    background-color: var(--progress-bar-colour) !important;
}
/* Horizontal Dotted Line */
.gform_body hr {
    border-top: 1px dotted var(--dotted-border-colour) !important;
    border-bottom: 0;
    margin-top: 14px !important;
    margin-bottom: 14px !important;
    /* padding: 0 !important; */
    /* margin: 0 !important; */
}
/* ----------Reducing Top HR on mobile---------- */
  @media only screen and (max-width: 980px) {
.gform_body hr {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    }
}
/* ----------Reducing Top HR on mobile---------- */
/* ----------Start of general form styling---------- */
.gfield_label.gform-field-label {
    font-family: var(--font-fam);
    margin-bottom: 0px !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    color: var(--field-label-colour) !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}
/*---GF Label font size---*/
.gform_wrapper.gravity-theme .gfield_header_item,.gform_wrapper.gravity-theme .gform_fileupload_rules,.gform_wrapper.gravity-theme .ginput_complex label {
    font-size: 1em!important;
    padding-top: 1px;
}
/* Inherit font, size and spacing */
.gform_wrapper.gravity-theme input[type=color],
.gform_wrapper.gravity-theme input[type=date], 
.gform_wrapper.gravity-theme input[type=datetime-local], 
.gform_wrapper.gravity-theme input[type=datetime], 
.gform_wrapper.gravity-theme input[type=email],
.gform_wrapper.gravity-theme input[type=month],
.gform_wrapper.gravity-theme input[type=number], 
.gform_wrapper.gravity-theme input[type=password],
.gform_wrapper.gravity-theme input[type=search], 
.gform_wrapper.gravity-theme input[type=tel], 
.gform_wrapper.gravity-theme input[type=text],
.gform_wrapper.gravity-theme input[type=time],
.gform_wrapper.gravity-theme input[type=url],
.gform_wrapper.gravity-theme input[type=week],
.gform_wrapper.gravity-theme select, 
.gform_wrapper.gravity-theme textarea {
    font-family: inherit;
    font-size: inherit;
    letter-spacing: normal;
    border:0;
    background: #e8e8e8;
}
/* Hide Required Text */
p.gform_required_legend {
    display:none!important;
}
/* 1. Select field Arrow change */
.gform_wrapper.gravity-theme .gfield select.medium {  
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-repeat: no-repeat;
  background-position: right 0.75em center;
  background-size: 12px; /* size of arrow icon */
}
.gform_wrapper.gravity-theme .gfield select.medium {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
}
.gform_wrapper.gravity-theme .gfield select {
     -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-repeat: no-repeat;
  background-position: right 0.75em center;
  background-size: 12px; /* size of arrow icon */ 
}
.gform_wrapper.gravity-theme .gfield select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
}
/* Adding Horizontal Line HR to Body */
.gform_body {
  margin: 40px 0 0 !important;
  border-top: 1px dotted var(--dotted-border-colour) !important;
  padding: 40px 0 0 !important;
}
/* Adding Horizontal Line HR to footer */
.gform_page_footer,
.gform_footer {
    margin: 40px 0 0 !important;
    border-top: 1px dotted var(--dotted-border-colour) !important;
    padding: 40px 0 !important;
}
/* Start of reducing margin when last type on page */
.gform_wrapper .gform_page .gfield:last-of-type .gpnf-add-entry,
.gform_wrapper .gform_page .gfield:last-of-type input.large,
.gform_wrapper .gform_page .gfield:last-of-type p {
     margin-bottom: 0 !important;
    padding-botton: 0 !important;
}
/* End of reducing margin when last type on page */
/* ----------End of General Form Styling---------- */
/* ----------START OF FORM BUTTON STYLING---------- */
/* NEXT Button */
body.et_pb_button_helper_class .gform_wrapper.gravity-theme .gform_next_button {
    background-color: var(--form-next-button-background-colour) !important;
    color: var(--form-next-button-font-colour) !important;
   padding: 20px 30px!important;
    cursor: pointer;
	letter-spacing: 1px;
    margin-bottom: 0px !important;
}
body.et_pb_button_helper_class .gform_wrapper.gravity-theme .gform_next_button:hover {
    opacity:80%;
}
/* PREVIOUS Button */
body.et_pb_button_helper_class .gform_wrapper.gravity-theme .gform_previous_button {
    background-color: var(--form-previous-button-background-colour) !important;
    color: var(--form-previous-button-font-colour) !important;
    padding: 20px 30px !important;
    margin-right: 5px;
    border: 0 !important;
    cursor: pointer;
    box-shadow: 0 0 0 2px var(--form-previous-button-border-colour);
	letter-spacing: 1px;
    margin-bottom: 0px !important;
}
body.et_pb_button_helper_class .gform_wrapper.gravity-theme .gform_previous_button:hover {
    background-color: var(--form-previous-button-font-colour) !important;
    color: var(--form-previous-button-hover-font-colour) !important;
    border: 2px !important;
    opacity:80%; 
}
/* SAVE Button */
body.et_pb_button_helper_class .gform_wrapper.gravity-theme .gform_save_link {
    background-color: var(--form-save-button-background-colour) !important;
    color: var(--form-save-button-font-colour) !important;
    float: right !important;
    cursor: pointer;
    margin-top: 20px;
    margin-right: -10px;
    font-size: 14px;
    line-height: 1em;
    font-weight: 900;
    border: 0px;
    letter-spacing: 1px;
    margin-bottom: 0px !important;
}
/* ----------Moving Save & Continue to the left on mobile---------- */
@media only screen and (max-width: 641px) {
  body.et_pb_button_helper_class 
  .gform_wrapper.gravity-theme 
  .gform_save_link {
    display: block !important;
    float: none     !important;
    margin-left: -5px;

  }
}
/* MULTI-PAGE SUMBIT Button */
body.et_pb_button_helper_class .gform_wrapper.gravity-theme .gform_button.button {
    padding: 20px 40px!important;
    background-color: var(--form-submit-button-background-colour) !important;
    font-family: "Lato",sans-serif;
    font-size: 14px;
    line-height:1em;
    font-weight: 900;
    color: var(--form-submit-button-font-colour) !important;
    border:0;
    box-shadow: 0 0 0 2px var(--form-submit-button-border-colour);
    text-transform: none;
    letter-spacing: 1px;
    margin-bottom: 0px !important;
}
body.et_pb_button_helper_class .gform_wrapper.gravity-theme .gform_button.button:hover {
    opacity:80%;
}
/* Submit Button resizing on mobile */
 @media only screen and (max-width: 980px) {
    body.et_pb_button_helper_class .gform_wrapper.gravity-theme .gform_button.button {
    padding: 20px 40px !important;
    }
}

/* Adding margin to the button loading spinner */
body img.gform_ajax_spinner {
    margin-left: 15px;
}
/* ----------End of Form Buttons---------- */
/* Start Radio Button Styling - Adding Spacing, | and dotted line */
.gchoice {
    padding: 8px 0;
}
.gform-field-label--type-inline:before {
    content: '|';
    color: #ccc;
    padding: 0 8px 0 3px;
}
.gchoice:not(:last-child) {
    border-bottom: 1px dotted #ccc;
}
/* End Radio Button Styling - Adding Spacing, | and dotted line */

/* ----------Start of Star Rating Styling---------- */
.gravity-theme .gsurvey-rating:not(:checked)>label {
background-image: url("/wp-content/themes/divi-child/images/rating-star-grey.png");
    background-size: 30px 30px;
    padding: 6px 25px 25px 8px;
    margin-right: 14px;
    margin-bottom: -15px;
}
.gravity-theme .gsurvey-rating:not(:checked)>label:hover, .gravity-theme .gsurvey-rating:not(:checked)>label:hover~label, .gravity-theme .gsurvey-rating>input:checked~label {
background-image: url("/wp-content/themes/divi-child/images/rating-star-yellow.png");
 background-size: 30px 30px;
padding: 6px 25px 25px 8px;
    margin-right:14px;
        margin-bottom: -15px;
}
.gravity-theme .gsurvey-rating {
    padding-bottom: 5px;
}
/* ----------End of Star Rating Styling---------- */
/* -----------Start of Error Messaging---------- */
/* This field is required styling */
.gform_wrapper.gravity-theme .gfield_validation_message, .gform_wrapper.gravity-theme .validation_message {
    background: var(--validation-message-background-colour);
    border-radius: 0px;
    border: 1.5px solid var(--validation-message-border-colour);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .11), 0 0 4px rgba(18, 25, 97, .0405344);
    margin-block-end: 0px;
    margin-block-start: 0px;
    padding-block: 16px;
    padding-inline-end: 16px;
    /* position: relative; */
    font-family: inherit;
    font-size: 16px !important;
    font-weight: 500;
    line-height: 17.6px;
    padding-left: 12px;
    padding-bottom: 16px !important;
}
.gform_wrapper.gravity-theme .gform_validation_errors {
    border-radius: 0px !important;
    margin-bottom: 32px;
}
/* Start of Matching the error and field required styling */
/* Add the icon using the custom icon font code */
.gform_wrapper.gravity-theme .gfield_validation_message::before,
.gform_wrapper.gravity-theme .validation_message::before {
    content: '\e91a'; /* Custom icon code */
    font-family: 'gform-icons-theme' !important; /* Ensure the correct font is used */
    font-size: 28px; /* Adjust icon size */
    color: var(--validation-message-font-colour); /* Icon color */
    margin-right: 8px; /* Space between icon and text */
    display: inline-block; /* Ensure proper layout */
    vertical-align: middle; /* Align icon with text */
}
/* This field is required styling */
.gform_wrapper.gravity-theme .gfield_validation_message, .gform_wrapper.gravity-theme .validation_message {
    background: var(--validation-message-background-colour);
    border-radius: 0px;
    border: 1.5px solid var(--validation-message-border-colour);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .11), 0 0 4px rgba(18, 25, 97, .0405344);
    margin-block-end: 0px;
    margin-block-start: 0px;
    padding-block: 16px;
    padding-inline-end: 16px;
    /* position: relative; */
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 17.6px;
    padding-left: 12px;
    padding-bottom: 16px !important;
    padding-top: 16px !important;
    margin-top: 16px !important;
}
.gform_wrapper.gravity-theme .gform_validation_errors {
    border-radius: 0px !important;
    margin-bottom: 32px;
}
.gform_wrapper.gravity-theme .gform_validation_errors>h2 {
    color: var(--validation-message-font-colour);
    font-size: 16px;
    font-weight: 500 !important;
    line-height: 17.6px;
    margin-block-end: 12px;
    margin-block-start: 0;
    margin-inline: 0;
    font-family: inherit;
}
/* Adding the 16px padding-bottom on the last validation message before the page footer */
.gform_wrapper .gform_page .gfield:last-of-type .gfield_validation_message {
  margin-top: 16px !important;
}
/* -----------End of Error Messaging---------- */

/* ----------Start of Survery Form Styling---------- */
.gform_legacy_markup_wrapper table.gsurvey-likert th.gsurvey-likert-choice-label, .gravity-theme table.gsurvey-likert th.gsurvey-likert-choice-label {
    background-color: var(--survey-background-colour);
    border-right: 1px dotted var(--dotted-border-colour);
    border-top: 1px dotted var(--dotted-border-colour);
    line-height: 1.2;
    padding: 16px !important;
	font-size: 15px;
}
.gform_legacy_markup_wrapper table.gsurvey-likert tr:nth-child(odd) .gsurvey-likert-row-label, .gravity-theme table.gsurvey-likert tr:nth-child(odd) .gsurvey-likert-row-label {
        background-color: var(--survey-background-colour);
    }
.gform_legacy_markup_wrapper table.gsurvey-likert .gsurvey-likert-row-label, .gravity-theme table.gsurvey-likert .gsurvey-likert-row-label {
        background-color: var(--survey-background-colour);
        font-weight: 700;
        padding: 8px;
	font-size:15px;
    }
.gform_legacy_markup_wrapper table.gsurvey-likert .gsurvey-likert-choice, .gform_legacy_markup_wrapper table.gsurvey-likert .gsurvey-likert-row-label, .gravity-theme table.gsurvey-likert .gsurvey-likert-choice, .gravity-theme table.gsurvey-likert .gsurvey-likert-row-label {
    border-top: 1px dotted var(--dotted-border-colour);
    background-color: var(--survey-background-colour);
}
@media screen and (max-width:761px) {
    .gform_legacy_markup_wrapper table.gsurvey-likert .gsurvey-likert-choice, .gform_legacy_markup_wrapper table.gsurvey-likert .gsurvey-likert-row-label, .gravity-theme table.gsurvey-likert .gsurvey-likert-choice, .gravity-theme table.gsurvey-likert .gsurvey-likert-row-label {
        border-right: 0px;
    }
}
.gform_legacy_markup_wrapper table.gsurvey-likert tr td, .gravity-theme table.gsurvey-likert tr td {
    border-right: 1px dotted var(--dotted-border-colour);
    border-top: 1px solid var(--dotted-border-colour);
}
.gravity-theme table.gsurvey-likert {
    border: 1px dotted var(--dotted-border-colour);
    border-right: none;
    border-spacing: 0;
    border-top: none;
    table-layout: fixed;
    width: 100%;
}
.gravity-theme table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-selected {
    background-color: var(--survey-selected-background-colour);
}

.gform_legacy_markup_wrapper table.gsurvey-likert td.gsurvey-likert-choice:hover, 
.gravity-theme table.gsurvey-likert td.gsurvey-likert-choice:hover {
    background-color: var(--survey-hover-background-colour) !important;
}

.gravity-theme table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-selected {
    background-color: var(--survey-selected-background-colour) !important;
    background-image: url(/wp-content/plugins/gravityformssurvey/images/active1-purple.svg);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: 14px 14px !important;
}
.gform_legacy_markup_wrapper table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-selected,.gravity-theme table.gsurvey-likert td.gsurvey-likert-choice.gsurvey-likert-selected {
    background-size: 14px 14px !important;
}
.gravity-theme table.gsurvey-likert {
    border: hidden;
}
.gravity-theme table.gsurvey-likert td.gsurvey-likert-choice {
    padding-top: 8px;
    padding-bottom: 8px;
    min-height: auto;
    height: auto;
}
/* ----------Start of Changing Colours of Checkbox and Radio from Blue to Purple---------- */
.gform_wrapper input[type="radio"],
.gform_wrapper input[type="checkbox"] {
  accent-color: var(--checkbox-radio-selected-colour);
  border-radius: 10px !important;
}
/* ----------End of Colours of Checkbox and Radio from Blue to Purple---------- */
/* ----------End of Survery Form Styling---------- */
/* -- Start of Checkbox Select All Button Styling -- */
.gform_wrapper.gravity-theme .gfield_checkbox button {
    padding-top: 16px;
    border: none;
    background-color: var(--checkbox-button-background-colour);
    font-weight: 700;
    color: var(--checkbox-button-font-colour);
    padding: 10px 20px;
    cursor: pointer;
    letter-spacing: 1px;
    font-family: "Lato", sans-serif;
    font-size: 14px;
}
.gform_wrapper.gravity-theme .gfield_checkbox button:hover {
    opacity:80%;
}
/* -- End of Checkbox Select All Button Styling -- */
/* ----------Start of Nested Form Styling---------- */
.gpnf-nested-entries {
    border: none !important;
}
.gpnf-nested-entries th {
    background-color: rgb(255, 255, 255);
    border-right: 1px;
}
.gpnf-nested-entries td, .gpnf-nested-entries th {
    border-bottom: none;
    font-size: 15px;
}
/* START of Message to display in Nested Users Form - Replaces original message with new message -- ADD CLASS "users-nested" */
.gform_wrapper .users-nested .gpnf-no-entries {
    visibility: hidden; /* Hide the original message */
    position: relative;
}
.gform_wrapper .users-nested .gpnf-no-entries::after {
    content: "Please add users to be setup on the site here.";
    visibility: visible;
    position: absolute;
    left: 0;
    font-size: 15px;
}
/* END of Message to display in Nested Users Form - Replaces original message with new message -- ADD CLASS "users-nested" */
/* Start of Add Entry/User Button */
.gpnf-add-entry {
    margin-top: 0px;
    border: none;
    background-color: var(--add-entry-button-background-colour);
    font-weight: 700;
    color: var(--add-entry-button-font-colour);
    padding: 10px 20px;
    border: 2px !important;
    cursor: pointer;
    letter-spacing: 1px;
    font-family: "Lato", sans-serif;
    font-size: 14px;
    box-shadow: inset 0 0 0 2px;
    margin-bottom: 0 !important;
}
button.gpnf-add-entry {}
.gpnf-add-entry:hover {
    background-color: var(--add-entry-button-hover-background-colour);
    color: var(--add-entry-button-hover-font-colour);
    box-shadow: inset 0 0 0 2px var(--add-entry-button-hover-border-colour);
    opacity: 80%;
}
.entry-content table:not(.variations) {
    margin: 0 0 0px;
}
/* End of Add Entry/User Button */
/* Loading Spinner Margin */
.gpnf-add-entry+.gfspinner {
    margin-left: 15px;
    vertical-align: middle;
}
button.tingle-btn.tingle-btn--primary.gpnf-btn-submit {
    background-color: var(--add-entry-submit-button-background-colour) !important;
}
button.tingle-btn.tingle-btn--primary.gpnf-btn-submit:hover {
    opacity:80%;
}
.gpnf-modal .tingle-btn {
    border-radius: 0px;
    padding: 18px 30px !important;
    letter-spacing: 1px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1em !important;
    cursor: pointer;
    background-color: var(--add-entry-cancel-button-background-colour) !important;
}
.gpnf-modal .tingle-btn:hover {
    opacity:80%;
}
.gpnf-modal .gpnf-modal-header {
    height: 4.5rem;
    display: block;
    margin: -3rem -3rem 3rem;
    padding: 0 3rem;
    line-height: 4.5rem;
    color: var(--add-entry-modal-header-font-colour);
    border-radius: 3px 3px 0 0;
    font-size: 1.2rem;
    background-color: var(--add-entry-modal-header-background-colour) !important;
    font-weight:400;
    font-size: 22px;
}
.gpnf-modal-29-71 .tingle-btn--primary {
    background-color: var(--add-entry-submit-button-background-colour) !important;
    cursor: pointer;
}
.gpnf-modal-29-71 .tingle-btn--primary:hover {
    opacity: 80%;
}
.tingle-modal-box__footer {
    background-color: var(--add-entry-modal-background-colour);
    border-top: 1px dotted var(--dotted-border-colour) !important;
	margin-top: -30px;
}
@media screen and (min-width: 712px) {
    .gpnf-modal .tingle-btn {
        margin-top: 20px;
    }
}
@media screen and (max-width: 640px) {
    .tingle-modal-box__footer {
    	margin-top: 0px;
    }
}
/* Remove page border (dotted line) from add entry modal */
.tingle-modal .gform_body {
    margin: 0px 0 0 !important;
    border-top: 0px dotted var(--dotted-border-colour) !important;
    padding: 0px 0 0 !important;
}
/* Start of Permission Level Box */
.gform_wrapper.gravity-theme .gfield select {
    max-width: 100%;
    margin-top: 0;
}
.role-message {
    background: var(--add-entry-role-message-background-colour);
    padding: 10px;
    border-left: 4px solid var(--add-entry-role-message-left-border-colour);
    margin-top: 10px;
    font-size: 15px;
    color: var(--add-entry-role-message-font-colour);
}
label.gfield_consent_label {
    font-size: 16px;
    font-weight: 500;
}
/* Start ofRemoving box around consent description */
.gfield_consent_description {
    border: none !important;
    font-size: 15px !important;
    padding: 0px !important;
    padding-bottom: 8px !important;
}
/* End of Removing box around consent description */
/* ----------End of Permission Level Box---------- */
/* ----------Start of Nested Form Actions Left Aligned on Mobile---------- */
@media only screen and (max-width: 761px) {
	.gform_legacy_markup_wrapper table.gsurvey-likert .gsurvey-likert-row-label, .gravity-theme table.gsurvey-likert .gsurvey-likert-row-label {
	    padding: 0px;
	}	
	
	/* Apply padding to all row labels except the first */
    .gravity-theme table.gsurvey-likert tr:not(:first-child) .gsurvey-likert-row-label {
        padding-top: 16px;
    }
	
  .gpnf-row-actions ul {
    text-align: left !important;
    margin-left: -30px !important;
  }
}
form:not(.gpnf-disable-responsive-table) .gpnf-nested-entries:not(.gpnf-nested-entries-simple) td:last-child {
        background-color: rgb(232 232 232 / 0%);
    }
/* ----------End of Form Actions Left Aligned on Mobile---------- */
/* Removing extra space under action */
.gpnf-row-actions ul {
    padding-bottom: 0px;
}
/* End of Mobile make actions left algined */
/* Add user button spacing for Mobile*/
.users-nested .gpnf-no-entries {
    padding-bottom: 18px;
}
/* End user button spacing for Mobile*/

/* ----------End of Nested Form Styling---------- */

/* ----------Start of Green Box Styling---------- */
.green_box input[type="radio"]:checked {
        accent-color: #64a14f;
}
.gform_wrapper.gravity-theme .gfield.green_box {
    grid-column: 1 / -1;
    min-width: 0;
    background-color: var(--green-box-background-colour);
    padding: 0 20px 0 20px;
    border-top: 1px dotted var(--green-box-border-colour);
    padding-bottom: 8px;
}
.gfield.green_box .gfield_label.gform-field-label {
    color: var(--green-box-label-font-colour) !important;
}
.gform_wrapper.gravity-theme .green_box .gfield_description {
    padding-top: 13px;
}
/* ----------End of Green Box Styling---------- */

/* ----------Start of Title/Description General Spacing Styles---------- */

.gform_wrapper.gravity-theme .field_description_above .gfield_description {
    padding-bottom: 0;
}
.gform_wrapper.gravity-theme .field_sublabel_above .description,.gform_wrapper.gravity-theme .field_sublabel_above .gfield_description,.gform_wrapper.gravity-theme .field_sublabel_above .gsection_description {
    margin-top: 0px;
}

.gform_wrapper.gravity-theme .gfield_description {
    padding-top: 0px;
}
/* Remove padding from headings before adding in 16px gap */
.gform_wrapper h1,
.gform_wrapper h2,
.gform_wrapper h3,
.gform_wrapper h4,
.gform_wrapper h5,
.gform_wrapper h6 {
    padding-bottom: 5px;
}

/* Remove bottom padding from ul */ 
.entry-content p:last-of-type+ul, .entry-content p:last-of-type+ol {
    padding-bottom: 0 !important;
}

/* Remove Padding spacing if Heading */
.gform_wrapper .gfield:has(h1),
.gform_wrapper .gfield:has(h2),
.gform_wrapper .gfield:has(h3),
.gform_wrapper .gfield:has(h4),
.gform_wrapper .gfield:has(h5),
.gform_wrapper .gfield:has(h6) {
  margin-bottom: 30px !important;
}
.gform_wrapper .gfield--width-full.gfield:has(
  > h2:only-child,
  > h3:only-child,
  > h4:only-child,
  > h5:only-child,
  > h6:only-child
) {
  margin-bottom: 0 !important;
}
/* add 30px margin bottom below every field */
.gform_wrapper .gfield,
.gform_wrapper .gfield.gfield--width-full,
.gform_wrapper .gpnf-add-entry,
.gform_wrapper.gravity-theme fieldset {
    margin-bottom: 30px;
}

.gform_wrapper.gravity-theme .gfield.green_box {
    margin-bottom: 16px !important;
}

/*--Add spacing to survey querstions---*/
table.gsurvey-likert {
    margin-top: 16px !important;
}

/* Remove the 30px margin bottom from the last field */
.gform_wrapper .gfield:last-child {
  margin-bottom: 0 !important;
}
/* SAFETY NET - If only two fields on the page, the first field will add margin-bottom:30px */
.gform_wrapper .gfield:first-child:nth-last-child(2) {
  margin-bottom: 30px !important;
}
.gform_wrapper.gravity-theme .gsection {
    border-bottom: 1px dotted var(--dotted-border-colour) !important;
}

/* ---------- Start of Conditional Fields classed as last field, margin was still being added */
/* There is a JS function needed to be added to js > custom-child.js */ 
.gform_wrapper .gfield.last-visible {
  margin-bottom: 0 !important;
}
/* ---------- End of Conditional Fields classed as last field, margin was still being added */

@media screen and (max-width: 761px) {
    td.gsurvey-likert-choice {
        font-size:15px !important;
    }
}

/* Mobile Survey Changes to borders */ 
@media screen and (max-width: 761px) {
    .gravity-theme table.gsurvey-likert td.gsurvey-likert-choice:before {
        content: '|';
        color: #ccc;
        padding: 0px 8px 0px 26px
    }
}

@media screen and (max-width: 761px) {
  .gravity-theme table.gsurvey-likert,
  .gravity-theme table.gsurvey-likert * {
    border: none !important;
  }
    
  .gravity-theme table.gsurvey-likert tr td.gsurvey-likert-choice + td.gsurvey-likert-choice {
    border-top: 1px dotted var(--dotted-border-colour) !important;
  }
}

@media (min-device-width: 768px) and (max-device-width: 1024px), only screen and (max-width: 761px) {
    .gform_legacy_markup_wrapper .gform_fields table.gsurvey-likert td:after, .gravity-theme .gform_fields table.gsurvey-likert td:after {
        content: attr(data-label);
        display: inline-block;
        font-weight: 400;
        line-height: 2;
        margin-left: 0px;
    }
}

@media screen and (max-width: 761px) {
        .gravity-theme table.gsurvey-likert td.gsurvey-likert-choice {
        background-size: 14px 14px;
        }
}

