.preloading {
    overflow: hidden;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 7, 6, 0.8); /* Slightly transparent variant of your background color */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preloader img {
    max-width: 200px; /* You can adjust this to your preference */
    animation: fadeInOut 1.5s infinite;
}

@keyframes fadeInOut {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #040706;
    color: #ffffff;
    padding: 30px;
    text-align: center;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #3b3d42;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(253, 199, 74, 0.9);
}

h1 {
    color: #fdc74a;
    font-weight: bold;
}

#countdown {
    color: #000000;
    background-color: #fdc74a;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 20px 0;
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0.5;
    }
}

h2 {
    margin-top: 20px;
    font-weight: bold;
}

p {
    margin: 20px 0;
    line-height: 1.5;
    color: #ffffff;
}

.social-unlock {
    margin-bottom: 20px;
}

.social-unlock label {
    display: block;
    margin: 10px 0;
    transition: background-color 0.3s;
    background-color: rgb(4, 7, 6);
    padding: 10px 20px;
    border-radius: 5px;
}

.social-unlock label:hover {
    background-color: rgba(253, 202, 74, 0.1);
}

.social-unlock a {
    color: #fdc74a;
    text-decoration: none;
}

input[type="checkbox"] {
    margin-right: 10px;
}

/* Form box styling */
.form-box {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.form-box input, .form-box textarea, .form-box button {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 5px;
    font-size: 16px;
    border: none;
    box-sizing: border-box;
}

.form-box input:focus, .form-box textarea:focus {
    background-color: rgba(175, 182, 82, 0.12);
}

.form-box button {
    background-color: #fdc74a;
    color: #040706;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.form-box button:hover {
    background-color: #000000;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    color: #ffffff;
}

.form-box button:active {
    transform: translateY(0);
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
}

.form-box button.full-progress {
    animation: alertPulse 1.5s infinite;
}

/* Progress bar styling */
.progress-bar {
    background-color: rgba(255, 255, 255, 0.08);
    height: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(253, 199, 74, 0.3);
}

.step {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 14.2857%; /* 100% divided by 7 steps */
    background-color: rgba(253, 199, 74, 0.1);
}

.separator {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(253, 199, 74, 0.3); /* Color of the separators */
}

.separator:nth-child(1) { left: 14.2857%; }
.separator:nth-child(2) { left: 28.5714%; }
.separator:nth-child(3) { left: 42.8571%; }
.separator:nth-child(4) { left: 57.1429%; }
.separator:nth-child(5) { left: 71.4286%; }
.separator:nth-child(6) { left: 85.7143%; }

.progress {
    background-color: #fdc74a;
    height: 100%;
    transition: width 0.3s;
}

/* File input styling */
.custom-file-input {
    position: relative;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.custom-file-input input[type="file"] {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

.custom-file-input label {
    display: block;
    background-color: #040706;
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    color: #ffffff;
}

.custom-file-input label:hover {
    background-color: #fdc74a;
}

.custom-file-input p {
    margin-top: 10px;
    color: #fdc74a;
}

/* Footer and copyright section */
.copyright {
    text-align: center;
    padding: 20px 0;
}

.copyright p {
    margin: 0;
    padding: 0;
}

.copyright a {
    display: block;
    margin-top: 10px;
    text-decoration: none;
    color: inherit;
}

.copyright img {
    width: 150px;
    margin-top: 10px;
}

@keyframes alertPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

.alert {
    animation: alertPulse 1s infinite;
}

.captcha-container {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center;    /* Center children horizontally */
    margin: 20px 0;           
}

.captcha-container p {
    margin: 0 0 10px 0;     /* Remove margin from the paragraph, add a small bottom margin */
}

@media only screen and (max-width: 600px) {
    .container {
        padding: 20px;
        max-width: 90%;
    }
    
    .form-box input, .form-box textarea, .form-box button {
        width: 100%;
        margin: 5px 0;
    }

    .captcha-container {
        flex-direction: column;
    }
}

/* Success Modal Styles */
#successModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

#successModalContent {
    max-width: 500px;
    width: 90%;
    padding: 20px 30px;
    background-color: #3b3d42;
    border-radius: 10px;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

#successModalContent h2 {
    color: #fdc74a;
}

#successModalContent img {
    width: 100px;
    animation: rotate 1.5s infinite linear;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


.uploaded {
    background-color: #fdc74a; /* Or any color you'd like to indicate that a file has been uploaded */
    color: #040706; /* Text color adjustment if needed */
}
