/**************************/
/* forms */
/**************************/
#form-pattern.wocommerce-form :is(
    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="tel"],
    input[type="password"],
    input[type="search"],
    input[type="url"],
    textarea,
    select,
    .select2
  ) {
    margin-bottom: 3rem;
}
.af-form.acf-form :is(
    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="tel"],
    input[type="password"],
    input[type="search"],
    input[type="url"],
    textarea,
    select,
    .select2
  ),
#form-pattern :is(
    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="tel"],
    input[type="password"],
    input[type="search"],
    input[type="url"],
    textarea,
    select,
    .select2
  ) {
    font-family: inherit;
    padding: 0.5rem 0.75rem !important;
    height: 3.5rem;
    background-color: #f5f5f5;
    border: 1px solid #f5f5f5;
    transition: 0.3s;
    width: 100%;
    text-overflow: ellipsis;
    position: relative;
    display: block;
    border-radius: 12px;
    margin-bottom: 1rem;
}
#form-pattern
:is(
    input[type="email"],
    input[type="number"],
    input[type="tel"],
    input[type="password"],
    input[type="url"]
  ) {
    direction: ltr;
}
.af-form.acf-form.is-invalid
:is(
    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="tel"],
    input[type="password"],
    input[type="search"],
    input[type="url"],
    textarea,
    select,
    .select2
  ):invalid:required,
#form-pattern
form.is-invalid
:is(
    input[type="text"],
    input[type="email"], 
    input[type="number"],
    input[type="tel"],
    input[type="password"],
    input[type="search"],
    input[type="url"],
    textarea,
    select,
    .select2
  ):invalid:required {
    border-color: #ff0066;
}
#form-pattern .select2-selection--single .select2-selection__arrow:before {
    content: "\e92b";
    position: absolute;
    display: block;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    font-family: "icomoon";
    pointer-events: none;
    line-height: 1;
    font-size: 1.3rem;
}
#form-pattern label span.required {
    color: var(--color1);
}
#form-pattern .acf-field-select .acf-input:before {
    content: "\e916";
    position: absolute;
    display: block;
    right: 1rem;
    top: calc(50% - 0.5rem);
    transform: translateY(-50%);
    z-index: 1;
    font-family: "icomoon";
    pointer-events: none;
    line-height: 1;
    font-size: 1rem;
}
.select2-container--default
.select2-selection--single
.select2-selection__arrow
b {
    display: none;
}
#form-pattern .af-submit,
.af-field-type-repeater,
.af-field-type-textarea {
    grid-column: 1/-1;
}
#form-pattern .acf-field-recaptcha {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.g-recaptcha {
    margin-bottom: 0.7rem;
}
#form-pattern.ab-label .acf-field-recaptcha .acf-label label {
    position: static !important;
    transform: none !important;
    margin-bottom: 1rem !important;
    display: block !important;
}
#form-pattern
:is(
    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="tel"],
    input[type="password"],
    input[type="search"],
    input[type="url"],
    textarea,
    select,
    .select2
  ):focus-visible {
    border-color: var(--color1);
}
#form-pattern :is(textarea, input)::-webkit-input-placeholder,
#form-pattern :is(textarea, input)::-webkit-input-placeholder {
    opacity: 0.5;
    font-size: 14px;
    text-align: left;
}
#form-pattern :is(textarea, input)::-moz-placeholder,
#form-pattern :is(textarea, input)::-moz-placeholder {
    opacity: 0.5;
    font-size: 14px;
    text-align: left;
}
#form-pattern :is(textarea, input):-ms-input-placeholder,
#form-pattern :is(textarea, input):-ms-input-placeholder {
    opacity: 0.5;
    font-size: 14px;
    text-align: left;
}
#form-pattern :is(textarea, input)::placeholder,
#form-pattern :is(textarea, input)::placeholder {
    opacity: 0.5;
    font-size: 14px;
}
#form-pattern label:not(.error, [for="acf-field_form_success_message"]) {
    line-height: 1;
    display: flex;
    margin: 0;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 13px;
    color: #333333;
}
#form-pattern label.error {
    line-height: 1;
    font-size: 12px;
    color: #d53343;
    margin-bottom: 1rem;
    display: block;
    background: #fff5f5;
    padding: 10px;
}
#form-pattern.ab-label label:not([for="rating"], .acf-basic-uploader) {
    right: 4rem;
    position: absolute;
    bottom: 100%;
    transform: translateY(50%);
    margin: 0 !important;
    z-index: 1;
    background-color: #fff;
    padding-inline: 1rem;
}
#form-pattern.ab-label
:is(
    .af-field-type-repeater,
    .af-field-type-checkbox,
    .af-field-type-true-false,
    .af-field-type-radio
  )
