.gform-theme--foundation .gfield .ginput_password.large, .gform-theme--foundation .gfield input.large, .gform-theme--foundation .gfield select.large {
    padding: 9px 0;
    border: none;
    border-bottom: 1.333px solid #ccc;
    margin-bottom: 24px;
    outline: none;
    box-shadow: none;
    border-radius: 0;
    color: #253746;
    font-family: Ubuntu;
    font-size: 18px;
    line-height: 24px;
}

select#input_6_22 {
    padding: 0px 0;
}

/* JTA Join Alliance Popup & Get Trained Popup & Add Study Popup */
.jta-popup-overlay, .gt-popup-overlay, .add-study-popup-overlay {
    display: none;
    font-family: Ubuntu;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* Hide the legend and labels completely using CSS for Form 4, 5 and Add Study Form */
.gform_wrapper #gform_4 .gfield_label,
.gform_wrapper #gform_5 .gfield_label,
.gform_wrapper #gform_6 .gfield_label, /* Add Study form */
.gform_wrapper #gform_4 .gform-field-label--type-sub,
.gform_wrapper #gform_5 .gform-field-label--type-sub,
.gform_wrapper #gform_6 .gform-field-label--type-sub {  /* Add Study form */
    display: none;
}

/* Hide the specific labels within the form fields for Form 4, 5, and Add Study */
.gform_wrapper #gform_4 .gform-field-label,
.gform_wrapper #gform_5 .gform-field-label,
.gform_wrapper #gform_6 .gform-field-label {  /* Add Study form */
    display: none;
}

.gform-theme--foundation .gfield textarea.large {
    min-block-size: auto !important;
}

.jta-popup-overlay.active, .gt-popup-overlay.active, .add-study-popup-overlay.active {
    display: flex;
}

.jta-popup-content, .gt-popup-content, .add-study-popup-content {
    display: flex;
    background-color: #fff;
    position: relative;
}

p.field-indicator-text {
    color: #000;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    margin: 8px 0 24px 0;
}

.jta-popup-flex-container, .gt-popup-flex-container, .add-study-popup-flex-container {
    display: flex;
}

.jta-popup-image, .gt-popup-image, .add-study-popup-image {
    display: flex;
    justify-content: center;
    align-items: normal;
	overflow: hidden;
}

.jta-popup-image img, .gt-popup-image img, .add-study-popup-image img {
    height: auto;
}

.jta-close-popup, .gt-close-popup, .add-study-close-popup {
    position: absolute;
    top: -50px;
    right: -50px;
    font-size: 24px;
    cursor: pointer;
    width: 36.75px;
    height: 36.75px;
    background: rgba(164, 171, 177, 0.5);
    border-radius: 50%;
    text-align: center;
    color: #fff;
}


.jta-close-popup, .gt-close-popup {
    top: 12px;
    right: 12px;
}



.jta-join-alliance-form, .get-trained-form, .add-study-form {
    max-width: 635px;
    max-height: unset;
    padding: 75px 61px 75px 94px;
    overflow-y: auto;
}

#gform_4 input[type="text"], #gform_4 input[type="email"], #gform_5 input[type="text"], #gform_5 input[type="email"],
#gform_6 input[type="text"], #gform_6 input[type="email"] {
    width: 100%;
    padding: 9px 0;
    border: none;
    border-bottom: 1.333px solid #ccc;
    margin-bottom: 24px;
    background: transparent;
    outline: none;
    box-shadow: none;
    border-radius: 0;
    color: #253746;
    font-family: Ubuntu;
    font-size: 18px;
    line-height: 24px;
    height: 52px;
}

#gform_wrapper_4 h2.gform_title, #gform_wrapper_5 h2.gform_title, #gform_wrapper_6 h2.gform_title {
    color: #000;
    font-size: 56px;
    font-weight: 700;
    line-height: 45px;
    margin-bottom: 20px;
}

