form {
    max-width: 500px;
    margin: auto;
    padding: 1rem;
    background: #fff;
    border-radius: 0.25rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
	overflow: visible;
}

iframe#forms {
    overflow: visible;
    width: 100%;
    border: none;
    min-height: 700px;
}

form#enter-sub {
	padding: 0;
}

form#enter-sub:active, #click-area .custom-button:active {
	background-color: #e6e6e6;
}

#formPassword {
    display: none;
}

#formLogin {
    width: 360px;
}

.form-group {
	position: relative;
    flex: 0 0 calc(50% - 30px); /* Calculate width after accounting for padding */
    box-sizing: border-box; /* Include padding in the width calculation */
}

#create-pw-name {
	margin-bottom: 10px;
}

.form-group.dropdowns {
    flex: 1; /* Take up remaining space */
    max-width: 50%; /* Half of the container width */
}

label {
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

input[type="text"],
input[type="password"],
input[type="submit"],
input[type="button"] {
    height: 38px;
    vertical-align: middle;
	margin-bottom: 10px;
}

button[type="submit"] {
	background-color: inherit;
}

button:hover {
    background-color: #45a049;
}

.custom-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; 
}

.custom-button:hover {
    background-color: #f2f2f2;
}

.custom-button h2 {
    margin-top: 10px;
}

.custom-button p {
    margin-bottom: 0;
	margin-top: 25px;
}

select#selectName {
    margin-bottom: 10px;
}

h3.attention {
    margin-top: 15px;
	color: red;
}

.left.textinputarea.spacer {
    margin-bottom: 20px;
}

.left.textinputarea.tall {
    margin-bottom: 30px;
}

/* General Form Styling */
label, .labelBlank {
    display: block; /* Changed from inline-block for better control */
    margin-bottom: 1px; /* Reduced space below label */
    font-size: 12px; /* Smaller, more modern font size */
    color: #333; /* Standard dark color for better readability */
    font-weight: 600; /* Slightly bolder for emphasis */
}

.inputarea {
    width: 100%; /* Ensure full width */
}

input, textarea, select {
    width: 100%; /* Full width */
    padding: 0.8rem; /* Reduced padding */
    font-size: 0.9rem; /* Smaller font size for a more refined look */
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075); /* Subtle inset shadow for depth */
	box-sizing: border-box;
}

/* Button Styling */
.btn_submit, .btn_reset {
    padding: 0.6rem 1.2rem; /* Reduced padding */
    font-size: 0.9rem; /* Matching font size to inputs */
    background-color: #007bff; /* Primary color */
    border: none; /* No border for a cleaner look */
    border-radius: 0.25rem;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

.btn_submit:hover, .btn_reset:hover {
    background-color: #0056b3; /* Darker on hover for interaction feedback */
}

/* Error Message Styling */
.loginError {
    color: #b71c1c;
    background-color: #f8d7da;
    border: 1px solid #b71c1c;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

.loginNotSetup {
    color: #259b24;
    background-color: #d4edda;
    border: 1px solid #259b24;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

#forgotPasswordBtn, #backToLoginBtn {
    background: none;
    border: none;
    color: #007bff;
    padding: 0;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
	margin-bottom: 10px;
}

#forgotPasswordBtn:hover, #backToLoginBtn:hover {
    color: #0056b3;
    text-decoration: none;
}

/* Additional Utility Classes */
.clear {
    clear: both;
}

.hide {
    display: none;
}

.show {
    display: block; /* Ensure visibility */
}

/* Custom CSS for Form Validation Prompts */
.formError, .formErrorpw, .formErrorId {
    position: absolute; /* Change to absolute positioning */
    top: -5px; /* Adjust this value as needed */
    left: calc(100% + 5px); /* Position to the right of the form element */
    z-index: 1000; /* Ensure it's above other elements */
    width: auto; /* Auto width */
    color: #D8000C; /* Error text color */
    background-color: #FFBABA; /* Error background color */
    border: 1px solid #D8000C; /* Error border */
    border-radius: 5px; /* Rounded corners */
    padding: 3px 10px; /* Padding inside the prompt */
    font-size: 14px; /* Font size */
	white-space: nowrap;
}

.formErrorpw {
    top: 146px; /* Adjust this value as needed */
}

.formErrorId {
    top: 65px; /* Adjust this value as needed */
	width: 135px;
}

.greenPopup {
    color: #259b24;
    background-color: #d4edda;
    border: 1px solid #259b24;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

div#redError {
    color: #b71c1c;
    background-color: #f8d7da;
	border: 1px solid #b71c1c;
}

.blackPopup {
    background-color: inherit;
}

.admin-forms {
	width: 97%;
	max-width: none;
   box-shadow: none;
   overflow: visible;
}

.admin-delete-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 40px;
	margin-top: 20px;
	align-items: start;
}

.admin-delete-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px 40px; /* row gap, column gap */
	margin-top: 20px;
	font-size: 16px;
	line-height: 1.4;
}

.field-block {
	display: flex;
	flex-direction: column;
}

.field-block label {
	font-weight: bold;
	color: #333;
	margin-bottom: 4px;
	font-size: 15px;
}

.value-block {
	color: #222;
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 6px 10px;
	min-height: 32px;
	display: flex;
	align-items: center;
	font-size: 15px;
}

.delete-button-container {
	display: flex;
	justify-content: center;
	margin-top: 25px;
	grid-column: span 2;
}

.btn_delete {
	background-color: #c0392b; /* Red tone */
	color: #fff;
	border: none;
	padding: 12px 32px;
	border-radius: 4px;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.btn_delete:hover {
	background-color: #a93226;
}

input.btn_delete {
	height: auto;
	margin-bottom: 0;
	background-color: #c0392b;
	color: #fff;
	padding: 8px 32px;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

input.btn_delete:hover {
	background-color: #a93226;
}

label .optional-note {
	margin-left: 8px;
	font-size: 12px;
	color: #666;
	font-style: italic;
}

/* Responsive Adjustments */
@media only screen and (max-width: 768px) {
    input, textarea, select {
        font-size: 1rem; /* Slightly larger font size for mobile */
    }

    .btn_submit, .btn_reset {
        padding: 0.8rem 1.6rem; /* Larger touch target */
        font-size: 1rem;
    }
	.formErrorpw {
		left: 200px;
}

.formErrorId .formErrorId {
	    top: 62px;
	    left: 246px;
	    width: 85px;
	}
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.form-control {
    width: 100%;
    margin-bottom: 10px;
}

.btn {
    /* Your button styling */
}

.btn-primary {
    /* Your primary button styling */
}

.btn-secondary {
    /* Your secondary button styling */
}

@media screen and (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
    }
    .form-group {
        padding: 0;
        flex-basis: 100%; /* Full width on smaller screens */
    }
}