label {
    position: static;
    transform: none;
    margin-bottom: 1.5rem !important;
    padding-inline: 0rem;
    background: transparent;
}
#form-pattern .acf-field .acf-label {
    margin: 0;
}
#form-pattern .acf-form .acf-field .acf-input {
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 1rem;
}
#form-pattern .acf-form .acf-repeater .acf-input {
    margin-bottom: 0 !important;
}
#form-pattern input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 23px;
    width: 23px;
    outline: none;
    cursor: pointer;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border-radius: 4px;
    border: 1px solid var(--color1);
}
#form-pattern ul.acf-radio-list:focus-within,
#form-pattern ul.acf-checkbox-list:focus-within {
    border: 1px solid transparent;
}
#form-pattern input[type="checkbox"]::before {
    content: "";
    width: 14px;
    height: 14px;
    transform: scale(0);
    background-color: var(--color1);
    transition: 120ms transform ease-in-out;
    transform-origin: bottom left;
    -webkit-clip-path: polygon(
            14% 44%,
            0 65%,
            50% 100%,
            100% 16%,
            80% 0%,
            43% 62%
    );
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
#form-pattern input[type="checkbox"]:checked::before {
    transform: scale(1);
}
#form-pattern input[type="radio"]:checked {
    box-sizing: border-box !important;
    background: var(--color2) !important;
    box-shadow: inset 0 0px 0px 3px #fff !important;
}
#form-pattern input[type="radio"] {
    height: 23px;
    width: 23px;
    border-radius: 50%;
    -moz-appearance: none;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    border: 2px solid #ccc;
    vertical-align: middle;
}
/*#form-pattern .af-form.acf-form {*/
/*    width: min(100%, 95rem);*/
/*    margin: 0 auto;*/
/*    border: 1px solid #d9d9d9;*/
/*    padding: 4rem min(4rem, 6vw);*/
/*    box-shadow: 0 10px 20px #00000024;*/
/*    container-type: inline-size;*/
/*    border-radius: 12px;*/
/*}*/
/* #form-pattern form.submitted :is(
    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="tel"],
    input[type="password"],
    input[type="search"],
    input[type="url"],
    textarea,
    select,
    .select2
  ):invalid:required ~ label{
 color: #ff0066;
} */
#form-pattern .acf-temp-remove,
#form-pattern .acf-notice.-error {
    order: 1;
    border: none;
    padding: 0;
    margin: 0;
    background: unset;
}
/* #form-pattern .acf-notice.-error {
  display: flex;
  align-items: center;
  gap: 5px;
} */
#form-pattern .acf-notice p {
    font-size: 12px;
    margin: 0;
    text-shadow: none;
    color: inherit;
}
#form-pattern .acf-notice.-dismiss {
    display: none;
}
.acf-spinner {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 9px;
}
.acf-form .acf-fields > .acf-field {
    border: none!important;
    padding: 0;
}
#form-pattern .acf-field select {
    padding: 0rem 5rem;
    line-height: inherit;
    text-align: left;
    -moz-appearance: none;
    appearance: none;
    -webkit-appearance: none;
}
#form-pattern .af-field-type-textarea textarea {
    padding-top: 2rem;
}
/*.af-form.acf-form {*/
/*    border: 1px solid #F9F9F9;*/
/*    border-radius: 6px;*/
/*    padding: 24px 40px;*/
/*}*/
@container (min-width: 32em) {
    .af-form.acf-form > .acf-fields {
        grid-template-columns: 1fr 1fr;
    }
}
@container (max-width: 32em) {
    .af-form.acf-form > .acf-fields {
        grid-template-columns: 1fr;
    }
}
#form-pattern input:-webkit-autofill,
#form-pattern input:-webkit-autofill:active,
#form-pattern input:-webkit-autofill:hover,
#form-pattern input:-webkit-autofill:focus {
    -webkit-animation-name: autofill;
    -webkit-animation-delay: 1s;
    -webkit-animation-fill-mode: both;
    -webkit-box-shadow: 0 0 0 100px #f9f9f9 inset !important;
    -webkit-box-shadow: none;
    -webkit-text-fill-color: #242424;
