
body {
    background-color: #ee334e !important;
}

.form_title {
    background-color: rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid #ccc;
    padding-right: 36px;
    padding-top: 12px;
    padding-right: 36px;
    padding-bottom: 12px;
    padding-left: 36px
}

label.form-check-label {
    padding-right: 20px;
}

/* for nav bg*/
.bg-white {
    --bs-bg-opacity: 1;
    background-color: white !important;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

.footer {
    text-align: center;
}

.toggle-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    border: 1px solid #dedede;
    border-radius: 20px;
    padding: 2px;
    margin: 5px;
    background-color: #fffa00;
    justify-content: flex-end;
    color: #fff !important;
}

.form-container {
    max-width: auto;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border: 0px solid #ddd;
    border-radius: 5px;
    /*font-family: Poppins, sans-serif, Arial;*/
}

.card {
    width: 80%;
    background-color: #ffffff;
    border: 1px solid hsl(0,0%,91%);
    border-radius: 8px;
    box-shadow: 2px 2px 7px 0 rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    margin-top: 18px;
    margin-bottom: 18px !important;
    overflow: hidden;
    margin: 0 auto;
}

.subtitle {
    color: #ffffff !important;
    font-size: 120%;
    text-align: center;
    font-weight: 500;
}

.card_title {
    color: #444;
    font-weight: 700;
    margin: 0;
    padding: 10px;
}

.form-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.form-group_ar {
    margin-bottom: 15px;
    direction: rtl;
}

.form-group {
    margin-bottom: 3.8%;
}

.form-group_ar label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.form-group label {
    display: block;
    font-weight: bold !important;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: white;
 
}

    .form-group input::placeholder {

        color: #666666;
    }

.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #eeeeee;
    color: #333;
}







/* Scoped styles for the functional areas checkboxes */
.functional-areas-checkboxes {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping for responsiveness */
    gap: 15px; /* Space between checkboxes */
}

    .functional-areas-checkboxes .form-check {
        display: flex;
        flex-direction: row; /* <-- Change from column to row */
        align-items: center; /* Align vertically center */
        flex: 1 1 200px;
        max-width: 250px;
        padding: 8px;
        box-sizing: border-box;
        gap: 8px; /* Optional: adds space between checkbox and label */
    }


    .functional-areas-checkboxes .form-check-input {
        margin-top: 5px; /* Space between label and checkbox */
        margin-right: 0; /* Remove right margin since label is above */
        width: 20px; /* Ensure consistent checkbox size */
        height: 20px; /* Ensure consistent checkbox size */
        background-color: #f7f7f7; /* Light red for unchecked */
        transition: background-color 0.3s ease; /* Smooth transition */
    }

        /* Checked state: green background */
        .functional-areas-checkboxes .form-check-input:checked {
            background-color: #258cfb; /* Light green for checked */
        }

    .functional-areas-checkboxes .form-check-label {
        font-size: 14px;
        word-break: break-word; /* Ensures long labels wrap neatly */
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .functional-areas-checkboxes .form-check {
        flex: 1 1 150px; /* Smaller base width for tablets */
    }
}

@media (max-width: 576px) {
    .functional-areas-checkboxes .form-check {
        flex: 1 1 100%; /* Stack vertically on small screens */
        max-width: none;
    }
}







.form-group button {
    width: 100%;
    padding: 10px;
    background-color: #4b5052;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

    .form-group button:hover {
        background-color: #eb5151;
    }

.form_input {
    background-color: #fff;
    border: 1px solid #aaa !important;
    border-radius: 8px !important;
    box-shadow: none;
    box-sizing: border-box;
    color: #666;
    font-size: 16px;
    height: auto;
    line-height: 1.5;
    margin: 0;
    min-height: auto;
    outline: none;
    padding: 6px;
}

.form_inputAr {
    background-color: #fff;
    border: 1px solid #aaa !important;
    border-radius: 8px !important;
    box-shadow: none;
    box-sizing: border-box;
    color: #666;
    font-size: 16px;
    height: auto;
    line-height: 1.5;
    margin: 0;
    min-height: auto;
    outline: none;
    padding: 6px;
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', Tajawal, sans-serif;
}

h1, h2, h3, h4, h5, h6, .heading-font {
    color: #ffffff !important;
}

.heading1 {
    color: #ee334e !important;
    font-size: 160%;
    font-weight: bold;
    padding-top: 0.5%;
    padding-left: 0px;
}

.add-btn {
    background-color: #ffc107 !important;
}

.asterisk {
    color: red;
    margin-left: 5px;
}



.dob-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

    .dob-container select {
        padding: 5px;
        border: 1px solid #aaa !important;
        border-radius: 8px !important;
        box-shadow: none;
        box-sizing: border-box;
        color: #666;
        font-size: 16px;
        height: auto;
        line-height: 1.5;
        margin: 0;
        min-height: auto;
        outline: none;
        padding: 12px;
    }

/* New CSS for Language Section */

.language-container, .experience-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.language-table, .experience-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: inherit;
    border: 1px solid #ddd;
    border-radius: 4px !important;
    border-spacing: 0px;
}

    .language-table th, .language-table td, .experience-table th, .experience-table td {
        border-top: 1px solid #dddddd;
        padding: 8px;
        text-align: left;
        font-size: 95%;
        color: #666666;
    }

    .language-table th, .experience-table th {
        background-color: #f2f2f2;
        border-top: 0px solid #dddddd;
    }

.remove-btn {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

    .remove-btn:hover {
        background-color: #cc0000;
    }

.add-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
}

    .add-btn:hover {
        background-color: #218838;
    }








#validationModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

 #validationModal > div {
        background-color: #fefefe;
        margin: 10% auto;
        padding: 20px;
        border: 1px solid #888;
        width: 80%;
        max-width: 500px;
        max-height: 80vh;
        overflow-y: auto;
    }

#closeValidationModal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

 #closeValidationModal:hover, #closeValidationModal:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

.validation-error-list {
    list-style-type: disc;
    padding-left: 20px;
}

 .validation-error-list li {
        color: #dc3545;
        margin-bottom: 5px;
    }
