body {
    font-family: Arial, sans-serif;
    background-color: #f4f8fa;
    margin: 0;
    padding: 0;
}f

.logo {
    text-align: right; /* Align the logo to the right */
    margin-bottom: 20px; /* Add space below the logo */
    margin-right: 10%;
}

.logo img {
    max-width: 260px; /* Ensure the logo does not exceed its container width */
    height: auto; /* Maintain the aspect ratio of the logo */
    margin-right: 8%;
}

.container {
    width: 80%;
    margin: 5px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    color: #333;
    font-weight: bold;
}

.form-group {
    margin-bottom: 20px;
    display: inline-block;
    width: 48%; /* Adjust the width as needed */
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

input[type="text"],
input[type="number"],
input[type="email"],
select {
    width: calc(100% - 10px);
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

select {
    width: 100%;
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    border: none;
    color: #fff;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

#error_message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

.success_message {
    color: green;
    font-size: 14px;
    margin-top: 5px;
}

@media screen and (max-width: 600px) {
    .form-group {
        width: 100%;
        display: block;
    }
}

.form-group-name-label {
    margin-bottom: 0; /* Adjust margin as needed */
    display: inline-block;
}

.form-group-name {
    display: flex;
    flex-wrap: nowrap;
    margin-bottom: 20px;
    width: 96%; /* Adjust width as needed */
    flex-direction: row;
    
}
@media (max-width: 800px) {
    .form-group-name {
    flex-direction: column;
}
input#name1,
input#name2,
input#name3,
input#name4 {
    flex-grow: 1;
    flex-basis: auto;
    margin: 5px; /* Adjust margin as needed */
} 
}

input#name1,
input#name2,
input#name3,
input#name4 {
    flex-grow: 1;
    flex-basis: auto;
    margin: 5px; /* Adjust margin as needed */
}

p.note {
    font-size: x-large;
    color: darkred;
    padding: 10px;
    background: lightblue;
}

.loader-wrapper {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5); /* semi-transparent white background */
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 6px solid #f3f3f3; /* Light grey border */
    border-top: 6px solid #3498db; /* Blue border on top */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite; /* Spin animation */
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

div#captcha_challenge {
    display: block;
    font-style: bold;
    unicode-bidi: isolate;
    padding: 10px;
    margin: 0 0 15px 0;
    font-size: large;
    color: darkred;
    background: lightgrey;    
}

.shake-animation {
    animation: shake 0.4s ease-in-out;
}
@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

span#phone_error, span#email_error, span#cid_file_error {
    display: block;
    font-style: bold;
    unicode-bidi: isolate;
    padding: 10px;
    margin: 0 0 15px 0;
    font-size: large;
    color: darkred;
}
