@font-face {
    font-family: 'Jannat';
    src: url('fonts/A.Jannat.LT.Regular.ttf');
    font-weight: 500;
    font-style: normal
}

@font-face {
    font-family: 'Jannat';
    src: url('fonts/Janna.LT.Bold.ttf');
    font-weight: bold;
    font-style: normal
}


body {
    font-family: 'Jannat';
    direction: rtl;
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fefcf9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


/* .................. header...................... */
.header {
    /* background-color: #8a1538; */
    /* padding: 20px; */
    /* color: white; */
    text-align: center;
    border: 2px solid #8a1538;
    border-radius: 20px;

}

.header img {
    max-height: 60px;
    margin-top: 25px;
    padding-bottom: 15px;
}



/* .................. title...................... */
.form-title {
    font-size: 2.5em;
    margin-top: -8px;
    padding: 20px;
    text-align: center;
    background-color: #8a1538;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.sub-title {
    color: #800000;
    text-align: center;
    padding: 5px;
    border-radius: 10px;
    color: white;
    background-color: rgba(102, 0, 0, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-size: 1.2em;
    margin: 10px 10px 30px 10px;
}

.sub-title h4 {
    text-align: center;
    color: #ffffff;
}



/* .................. .registration-form..................... */



.form-row {
    color: #660000;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 15px 10px;
    padding: 0px;
}

.form-group {
    color: #660000;
    flex: 1;
    min-width: 50px;
    margin: 10px 10px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin: 0 0 10px 0;
    padding: 0;
    color: #000000;
    font-size: 16px;
}

.container #registration-form .personal-data {
    color: #800000;
    font-size: 25px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(187, 85, 85, 0.5);
}

.container #registration-form .personal-data p {
    padding-top: 20px;
    margin-right: 30px;

    /* margin-right: calc(100% - 55%); */
}

.container #registration-form .register-icon {
    margin: 0px auto;
    position: relative;
    top: 50%;
    transform: translateY(-0%);
}

textarea {
    width: 98%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}


.form-group input,
.form-group select {
    color: #555;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 20px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline-color: #660000;
    border-color: #660000;
    box-shadow: 0 0 10px rgba(107, 0, 0, 0.5);
}

.form-group input[type="file"] {
    display: none;
}

.form-group input[type="file"]+label {
    display: inline-block;
    padding: 10px;
    cursor: pointer;
    /* background-color: #fedb6f; */
    color: #800000;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.form-group input[type="file"]+label:hover {
    background-color: #fcbf49;
}

.form-group input[type="file"]+label i {
    margin-left: 5px;
}


.error-message {
    font-size: 15px;
    color: #800000;
    margin-top: 5px;
}


/*-------------    slider       -----------*/



.tabs .slider {
    position: relative;
    width: 25%;
    -webkit-transition: all 0.33s cubic-bezier(0.38, 0.8, 0.32, 1.07);
    transition: all 0.33s cubic-bezier(0.38, 0.8, 0.32, 1.07);
}



.tabs .slider .indicator {
    position: relative;
    width: 50px;
    max-width: 100%;
    margin: 0 auto;
    height: 4px;
    background: var(--blue-color);
    border-radius: 1px;
}

/*-------------------------- tabs design  ------------------------------*/


.template-demo ul li:hover label {
    color: #800000;
    /* عند التمرير يصبح اللون أسود */
}

.template-demo ul li:hover i {
    color: #800000;
    /* تغيير لون الأيقونة عند التمرير */
}


.template-demo ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
    justify-content: center;
    align-items: center;
}

.template-demo ul li {
    text-align: center;
    background: none;
    /* إزالة الخلفية */
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.template-demo ul li:hover {
    transform: translateY(-5px);
}

.template-demo ul li label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #800000;
    /* تغيير لون النص */
    cursor: pointer;
}

.template-demo ul li:hover label {
    color: 800000;
    /* عند التمرير يصبح اللون أسود */
}

