body {
    /* font-family: 'Tahoma', sans-serif; */
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

/* زر الفتح */
.open-form-btn {
    display: block;
    margin: 100px auto;
    padding: 12px 25px;
    background-color: #603813;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.open-form-btn:hover {
    background-color: #5b341292;
}

/* الغلاف الكامل */
.overlay {
    display: none;
    position: fixed;
    direction: rtl;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* الفورم */
.form-container {
    background: white;
    width: 90%;
    font-size: 17px;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow-y: auto;
    max-height: 90vh;
    animation: slideDown 0.5s ease;
    margin: auto 150px;
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 22px;
    border: none;
    background: none;
    cursor: pointer;
    color: #333;
}

h2 {
    text-align: center;
    color: #5e1580;
    margin-bottom: 20px;
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 25px;
    background: #fff;
}

label {
    font-weight: bold;
    color: #603813;
    margin-bottom: 5px;
    display: block;
}

input,
select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.full-width {
    grid-column: 1 / 4;
}

.gender-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
    width: 20px;
}

.gender-group label {
    font-weight: normal;
}

button[type="submit"] {
    grid-column: 1 / 3;
    background-color: #603813;
    color: white;
    border: none;
    padding: 20px;
    font-size: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

button[type="submit"]:hover {
    background-color: #935923;
}

@media (max-width: 600px) {
    form {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: 1;
    }
}

input[type="file"] {
    background-color: #f9f9f9;
    border: 1px dashed #603813;
    cursor: pointer;
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    transition: 0.3s;
    width: 100%;
}

input[type="file"]:hover {
    background-color: #f0e6f7;
}

.file-preview {
    display: none;
    background: #fafafa;
    border: 1px solid #ddd;
    padding: 8px;
    margin-top: 5px;
    border-radius: 5px;
    color: #5e1580;
    font-size: 14px;
}

.degree-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background: #fafafa;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 5px;
}

.degree-group label {
    font-weight: normal;
    color: #603813;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.degree-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #603813;
    /* اللون البنفسجي */
    cursor: pointer;
}

select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    background-color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

select:hover {
    border-color: #603813;
    box-shadow: 0 0 5px rgba(123, 31, 162, 0.3);
}

.upload-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.upload-box {
    border: 2px dashed #a04c4c;
    border-radius: 10px;
    background-color: #fff;
    padding: 25px;
    margin-bottom: 3%;
    text-align: center;
    transition: 0.3s;
    position: relative;
    cursor: pointer;
}

.upload-box:hover {
    background-color: #fdf5f5;
    border-color: #603813;
}

.upload-box input[type="file"] {
    display: none;
}

.upload-box i {
    font-size: 40px;
    color: #5a1a1a;
    display: block;
    margin-bottom: 10px;
}

.upload-box span {
    display: block;
    color: #5a1a1a;
    font-size: 18px;
    margin-bottom: 5px;
}

.upload-box small {
    color: gray;
    font-size: 13px;
}

.upload-title {
    position: absolute;
    top: -15px;
    right: 10px;
    background-color: #fff;
    padding: 0 10px;
    color: #5a1a1a;
    font-weight: bold;
}

.file-name {
    margin-top: 10px;
    color: #603813;
    font-size: 14px;
    font-weight: bold;
    display: none;
}

.graduation-year-container {
    width: 100%;
    margin: 20px auto;
    text-align: right;
    direction: rtl;
    font-family: "Tahoma", sans-serif;
}

.label {
    font-weight: bold;
    color: #5a1a1a;
    margin-bottom: 8px;
    display: block;
}

.year-dropdown {
    width: 100%;
    padding: 10px;
    border: 2px solid #a04c4c;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: 0.3s;
}

.year-dropdown:hover {
    border-color: #603813;
    background-color: #fdf5f5;
}

.year-dropdown:focus {
    outline: none;
    border-color: #603813;
    box-shadow: 0 0 5px #d1a3ff;
}

span.elementor-icon-list-text.mar {
    margin: 0 -15% 0 0;
}

.mainHeader {
    top: 40px !important;
    z-index: 1 !important;
}

.mainMenu {
    margin-top: -12% !important;
}

section.sec-cond {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 5% 0 0 0;
}

.navbar {
    padding-top: 12% !important;
}
p.prag-text {
    font-size: 20px;
    font-weight: 800;
    color: #5B3412;
}
.overlay .form-container h2{
    color: #583412;
}

@media (max-width:435px) {
    img#imgLogoResponsive {
        margin-top: -65%;
    }

    section.sec-cond {
        width: 100%;
        margin-top: 30%;
    }

    .navbar {
        padding-top: 20% !important;
    }

    img#imgLogoResponsive {
        margin: -45px 0 0 20px !important;
    }
    .form-container{
        margin: 0;
    }
    .upload-box{
        margin-bottom: 10%;
    }

}