#gform_wrapper_6 h2.gform_title {
    font-size: 36px;
    line-height: 37px;
}

#gform_4 .gfield--type-radio .gfield_label.gform-field-label, #gform_5 .gfield--type-radio .gfield_label.gform-field-label,
#gform_6 .gfield--type-radio .gfield_label.gform-field-label {
    color: #253746;
    font-family: Ubuntu;
    font-size: 16px;
    font-weight: 400;
    line-height: 18px;
}

#gform_4 .gfield_radio label, #gform_5 .gfield_radio label, #gform_6 .gfield_radio label {
    color: #000;
    font-family: Ubuntu;
    font-size: 16px;
    font-weight: 500;
    line-height: 18px;
}

.gform-theme--framework .gfield--type-choice .gfield_checkbox, .gform-theme--framework .gfield--type-choice .gfield_radio {
    flex-direction: row !important;
    margin: 13px 0 36px;
    gap: 31px !important;
}

#gform_4 span.gfield_required, #gform_5 span.gfield_required, #gform_6 span.gfield_required {
    display: none;
}

#field_4_1 .gfield_label.gform-field-label, #field_5_1 .gfield_label.gform-field-label, #field_6_1 .gfield_label.gform-field-label,
#field_4_5 .gfield_label.gform-field-label, #field_5_5 .gfield_label.gform-field-label, #field_6_5 .gfield_label.gform-field-label {
    position: relative;
    padding-left: 8px;
    color: #000;
    font-size: 20px;
    font-weight: 700;
    line-height: 37px;
    margin-bottom: 24px;
}

#field_4_16 label.gform-field-label, #field_5_16 label.gform-field-label, #field_6_16 label.gform-field-label {
    color: var(--primary-900, #253746);
    font-family: Ubuntu;
    font-size: 16px;
    font-weight: 400;
    line-height: 9.75px;
}

#field_4_18, #field_5_18, #field_6_18 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

#field_4_18 label, #field_5_18 label, #field_6_18 label {
    text-align: center;
    font-family: Ubuntu;
    font-size: 16px;
    font-weight: 700;
    line-height: 9.75px;
}

#field_4_1 .gfield_label::before, #field_5_1 .gfield_label::before, #field_6_1 .gfield_label::before,
#field_4_5 .gfield_label::before, #field_5_5 .gfield_label::before, #field_6_5 .gfield_label::before,
#field_4_19 .duration::before, #field_5_19 .duration::before, #field_6_19 .duration::before {
    content: "";
    width: 4px;
    height: 24px;
    background: #F45C30;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

#gform_4 .gform_fields, #gform_5 .gform_fields, #gform_6 .gform_fields {
    row-gap: 0;
}

#gform_4 input[type="text"], #gform_4 input[type="email"], #gform_4 textarea,
#gform_5 input[type="text"], #gform_5 input[type="email"], #gform_5 textarea,
#gform_6 input[type="text"], #gform_6 input[type="email"], #gform_6 textarea {
    width: 100%;
    padding: 9px 0;
    border: none;
    border-bottom: 1.333px solid #ccc;
    margin-bottom: 24px;
    background: transparent;
    outline: none;
    box-shadow: none;
    border-radius: 0;
    color: #253746;
    font-family: Ubuntu;
    font-size: 18px;
    line-height: 24px;
}

#gform_4 textarea#input_4_5, #gform_5 textarea#input_5_5, #gform_6 textarea#input_6_5 {
    height: 56px;
}

#gform_4 input::placeholder, #gform_5 input::placeholder, #gform_6 input::placeholder,
#gform_4 textarea::placeholder, #gform_5 textarea::placeholder, #gform_6 textarea::placeholder {
    color: #A4ABB1;
}

#gform_4 input:hover, #gform_5 input:hover, #gform_6 input:hover,
#gform_4 textarea:hover, #gform_5 textarea:hover, #gform_6 textarea:hover,
#gform_4 input:focus, #gform_5 input:focus, #gform_6 input:focus,
#gform_4 textarea:focus, #gform_5 textarea:focus, #gform_6 textarea:focus {
    border-color: #000;
}