.template-demo ul li i {
    font-size: 24px;
    color: #800000;
    /* تغيير لون الأيقونات */
    transition: color 0.3s ease-in-out;
}

.template-demo ul li:hover i {
    color: 800000;
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .template-demo ul {
        flex-direction: column;
        align-items: center;
    }

    .template-demo ul li {
        width: 80%;
    }
}

/* ................condition................ */

.form-check {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.form-check label {
    margin-left: 10px;
    color: #555;
}

.form-check input {
    width: auto;
}

/* ------------- Next-Prev buttons ------------ */


.form-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    gap: 10px;
}

.btn-prev,
.btn-next {
    padding: 8px 25px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background-color: #800000;
    font-weight: 400;
    color: white;
    transition: 0.3s;
    text-align: center;
    font-size: 18px;
    transition: all 200ms linear;
}

.btn-prev:hover,
.btn-next:hover {
    background-color: #800000;
}


/*---------------------------*/


.btn-wrapper {
    text-align: center;
    /* Center-align the button */
}

.btn {
    display: inline-block;
    /* Allows the button to be centered */
    width: 100%;
    /* Full width within its container on small screens */
    max-width: 150px;
    /* Optional: Set a max-width to prevent excessive stretching */
    padding: 10px;
    background-color: #800000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-size: 20px;
    /* Adjust font size */
    transition: background-color 0.3s ease;

}

.btn:hover {
    background-color: #660000;
}

.footer {
    background-color: #800000;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.footer p {
    margin: 5px 0;
}

.footer img {
    max-height: 80px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);

    justify-content: center;
    align-items: center;

}

.modal-content {
    background-color: #fffae9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 90%;
    max-height: 80%;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

ol {
    list-style-type: decimal;
    padding-right: 20px;
}

li {
    margin-bottom: 10px;
}

.progress-container {
    width: 100%;
    background-color: #f3f3f338;
    border-radius: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    box-shadow: 2px 2px 10px #8f8e8ed7;
    /* Example values */
}

.progress-bar {
    width: 0%;
    height: 20px;
    background-color: #800000;
    border-radius: 20px;
    text-align: center;
    line-height: 20px;
    color: white;
    transition: width 0.3s ease;
}

.gender-options input[type="radio"] {
    accent-color: #800000;
}

.gender-options {

    display: flex;
    align-items: center;
    margin-right: 20px;
    /* Adjusts space between "الجنس" label and radio buttons */
}

.gender-options label {

    display: flex;
    align-items: center;
    margin-right: 20px;
    /* Adjusts space between radio button options */
}

.form-group label {
    display: flex;
    align-items: center;
}

.form-group label i {
    margin-left: 8px;
    /* Adjust spacing between icon and text */
    color: #800000;
    /* Adjust icon color if needed */
}

/* Media Queries for Responsive Design */


@media (max-width: 576px) {



    .tabs input[name="tab-control"]:nth-of-type(1):checked~.slider {
        -webkit-transform: translateX(0%);
        transform: translateX(0%);
    }


    .tabs input[name="tab-control"]:nth-of-type(2):checked~.slider {
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
    }

    .tabs input[name="tab-control"]:nth-of-type(3):checked~.slider {
        -webkit-transform: translateX(200%);
        transform: translateX(200%);
    }

    .tabs input[name="tab-control"]:nth-of-type(4):checked~.slider {
        -webkit-transform: translateX(300%);
        transform: translateX(300%);
    }

    .tabs .slider {
        display: none;
    }


    .form-group {
        min-width: 50%;
        margin-right: 10;
    }

    .container #registration-form .personal-data p {
        font-size: 15px;
        margin-right: 80px;
    }

    .container .condition-part {
        margin-right: calc(100% - 90%);
    }

    textarea {
        margin-right: -10px;
    }

}


/* Section 1 Styles */
.branch-college-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 2px 2px 10px rgba(143, 142, 142, 0.84);
    max-width: 500px;
    width: 90%;
    /* Flexible width */
    margin: 100px auto;
    /* Default margin */
    background-color: #fefcf9;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.branch-college-section .logo-container img {
    width: 100%;
    /* Larger image */
    height: 100%;
    margin-bottom: 20px;
    border-radius: 30px;
}

