body,
h1,
h2,
h3,
h4,
h5,
h6,
b,
li,
button,
input,
a {
    font-family: 'Tajawal', sans-serif !important;
}

.vote-wrapper {
    display: flex;
    flex-direction: row-reverse;
    max-width: 1100px;
    margin: 40px auto;
    padding: 30px;
    gap: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.media-side {
    flex: 1;
}

.media-side iframe {
    width: 100%;
    height: 320px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.form-side {
    flex: 1;
}

.form-side h1 {
    font-size: 30px;
    color: #222;
    margin-bottom: 15px;
}

.form-side p {
    font-size: 17px;
    margin-bottom: 25px;
    line-height: 1.8;
    color: #555;
}

/* تحسين مظهر الحقول */
.form-group {
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: background 0.3s;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 10px;
    display: block;
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s;
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    display: block;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
    border-color: #4CAF50;
    outline: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 15px;
    color: #444;
}

.checkbox-label-inline {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #444;
    gap: 8px;
    margin-top: 10px;
}

.checkbox-label-inline input[type="checkbox"] {
    margin: 0;
}

.checkbox-label-inline span a {
    color: rgb(3, 46, 163);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .form-group {
        padding: 10px;
    }

    input[type="text"],
    input[type="email"],
    select {
        font-size: 15px;
    }

    .form-group label {
        font-size: 15px;
    }
}

button[type="submit"] {
    width: 100%;
    background-color: #163A5F;
    color: white;
    padding: 13px;
    font-size: 17px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

button[type="submit"]:hover {
    background-color: rgba(22, 59, 95, 0.74);
}

@media (max-width: 768px) {
    .vote-wrapper {
        flex-direction: column;
        padding: 20px;
    }

    .media-side iframe {
        height: 220px;
    }
}

.media-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.media-side h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.media-side iframe {
    width: 100%;
    height: 320px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.checkbox-label-inline {
    gap: 8px;
    font-size: 15px;
    color: #444;
    margin-top: 10px;
}
.modal-body {
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
}
.progress-bar {
width: 100%;
background: #eee;
border-radius: 8px;
overflow: hidden;
margin-top: 15px;
}
.progress-fill {
width: 0%;
background: #4CAF50;
color: white;
text-align: center;
padding: 6px 0;
font-weight: bold;
transition: width 0.3s ease;
}
#loadingModal {
position: fixed;
top: 0; left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(2px);
display: none;
justify-content: center;
align-items: center;
z-index: 9999;
}

#loadingModal .modal-content {
background: #fff;
padding: 30px 25px;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
text-align: center;
max-width: 350px;
width: 90%;
animation: fadeIn 0.3s ease-in-out;
}

#loadingModal p {
font-size: 18px;
margin-bottom: 20px;
color: #333;
}

.progress-bar {
background: #ddd;
border-radius: 8px;
overflow: hidden;
height: 22px;
width: 100%;
}

.progress-fill {
background: #4CAF50;
height: 100%;
width: 0%;
color: white;
font-weight: bold;
text-align: center;
line-height: 22px;
transition: width 0.3s ease;
font-size: 14px;
border-radius: 8px 0 0 8px;
}

@keyframes fadeIn {
from { opacity: 0; transform: scale(0.9); }
to { opacity: 1; transform: scale(1); }
}