input#gform_submit_button_4, input#gform_submit_button_5, input#gform_submit_button_6 {
    display: flex;
    width: 186px;
    height: 52px;
    padding: 3.763px 18.814px;
    justify-content: center;
    align-items: center;
    gap: 6.271px;
    background: #000;
    color: #FFF;
    font-family: Ubuntu;
    font-size: 18px;
    font-weight: 700;
    line-height: 23.413px;
    border: none;
    cursor: pointer;
}

input#gform_submit_button_4:hover, input#gform_submit_button_5:hover, input#gform_submit_button_6:hover {
    background-color: #5F5F5F;
}

#gform_4 input[type="radio"], #gform_5 input[type="radio"], #gform_6 input[type="radio"] {
    display: none;
}

#gform_4 input[type="radio"] + label, #gform_5 input[type="radio"] + label, #gform_6 input[type="radio"] + label {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-family: Ubuntu;
    font-size: 18px;
    color: #000;
    margin-left: 0;
}

#gform_4 input[type="radio"] + label::before, #gform_5 input[type="radio"] + label::before, #gform_6 input[type="radio"] + label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: transparent;
    transition: all 0.3s ease;
}

#gform_4 input[type="radio"]:checked + label::after, #gform_5 input[type="radio"]:checked + label::after, #gform_6 input[type="radio"]:checked + label::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #F45C30;
}

#gform_4 input[type="radio"]:checked + label::before, #gform_5 input[type="radio"]:checked + label::before, #gform_6 input[type="radio"]:checked + label::before {
    border-color: #F45C30;
}

#gform_4 input[type="radio"]:focus + label::before, #gform_5 input[type="radio"]:focus + label::before, #gform_6 input[type="radio"]:focus + label::before {
    border-color: #253746;
}

#gform_4 input[type="radio"]:not(:checked) + label, #gform_5 input[type="radio"]:not(:checked) + label, #gform_6 input[type="radio"]:not(:checked) + label {
    color: #666;
}

/* Responsive tweaks */
@media (max-width:1290px) {
    .jta-popup-overlay.active, .gt-popup-overlay.active, .add-study-popup-overlay.active {
        padding: 0 40px;
        overflow: auto;
    }

    .jta-popup-content, .gt-popup-content, .add-study-popup-content {
        margin-top: 134px;
    }

    .jta-popup-overlay, .gt-popup-overlay, .add-study-popup-overlay {
        align-items: baseline;
    }

    .jta-popup-flex-container, .gt-popup-flex-container, .add-study-popup-flex-container {
        flex-direction: column-reverse;
        max-width: 626px;
    }

    .jta-popup-image img, .gt-popup-image img, .add-study-popup-image img {
        display: none;
        width: 100%;
        content: url(/wp-content/uploads/2025/03/Frame-1000002626-1.png);
    }

    .jta-close-popup, .gt-close-popup, .add-study-close-popup {
        top: -60px;
        right: 0;
    }

    .jta-join-alliance-form, .get-trained-form, .add-study-form {
        max-height: unset;
        padding: 25px !important;
    }

    input#gform_submit_button_4, input#gform_submit_button_5, input#gform_submit_button_6 {
        width: 100%;
    }
}

@media (max-width:768px) {
    #gform_wrapper_4 h2.gform_title, #gform_wrapper_5 h2.gform_title, #gform_wrapper_6 h2.gform_title {
        font-size: 28px;
        line-height: 37px;
    }

    #gform_4 input[type="radio"] + label, #gform_5 input[type="radio"] + label, #gform_6 input[type="radio"] + label {
        padding-left: 25px;
        font-size: 16px;
        line-height: 18px;
    }

    #gform_4 #field_4_18, #gform_5 #field_5_18, #gform_6 #field_6_18 {
        justify-content: start;
        margin-bottom: 20px;
    }

    .jta-popup-overlay.active, .gt-popup-overlay.active, .add-study-popup-overlay.active {
        padding: 0px 27px;
    }

    #gform_4 textarea#input_4_5::placeholder, #gform_5 textarea#input_5_5::placeholder, #gform_6 textarea#input_6_5::placeholder {
        max-width: 218px;
    }
}



