/* Aggregation Modal Specifics */
.aggregation-content-wrapper {
    background: url('../images/become_aggregated_bg.jpg') no-repeat center center;
    background-size: 100% 100%;
    width: 80%;
    max-width: 1191px;
    height: 550px !important;
    display: flex;
    flex-direction: row;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.aggregation-container {
    padding: 0;
    display: flex !important;
    width: 100%;
    height: 100%;
}

.aggregation-left {
    flex: 1;
    background: transparent;
    display: block;
}

.aggregation-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 30px 40px 30px 20px;
}


.aggregation-form {
    background: transparent;
    backdrop-filter: none;
    padding: 10px 0;
    border-radius: 0;
    width: 100%;
    max-width: 420px;
    margin: 0;
    box-shadow: none;
}

.aggregation-form .form-row {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
    width: 100%;
}

.aggregation-form .two-col {
    display: flex;
    justify-content: space-between;
}

.aggregation-form .two-col input,
.aggregation-form .two-col select,
.aggregation-form .two-col .radio-group {
    width: 48%;
}

.aggregation-form input,
.aggregation-form select,
.aggregation-form textarea {
    width: 100%;
    padding: 8px 14px;
    border-radius: 25px;
    border: none;
    outline: none;
    font-size: 0.85rem;
    color: #5D3616;
    background: rgba(255, 255, 255, 0.9);
}

.aggregation-form .full-width {
    width: 100%;
}

.aggregation-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%235D3616%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 10px auto;
}

.aggregation-form textarea {
    min-height: 60px;
    max-height: 80px;
    resize: none;
    border-radius: 15px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.radio-options {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.radio-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: normal;
}

#aggregationModal .contact-container {
    display: flex !important;
    flex-direction: row;
    align-items: stretch;
}

#aggregationModal .contact-right {
    padding: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1191px) {

    .aggregation-content-wrapper,
    .aggregation-content-wrapper[style] {
        background-image: none !important;
        background: linear-gradient(135deg, #A8D5BA 0%, #8FCB92 100%) !important;
        height: auto !important;
        width: 95%;
        max-width: 640px;
        margin: 0 auto;
        padding-bottom: 20px;
    }

    .job-content-wrapper,
    .job-content-wrapper[style] {
        background-image: none !important;
        background: linear-gradient(135deg, #A8D5BA 0%, #8FCB92 100%) !important;
        height: auto !important;
        width: 95%;
        max-width: 640px;
        margin: 0 auto;
        padding-bottom: 20px;
    }

    .aggregation-left {
        display: none;
    }

    .aggregation-form {
        margin: 0;
        background: transparent;
        max-width: 100%;
    }

    .aggregation-form .form-row {
        margin-bottom: 10px;
    }

    .aggregation-form .two-col {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .aggregation-form .two-col input,
    .aggregation-form .two-col select,
    .aggregation-form .two-col .radio-group {
        width: 48% !important;
        flex: 1;
        min-width: 0;
    }

    .aggregation-form .radio-group,
    .aggregation-form .radio-options label {
        color: #5D3616;
    }

    #aggregationModal .contact-right {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .aggregation-content-wrapper {
        width: 92%;
        margin: 10px auto;
        border-radius: 20px;
        background-image: none !important;
    }

    .aggregation-form {
        padding: 15px;
    }

    .aggregation-form .two-col {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .aggregation-form .two-col input,
    .aggregation-form .two-col select,
    .aggregation-form .two-col .radio-group,
    .aggregation-form .two-col .input-with-suffix {
        width: 48% !important;
        flex: 1;
        min-width: 0;
        font-size: 13px;
        padding: 8px 10px;
    }

    .aggregation-form .input-with-suffix {
        position: relative;
        display: flex;
        align-items: center;
    }

    .aggregation-form .input-with-suffix input {
        width: 100% !important;
        padding-right: 35px !important;
    }

    .aggregation-form .input-with-suffix .input-suffix {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 11px;
    }

    .aggregation-form .form-row.phone-row {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .aggregation-form .form-row.phone-row .country-code-select {
        flex: 0 0 130px;
        min-width: 130px;
        font-size: 13px;
    }

    .aggregation-form .form-row.phone-row input[type="tel"] {
        flex: 1;
    }

    #aggregationModal .contact-right {
        padding: 10px;
    }
}

/* Job Opportunities Modal Specifics */
.job-content-wrapper {
    background: url('../images/join_us_bg.jpg') no-repeat center center;
    background-size: 100% 100%;
    width: 80%;
    max-width: 1191px;
    height: 458px !important;
    display: flex;
    flex-direction: row;
    border-radius: 20px;
    overflow: hidden;
    position: absolute;
}

.job-left {
    flex: 1;
    background: transparent;
    display: block;
}

/* Job form right side */
#jobModal .aggregation-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 100px 20px 10px;
}

#jobModal .aggregation-form {
    max-width: 380px;
    padding: 10px 0;
}

#jobModal .aggregation-form .form-row {
    margin-bottom: 8px;
}

