body {
    font-family: Arial, sans-serif;
    background-color: #ffffff; /* Set page background to white */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background-color: #CAEBF2; /* Set container background to #CAEBF2 */
    padding: 20px; /* Ensure consistent padding */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%; /* Full width */
    max-width: 500px; /* Max width for larger screens */
    height: 100%; /* Full height */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Spread content vertically */
    box-sizing: border-box; /* Ensure padding is included in the element's total width and height */
    position: relative; /* For positioning the logo */
}

.logo {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 65px; /* Increased by 30% from 50px */
    height: auto; /* Maintain aspect ratio */
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

/* Scrollable content styling */
.scrollable-content {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 20px; /* Space between content and inputs */
    padding-right: 10px; /* Padding to prevent text cutting off */
}

/* Styling for the text content */
.text-content {
    font-family: Arial, sans-serif; /* Use Arial font */
    font-size: 14px;
    line-height: 1.5;
    direction: rtl; /* Text direction from right to left */
}

.bold {
    font-weight: bold; /* Bold text */
}

.centered {
    text-align: center; /* Center alignment */
}

.text-content ul {
    list-style-type: disc; /* Bullet points */
    padding-right: 20px; /* Space between bullets and text */
}

/* Title above the input fields */
.input-title {
    font-size: 20px;
    text-align: center;
    margin-bottom: 15px;
}

label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    text-align: right; /* Ensure label text aligns to the right */
}

label::after {
    content: " *"; /* Add a star after the label */
    color: red; /* Red color for the star */
    font-size: 14px; /* Same size as the label text */
}

input[type="text"],
input[type="tel"] {
    width: 100%;
    padding: 8px; /* Ensure consistent padding */
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensure padding does not affect width */
    text-align: right; /* Ensure text aligns to the right */
}

button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: auto; /* Push the button to the bottom */
    text-align: center; /* Center button text */
}

button:hover {
    background-color: #45a049;
}

/* Error Message Styling */
.error-message {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}

.error-field {
    border-color: red;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Stack spinner and text vertically */
    z-index: 9999; /* Ensure it overlays other elements */
}

#loading-overlay.hidden {
    display: none; /* Hide overlay by default */
}

.spinner {
    border: 4px solid #f3f3f3; /* Light gray */
    border-top: 4px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite; /* Rotating animation */
    margin-bottom: 15px; /* Space between spinner and text */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#loading-overlay p {
    color: white;
    font-size: 18px;
    font-family: Arial, sans-serif;
    margin: 0; /* Remove default margins */
    text-align: center;
}

/* Ensure that the container takes the full height on mobile */
@media (max-width: 768px) {
    .container {
        height: 100vh;
        box-shadow: none;
        border-radius: 0;
    }

    .scrollable-content {
        flex-grow: 1;
        overflow-y: auto;
        margin-bottom: 10px;
    }
}

/* Adjustments for larger screens */
@media (min-width: 769px) {
    .container {
        justify-content: flex-start; /* Start elements at the top */
    }

    .scrollable-content {
        height: auto; /* Allow content to take up more space */
        flex-grow: 1; /* Let content grow to fill available space */
        margin-bottom: 20px; /* Add some space below the content */
    }

    .input-group {
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* Align inputs and button to the bottom */
        flex-grow: 0; /* Don't let inputs grow */
    }
}
