.wpcf7-form .custom-fields {
    display: flex;
    flex-wrap: wrap;
}
.wpcf7-form .custom-fields > span {
    width: 50%;
}
.wpcf7-form .custom-fields > span:nth-of-type(odd) {
    padding-right: 11.5px;
}
html[lang="ug"] .wpcf7-form .custom-fields > span:nth-of-type(odd) {
    padding-right: 0;
}
.wpcf7-form .custom-fields > span:nth-of-type(even) {
    padding-left: 11.5px;
}
.wpcf7-form .custom-fields span:not(.wpcf7-not-valid-tip) {
    margin-bottom: 32px;
}
.wpcf7-form .custom-fields span .wpcf7-form-control {
    color: var(--color-brand-Auxiliary);
    margin-bottom: 0 !important;
    padding: 20px 16px;
    max-width: 100%;
    width: 100% !important;
    border-radius:2px;
    border: 1px solid #dbdbdb;
}
.wpcf7-form .custom-fields .wpcf7-textarea {
    height: 100px;
}
@media screen and (max-width: 834px) {
    .wpcf7-form .custom-fields .wpcf7-textarea {
        height: 64px;
    }
}
.wpcf7-form .wpcf7-form-control-wrap.message {
    width: 100%;
    padding-right: 0 !important;
}
.wpcf7-form .wpcf7-form-control-wrap {
    background-color: var(--color-icon-01);
}
.wpcf7-form .custom-fields span .wpcf7-phonetext,
.wpcf7-form .custom-fields span .wpcf7-countrytext {
    padding-left: 52px;
}
.wpcf7-form .contact-disclaimer {
    margin-top: 16px;
}
.wpcf7-form p {
    margin-bottom: 0;
    padding-top: 8px;
    font-size: 16px;
}
.wpcf7-form input, .wpcf7-form select {
    color: #a2a2a2;
    font-size: 16px !important;
}
.wpcf7 .contact-submit {
    position: relative;
}
.wpcf7-form .wpcf7-submit {
    min-height: 64px !important;
    width: 100%;
    cursor: pointer;
    margin-bottom: 32px;
    border-radius: 4px;
    font-weight: bold !important;
    font-size: 16px !important;
    background-color: var(--color-btn-primary-default);
    border: none;
    color: var(--color-bg-general-01);
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}
.wpcf7-form .wpcf7-submit:hover {
    background-color: var(--color-btn-primary-hover);
    border-color: var(--color-btn-primary-hover);
    transition: 0.3s;
}
.wpcf7-form .wpcf7-submit:focus {
    background-color: var(--color-btn-primary-active);
    border-color: var(--color-btn-secondary-active);
    transition: 0.3s;
}
.wpcf7 .ajax-loader {
    margin: 0;
    padding: 0;
    width: 0;
    height: 0;
}
.popup-message-style #page .wpcf7-response-output.run-animation {
    position: static;
    transform: none;
    animation: none !important;
    box-shadow: none;
    justify-content: center;
}
.popup-message-style #page .wpcf7-response-output.run-animation, .popup-message-style #page .wpcf7-response-output {
    background-color: transparent;
    color: var(--color-brand-standard) !important;
    margin: 32px 0 !important;
    padding: 0;
    width: 100%;
    max-width: 100%;
    text-align: center !important;
    font-weight: bold !important;
    font-size: 16px !important;
}
.wpcf7-form .wpcf7-response-output {
    margin: 0 0 32px !important;
}

.wpcf7-form-control.wpcf7-not-valid {
    border: 1px solid var(--color-brand-standard) !important;
}
.wpcf7-form .wpcf7-spinner {
    position: absolute;
    left: 0;
    top: 20px;
}

.wpcf7-not-valid-tip {
    position: absolute;
}

@media screen and (max-width: 834px) {
    .wpcf7-form .custom-fields > span {
        width: 100%;
    }
    .wpcf7-form .custom-fields > span:nth-of-type(odd) {
        padding-right: 0;
    }
    .wpcf7-form .custom-fields > span:nth-of-type(even) {
        padding-left: 0;
    }
    .wpcf7-form .custom-fields span:not(.wpcf7-not-valid-tip) {
        margin-bottom: 24px;
    }
    .wpcf7-form p {
        text-align: center;
        padding-top: 24px;
    }
    .wpcf7-form .contact-disclaimer {
        margin-top: 0;
    }
    .intl-tel-input .country-list, .country-select ul.country-list {
        position: fixed;
        top: 30px;
        bottom: 30px;
        left: 30px;
        right: 30px;
        max-height: 100vh;
        z-index: 9999;
    }
    .wpcf7-form .wpcf7-submit {
        margin-bottom: 24px;
    }
    .wpcf7-form .wpcf7-response-output {
        margin: 0 0 24px !important;
    }
}
@media screen and (min-width: 1025px) {
    .intl-tel-input ul.country-list, .country-select ul.country-list {
        width: 444px;
        transform: translate(-1px, 0);
    }
}

html[lang="ug"] .wpcf7-form .custom-fields {
    direction: rtl;
  }
  
  html[lang="ug"] .wpcf7-form .custom-fields > span:nth-of-type(even) {
      padding-right: 11.5px;
  }
  @media screen and (max-width: 834px) {
      html[lang="ug"] .wpcf7-form .custom-fields > span:nth-of-type(even) {
          padding-right: 0;
      }
  }
  
  html[lang="ug"] .wpcf7 input[type="url"], 
  html[lang="ug"] .wpcf7 input[type="email"], 
  html[lang="ug"] .wpcf7 input[type="tel"]{
      direction: rtl;
  }
  html[lang="ug"] span.wpcf7-form-control-wrap.hcap_cf7-h-captcha-invalid {
      direction: rtl;
      display: block;
  }
  html[lang="ug"] span.wpcf7-form-control-wrap.hcap_cf7-h-captcha-invalid .anchor {
      direction: rtl;
  }
  