/* Mobile responsive for Job Modal */
@media (max-width: 1191px) {
    .job-content-wrapper {
        background-image: none !important;
        background: linear-gradient(135deg, #A8D5BA 0%, #8FCB92 100%) !important;
        height: auto !important;
        width: 95%;
        max-width: 640px;
        margin: 0 auto;
        position: relative;
    }

    .job-left {
        display: none;
    }

    #jobModal .aggregation-right {
        padding: 20px;
        justify-content: center;
    }

    #jobModal .aggregation-form {
        max-width: 100%;
        width: 100%;
    }

    #jobModal .aggregation-form .two-col {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

    #jobModal .aggregation-form .two-col input {
        width: 48%;
        flex: 1;
    }

    #jobModal .aggregation-form .form-row.phone-row {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

    #jobModal .aggregation-form .form-row.phone-row .country-code-select {
        flex: 0 0 140px;
        min-width: 140px;
    }

    #jobModal .aggregation-form .form-row.phone-row input[type="tel"] {
        flex: 1;
    }
}

/* Standardize Popup Buttons */
.contact-send-btn {
    width: 100%;
    margin-top: 15px;
    background: linear-gradient(135deg, #7C411B 0%, #5D3616 100%);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(124, 65, 27, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.contact-send-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.contact-send-btn:hover::before {
    left: 100%;
}

.contact-send-btn:hover {
    background: linear-gradient(135deg, #5D3616 0%, #7C411B 100%);
    box-shadow: 0 6px 25px rgba(124, 65, 27, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.02);
}

/* RTL Support for Arabic - Form on LEFT side */
html[dir="rtl"] .aggregation-container,
html[dir="rtl"] #aggregationModal .aggregation-container,
html[dir="rtl"] #jobModal .aggregation-container {
    flex-direction: row !important;
}

html[dir="rtl"] .aggregation-right,
html[dir="rtl"] #aggregationModal .aggregation-right,
html[dir="rtl"] #jobModal .aggregation-right {
    justify-content: flex-end !important;
    padding: 20px 20px 20px 60px !important;
}

/* RTL - Form fields text alignment (left to right for Arabic) */
html[dir="rtl"] .aggregation-form input,
html[dir="rtl"] .aggregation-form select,
html[dir="rtl"] .aggregation-form textarea,
html[lang="ar"] .aggregation-form input,
html[lang="ar"] .aggregation-form select,
html[lang="ar"] .aggregation-form textarea {
    text-align: left !important;
    direction: ltr !important;
}

html[dir="rtl"] .aggregation-form input::placeholder,
html[dir="rtl"] .aggregation-form textarea::placeholder,
html[lang="ar"] .aggregation-form input::placeholder,
html[lang="ar"] .aggregation-form textarea::placeholder {
    text-align: left !important;
    direction: rtl !important;
}

html[dir="rtl"] .aggregation-form select,
html[lang="ar"] .aggregation-form select {
    background-position: left 15px top 50% !important;
    padding-left: 35px !important;
    padding-right: 14px !important;
}