.icf-lang-ar .icf-field-subject textarea {
    margin-left: -7px !important;
    margin-right: auto;
}
.icf-careers-form-wrapper {
    --icf-max-width: calc(372px + 372px + 697px + 5rem);
    --icf-accent-color: #cb8f84;
    --icf-accent-color-rgb: 244, 162, 154;
    --icf-button-color: #f58a7d;
    --icf-button-color-rgb: 245, 138, 125;
    position: relative;
    padding: 2.5rem 2.75rem;
    background: #ffffff;
    border-radius: 1.75rem;
    /* border: 1px solid rgba(248, 161, 154, 0.35); */
    /* box-shadow: 0 1.5rem 3.5rem -2rem rgba(248, 161, 154, 0.65); */
    font-family: var(--wp--preset--font-family--tajawal), "Manrope", "Helvetica Neue", Arial, sans-serif;
    max-width: 1680px;
    margin: 0 auto;
}

.icf-careers-form-wrapper.icf-lang-ar {
    text-align: right;
    direction: ltr;
}

.icf-lang-ar .icf-field label {
    text-align: right;
}

.icf-form-title {
    margin: 0 0 1.75rem;
    font-size: 2.35rem;
    font-weight: 700;
    color: var(--icf-accent-color, #cb8f84);
    font-family: var(--wp--preset--font-family--tajawal), "Playfair Display", "Times New Roman", serif;
    max-width: var(--icf-max-width);
    margin-left: auto;
    margin-right: auto;
}

.icf-notice {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 1.15rem;
    border: 1px solid transparent;
    font-weight: 600;
}

.icf-notice-success {
    color: #2f855a;
    background-color: rgba(56, 161, 105, 0.12);
    border-color: rgba(56, 161, 105, 0.24);
}

.icf-notice-error {
    color: #c53030;
    background-color: rgba(229, 62, 62, 0.12);
    border-color: rgba(229, 62, 62, 0.24);
}

.icf-form {
    display: block;
    max-width: var(--icf-max-width);
    margin-left: auto;
    margin-right: auto;
}

.icf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 372px)) minmax(360px, 697px);
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "name email subject"
        "phone cv subject"
        "submit submit submit";
    column-gap: 2.5rem;
    row-gap: 2rem;
    align-items: stretch;
    justify-content: center;
    justify-items: start;
    margin: 0 auto;
    width: 100%;
}

.icf-field {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    justify-self: start;
    width: 90%;
}

.icf-field label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--icf-accent-color, #cb8f84);
    font-family: var(--wp--preset--font-family--tajawal), "Manrope", "Helvetica Neue", Arial, sans-serif;
}

.icf-field input,
.icf-field textarea {
    width: 100%;
    padding: 1rem 1rem;
    border-radius: 1.75rem;
    border: 1px solid rgba(var(--icf-accent-color-rgb, 244, 162, 154), 0.6);
    /* background: #fed2a5; */
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.6;
    color: #6f4d44;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: var(--wp--preset--font-family--tajawal), "Manrope", "Helvetica Neue", Arial, sans-serif;
}

.icf-lang-ar .icf-field input,
.icf-lang-ar .icf-field textarea {
    text-align: right;
    direction: rtl;
}

.icf-field input {
    max-width: 372px;
}

.icf-field textarea {
    max-width: 93%;
    resize: none;
    min-height: 15rem;
}

.icf-field-name,
.icf-field-email {
    align-self: start;
}

.icf-field input::placeholder,
.icf-field textarea::placeholder {
    color: rgba(111, 77, 68, 0.45);
    font-weight: 700;
}

.icf-lang-ar .icf-field input::placeholder,
.icf-lang-ar .icf-field textarea::placeholder {
    text-align: right;
    direction: rtl;
}

.icf-field input:focus,
.icf-field textarea:focus {
    outline: none;
    border-color: var(--icf-accent-color, #cb8f84);
    box-shadow: 0 0 0 3px rgba(var(--icf-accent-color-rgb, 244, 162, 154), 0.28);
}


.icf-field-phone,
.icf-field-file {
    align-self: end;
}

.icf-field-subject {
    grid-area: subject;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.icf-field-subject textarea {
    flex: 1 1 auto;
    width: 90%;
}

.icf-field-name {
    grid-area: name;
}

.icf-field-email {
    grid-area: email;
}

.icf-field-phone {
    grid-area: phone;
}

.icf-field-file {
    grid-area: cv;
    width: 95%;
    color: rgba(111, 77, 68, 0.45);
}

.icf-field-file input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.icf-file-input {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-radius: 1.75rem;
    border: 1px solid rgba(var(--icf-accent-color-rgb, 244, 162, 154), 0.6);
    /* background: rgba(255, 255, 255, 0.18); */
    /* color: rgba(111, 77, 68, 0.55); */
    font-size: 1rem;
    overflow: hidden;
    font-weight: 700;
    max-width: 372px;
}

.icf-file-input:hover {
    border-color: var(--icf-accent-color, #cb8f84);
}

.icf-file-placeholder {
    flex: 1 1 auto;
    pointer-events: none;
}

.icf-lang-ar .icf-file-placeholder {
    text-align: right;
    direction: rtl;
}

.icf-file-icon {
    margin-left: 1rem;
    margin-right: 0;
    color: var(--icf-accent-color, #cb8f84);
    font-size: 1.25rem;
}

.icf-careers-form-wrapper.icf-lang-ar .icf-file-icon {
    margin-left: 0;
    margin-right: 1rem;
}

.icf-submit-button {
    grid-area: submit;
    justify-self: end;
    align-self: end;
    padding: 0.95rem 3.25rem;
    margin-right: 2%;
    border: none;
    border-radius: 1.85rem;
    background: linear-gradient(135deg, var(--icf-accent-color, #cb8f84), var(--icf-button-color, #f58a7d));
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: var(--wp--preset--font-family--tajawal),"Manrope", "Helvetica Neue", Arial, sans-serif;
}

.icf-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 1rem 2rem -1rem rgba(var(--icf-button-color-rgb, 245, 138, 125), 0.65);
}

.icf-submit-button:focus {
    outline: none;
    /* box-shadow: 0 0 0 3px rgba(248, 161, 154, 0.35); */
}

.icf-lang-ar .icf-grid {
    grid-template-columns: minmax(360px, 697px) repeat(2, minmax(260px, 372px));
    grid-template-areas:
        "subject name email"
        "subject phone cv"
        "submit submit submit";
}

.icf-lang-ar .icf-field input,
.icf-lang-ar .icf-field textarea,
.icf-lang-ar .icf-file-input {
    margin-left: auto;
    margin-right: 0;
    width: 100%;
}

.icf-lang-ar .icf-submit-button {
    justify-self: start;
}

@media (max-width: 1200px) {
    .icf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "name name"
            "email email"
            "phone phone"
            "cv cv"
            "subject subject"
            "submit submit";
    }

    .icf-lang-ar .icf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "name name"
            "email email"
            "phone phone"
            "cv cv"
            "subject subject"
            "submit submit";
    }

    .icf-submit-button {
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .icf-careers-form-wrapper {
        padding: 1.75rem 1.5rem;
        width: 75%;
    }

    .icf-form-title {
        font-size: 2rem;
    }

    .icf-form,
    .icf-grid,
    .icf-field,
    .icf-field input,
    .icf-field textarea,
    .icf-field-file,
    .icf-file-input {
        width: 100%;
        max-width: 100%;
    }

    .icf-field {
        justify-self: stretch;
    }

    .icf-grid {
        column-gap: 1rem;
        row-gap: 1.25rem;
    }
}
