/* General Styles */
body {
	text-align: center;
}
h2 {
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: linear-gradient(to right, #a83232, #a83232 50%, #a83232);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    padding: 15px 25px;
    border-radius: 8px;
    border: 2px solid #a83232;
    width: 100%;
    margin: 0 auto 15px auto;
    text-align: center;
    display: inline-block;
}

p {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 20px;
}

.service-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px;
    border: 2px solid #a83232;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Modal Overlay */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal Content with Animation */
.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0; /* Start invisible */
    transform: translateY(-20px); /* Start slightly higher */
    animation: slideDown 0.8s ease-out forwards; /* Slide-down effect */
    border: 3px solid #a83232;
    font-size: 1.2em;
}

/* Slide-down animation for modal content */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button styling */
.modal-content button {
    margin: 10px;
    padding: 10px 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

#autofillYes {
    background-color: #a83232;
    color: white;
}

#autofillNo {
    background-color: #999f99;
    color: white;
}

#autofillYes:hover, #autofillNo:hover {
    opacity: 0.8;
}

label {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: block;
}

input, textarea, .submit {
    width: 90%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
	text-align: center;
}

textarea {
    resize: vertical;
    height: 100px;
}

.submit {
    background-color: #a83232;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

button:hover {
    background-color: #;
}

.custom-dropdown {
    position: relative;
    margin-bottom: 20px;
	font-weight: 500;
}

.custom-dropdown-btn {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 94%;
    text-align: center;
    cursor: pointer;
	position: relative;
}

.custom-dropdown-content {
    position: relative;
	width: 94%;
    background-color: white;
    border: 1px solid #ccc;
    z-index: 1;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: max-height 0.3s ease;
	margin: 0 auto;
}

.custom-dropdown-content.active {
    display: block;
}

.custom-dropdown-item {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
	border: 1px solid #a83232;
}

.custom-dropdown-item:hover {
    background-color: #f1f1f1;
}

#ok-button {
    display: none;
    width: 95%;
    background-color: #a83232;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px auto;
	position: relative;
	z-index: 1000;
}

#ok-button:hover {
    background-color: #942c2c;
}
.custom-os-dropdown {
    position: relative;
    margin-bottom: 20px;
    font-weight: 500;
}

.custom-os-btn {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 94%;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.custom-os-content {
    position: relative; /* Change to absolute for proper dropdown behavior */
    width: 94%;
    background-color: white;
    border: 1px solid #ccc;
    z-index: 1;
    display: none; /* Hidden by default */
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: max-height 0.3s ease;
    margin: 0 auto;
}

.custom-os-item {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #a83232;
}

.custom-os-item:hover {
    background-color: #f1f1f1;
}

/* Instead of using custom-os-active, toggle visibility directly */
.custom-os-active {
    display: block; /* Show the dropdown when active */
}


.custom-time-picker {
    position: relative;
    display: inline-block;
    width: 55%;
}

.time-dropdown-btn {
    padding: 10px;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
	margin-bottom: 10px;
}

.time-dropdown-content {
    display: none;
    position: absolute;
    width: 100%;
    background-color: #ffffff;
    border: 2px solid #a83232;
    z-index: 1;
    max-height: 200px;
    overflow-y: scroll;
}

.time-item {
    padding: 10px;
    cursor: pointer;
    border: 1px solid #a83232; /* Add border between items */
}

.time-item:hover {
    background-color: #f1f1f1;
}

.time-item:last-child {
    border-bottom: none; /* Remove border on the last item */
}

.custom-time-picker .time-dropdown-btn:after {
    content: '▼';
    float: right;
}
.custom-file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
	border: 2px solid #a83232;
	padding: 10px;
	width: 60%;
	border-radius: 15px;
	margin: 0 auto 10px auto;
}



.form-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
	margin: 10px auto 0 auto;
}

input[type="date"] {
    width: 100%;
    max-width: 300px; /* Adjust this value based on your layout */
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

input[type="date"]:focus {
    border-color: #a83232;
    box-shadow: 0 0 5px rgba(168, 50, 50, 0.5);
    outline: none;
}

label {
    font-weight: 500;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    background-color: #a83232;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-clear-button {
    display: none;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background-color: #942c2c;
}