/* thank you popup css */

/* Overlay background */
.thank-you-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

/* Popup container */
.thank-you-container {
    background-color: #d32f2f;
    max-width: 661px;
    width: 90%;
    padding: 12px 12px 60px;
    text-align: center;
    color: white;
    position: relative;
	margin-top: 50px;
    animation: fadeInScale 0.3s ease-in-out;
}

/* Close button (X) */
.close-btn {
  position: absolute;
    top: -55px;
    right: -50px;
  background: transparent;
  border: none;
  color: white;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
}

/* Image area */
.thank-you-image {
    position: relative;
    background-color: white;
    margin-bottom: 70px;
}

.thank-you-image img {
  width: 100%;
  height: auto;
  display: block;
}

img.thank-you-image-main {
    position: absolute;
    bottom: 0;
    z-index: 1;
}

img.thank-you-image-bg {
    position: absolute;
    bottom: 0;
}

/* Heading and text */
.thank-you-container h2 {
    color: #FFF;
    text-align: center;
    font-family: Ubuntu;
    font-size: 56px;
    font-style: normal;
    font-weight: 700;
    line-height: 56px;
    margin-bottom: 20px;
}

.thank-you-container p {
    max-width: 462px;
    color: #FFF;
    text-align: center;
    font-family: Ubuntu;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    margin: auto;
    margin-bottom: 48px;
}

/* Back to Home button */
.home-btn {
	border: none;
    display: flex;
    height: 52px;
    padding: 5.017px 25.085px;
    justify-content: center;
    align-items: center;
    background: #000;
    color: #FFF;
    font-family: Ubuntu;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 31.217px;
    margin: auto;
    transition: background 0.2s ease-in-out;
}

.home-btn:hover {
  background-color: #333;
}

/* Trigger Button (optional style) */
.trigger-btn {
  background-color: #d32f2f;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  margin: 20px;
  transition: background 0.2s ease-in-out;
}

.trigger-btn:hover {
  background-color: #b71c1c;
}

/* Animation for popup */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


@media (max-width:768px) {


.thank-you-container {
    padding: 7px 7px 30px;
}
.close-btn {
	top: -60px;
    right: 0px;
    width: 36.75px;
    height: 36.75px;
	padding: 0;
	z-index: 1;
}

img.ty-close-btn {
    width: 100%;
    max-width: 36.75px;
    height: 36.75px;
}


.thank-you-image {
    margin-bottom: 30px;
	z-index: 0;
}

.thank-you-container h2 {
    font-size: 28px;
    line-height: 29.398px;
    margin-bottom: 11px;
}

.thank-you-container p {
    max-width: 286px;
    font-size: 16px;
    line-height: 21px;
    margin-bottom: 26px;
}

.home-btn {
    height: 43.856px;
    padding: 4.231px 21.156px;
    font-size: 15.181px;
    font-style: normal;
    font-weight: 700;
    line-height: 26.328px;
}


}

@media (min-width: 1290px) and (max-width: 1760px) {

    .jta-popup-content, .gt-popup-content, .add-study-popup-content {
        max-width: 1240px;
    }

.jta-popup-image, .gt-popup-image, .add-study-popup-image {
    justify-content: start;
}

.jta-join-alliance-form, .get-trained-form, .add-study-form {
    max-width: 580px;
    padding: 44px 50px 40px 70px;
}

.add-study-form {
        max-width: 614px;
        padding: 42px 40px 42px 50px;
    }


}


/* extra below */





