/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

h2 {
    color: #a83232;
    font-size: 2rem;
    text-align: center;
    margin-top: 20px;
	text-align: center;
}

p {
	font-weight: 500;
	text-align: center;
	margin: 10px auto 10px auto;
	
}

.upgrade-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);
    margin-top: 9%;
}

/* Form Elements */
form label {
    display: block;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
	text-align: center;
}

form input, form textarea, form button {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background-color: #f9f9f9;
    box-sizing: border-box;
	text-align: center;
}

form textarea {
    resize: vertical;
    height: 100px;
}

form button {
    background-color: #a83232;
    color: white;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

form button:hover {
    background-color: #942c2c;
    transform: scale(1.05);
}

/* Custom Dropdown */
.custom-dropdown {
    position: relative;
}

.custom-dropdown-btn {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    font-size: 1rem;
    cursor: pointer;
    display: inline-block;
    text-align: center;
	color: black;

}

.custom-dropdown-content {
    position: absolute;
    background-color: white;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: none; /* Hidden initially */
    z-index: 1;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	text-align: center;
}

.custom-dropdown-item {
    padding: 10px;
    cursor: pointer;
    font-size: 1rem;
	border: 2px solid #a83232;
}

.custom-dropdown-item:hover {
    background-color: #f1f1f1;
}

.custom-dropdown-btn::after {
    content: '▼';
    float: right;
    color: white;
}

.custom-dropdown-btn.active::after {
    content: '▲';
}

.custom-dropdown.active .custom-dropdown-content {
    display: block; /* Display dropdown when active */
}


/* Error Handling (Optional) */
.error-box {
    color: red;
    font-size: 0.9rem;
    margin-top: -15px;
    margin-bottom: 10px;
    display: none;
}
/* Modal background overlay */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0%;
    top: 0%;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.4s ease-out forwards; /* Fade-in effect */
}

/* Modal content with slide-down effect */
.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;
}

/* 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;
}

/* Slide-down animation for modal content */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive Design */
@media (max-width: 600px) {
    .upgrade-form {
        padding: 20px;
    }
	
    form input, form textarea, form button {
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.8rem;
		margin-top: 50px;
    }
}