!important;
}
.acf-form-submit {
    text-align: center;
    position: relative;
}
.form-plugin label {
    line-height: 2;
}
.af-field-type-file .button {
    font-size: 12px;
    min-width: 5rem;
    height: 2rem;
    margin-right: 1rem;
}
.acf-file-uploader input {
    border: none !important;
    box-shadow: none !important;
    padding: 1rem 0 0 !important;
    min-height: 3rem !important;
    width: 100%;
    line-height: 2;
}
html[dir="rtl"] .acf-field[data-width] + .acf-field[data-width] {
    border: none !important;
}
.af-submit {
    padding: 0 !important;
}
.af-submit.acf-form-submit {
    margin-top: 3rem;
}
.af-field-instructions {
    color: #606060 !important;
    font-size: 13px !important;
}

.acf-file-uploader {
    border: 1px dashed #d9d9d9;
    border-radius: 12px;
    border-radius: 24px;
    padding: 0.8rem 2rem;
}
.acf-table > tbody > tr > th,
.acf-table > tbody > tr > td,
.acf-table > thead > tr > th,
.acf-table > thead > tr > td {
    background: #fff;
}
.acf-repeater .acf-row-handle.order {
    background: #f5f5f5;
}
.af-field-type-file label {
    line-height: 1;
    position: static;
    margin-bottom: 1rem !important;
}
.acf-repeater .acf-row-handle.remove {
    background: #001330;
}
.editor-content {
    text-align: justify;
}
.comment-form-rating label {
    margin-bottom: 0 !important;
}
.select2-container--default
.select2-selection--single
.select2-selection__arrow {
    height: 5rem;
}
.acf-fields > .acf-field:first-child {
    width: 49.5%;
}
.websima-contact-form #message {
    background: var(--color1);
    color: white;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 0 24px;
    margin-bottom: 2rem;
}
/**************************/
/* BELOW 768px */
/**************************/
@media (max-width: 47.99em) {
    .af-form.acf-form > .acf-fields {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 36em) {
    .af-form.acf-form {
        padding: 24px;
    }
    .acf-field {
        width: 100% !important;
    }
}
/**************************/
/*  576px */
/**************************/
@media (min-width: 36em) {
    .select2-container--default
    .select2-selection--single
    .select2-selection__arrow,
    #form-pattern
    :is(
      input[type="text"],
      input[type="email"],
      input[type="number"],
      input[type="tel"],
      input[type="password"],
      input[type="search"],
      input[type="url"],
      textarea,
      select,
      .select2
    ) {
        height: 3.5rem;
    }
    #form-pattern.wocommerce-form
    :is(
      input[type="text"],
      input[type="email"],
      input[type="number"],
      input[type="tel"],
      input[type="password"],
      input[type="search"],
      input[type="url"],
      textarea,
      select,
      .select2
    ) {
        margin-bottom: 4rem;
    }
}

/** ACF Form **/
#form-pattern .acf-form .acf-field .acf-input {
    margin: unset !important;
    position: unset !important;
}
.acf-form select,
.acf-form input {
    border: 1px solid rgb(1 13 21 / 20%) !important;
    border-radius: 0 0 25px 0 !important;
    background: unset !important;
}
.acf-form textarea {
    min-height: 150px !important;
    border: 1px solid rgb(1 13 21 / 20%) !important;
    border-radius: 0 0 50px 0 !important;
    background: unset !important;
    padding: 12px 15px !important;
}
.acf-file-uploader {
    background: rgb(229 67 96 / 60%);
    border: 0;
    border-radius: 0 0 50px 0;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.acf-form label {
    color: #707070 !important;
    font-size: 16px !important;
    margin-bottom: 0.5rem !important;
}
.af-field-type-radio,
.acf-field-checkbox {
    display: flex;
    justify-content: space-between;
    background: #F7F7F8;
    padding: 1rem 1rem  0.5rem 1rem  !important;
    border-radius: 0 0 25px 0;
    align-items: center;
    flex-wrap:wrap;
}
.af-field-type-radio ul li:nth-child(1),
.acf-field-checkbox ul li:nth-child(1) {
    margin-right: 1rem !important;
}
.af-field-type-radio ul,
.acf-field-checkbox ul {
    display: flex;
    align-items: center;
}
.af-field-type-radio input,
.acf-field-checkbox input {
    border-radius: 0 !important;
    width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
    margin-right: 12px !important;
}
.af-field-type-radio input[type="checkbox"]::before,
.acf-field-checkbox input[type="checkbox"]::before {
    background: var(--color2) !important;
    clip-path: unset !important;
    width: 16px;
    height: 16px;
}
#form-pattern .acf-field-select .acf-input:before {
    content: "\e900" !important;
    position: absolute;
    right: 13px;
    top: 55%;
    transform: translateY(-50%);
    z-index: 1;
    font-family: "icomoon";
    pointer-events: none;
    line-height: 1;
    font-size: 12px !important;
    background: #010D1533;
    width: 34px;
    height: 34px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
}
.hide-if-value {
    display: block;
    text-align: center;
}
.hide-if-value label {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 24px;
}
.hide-if-value label:after {
    content: "ررزومه خود را بارگزاری نمایید";
}
.hide-if-value label:before {
    content: "\e928";
    font-family: 'icomoon';
    color: white;
    font-size: 32px;
    /* position: absolute; */
    /*top: 10px;*/
    /*left: 50%;*/
    /*transform: translateX(-50%);*/
}
.hide-if-value input {
    opacity: 0;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.hide-if-value p {
    color: white !important;
    font-size: 16px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hide-if-value .button {
    color: white !important;
    font-size: 1rem;
}
.acf-field-file label {
    color: white !important;
}
.acf-fields {
    display: flex;
    flex-wrap: wrap;
    row-gap: 20px;
    justify-content: space-around;
}
.af-submit .acf-button {
    background: var(--black);
    border-radius: 0 0 24px 0;
    transition: 0.4s;
    min-height: 44px;
    min-width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    color: #fff;
    transition: 0.4s;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    font-family: var(--regular);
    padding: 4px 12px;
    border: 0;
}
.af-submit .acf-button:hover {
    background: var(--color1);
    color: var(--white);
    border-radius: 24px 0;
}
#form-pattern .af-submit {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
/*.wrap-form:after {*/
/*    content: "";*/
/*    width: 35%;*/
/*    height: 100%;*/
/*    position: absolute;*/
/*    top: 0;*/
/*    right: 0;*/
/*    background: linear-gradient(45deg, var(--color2) 75%, transparent);*/
/*    z-index: 0;*/
/*}*/
.wrap-form:before {
    content: "";
    background-image: url(../img/back-intro.png);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 18px;
    background-repeat: no-repeat;
    background-position: top left;
}
#form-pattern .acf-field select {
    cursor: pointer;
}
.wrap-form .s-title {
    margin-bottom: 1.5rem;
}
.acf-field .acf-notice.-error {
    bottom: -30px;
    left: 0 !important;
}
@media only screen and (max-width: 768px) {
    .wrap-form .row {
        padding: 40px 21px 0;
    }
    .wrap-form .s-title {
        text-align: center;
    }
    .wrap-form:before,
    .wrap-form:after {
        content: none;
    }
    .acf-field-file label {
        display: none !important;
    }
    #form-pattern .af-submit {
        margin-top: 1rem;
    }
}
textarea:focus,
input:focus {
    border: 1px solid var(--color2) !important;
}
/*.recruitment-form:before {*/
/*    content: "";*/
/*    width: 7px;*/
/*    height: 68%;*/
/*    position: absolute;*/
/*    left: 0%;*/
/*    background: var(--color2);*/
/*    border-radius: 0 11px 0 0;*/
/*}*/
/*.recruitment-form:after {*/
/*    content: "";*/
/*    width: 7px;*/
/*    height: 68%;*/
/*    position: absolute;*/
/*    right: 0%;*/
/*    background: var(--color2);*/
/*    border-radius: 11px 0 0 0;*/
/*}*/
@media only screen and (max-width: 1200px) {
    .acf-fields > .acf-field {
        width: 48% !important;
    }
}
.websima-contact-form .acf-field-textarea {
    width: 100% !important;
}
@media only screen and (max-width: 768px) {
    .websima-contact-form .acf-fields > .acf-field {
        width: 100% !important;
    }
    .acf-fields > .acf-field {
        width: 100% !important;
    }
}