.branch-college-section .form-container {
    width: 90%;
}

.branch-college-section .form-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Smaller gap */
}

.branch-college-section .form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.branch-college-section .form-field label h5 {
    margin: 0;
    font-size: 14px;
    /* Smaller font size */
    color: #000000;
}

.branch-college-section .form-field select {
    padding: 8px;
    /* Smaller padding */
    border: 2px solid #800000;
    /* Custom border color */
    border-radius: 20px;
    font-size: 14px;
    background-color: #ffffff;
    /* Custom background color */
    color: #333;
    cursor: pointer;
}

.branch-college-section .form-field select:focus {
    outline: none;
    border-color: #800000;
    box-shadow: 0 0 5px rgba(138, 21, 56, 0.5);
}

.branch-college-section .next-button {
    display: inline-block;
    padding: 8px 16px;
    /* Smaller button */
    background-color: #800000;
    /* Matching border color */
    color: #ffffff;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    /* Smaller font size */
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.next-button.disabled {
    background-color: gray !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}




.next-button.enabled {
    background-color: #800000 !important;
    cursor: pointer;
    opacity: 1;
}

.branch-college-section .next-button:hover {
    background-color: #6a102c;
    /* Darker shade on hover */
}


/* Responsive Margins */
@media (max-width: 768px) {
    .branch-college-section {
        margin: 100px auto;
        /* Smaller margin for tablets */
    }
}

@media (max-width: 480px) {
    .branch-college-section {
        margin: 150px auto;
        /* Even smaller margin for small screens */
        padding: 2px;
        /* Slightly reduced padding for small screens */
    }

    .branch-college-section .logo-container img {
        width: 100%;
        /* Larger image */
        height: 100%;
        margin-bottom: 20px;
        border-radius: 30px;
    }

    .branch-college-section .next-button {
        margin-top: 15px;
        /* Reduced margin for small screens */
    }
}

@media (max-width: 360px) {
    .branch-college-section {
        margin: 150px auto;
        /* Minimal margin for very small screens */
        padding: 2px;
        /* Minimal padding for very small screens */
    }

    .branch-college-section .logo-container img {
        width: 100%;
        /* Larger image */
        height: 100%;
        margin-bottom: 20px;
        border-radius: 30px;
    }

    .branch-college-section .next-button {
        margin-top: 20px;
        /* Minimal margin for very small screens */
        margin-bottom: 10px;
    }
}


/* Progress Steps Styling */
.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 20px;
    margin-top: 10px;
}

.circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    z-index: 1;
}

.circle.active {
    background-color: #8a1538;
}

.progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    background-color: #ccc;
    width: 100%;
    transform: translateY(-50%);
    z-index: 0;
}

/* Sections Styling */
.content section {
    display: none;
}

.content section.active {
    display: block;
}

/* Form Navigation Buttons */
.form-navigation {
    margin-top: 20px;
}


.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}



.alert {
    padding: 15px;
    background-color: #d1ecf1;
    /* Light blue background */
    color: #0c5460;
    /* Darker text for contrast */
    border: 1px solid #bee5eb;
    /* Border */
    border-radius: 5px;
    /* Rounded corners */
    /* font-family: sans-serif; */
    /* width: fit-content; */
}

.input-with-suffix {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
}

.input-with-suffix input {
    border: none;
    padding: 8px;
    flex: 1;
    outline: none;
    /* direction: ltr;
    text-align: left; */
}

.input-with-suffix input:focus {
    border: none;
    padding: 8px;
    flex: 1;
    outline: none;
    /* direction: ltr;
    text-align: left; */
    box-shadow: none !important;

}

.input-suffix {
    background-color: #f0f0f0;
    padding: 8px;
    /* border-left: 20px solid #ccc; */
    white-space: nowrap;
}