form {
	margin: 0 20px;
}

.label {
	padding: 12px 12px 12px 0;
	display: inline-block;
	color: #1260CC;
}

.input {
	width: calc(100% - 57px);
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	resize: vertical;
	display: block;
	font-size: 16px;
	font-family: Roboto, Arial, sans-serif;
}

.textarea {
	width: calc(100% - 57px);
	padding: 12px;
	font-size: 16px;
	font-family: Roboto, Arial, sans-serif;
	border: 1px solid #ccc;
	border-radius: 4px;
	resize: vertical;
	display: block;
	height: 200px;
}

.btn-block {
	width: calc(100% - 30px);
}

.category {
	width: calc(100% - 30px);
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	resize: vertical;
	font-family: Roboto, Arial, sans-serif;
	font-size: 16px;
}

.category2 {
	width: 100%;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	resize: vertical;
	font-family: Roboto, Arial, sans-serif;
	font-size: 16px;
}

.form-container {
	display: flex;
	justify-content: space-between;
	margin-top: 20px;
	/* Add space between menu and image section */
}

.input[type="file"] {
	display: block;
}

.button {
	width: 100%;
	padding: 10px 0;
	margin: 5px auto;
	border-radius: 5px;
	border: none;
	background: #003893;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}

/* New .danger class for red background */
button.danger {
    background: #D32F2F;  /* Red background */
}

.locationbutton {
	width: 100%;
	padding: 10px 0;
	margin: 10px auto;
	border-radius: 5px;
	border: none;
	background: #003893;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}

.uploadbutton {
	display: inline-block;
	background-color: whitesmoke;
	color: royalblue;
	cursor: pointer;
	border: 1px solid royalblue;
	padding: 8px 16px;
	border-radius: 5px;
	font-size: 16px;
	transition: background-color 0.3s ease, color 0.3s ease;
	margin: 20px 0;
}

.uploadbutton i {
	margin-right: 8px;
}

.uploadbutton:hover {
	background-color: royalblue;
	color: white;
}

.button:hover {
	background: #325999;
}

.location-container {
	display: flex;
	flex-wrap: wrap;
	/* justify-content: space-between; */
	gap: 10px;
	/* Adds space between the inputs */
	width: calc(100% - 30px);
	color: darkgrey;
    border-radius: 4px;
    /* Optional: Round the corners of the border */
    box-sizing: border-box;  /* ✅ Include padding/border in width */
    margin: 5px 0;  /* ✅ Reset default margin */
}

.location-item {
    flex: 1;  /* ✅ Each takes equal space (1/3) */
    min-width: 0;  /* ✅ Prevent overflow */
    display: flex;
    flex-direction: column;  /* ✅ Stack label above select */
}

.location-container select {
	flex: 1;
	/* ✅ Make dropdowns take equal space */
	min-width: 0;
	/* ✅ Prevent overflow */
}

/* Styling for the success message */
.success-message {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	padding: 20px;
	margin: 20px 0;
	border-radius: 5px;
	font-size: 18px;
	font-weight: bold;
	text-align: center;
}

@media screen and (max-width: 600px) {

    form {
        margin: 0 5px;  /* ✅ Reduce margin on mobile for better balance */
    }

	.input,
	.textarea,
	.category {
        width: 100%;  /* ✅ Full width on mobile */
        box-sizing: border-box;  /* ✅ Include padding/border in width */
	}

	.btn-block {
	width: 100%;  /* ✅ Full width on mobile */
	}

	.category2 {
        width: 100%;  /* ✅ Full width on mobile */
        box-sizing: border-box;  /* ✅ Include padding/border in width */
	}

	.location-container {
		flex-direction: column;
		width: 100%;  /* ✅ Full width on mobile */
		box-sizing: border-box;  /* ✅ Include padding/border in width */
		/* ✅ Stack vertically on small screens */
	}

	.location-container select {
		width: 100%;
		/* ✅ Make each dropdown full width on small screens */
	}

}